my-calendar-help.php
25.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
function my_calendar_help() {
?>
<div class="wrap jd-my-calendar">
<h1><?php _e( 'How to use My Calendar', 'my-calendar' ); ?></h1>
<div class="postbox-container jcd-wide">
<div class="metabox-holder">
<div class="ui-sortable meta-box-sortables" id="get-started">
<div class="postbox">
<h2 id="help"><?php _e( 'Getting Started', 'my-calendar' ); ?></h2>
<div class="inside">
<div class='mc-support-me'>
<p>
<?php printf(
__( 'Please, consider a <a href="%s">donation</a> or a <a href="%s">purchase</a> to support My Calendar!', 'my-calendar' )
, "https://www.joedolson.com/donate/", "https://www.joedolson.com/my-calendar/pro/" ); ?>
</p>
</div>
<ul class="list">
<li><?php _e( 'Add the My Calendar shortcode (<code>[my_calendar]</code>) to a page.', 'my-calendar' ); ?></li>
<li><?php _e( 'Add events by clicking on the Add/Edit Events link in the admin or on "Add Events" in the toolbar.', 'my-calendar' ); ?></li>
<li><?php _e( 'Select your preferred stylesheet in the Styles Editor', 'my-calendar' ); ?></li>
</ul>
<?php do_action( 'mc_before_help' ); ?>
<ul class="mc-settings checkboxes">
<li><a href="#mc-generator"><?php _e( 'Shortcode Generator', 'my-calendar' ); ?></a></li>
<li><a href="#mc-shortcodes"><?php _e( 'Shortcodes', 'my-calendar' ); ?></a></li>
<li><a href="#icons"><?php _e( 'Icons', 'my-calendar' ); ?></a></li>
<li><a href="#mc-styles"><?php _e( 'Styles', 'my-calendar' ); ?></a></li>
<li><a href="#templates"><?php _e( 'Templating', 'my-calendar' ); ?></a></li>
<li><a href="#get-support"><?php _e( 'Get Support', 'my-calendar' ); ?></a></li>
</ul>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables" id="mc-generator">
<div class="postbox">
<h2 id="generator"><?php _e( "My Calendar Shortcode Generator", 'my-calendar' ); ?></h2>
<div class="inside mc-tabs">
<?php mc_generate(); ?>
<ul class='tabs' role="tablist">
<li><a href='#mc_main' role="tab" id='tab_mc_main' aria-controls='mc_main'><?php _e( 'Main', 'my-calendar' ); ?></a></li>
<li><a href='#mc_upcoming' role="tab" id='tab_mc_upcoming' aria-controls='mc_upcoming'><?php _e( 'Upcoming', 'my-calendar' ); ?></a></li>
<li><a href='#mc_today' role="tab" id='tab_mc_today' aria-controls='mc_today'><?php _e( 'Today', 'my-calendar' ); ?></a></li>
<?php echo apply_filters( 'mc_generator_tabs', '' ); ?>
</ul>
<div class='wptab mc_main' id='mc_main' aria-live='assertive' aria-labelledby='tab_mc_main' role="tabpanel">
<?php mc_generator( 'main' ); ?>
</div>
<div class='wptab mc_upcoming' id='mc_upcoming' aria-live='assertive' aria-labelledby='tab_mc_upcoming' role="tabpanel">
<?php mc_generator( 'upcoming' ); ?>
</div>
<div class='wptab mc_today' id='mc_today' aria-live='assertive' aria-labelledby='tab_mc_today' role="tabpanel">
<?php mc_generator( 'today' ); ?>
</div>
<?php echo apply_filters( 'mc_generator_tab_content', '' ); ?>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables">
<div class="postbox" id="mc-shortcodes">
<h2><?php _e( 'Shortcode Syntax', 'my-calendar' ); ?></h2>
<div class="inside">
<h4><?php _e( 'Main Calendar Shortcode (List or Grid, Weekly or Monthly view)', 'my-calendar' ); ?></h4>
<p class="example"><code>[my_calendar]</code></p>
<h4><?php _e( 'Example Customized Shortcode', 'my-calendar' ); ?></h4>
<p class="example"><code>[my_calendar format="list" above="nav" below="print" time="week"]</code></p>
<p>
<?php _e( 'This shortcode shows the one-week view of the calendar on a post or page including all categories and the category key, in a list format. The standard previous/next navigation will be included above the calendar, the link to the print format will be shown below.', 'my-calendar' ); ?>
</p>
<p>
<?php _e( 'Shortcode attributes:', 'my-calendar' ); ?>
</p>
<ul>
<li>
<code>category</code>: <?php _e( 'Names or IDs of categories in the calendar, comma or pipe separated.', 'my-calendar' ); ?>
</li>
<li>
<code>format</code>: <?php _e( '"list" or "mini"; exclude or any other value to show a calendar grid.', 'my-calendar' ); ?>
</li>
<li><code>above</code>,
<code>below</code>: <?php _e( "Comma-separated list of navigation to display above or below the calendar. Available: <strong>nav, toggle, jump, print, key, feeds, timeframe</strong>. Order listed determines the order displayed. Defaults in settings will be used if the attribute is blank. Use <em>none</em> to hide all navigation.", 'my-calendar' ); ?>
</li>
<li>
<code>time</code>: <?php _e( 'Set to "week" to show a one week view or to "day" to show a single day view. Any other value will show a month view. (Day view always shows as a list.)', 'my-calendar' ); ?>
</li>
<li><code>ltype</code>: <?php _e( 'Type of location data to restrict by.', 'my-calendar' ); ?></li>
<li><code>lvalue</code>: <?php _e( 'Specific location information to filter to.', 'my-calendar' ); ?>
</li>
<li>
<code>author</code>: <?php _e( 'Author or comma-separated list (usernames or IDs) to show events from.', 'my-calendar' ); ?>
</li>
<li>
<code>host</code>: <?php _e( 'Host or comma-separated list (usernames or IDs) to show events from.', 'my-calendar' ); ?>
</li>
<li>
<code>year</code>: <?php _e( 'A specific year to start the calendar display at. (e.g. 2016)', 'my-calendar' ); ?>
</li>
<li>
<code>month</code>: <?php _e( 'A specific month to start the calendar display at. (e.g. 08)', 'my-calendar' ); ?>
</li>
<li>
<code>day</code>: <?php _e( 'A specific day to start the calendar display at. (e.g. 28)', 'my-calendar' ); ?>
</li>
<li><code>id</code>: <?php _e( 'String to give shortcode a unique ID.', 'my-calendar' ); ?></li>
</ul>
<h4><?php _e( 'Additional Views (Upcoming events, today\'s events)', 'my-calendar' ); ?></h4>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_upcoming before="3" after="3" type="event" fallback="No events coming up!" category="General" author="1" host="1" template="{title} {date}" order="asc" show_today="yes" skip="0" ltype="" lvalue="" from="" to=""]</textarea>
<p>
<?php _e( 'Displays the output of the Upcoming Events widget. <code>before</code> and <code>after</code> are numbers; <code>type</code> is either "event", "days", or "custom" and <code>category</code> and <code>author</code> work the same as in the main calendar shortcode. Templates use the template codes listed below. <code>fallback</code> provides text if no events meet your criteria. Order sets sort order for the list – ascending (<code>asc</code>) or descending (<code>desc</code>). <code>show_today</code> indicates whether to include today\'s events in the list. <code>Skip</code> is how many events to skip in the list.', 'my-calendar' ); ?> <?php _e( 'Use <code>from</code> and <code>to</code> with type="custom" to display events between two specific dates', 'my-calendar' ); ?> <?php _e( 'The keyword "today" in the <code>to</code> attribute will give you all events between the from date and the current date.', 'my-calendar' ); ?>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_today category="" author="1" host="1" fallback="Nothing today!" template="{title} {date}" date=""]</textarea>
<p>
<?php _e( 'Displays the output of the Today\'s Events widget, with five configurable attributes: category, author, template, date, and fallback text.', 'my-calendar' ); ?>
</p>
<p>
<em><?php _e( 'Upcoming Events and Today\'s Events can also be configured as widgets.', 'my-calendar' ); ?></em>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_event event="" template="<h3>{title}</h3>{description}" list="<li>{date}, {time}</li>" before="<ul>" after="</ul>"]</textarea>
<p>
<?php _e( 'Displays a single event and/or all dates for that event. If template is set to a blank value, will only display the list of occurrences. If the list attribute is set blank, will only show the event template', 'my-calendar' ); ?>
</p>
<h4><?php _e( 'Calendar Filter Shortcodes', 'my-calendar' ); ?></h4>
<textarea readonly='readonly' class="large-text readonly">[mc_filters show="categories,locations"]</textarea>
<p>
<?php _e( 'Displays all available filters as a single form. The <code>show</code> attribute takes three keywords: categories, locations, and access, to indicate which filters to show and in what order.', 'my-calendar' ); ?>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_locations show="list" type="saved" datatype="name"]</textarea>
<p>
<?php _e( 'List of event locations, as a list of links or as a select form. <code>show</code> is either <code>list</code> or <code>form</code>, <code>type</code> is <code>saved</code> (to show items from stored locations), or <code>custom</code> (to show options configured in location settings). <code>datatype</code> must be the type of data your limits are using: <code>name</code> (business name), <code>city</code>, <code>state</code>, <code>country</code>, <code>zip</code> (postal code), or <code>region</code>.', 'my-calendar' ); ?>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_categories show="list"]</textarea>
<p>
<?php _e( 'List of event categories, either as a list of links or as a select dropdown form. The <code>show</code> attribute can either be <code>list</code> or <code>form</code>.', 'my-calendar' ); ?>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_search]</textarea>
<p>
<?php _e( 'Simple search form to search all events. <code>url</code> attribute to pass a custom search results page, otherwise your My Calendar URL.', 'my-calendar' ); ?>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_now category='default' template='']</textarea>
<p>
<?php _e( 'Show an event happening right now. Will only ever show one event, which will be the first event returned by checking which events are happening at the moment. Pass a category ID or name to limit by category.', 'my-calendar' ); ?>
</p>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_access show="list"]</textarea>
<p>
<?php _e( 'List of filterable accessibility services, either as a list of links or as a select dropdown form. The <code>show</code> attribute can either be <code>list</code> or <code>form</code>.', 'my-calendar' ); ?>
</p>
<h4><?php _e( 'Information Listing Shortcodes', 'my-calendar' ); ?></h4>
<textarea readonly='readonly' class="large-text readonly">[my_calendar_show_locations datatype="" template=""]</textarea>
<p>
<?php _e( 'List of locations. <code>datatype</code> is the type of data displayed; all lists include a link to the map to that location. In addition to basic location information as in the above shortcode, you can also use "hcard" to display all available location information.', 'my-calendar' ); ?>
<?php _e( 'Use <code>template</code> to show customized data, sorted by the <code>datatype</code> value.', 'my-calendar' ); ?>
</p>
</div>
</div>
<div class="ui-sortable meta-box-sortables" id="icons">
<div class="postbox">
<h2><?php _e( 'Category Icons', 'my-calendar' ); ?></h2>
<div class="inside">
<p>
<?php _e( 'The pre-installed category icons may not be what you need. I assume that you\'ll upload your own icons -- place your custom icons in a folder at "my-calendar-custom" to avoid having them overwritten by upgrades.', 'my-calendar' ); ?> <?php _e( 'You can alternately place icons in:', 'my-calendar' ); ?>
<code><?php echo str_replace( '/my-calendar', '', plugin_dir_path( __FILE__ ) ) . 'my-calendar-custom/'; ?></code>
</p>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables" id="mc-styles">
<div class="postbox">
<h2><?php _e( 'Custom Styles', 'my-calendar' ); ?></h2>
<div class="inside">
<p>
<?php _e( 'My Calendar comes with five default stylesheets. My Calendar will retain your changes to stylesheets, but if you want to add an entirely new stylesheet, you may wish to store it in the My Calendar custom styles directory.', 'my-calendar' ); ?>
</p>
<ul>
<li><?php _e( 'Your custom style directory is', 'my-calendar' ); ?>:
<code><?php echo str_replace( '/my-calendar', '', plugin_dir_path( __FILE__ ) ) . 'my-calendar-custom/styles/'; ?></code>
</li>
</ul>
<p>
<?php _e( 'You can also add custom styles to your custom directory or your theme directory for print styles, mobile styles, and tablet styles. <code>mc-print.css</code>, <code>mc-mobile.css</code>, and <code>mc-tablet.css</code>.', 'my-calendar' ); ?>
</p>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables" id="templates">
<div class="postbox">
<h2 id="template"><?php _e( 'Template Tags', 'my-calendar' ); ?></h2>
<div class="inside">
<p>
<?php _e( '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 <strong>must</strong> be wrapped in double quotes.', 'my-calendar' ); ?>
</p>
<p>
<?php _e( 'Date/Time template tags support the "format" attribute: format="M, Y", where the value is a PHP formatted date string. Only <code>dtstart</code> and <code>dtend</code> include the full date/time information for formatting.', 'my-calendar' ); ?>
</p>
<p>
<strong><?php _e( 'Example:', 'my-calendar' ); ?></strong> <code>{title before="<h3>"
after="</h3>"}</code>
</p>
<h4><?php _e( 'Event Template Tags', 'my-calendar' ); ?></h4>
<dl>
<dt><code>{title}</code></dt>
<dd><?php _e( 'Displays the title of the event.', 'my-calendar' ); ?></dd>
<dt><code>{link_title}</code></dt>
<dd><?php _e( 'Displays title of the event as a link if a URL is present, or the title alone if no URL is available.', 'my-calendar' ); ?></dd>
<dt><code>{link_image}</code></dt>
<dd><?php _e( 'Displays featured image of the event as a link if a URL is present, or the image alone if no URL is available.', 'my-calendar' ); ?></dd>
<dt><code>{time}</code></dt>
<dd><?php _e( 'Displays the start time for the event.', 'my-calendar' ); ?></dd>
<dt><code>{runtime}</code></dt>
<dd><?php _e( 'Human language estimate of how long an event will run.', 'my-calendar' ); ?></dd>
<dt><code>{date}</code></dt>
<dd><?php _e( 'Displays the date on which the event begins.', 'my-calendar' ); ?></dd>
<dt><code>{began}</code></dt>
<dd><?php _e( 'Displays the date on which the series of events began (for recurring events).', 'my-calendar' ); ?></dd>
<dt><code>{enddate}</code></dt>
<dd><?php _e( 'Displays the date on which the event ends.', 'my-calendar' ); ?></dd>
<dt><code>{endtime}</code></dt>
<dd><?php _e( 'Displays the time at which the event ends.', 'my-calendar' ); ?></dd>
<dt><code>{daterange}</code></dt>
<dd><?php _e( 'Displays the beginning date to the end date for events. Does not show end date if same as start date.', 'my-calendar' ); ?></dd>
<dt><code>{timerange}</code></dt>
<dd><?php _e( 'Displays the beginning and end times for events. Does not show end time if same as start or if marked as hidden.', 'my-calendar' ); ?></dd>
<dt><code>{dtstart}</code></dt>
<dd><?php _e( 'Timestamp for beginning of event.', 'my-calendar' ); ?></dd>
<dt><code>{dtend}</code></dt>
<dd><?php _e( 'Timestamp for end of event.', 'my-calendar' ); ?></dd>
<dt><code>{multidate}</code></dt>
<dd><?php _e( 'For multi-day events displays an unordered list of dates and times for events in this group. Otherwise, beginning date/time.', 'my-calendar' ); ?></dd>
<dt><code>{related}</code></dt>
<dd><?php _e( 'List of other events in the same event group. (Only on single event views.)', 'my-calendar' ); ?></dd>
<dt><code>{author}</code></dt>
<dd><?php _e( 'Displays the WordPress author who posted the event.', 'my-calendar' ); ?></dd>
<dt><code>{gravatar}</code></dt>
<dd><?php _e( 'Displays the gravatar image for the event author.', 'my-calendar' ); ?></dd>
<dt><code>{host}</code></dt>
<dd><?php _e( 'Displays the name of the person assigned as host for the event.', 'my-calendar' ); ?></dd>
<dt><code>{host_email}</code></dt>
<dd><?php _e( 'Displays the email address of the person assigned as host for the event.', 'my-calendar' ); ?></dd>
<dt><code>{host_gravatar}</code></dt>
<dd><?php _e( 'Displays the gravatar image for the event host.', 'my-calendar' ); ?></dd>
<dt><code>{shortdesc}</code></dt>
<dd><?php _e( 'Displays the short version of the event description.', 'my-calendar' ); ?></dd>
<dt><code>{shortdesc_raw}</code></dt>
<dd><?php _e( 'Displays short description without converting paragraphs.', 'my-calendar' ); ?></dd>
<dt><code>{shortdesc_stripped}</code></dt>
<dd><?php _e( 'Displays short description with any HTML stripped out.', 'my-calendar' ); ?></dd>
<dt><code>{excerpt}</code></dt>
<dd><?php _e( 'Like <code>the_excerpt();</code> displays shortdesc if provided, otherwise excerpts description.', 'my-calendar' ); ?></dd>
<dt><code>{description}</code></dt>
<dd><?php _e( 'Displays the description of the event.', 'my-calendar' ); ?></dd>
<dt><code>{description_raw}</code></dt>
<dd><?php _e( 'Displays description without converting paragraphs.', 'my-calendar' ); ?></dd>
<dt><code>{description_stripped}</code></dt>
<dd><?php _e( 'Displays description with any HTML stripped out.', 'my-calendar' ); ?></dd>
<dt><code>{access}</code></dt>
<dd><?php _e( 'Unordered list of accessibility options for this event.', 'my-calendar' ); ?></dd>
<dt><code>{image}</code></dt>
<dd><?php _e( 'Image associated with the event. (HTMl)', 'my-calendar' ); ?></dd>
<dt><code>{image_url}</code></dt>
<dd><?php _e( 'Image associated with the event. (image URL only)', 'my-calendar' ); ?></dd>
<dt><code>{full}</code></dt>
<dd><?php _e( 'Event post thumbnail, full size, full HTML', 'my-calendar' ); ?></dd>
<?php
$sizes = get_intermediate_image_sizes();
foreach ( $sizes as $size ) {
?>
<dt><code>{<?php echo $size; ?>}</code> / <code>{<?php echo $size; ?>_url}</code></dt>
<dd><?php printf( __( 'Event post thumbnail, %s size, full HTML / image URL only', 'my-calendar' ), $size ); ?></dd>
<?php
}
?>
<dt><code>{link}</code></dt>
<dd><?php _e( 'Displays the URL provided for the event.', 'my-calendar' ); ?></dd>
<dt><code>{ical}</code></dt>
<dd><?php _e( 'Produces the URL to download an iCal formatted record for the event.', 'my-calendar' ); ?></dd>
<dt><code>{ical_html}</code></dt>
<dd><?php _e( 'Produces a hyperlink to download an iCal formatted record for the event.', 'my-calendar' ); ?></dd>
<dt><code>{gcal}</code></dt>
<dd><?php _e( 'URL to submit event to Google Calendar', 'my-calendar' ); ?></dd>
<dt><code>{gcal_link}</code></dt>
<dd><?php _e( 'Link to submit event to Google Calendar, with class "gcal"', 'my-calendar' ); ?></dd>
<dt><code>{recurs}</code></dt>
<dd><?php _e( 'Shows the recurrence status of the event. (Daily, Weekly, etc.)', 'my-calendar' ); ?></dd>
<dt><code>{repeats}</code></dt>
<dd><?php _e( 'Shows the number of repetitions of the event.', 'my-calendar' ); ?></dd>
<dt><code>{details}</code></dt>
<dd><?php _e( 'Provides a link to an auto-generated page containing all information on the given event.', 'my-calendar' ); ?>
<strong><?php _e( 'Requires that the site URL has been provided on the Settings page', 'my-calendar' ); ?></strong></dd>
<dt><code>{details_link}</code></dt>
<dd><?php _e( 'Raw URL for the details link; empty if target URL not defined.', 'my-calendar' ); ?></dd>
<dt><code>{linking}</code></dt>
<dd><?php _e( 'Provides a link to the defined event URL when present, otherwise the {details} link.', 'my-calendar' ); ?>
<strong><?php _e( 'Requires that the site URL has been provided on the Settings page', 'my-calendar' ); ?></strong></dd>
<dt><code>{linking_title}</code></dt>
<dd><?php _e( 'Like {link_title}, but uses {linking} instead of {link}.', 'my-calendar' ); ?></dd>
<dt><code>{event_open}</code></dt>
<dd><?php _e( 'Displays text indicating whether registration for the event is currently open or closed; displays nothing if that choice is selected in the event.', 'my-calendar' ); ?></dd>
<dt><code>{event_tickets}</code></dt>
<dd><?php _e( 'URL to ticketing for event.', 'my-calendar' ); ?></dd>
<dt><code>{event_registration}</code></dt>
<dd><?php _e( 'Registration information about this event.', 'my-calendar' ); ?></dd>
<dt><code>{event_status}</code></dt>
<dd><?php _e( 'Displays the current status of the event: either "Published" or "Reserved" - primary used in email templates.', 'my-calendar' ); ?></dd>
</dl>
<h4><?php _e( 'Location Template Tags', 'my-calendar' ); ?></h4>
<dl>
<dt><code>{location}</code></dt>
<dd><?php _e( 'Displays the name of the location of the event.', 'my-calendar' ); ?></dd>
<dt><code>{street}</code></dt>
<dd><?php _e( 'Displays the first line of the site address.', 'my-calendar' ); ?></dd>
<dt><code>{street2}</code></dt>
<dd><?php _e( 'Displays the second line of the site address.', 'my-calendar' ); ?></dd>
<dt><code>{city}</code></dt>
<dd><?php _e( 'Displays the city for the location.', 'my-calendar' ); ?></dd>
<dt><code>{state}</code></dt>
<dd><?php _e( 'Displays the state for the location.', 'my-calendar' ); ?></dd>
<dt><code>{postcode}</code></dt>
<dd><?php _e( 'Displays the postcode for the location.', 'my-calendar' ); ?></dd>
<dt><code>{region}</code></dt>
<dd><?php _e( 'Shows the custom region entered for the location.', 'my-calendar' ); ?></dd>
<dt><code>{country}</code></dt>
<dd><?php _e( 'Displays the country for the event location.', 'my-calendar' ); ?></dd>
<dt><code>{sitelink}</code></dt>
<dd><?php _e( 'Output the URL for the location link.', 'my-calendar' ); ?></dd>
<dt><code>{phone}</code></dt>
<dd><?php _e( 'Output the stored phone number for the location.', 'my-calendar' ); ?></dd>
<dt><code>{sitelink_html}</code></dt>
<dd><?php _e( 'Output a hyperlink to the location\'s listed link with default link text.', 'my-calendar' ); ?></dd>
<dt><code>{hcard}</code></dt>
<dd><?php _e( 'Displays the event address in <a href="http://microformats.org/wiki/hcard">hcard</a> format.', 'my-calendar' ); ?></dd>
<dt><code>{link_map}</code></dt>
<dd><?php _e( 'Displays a link to a Google Map of the event, if sufficient address information is available. If not, will be empty.', 'my-calendar' ); ?></dd>
<dt><code>{map_url}</code></dt>
<dd><?php _e( 'Produces the URL for the Google Map for the event location if sufficient address information is available. If not, will be empty.', 'my-calendar' ); ?></dd>
<dt><code>{map}</code></dt>
<dd><?php _e( 'Output Google Map if sufficient address information is available. If not, will be empty.', 'my-calendar' ); ?></dd>
<dt><code>{location_access}</code></dt>
<dd><?php _e( 'Unordered list of accessibility options for this location.', 'my-calendar' ); ?></dd>
</dl>
<h4><?php _e( 'Category Template Tags', 'my-calendar' ); ?></h4>
<dl>
<dt><code>{category}</code></dt>
<dd><?php _e( 'Displays the name of the category the event is in.', 'my-calendar' ); ?></dd>
<dt><code>{icon}</code></dt>
<dd><?php _e( 'Produces the address of the current event\'s category icon.', 'my-calendar' ); ?></dd>
<dt><code>{icon_html}</code></dt>
<dd><?php _e( 'Produces the HTML for the current event\'s category icon.', 'my-calendar' ); ?></dd>
<dt><code>{color}</code></dt>
<dd><?php _e( 'Produces the hex code for the current event\'s category color.', 'my-calendar' ); ?></dd>
<dt><code>{cat_id}</code></dt>
<dd><?php _e( 'Displays the ID for the category the event is in.', 'my-calendar' ); ?></dd>
</dl>
<h4><?php _e( 'Special use Template Tags', 'my-calendar' ); ?></h4>
<dl>
<dt><code>{dateid}</code></dt>
<dd><?php _e( 'A unique ID for the current instance of an event.', 'my-calendar' ); ?></dd>
<dt><code>{id}</code></dt>
<dd><?php _e( 'The ID for the event record associated with the current instance of an event.', 'my-calendar' ); ?></dd>
</dl>
<?php do_action( 'mc_after_help' ); ?>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables" id="get-support">
<div class="postbox">
<h2 id="support"><?php _e( 'Get Plug-in Support', 'my-calendar' ); ?></h2>
<div class="inside">
<div class='mc-support-me'>
<p>
<?php printf(
__( 'Please, consider a <a href="%s">donation</a> or a <a href="%s">purchase</a> to support My Calendar!', 'my-calendar' )
, "https://www.joedolson.com/donate/", "https://www.joedolson.com/my-calendar/pro/" ); ?>
</p>
</div>
<?php if ( current_user_can( 'administrator' ) ) { ?>
<?php mc_get_support_form(); ?>
<?php } else { ?>
<?php _e( 'My Calendar support requests can only be sent by administrators.', 'my-calendar' ); ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php mc_show_sidebar(); ?>
</div>
<?php } ?>