Category: Design

Deprecated Stylesheets

dark.css A theme in dark grays and blacks with light text and dark blue highlighting. inherit.css These styles provide a minimal degree of styling, allowing most theme defaults to be dominant. light.css A light-colored theme almost entirely in whites and light grays with black text. my-calendar.css Default theme for versions 1.5 through 1.8.9. It’s largely […]

Continue reading “Deprecated Stylesheets” »

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 […]

Continue reading “Design – Scripts” »

Design – Style Editor

Style Editor is located under My Calendar > Design > Style Editor. Style Editor Select My Calendar Theme. CSS Style Options Load CSS only on selected pages.Disable My Calendar CSS.Edit a My Calendar stylesheet. CSS Variables Change the primary, secondary, and hightlight colors. Select My Calendar Theme. Choose a theme and click the Preview Stylesheet […]

Continue reading “Design – Style Editor” »

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” »

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” »