Totally Zenned
- Join Date:
- Jan 2007
- Location:
- Los Angeles, California, United States
- Posts:
- 10,011
- Plugin Contributions:
- 3
Event Calendar v3
DivaVocals:
that said I did not include the month defines (wanna look at the best way how to make that an admin option to support a choice between the long and short array).
So I'm looking at the code in includes/templates/custom_template/templates/tpl_events_calendar_include_default.php. Around line #64 I found this code:
$monthShort = explode(",", MONTHS_SHORT_ARRAY);
$month = date('m');
while (list($key, $value) = each($monthShort))
I'm considering that perhaps I could do something similar to the code I added to **includes/templates/custom_template/templates/tpl_events_calendar_default.php
**```
<?php if (EVENTS_DISPLAY_IMAGE_WIDTH_HEIGHT == 'true') { ?><?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"', true); ?>
<?php } else { ?>
<?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"'); ?>
<?php } ?>
So to the **tpl_events_calendar_include_default.php** file just below that other block (which starts at line #64) I could add something like this:
$monthLong = explode(",", MONTHS_LONG_ARRAY);
$month = date('m');
while (list($key, $value) = each($monthLong))
With a conditional statement around this whole block tied to an admin configuration setting where if you choose one option you will use the long months and if you choose the other it will give you the short months. (with the default being the short months of course). The admin month defines would remain where they are, (with the LONG months options now uncommented) and this admin option simply allows you to choose one or the other.. If something like this works, I am not sure what this will LOOK like in the sidebox.. (I believe these are the months in the sidebox dropdown??) Will be playing around with this tonight unless I'm dead wrong here and Rus has a BETTER idea how to include these month options as an admin setting..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.