Documentation

iCagenda user guide and tips

3.2.13 : New option 'Visitor Time Zone'

Adapt your Custom Theme Pack to the new option 'Visitor Time Zone'.

If you have created a custom theme pack to be used with versions before 3.2.13, you will have to edit the file YOUR_THEME_day.php to be able to used the 'Visitor Time Zone' option in module iC calendar.

 

UPGRADING YOUR CUSTOM THEME PACK

  1. Open YOUR_THEME_day.php in a text editor.

  2. Edit the 3 highlighted lines as shown below:

    1. Add cal_date="<?php echo $stamp->this_day; ?>" (line 32 in official default theme pack)
      		<?php // Color of date text depending of the category color ?>
      		<a>
      		<div class="<?php echo $stamp->ifToday; ?> <?php echo $bgcolor; ?>" cal_date="<?php echo $stamp->this_day; ?>">
      			<?php echo $stamp->Days; ?>
      		</div>
      		</a>
      

       

    2. Add cal_date="<?php echo $stamp->this_day; ?>" and replace no_event by <?php echo $stamp->ifToday; ?> (line 111 in official default theme pack) and change day to Days (line 112)

      <?php // Day with no event ?>
      <?php }else{ ?>
      	<div class="<?php echo $stamp->ifToday; ?>" cal_date="<?php echo $stamp->this_day; ?>">
      		<?php echo $stamp->Days; ?>
      	</div>
      <?php } ?>
      

       

  3. You can test this file by selecting the 'Visitor Time Zone' option in module iC calendar. If no alert message, all your theme packs are upgraded.

Follow Us

Search