Module "Calendar" : Change the current date on the word "today"

Hi !
The module “calendar” has upcoming block.

upcoming block

I want to output the word, instead of today’s date “today”. To do this, I overrode the template views-view-list.tpl.php.

$date=date("Y-m-d 00:00:00");
	dpm($view);
	foreach ($view->result as &$val) :
	$today=$val->field_data_field_events_field_events_value; 
	
	if ($date == $today) :  $title='Cегодня'; 
	 
	
	endif;
	
	endforeach;
	
	print $title;
	 

< print $options['type'];>
foreach ($rows as $id => $row) :

  • print $classes [$id]; “> print $row;
  • endforeach;

    print $options [‘type’]; >
    ?>

    Where view-> result [0] -> field_data_field_events_field_events_value as I found out through the devel – is the date in the form: 01/03/2017 00:00:00 I compare it with the current date, if the match, the title (This grouping header field – to replace the word “Today”).

    upcoming block

    As a result, it’s change all the titles on the “Today”. Tell me, my error may be what? Why does not the condition?

    Drupal version: 


    Source: https://www.drupal.org/taxonomy/term/4/feed