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 […]
Category: Design
Design – Scripts
Scripts is located under My Calendar > Design > Scripts. Disabling scripts will break calendar interactions. This feature is intended for advanced users who wish to provide their own custom scripting. Script Manager Insert scripts on these pages (comma separated post IDs) Find the ID for the WordPress page the calendar is on and add […]
Design – Style Editor
The Style Editor is located under My Calendar > Design > Style Editor. Through version 3.5, the style editor was a system for editing stylesheet files. This functionality was removed in 3.6. Select My Calendar Theme My Calendar ships with a handful of themes. The themes mostly have minor variations from the default view. They […]
Design – Templates
This document is about the legacy My Calendar templates. These have been superseded by custom PHP templates, and will not receive any further updates. If you have legacy templates enabled, you can switch to PHP templates and they will render your existing legacy template. Templates is located under My Calendar > Design > Templates. Template […]
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 […]
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 […]
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 […]
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 […]
Single Event – WordPress Template
My Calendar uses a custom templating system to organize event content. Those are how the event data is structured from the individual discrete fields you’ve added to your event. For single events, that template is inserted inside a standard WordPress template. In the WordPress template hierarchy, it will usually be structured by the single.php or […]
Template Tag Index
Legacy Template Tags Legacy templates are managed at My Calendar > Design > Templates if PHP templating is not enabled. All legacy 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 […]