Category: Templates

Customizing List Preset Templates

There are two primary ways to customize list presets: through PHP filters or through customizations to the PHP templates for lists. List presets can be manipulated using the mc_preset_template filter. This filter directly modified the HTML and template tags used to output the content of the list item. The CSS for the list presets uses […]

Continue reading “Customizing List Preset Templates” »

Design – Templates

Templates is located under My Calendar > Design > Templates. Template Editor Core Templates The core templates will display event details and appear in five places: gridThe main grid calendar. The content that appears in the popup window. listThe list view calendar. miniThe mini view calendar. details (single event)The single event view, or details page. […]

Continue reading “Design – Templates” »

List Preset Templates

Introduced in My Calendar version 3.6.0, list views come with a set of pre-defined templates you can use. There are four templates, but you can also customize or add new templates, if needed. At My Calendar > Design> Templates, you can configure the default on a site-wide basis, and preview the templates with your next […]

Continue reading “List Preset Templates” »

PHP Templates

Version 3.5 of My Calendar introduced support for PHP-based templates. When enabled, these templates replace the entirety of the previous templating system. My Calendar’s default templates are found at /my-calendar/mc-templates/. To use PHP templates in your site, copy the desired file into your theme, using the same file directory path. For example, the template at […]

Continue reading “PHP Templates” »

PHP Templates: Body

My Calendar’s PHP templates are context sensitive, allowing you to display the event content differently in different contexts. There are five primary content templates: The default content templates for these views respect the settings used at My Calendar > Settings > Display > Event Display Fields. If you have disabled fields using those settings, they […]

Continue reading “PHP Templates: Body” »

PHP Templates: Titles

My Calendar’s PHP templates are context sensitive, allowing you to display the title differently in different contexts. There are five different templates targeting title display: All default {type}-title.php templates render the template tags in the related settings field if they have been modified using mc_draw_template(). Any event template tag is available for use in the […]

Continue reading “PHP Templates: Titles” »

Single Event Template

By default, the single event view uses the single.php template from your WordPress theme, or whatever nearest template is appropriate based on the template hierarchy. You can customize the template by using a single-mc-events.php template file in your theme or child theme directory. Copy whatever template file is closest to what you want for your […]

Continue reading “Single Event Template” »

Template Tag Index

All template tags support two attributes: before=”value” and after=”value”. The values of the attributes will be placed before and after the output value. These attribute values must be wrapped in double quotes. Date/Time template tags support the “format” attribute: format=”M, Y”, where the value is a PHP formatted date string. Only dtstart and dtend include […]

Continue reading “Template Tag Index” »