本文整理汇总了PHP中mc_show_sidebar函数的典型用法代码示例。如果您正苦于以下问题:PHP mc_show_sidebar函数的具体用法?PHP mc_show_sidebar怎么用?PHP mc_show_sidebar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mc_show_sidebar函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: edit_mc_templates
//.........这里部分代码省略.........
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('My Calendar: Event Details Page Template', 'my-calendar');
?>
</h3>
<div class="inside">
<form method="post" action="<?php
echo admin_url("admin.php?page=my-calendar-templates");
?>
">
<div><input type="hidden" name="_wpnonce" value="<?php
echo wp_create_nonce('my-calendar-nonce');
?>
" /></div>
<p>
<input type="checkbox" id="mc_use_details_template" name="mc_use_details_template" value="1" <?php
mc_is_checked('mc_use_details_template', 1);
?>
/> <label for="mc_use_details_template"><?php
_e('Use this details template', 'my-calendar');
?>
</label>
</p>
<p>
<label for="mc_details_template"><?php
_e('Your custom template for events on the event details page.', 'my-calendar');
?>
</label><br /><textarea id="mc_details_template" name="mc_details_template" rows="16" cols="76" class="template-editor"><?php
echo $mc_details_template;
?>
</textarea>
</p>
<p>
<input type="submit" name="save" class="button-primary" value="<?php
_e('Save Details Template', 'my-calendar');
?>
" />
</p>
</form>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('My Calendar: RSS Event Template', 'my-calendar');
?>
</h3>
<div class="inside">
<p><?php
_e('Notice: HTML templates are very forgiving of errors. RSS templates are not. Be sure to test your changes.', 'my-calendar');
?>
</p>
<form method="post" action="<?php
echo admin_url("admin.php?page=my-calendar-templates");
?>
">
<div><input type="hidden" name="_wpnonce" value="<?php
echo wp_create_nonce('my-calendar-nonce');
?>
" /></div>
<p>
<input type="checkbox" id="mc_use_rss_template" name="mc_use_rss_template" value="1" <?php
mc_is_checked('mc_use_rss_template', 1);
?>
/> <label for="mc_use_grid_template"><?php
_e('Use this custom RSS event template', 'my-calendar');
?>
</label>
</p>
<p>
<label for="mc_rss_template"><?php
_e('Your custom template for events in the RSS feed.', 'my-calendar');
?>
</label><br /><textarea id="mc_rss_template" name="mc_rss_template" class="template-editor" rows="16" cols="76"><?php
echo $mc_rss_template;
?>
</textarea>
</p>
<p>
<input type="submit" name="save" class="button-primary" value="<?php
_e('Save RSS Template', 'my-calendar');
?>
" />
</p>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
mc_show_sidebar('templates');
}
示例2: mc_show_location_form
//.........这里部分代码省略.........
?>
</h2>
<?php
}
?>
<div class="postbox-container jcd-wide">
<div class="metabox-holder">
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('Location Editor', 'my-calendar');
?>
</h3>
<div class="inside location_form">
<form id="my-calendar" method="post"
action="<?php
echo admin_url("admin.php?page=my-calendar-locations");
?>
">
<div><input type="hidden" name="_wpnonce"
value="<?php
echo wp_create_nonce('my-calendar-nonce');
?>
"/></div>
<?php
if ($view == 'add') {
?>
<div>
<input type="hidden" name="mode" value="add"/>
<input type="hidden" name="location_id" value=""/>
</div>
<?php
} else {
?>
<div>
<input type="hidden" name="mode" value="edit"/>
<input type="hidden" name="location_id"
value="<?php
echo $cur_loc->location_id;
?>
"/>
</div>
<?php
}
echo mc_locations_fields($has_data, $cur_loc, 'location');
?>
<p>
<input type="submit" name="save" class="button-primary"
value="<?php
if ($view == 'edit') {
_e('Save Changes', 'my-calendar');
} else {
_e('Add Location', 'my-calendar');
}
?>
»"/>
</p>
</form>
</div>
</div>
</div>
<?php
if ($view == 'edit') {
?>
<p>
<a href="<?php
echo admin_url("admin.php?page=my-calendar-locations");
?>
"><?php
_e('Add a New Location', 'my-calendar');
?>
»</a>
</p>
<?php
}
?>
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('Manage Locations', 'my-calendar');
?>
</h3>
<div class="inside">
<?php
mc_manage_locations();
?>
</div>
</div>
</div>
</div>
<?php
mc_show_sidebar();
?>
</div>
<?php
}
示例3: edit_my_calendar_styles
//.........这里部分代码省略.........
esc_attr_e($mc_show_css);
?>
"/>
</p>
<p>
<input type="checkbox" id="reset_styles"
name="reset_styles" <?php
if (mc_is_custom_style(get_option('mc_css_file'))) {
echo "disabled='disabled'";
}
?>
/> <label
for="reset_styles"><?php
_e('Restore My Calendar stylesheet', 'my-calendar');
?>
</label>
<input type="checkbox" id="use_styles"
name="use_styles" <?php
mc_is_checked('mc_use_styles', 'true');
?>
/>
<label
for="use_styles"><?php
_e('Disable My Calendar Stylesheet', 'my-calendar');
?>
</label>
</p>
<p>
<?php
if (mc_is_custom_style(get_option('mc_css_file'))) {
_e('The editor is not available for custom CSS files. You should edit your custom CSS locally, then upload your changes.', 'my-calendar');
} else {
?>
<label
for="style"><?php
_e('Edit the stylesheet for My Calendar', 'my-calendar');
?>
</label><br/><textarea
class="style-editor" id="style" name="style" rows="30"
cols="80"<?php
if (get_option('mc_use_styles') == 'true') {
echo "disabled='disabled'";
}
?>
><?php
echo $my_calendar_style;
?>
</textarea>
<?php
}
?>
</p>
<p>
<input type="submit" name="save" class="button-primary button-adjust"
value="<?php
_e('Save Changes', 'my-calendar');
?>
"/>
</p>
</fieldset>
</form>
<?php
$left_string = normalize_whitespace($my_calendar_style);
$right_string = normalize_whitespace($mc_current_style);
if ($right_string) {
// if right string is blank, there is no default
if (isset($_GET['diff'])) {
echo '<div class="wrap jd-my-calendar" id="diff">';
echo wp_text_diff($left_string, $right_string, array('title' => __('Comparing Your Style with latest installed version of My Calendar', 'my-calendar'), 'title_right' => __('Latest (from plugin)', 'my-calendar'), 'title_left' => __('Current (in use)', 'my-calendar')));
echo '</div>';
} else {
if (trim($left_string) != trim($right_string)) {
echo '<div class="wrap jd-my-calendar">';
echo '<div class="updated"><p>' . __('There have been updates to the stylesheet.', 'my-calendar') . ' <a href="' . admin_url("admin.php?page=my-calendar-styles&diff#diff") . '">' . __('Compare Your Stylesheet with latest installed version of My Calendar.', 'my-calendar') . '</a></p></div>';
echo '</div>';
} else {
echo '
<div class="wrap jd-my-calendar">
<p>' . __('Your stylesheet matches that included with My Calendar.', 'my-calendar') . '</p>
</div>';
}
}
}
?>
</div>
</div>
<p><?php
_e('Resetting your stylesheet will set your stylesheet to the version currently distributed with the plug-in.', 'my-calendar');
?>
</p>
</div>
</div>
</div>
<?php
mc_show_sidebar();
?>
</div><?php
}
示例4: edit_my_calendar_groups
//.........这里部分代码省略.........
$message = "<div class='error'><p><strong>" . __('Error', 'my-calendar') . ":</strong>" . __('Event not updated.', 'my-calendar') . "{$url}</p></div>";
} else {
if ($result === 0) {
$message = "<div class='updated'><p>#{$event_id}: " . __('Nothing was changed in that update.', 'my-calendar') . "{$url}</p></div>";
} else {
$message = "<div class='updated'><p>#{$event_id}: " . __('Event updated successfully', 'my-calendar') . ".{$url}</p></div>";
}
}
}
break;
case 'group':
if (isset($_POST['group']) && is_array($_POST['group'])) {
$events = $_POST['group'];
sort($events);
}
foreach ($events as $event_id) {
$group_id = $events[0];
$update = array('event_group_id' => $group_id);
$formats = array('%d');
//$mcdb->show_errors();
$result = $mcdb->update(my_calendar_table(), $update, array('event_id' => $event_id), $formats, '%d');
//$mcdb->print_error();
if ($result === false) {
$message = "<div class='error'><p><strong>" . __('Error', 'my-calendar') . ":</strong>" . __('Event not grouped.', 'my-calendar') . "</p></div>";
} else {
if ($result === 0) {
$message = "<div class='updated'><p>#{$event_id}: " . __('Nothing was changed in that update.', 'my-calendar') . "</p></div>";
} else {
$message = "<div class='updated'><p>#{$event_id}: " . __('Event grouped successfully', 'my-calendar') . "</p></div>";
}
}
}
break;
}
}
?>
<div class="wrap jd-my-calendar" id="my-calendar"><?php
my_calendar_check_db();
if ($action == 'edit' || $action == 'edit' && $error_with_saving == 1) {
?>
<div id="icon-edit" class="icon32"></div>
<h2><?php
_e('Edit Event Group', 'my-calendar');
?>
</h2>
<?php
if (empty($event_id) || empty($group_id)) {
echo "<div class=\"error\"><p>" . __("You must provide an event group id in order to edit it", 'my-calendar') . "</p></div>";
} else {
mc_edit_groups('edit', $event_id, $group_id);
}
} else {
?>
<div id="icon-edit" class="icon32"></div>
<h2><?php
_e('Manage Event Groups', 'my-calendar');
?>
</h2>
<p>
<?php
_e('Grouped events can be edited simultaneously. When you choose a group of events to edit, the form will be pre-filled with the content applicable to the member of the event group you started from. (e.g., if you click on the "Edit Group" link for the 3rd of a set of events, the boxes will use the content applicable to that event.). You will also receive a set of checkboxes which will indicate which events in the group should have these changes applied. (All grouped events can also be edited individually.)', 'my-calendar');
?>
</p>
<div class="postbox-container jcd-wide">
<div class="metabox-holder">
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('Manage Event Groups', 'my-calendar');
?>
</h3>
<div class="inside">
<p><?php
_e('Select an event group to edit.', 'my-calendar');
?>
</p>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('Create/Modify Groups', 'my-calendar');
?>
</h3>
<?php
mc_list_groups();
?>
</div>
</div>
</div>
</div><?php
}
mc_show_sidebar();
?>
</div><?php
}
示例5: edit_my_calendar
//.........这里部分代码省略.........
<input type="submit" value="<?php
_e('Import from Calendar', 'my-calendar');
?>
"
name="import-calendar" class="button-primary"/>
</div>
</form>
<?php
echo "<p>";
_e('Although it is possible that this import could fail to import your events correctly, it should not have any impact on your existing Calendar database. If you encounter any problems, <a href="http://www.joedolson.com/contact.php">please contact me</a>!', 'my-calendar');
echo "</p>";
echo "</div>";
}
}
$action = !empty($_POST['event_action']) ? $_POST['event_action'] : '';
$event_id = !empty($_POST['event_id']) ? $_POST['event_id'] : '';
if (isset($_GET['mode'])) {
$action = $_GET['mode'];
if ($action == 'edit' || $action == 'copy') {
$event_id = (int) $_GET['event_id'];
}
}
if (isset($_POST['event_action'])) {
$nonce = $_REQUEST['_wpnonce'];
if (!wp_verify_nonce($nonce, 'my-calendar-nonce')) {
die("Security check failed");
}
global $mc_output;
$count = 0;
if (isset($_POST['event_begin']) && is_array($_POST['event_begin'])) {
$count = count($_POST['event_begin']);
} else {
$response = my_calendar_save($action, $mc_output, (int) $_POST['event_id']);
echo $response['message'];
}
for ($i = 0; $i < $count; $i++) {
$mc_output = mc_check_data($action, $_POST, $i);
if ($action == 'add' || $action == 'copy') {
$response = my_calendar_save($action, $mc_output);
} else {
$response = my_calendar_save($action, $mc_output, (int) $_POST['event_id']);
}
echo $response['message'];
}
if (isset($_POST['ref'])) {
$url = esc_url(urldecode($_POST['ref']));
echo "<p class='return'><a href='{$url}'>" . __('Return to Calendar', 'my-calendar') . "</a></p>";
}
}
?>
<div class="wrap jd-my-calendar">
<?php
my_calendar_check_db();
if (get_site_option('mc_multisite') == 2) {
if (get_option('mc_current_table') == 0) {
$message = __('Currently editing your local calendar', 'my-calendar');
} else {
$message = __('Currently editing your central calendar', 'my-calendar');
}
echo "<div class='message updated'><p>{$message}</p></div>";
}
if ($action == 'edit') {
?>
<h1><?php
_e('Edit Event', 'my-calendar');
?>
</h1>
<?php
if (empty($event_id)) {
echo "<div class='error'><p>" . __("You must provide an event id in order to edit it", 'my-calendar') . "</p></div>";
} else {
mc_edit_event_form('edit', $event_id);
}
} else {
if ($action == 'copy') {
?>
<h1><?php
_e('Copy Event', 'my-calendar');
?>
</h1>
<?php
if (empty($event_id)) {
echo "<div class=\"error\"><p>" . __("You must provide an event id in order to edit it", 'my-calendar') . "</p></div>";
} else {
mc_edit_event_form('copy', $event_id);
}
} else {
?>
<h1><?php
_e('Add Event', 'my-calendar');
?>
</h1><?php
mc_edit_event_form();
}
}
mc_show_sidebar();
?>
</div><?php
}
示例6: edit_my_calendar_config
//.........这里部分代码省略.........
}
$role_container .= "\n\t\t\t</ul></fieldset></div>\n";
}
echo "\n\t\t<ul class='tabs'>\n\t\t\t{$role_tabs}\n\t\t</ul>\n\t\t{$role_container}";
?>
<p>
<input type="submit" name="mc_permissions" class="button-primary" value="<?php
_e('Save Permissions', 'my-calendar');
?>
" />
</p>
</form>
<?php
} else {
?>
<?php
_e('My Calendar permission settings are only available to administrators.', 'my-calendar');
?>
<?php
}
?>
</div>
</div>
</div>
<div class="ui-sortable meta-box-sortables">
<div class="postbox" id="my-calendar-email">
<h3><?php
_e('Calendar Email Settings', 'my-calendar');
?>
</h3>
<div class="inside">
<form method="post" action="<?php
echo admin_url("admin.php?page=my-calendar-config");
?>
">
<div><input type="hidden" name="_wpnonce" value="<?php
echo wp_create_nonce('my-calendar-nonce');
?>
" /></div>
<fieldset>
<legend><?php
_e('Email Notifications', 'my-calendar');
?>
</legend>
<div><input type='hidden' name='mc_email' value='true' /></div>
<ul>
<li><?php
mc_settings_field('mc_event_mail', __('Send Email Notifications when new events are scheduled or reserved.', 'my-calendar'), '', '', array(), 'checkbox-single');
?>
</li>
<li><?php
mc_settings_field('mc_event_mail_to', __('Notification messages are sent to:', 'my-calendar'), get_bloginfo('admin_email'));
?>
</li>
<li><?php
mc_settings_field('mc_event_mail_from', __('Notification messages are sent from:', 'my-calendar'), get_bloginfo('admin_email'));
?>
</li>
<li><?php
mc_settings_field('mc_event_mail_subject', __('Email subject', 'my-calendar'), get_bloginfo('name') . ': ' . __('New event added', 'my-calendar'), '', array('size' => 60));
?>
</li>
<li><?php
mc_settings_field('mc_event_mail_message', __('Message Body', 'my-calendar'), __('New Event:', 'my-calendar') . "\n{title}: {date}, {time} - {event_status}", "<br /><a href='" . admin_url("admin.php?page=my-calendar-help#templates") . "'>" . __("Templating Help", 'my-calendar') . '</a>', array('cols' => 60, 'rows' => 6), 'textarea');
?>
</li>
<li><?php
mc_settings_field('mc_html_email', __('Send HTML email', 'my-calendar'), '', '', array(), 'checkbox-single');
?>
</li>
</ul>
</fieldset>
<p>
<input type="submit" name="save" class="button-primary" value="<?php
_e('Save Email Settings', 'my-calendar');
?>
" />
</p>
</form>
</div>
</div>
</div>
<?php
echo apply_filters('mc_after_settings', '');
?>
</div>
</div>
<?php
mc_show_sidebar();
?>
</div>
<?php
}
示例7: edit_my_calendar_behaviors
//.........这里部分代码省略.........
_e('Disable List JS', 'my-calendar');
?>
</label>
</li>
<li><input type="checkbox" id="mini_js" name="mini_js"
value="1" <?php
mc_is_checked('mc_mini_javascript', 1);
?>
/>
<label
for="mini_js"><?php
_e('Disable Mini JS', 'my-calendar');
?>
</label>
</li>
<li><input type="checkbox" id="ajax_js" name="ajax_js"
value="1" <?php
mc_is_checked('mc_ajax_javascript', 1);
?>
/>
<label
for="ajax_js"><?php
_e('Disable AJAX', 'my-calendar');
?>
</label></li>
</ul>
</div>
<?php
if (get_option('mc_use_custom_js') == 1) {
?>
<p>
<label
for="calendar-js"><?php
_e('Calendar Behaviors: Grid View', 'my-calendar');
?>
</label><br/><textarea
id="calendar-js" name="mc_caljs" rows="12"
cols="80"><?php
echo $mc_caljs;
?>
</textarea>
</p>
<p>
<label
for="list-js"><?php
_e('Calendar Behaviors: List View', 'my-calendar');
?>
</label><br/><textarea
id="list-js" name="mc_listjs" rows="12"
cols="80"><?php
echo $mc_listjs;
?>
</textarea>
</p>
<p>
<label
for="mini-js"><?php
_e('Calendar Behaviors: Mini Calendar View', 'my-calendar');
?>
</label><br/><textarea
id="mini-js" name="mc_minijs" rows="12"
cols="80"><?php
echo $mc_minijs;
?>
</textarea>
</p>
<p>
<label
for="ajax-js"><?php
_e('Calendar Behaviors: AJAX', 'my-calendar');
?>
</label><br/><textarea
id="ajax-js" name="mc_ajaxjs" rows="12"
cols="80"><?php
echo $mc_ajaxjs;
?>
</textarea>
</p>
<?php
}
?>
<p>
<input type="submit" name="mc-js-save" class="button-primary"
value="<?php
_e('Save', 'my-calendar');
?>
"/>
</p>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
mc_show_sidebar();
?>
</div>
<?php
}
示例8: jd_show_support_box
function jd_show_support_box()
{
mc_show_sidebar();
}
示例9: mc_edit_category_form
//.........这里部分代码省略.........
$private_checked = '';
} else {
if (!empty($cur_cat) && is_object($cur_cat) && $cur_cat->category_private == 1) {
$private_checked = ' checked="checked"';
} else {
$private_checked = '';
}
}
?>
<?php
$checked = $view == 'add' ? '' : mc_is_checked('mc_default_category', $cur_cat->category_id, '', true);
?>
<?php
$holiday_checked = $view == 'add' ? '' : mc_is_checked('mc_skip_holidays_category', $cur_cat->category_id, '', true);
?>
<input type="checkbox" value="on" name="category_private"
id="cat_private"<?php
echo $private_checked;
?>
/> <label
for="cat_private"><?php
_e('Private category (logged-in users only)', 'my-calendar');
?>
</label>
<input type="checkbox" value="on" name="mc_default_category"
id="mc_default_category"<?php
echo $checked;
?>
/> <label
for="mc_default_category"><?php
_e('Default category', 'my-calendar');
?>
</label>
<input type="checkbox" value="on" name="mc_skip_holidays_category"
id="mc_shc"<?php
echo $holiday_checked;
?>
/> <label
for="mc_shc"><?php
_e('Holiday Category', 'my-calendar');
?>
</label>
</li>
<?php
echo apply_filters('mc_category_fields', '', $cur_cat);
?>
</ul>
</fieldset>
<p>
<input type="submit" name="save" class="button-primary"
value="<?php
if ($view == 'add') {
_e('Add Category', 'my-calendar');
} else {
_e('Save Changes', 'my-calendar');
}
?>
»"/>
</p>
<?php
do_action('mc_post_category_form', $cur_cat, $view);
?>
</form>
</div>
</div>
</div>
<?php
if ($view == 'edit') {
?>
<p>
<a href="<?php
echo admin_url('admin.php?page=my-calendar-categories');
?>
"><?php
_e('Add a New Category', 'my-calendar');
?>
»</a>
</p>
<?php
}
?>
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><?php
_e('Category List', 'my-calendar');
?>
</h3>
<div class="inside">
<?php
mc_manage_categories();
?>
</div>
</div>
</div>
</div>
</div>
<?php
mc_show_sidebar();
}
示例10: edit_mc_templates
//.........这里部分代码省略.........
<dt><code>{street}</code></dt>
<dd><?php
_e('First line of the site address.', 'my-calendar');
?>
</dd>
<dt><code>{street2}</code></dt>
<dd><?php
_e('Second line of the site address.', 'my-calendar');
?>
</dd>
<dt><code>{city}</code></dt>
<dd><?php
_e('City', 'my-calendar');
?>
</dd>
<dt><code>{state}</code></dt>
<dd><?php
_e('State', 'my-calendar');
?>
</dd>
<dt><code>{postcode}</code></dt>
<dd><?php
_e('Postal Code', 'my-calendar');
?>
</dd>
<dt><code>{region}</code></dt>
<dd><?php
_e('Custom region.', 'my-calendar');
?>
</dd>
<dt><code>{country}</code></dt>
<dd><?php
_e('Country for the event location.', 'my-calendar');
?>
</dd>
<dt><code>{sitelink}</code></dt>
<dd><?php
_e('Output the URL for the location.', 'my-calendar');
?>
</dd>
<dt><code>{hcard}</code></dt>
<dd><?php
_e('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('Link to Google Map to the event, if address information is available.', 'my-calendar');
?>
</dd>
</dl>
<h3><?php
_e('Category Template Tags', 'my-calendar');
?>
</h3>
<dl>
<dt><code>{category}</code></dt>
<dd><?php
_e('Name of the category of the event.', 'my-calendar');
?>
</dd>
<dt><code>{icon}</code></dt>
<dd><?php
_e('URL for the event\'s category icon.', 'my-calendar');
?>
</dd>
<dt><code>{color}</code></dt>
<dd><?php
_e('Hex code for the event\'s category color.', 'my-calendar');
?>
</dd>
<dt><code>{cat_id}</code></dt>
<dd><?php
_e('ID of the category of the event.', 'my-calendar');
?>
</dd>
</dl>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
mc_show_sidebar();
}
示例11: my_calendar_help
//.........这里部分代码省略.........
?>
</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">
<h3 id="support"><?php
_e('Get Plug-in Support', 'my-calendar');
?>
</h3>
<div class="inside">
<?php
if (current_user_can('administrator')) {
?>
<?php
jcd_get_support_form();
?>
<?php
} else {
?>
<?php
_e('My Calendar support requests can only be sent by administrators.', 'my-calendar');
?>
<?php
}
?>
</div>
</div>
<div class="ui-sortable meta-box-sortables" id="notes">
<div class="postbox">
<h3 id="help"><?php
_e('Helpful Information', 'my-calendar');
?>
</h3>
<div class="inside">
<p>
<?php
_e('<strong>Uninstalling the plugin</strong>: Although the WordPress standard and expectation is for plug-ins to delete any custom database tables when they\'re uninstalled, My Calendar <em>does not do this</em>. This was a conscious decision on my part -- the data stored in your My Calendar tables is yours; with the sole exception of the "General" category, you added every piece of it yourself. As such, I feel it would be a major disservice to you to delete this information if you uninstall the plug-in. As a result, if you wish to get rid of the plug-in completely, you\'ll need to remove those tables yourself. All your My Calendar settings will be deleted, however.', 'my-calendar');
?>
</p>
<p>
<?php
_e('<strong>Donations</strong>: I appreciate anything you can give. $2 may not seem like much, but it can really add up when thousands of people are using the software. Please note that I am not a non-profit organization, and your gifts are not tax deductible. Thank you!', 'my-calendar');
?>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
mc_show_sidebar();
?>
</div>
<?php
}
示例12: mcs_settings
//.........这里部分代码省略.........
<input type="hidden" name="mcs_payment_subject" value="<?php
echo $mcs_payment_subject;
?>
" />
<input type="hidden" name="mcs_payment_message" value="<?php
echo $mcs_payment_message;
?>
" />
<input type="hidden" name="mcs_payment_confirmation_subject" value="<?php
echo $mcs_payment_confirmation_subject;
?>
" />
<input type="hidden" name="mcs_submission_fee" value="<?php
echo $mcs_submission_fee;
?>
" />
<input type="hidden" name="mcs_members_discount" value="<?php
echo $mcs_members_discount;
?>
" />
<input type="hidden" name="mcs_paypal_email" value="<?php
echo $mcs_paypal_email;
?>
" />
<input type="hidden" name="mcs_paypal_merchant_id" value="<?php
echo $mcs_paypal_merchant_id;
?>
" />
<input type="hidden" name="mcs_button" value="<?php
echo $mcs_button;
?>
" />
<input type="hidden" name="mcs_currency" value="<?php
echo $mcs_currency;
?>
" />
<input type="hidden" name="mcs_discount[begins]" value="<?php
echo $mcs_discount['begins'];
?>
" />
<input type="hidden" name="mcs_discount[ends]" value="<?php
echo $mcs_discount['ends'];
?>
" />
<input type="hidden" name="mcs_discount[rate]" value="<?php
echo $mcs_discount['rate'];
?>
" />
</div>
<?php
}
?>
<p><input type="submit" name="mc-payment-settings" class="button-primary" value="<?php
_e('Save Payment Settings', 'my-calendar-submissions');
?>
" /></p>
</div>
</div>
</div>
</form>
</div>
<?php
$panels = apply_filters('mcs_settings_panels', array());
foreach ($panels as $key => $value) {
$content = is_array($value) && isset($value['content']) ? $value['content'] : $value;
$label = is_array($value) && isset($value['label']) ? $value['label'] : __('Save Settings');
$wp_nonce = wp_nonce_field($key, '_wpnonce', true, false);
$top = '
<div class="metabox-holder wptab" aria-labelledby="tab_' . $key . '_mcs" role="tabpanel" aria-live="assertive" id="mcs_' . $key . '_tab">
<form method="post" action="' . admin_url("admin.php?page=my-calendar-submissions#mcs_{$key}" . '_tab') . '" enctype="multipart/form-data">' . $wp_nonce . '<div class="ui-sortable meta-box-sortables">
<div class="postbox">';
$bottom = '
</div>
</div>
</form>
</div>';
$middle = str_replace('{submit}', '<p><input type="submit" name="' . $key . '_settings" class="button-primary" value="' . $label . '" /></p>', $content);
echo $top . $middle . $bottom;
}
?>
</div>
<?php
if (function_exists('mcs_submit_exists')) {
$remove = true;
} else {
$remove = false;
}
$guide_url = plugins_url('/My-Calendar-Pro.pdf', __FILE__);
$add = array('Event Submissions Shortcode' => '<p>' . __('The event submissions form can be configured via shortcode or via widget.', 'my-calendar-submissions') . '</p>
<p>' . __('New events are always submitted with approval pending and must be approved by a user with appropriate permissions in order to appear on the site.', 'my-calendar-submissions') . '</p>
<p>' . sprintf(__('Use the <a href="%s">shortcode generator</a> to create your My Calendar submissions form!', 'my-calendar-submissions'), admin_url('admin.php?page=my-calendar-help#mc-generator')) . '</p>', 'Responsive Mode' => '<p>' . __('The file <code>mc-responsive.css</code> in your theme directory will replace the My Calendar PRO responsive stylesheet.', 'my-calendar-submissions') . '</p>');
?>
<?php
mc_show_sidebar('', $add, $remove);
?>
</div>
</div>
<?php
// creates settings page for my calendar appointments
}
示例13: edit_my_calendar_behaviors
//.........这里部分代码省略.........
mc_is_checked('mc_mini_javascript', 1);
?>
/> <label for="mini_javascript"><?php
_e('Disable Mini JavaScript', 'my-calendar');
?>
</label>
</p>
<p>
<label for="mini-javascript"><?php
_e('Edit jQuery scripts in Mini view', 'my-calendar');
?>
</label><br /><textarea id="mini-javascript" name="mc_minijs" rows="8" cols="80"><?php
echo $mc_minijs;
?>
</textarea>
</p>
<?php
$left_string = normalize_whitespace($mc_minijs);
$right_string = normalize_whitespace($initial_minijs);
if (isset($_GET['mdiff'])) {
echo wp_text_diff($left_string, $right_string, $args);
} else {
if (trim($left_string) != trim($right_string)) {
echo '<div class="updated"><p>' . __('There have been updates to the mini view scripts.', 'my-calendar') . ' <a href="' . admin_url('admin.php?page=my-calendar-behaviors&mdiff#mdiff') . '">' . __('Compare your scripts with latest installed version of My Calendar.', 'my-calendar') . '</a></p></div>';
} else {
_e('Your script matches that included with My Calendar.', 'my-calendar');
}
}
?>
<p>
<input type="submit" name="save" class="button-secondary" value="<?php
_e('Save', 'my-calendar');
?>
" />
</p>
</fieldset>
<fieldset id="adiff">
<legend><?php
_e('Calendar Behaviors: AJAX', 'my-calendar');
?>
</legend>
<p>
<input type="checkbox" id="reset_ajaxjs" name="reset_ajaxjs" /> <label for="reset_ajaxjs"><?php
_e('Restore AJAX JavaScript', 'my-calendar');
?>
</label> <input type="checkbox" id="ajax_javascript" name="ajax_javascript" value="1" <?php
mc_is_checked('mc_ajax_javascript', 1);
?>
/> <label for="ajax_javascript"><?php
_e('Disable AJAX Navigation', 'my-calendar');
?>
</label>
</p>
<p>
<label for="ajax-javascript"><?php
_e('Edit jQuery scripts for AJAX navigation', 'my-calendar');
?>
</label><br /><textarea id="ajax-javascript" name="mc_ajaxjs" rows="8" cols="80"><?php
echo $mc_ajaxjs;
?>
</textarea>
</p>
<?php
$left_string = normalize_whitespace($mc_ajaxjs);
$right_string = normalize_whitespace($initial_ajaxjs);
if (isset($_GET['adiff'])) {
echo wp_text_diff($left_string, $right_string, $args);
} else {
if (trim($left_string) != trim($right_string)) {
echo '<div class="updated"><p>' . __('There have been updates to the AJAX scripts.', 'my-calendar') . ' <a href="' . admin_url('admin.php?page=my-calendar-behaviors&adiff#adiff') . '">' . __('Compare your scripts with latest installed version of My Calendar.', 'my-calendar') . '</a></p></div>';
} else {
_e('Your script matches that included with My Calendar.', 'my-calendar');
}
}
?>
</fieldset>
<p>
<input type="submit" name="save" class="button-primary" value="<?php
_e('Save', 'my-calendar');
?>
" />
</p>
</form>
</div>
</div>
</div>
<p><?php
_e('Resetting JavaScript will set that script to the version currently distributed with the plug-in.', 'my-calendar');
?>
</p>
</div>
</div>
<?php
mc_show_sidebar();
?>
</div>
<?php
}