function espresso_calendar_config_mnu()
{
global $wpdb, $espresso_calendar;
/*Calendar*/
function espresso_calendar_updated()
{
return __('Calendar details saved.', 'event_espresso');
}
if (isset($_POST['update_calendar'])) {
$espresso_calendar['espresso_page_post'] = $_POST['espresso_page_post'];
$espresso_calendar['espresso_calendar_header'] = $_POST['espresso_calendar_header'];
$espresso_calendar['espresso_calendar_buttonText'] = $_POST['espresso_calendar_buttonText'];
$espresso_calendar['espresso_calendar_firstday'] = $_POST['espresso_calendar_firstday'];
$espresso_calendar['espresso_calendar_weekends'] = $_POST['espresso_calendar_weekends'];
$espresso_calendar['espresso_calendar_height'] = $_POST['espresso_calendar_height'];
$espresso_calendar['espresso_calendar_width'] = $_POST['espresso_calendar_width'];
$espresso_calendar['espresso_calendar_titleFormat'] = $_POST['espresso_calendar_titleFormat'];
$espresso_calendar['espresso_calendar_columnFormat'] = $_POST['espresso_calendar_columnFormat'];
$espresso_calendar['espresso_calendar_monthNames'] = $_POST['espresso_calendar_monthNames'];
$espresso_calendar['espresso_calendar_monthNamesShort'] = $_POST['espresso_calendar_monthNamesShort'];
$espresso_calendar['espresso_calendar_dayNames'] = $_POST['espresso_calendar_dayNames'];
$espresso_calendar['espresso_calendar_dayNamesShort'] = $_POST['espresso_calendar_dayNamesShort'];
$espresso_calendar['calendar_pages'] = $_POST['calendar_pages'] == '' ? 0 : $_POST['calendar_pages'];
update_option('espresso_calendar_settings', $espresso_calendar);
add_action('admin_notices', 'espresso_calendar_updated');
}
if ($_REQUEST['reset_calendar'] == 'true') {
delete_option("espresso_calendar_settings");
espresso_calendar_install();
}
$espresso_calendar = get_option('espresso_calendar_settings');
?>
<style type="text/css">
#configure_calendar_form ul{
width:80% !important;
}
</style>
<div class="wrap">
<div id="icon-options-event" class="icon32"> </div>
<h2>
<?php
_e('Event Espresso - Calendar Settings', 'event_espresso');
?>
</h2>
<div id="poststuff" class="metabox-holder has-right-sidebar">
<?php
event_espresso_display_right_column();
?>
<div id="post-body">
<div id="post-body-content">
<form class="espresso_form" method="post" action="<?php
echo $_SERVER['REQUEST_URI'];
?>
">
<ul id="event_espresso-sortables">
<li>
<div class="metabox-holder">
<div class="postbox">
<h3>
<?php
_e('Calendar Settings', 'event_espresso');
?>
</h3>
<div class="padding">
<ul>
<li>
<strong><?php
_e('Directions:', 'event_espresso');
?>
</strong><br />
<?php
_e(' Add [ESPRESSO_CALENDAR] to any page or post to display a calendar of Event Espresso events. Use [ESPRESSO_CALENDAR event_category_id="your_category_identifier"] to show events of a certain category (also creates a CSS using the category_identifier as the class name.) Use [ESPRESSO_CALENDAR show_expired="true"] to show expired events, can also be used in conjunction with the category ID.', 'event_espresso');
?>
</li>
<li><strong><?php
_e('Examples Shortcodes:', 'event_espresso');
?>
</strong><br />
[ESPRESSO_CALENDAR]<br />
[ESPRESSO_CALENDAR show_expired="true"]<br />
[ESPRESSO_CALENDAR event_category_id="your_category_identifier"]<br />
[ESPRESSO_CALENDAR event_category_id="your_category_identifier" show_expired="true"]<br />
[ESPRESSO_CALENDAR cal_view="month"] (Available parameters: month, basicWeek, basicDay, agendaWeek, agendaDay)
</li>
<li><strong><?php
_e('Styles/Colors:', 'event_espresso');
?>
</strong><br />
<?php
_e('To edit the calendar styles, copy the CSS file located in the plugin folder to your "wp-content/uploads/espresso/" directory. Then edit as needed. Refer to <a href="http://arshaw.com/fullcalendar/docs/event_rendering/Colors/" target="_blank">this page</a> for an example of styling the calendar and colors.', 'event_espresso');
?>
</li>
<li><strong><?php
_e('Category Colors:', 'event_espresso');
?>
</strong><br />
<?php
_e('Event Categories can have their own colors on the calendar. To use this feature, simply create a class in theme CSS file with the names of your event categories. For more inforamtion <a href="http://eventespresso.com/forums/?p=650" target="_blank">please visit the tutorial</a> for this topic.', 'event_espresso');
//.........这里部分代码省略.........
//.........这里部分代码省略.........
?>
</tbody>
</table>
<div>
<p><input type="checkbox" name="sAll" onclick="selectAll(this)" />
<strong>
<?php
_e('Check All', 'event_espresso');
?>
</strong>
<input type="hidden" name="action" value="delete_question" />
<input name="delete_question" type="submit" class="button-secondary" id="delete_question" value="<?php
_e('Delete Question', 'event_espresso');
?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();">
<a style="margin-left:5px"class="button-secondary" href="admin.php?page=form_groups"><?php
_e('Question Groups', 'event_espresso');
?>
</a>
<a style="margin-left:5px"class="button-secondary thickbox" href="#TB_inline?height=400&width=500&inlineId=question_info">Help</a>
<a style="margin-left:5px"class="<?php
echo $button_style;
?>
" href="admin.php?page=form_builder&action=new_question"><?php
_e('Add New Question', 'event_espresso');
?>
</a>
</p>
</div>
</form>
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
?>
</div>
<div id="question_info" class="pop-help" style="display:none">
<div class="TB-ee-frame">
<h2><?php
_e('Manage Questions Overview', 'event_espresso');
?>
</h2>
<p><?php
_e('The <code>Questions</code> page shows your list of available questions to add to your registration forms for events', 'event_espresso');
?>
</p>
<p><?php
_e('Use the add new question button at the top of the page to create a new question to add to the list ', 'event_espresso');
?>
<a href="admin.php?page=form_builder&action=new_question"><?php
_e('Add New Question', 'event_espresso');
?>
</a></p>
<p><?php
_e('Once you have a built a list of questions you may further organize your questions into <code>Groups.</code> These', 'event_espresso');
?>
<a href="admin.php?page=form_groups"><?php
_e('Question Groups ', 'event_espresso');
?>
</a><?php
_e('allow you to easily and conveniently add a group to a registration that will have a pre populated set of questions, this is especially handy when creating many registration forms, saving time, by being able to re-use specific groups of questions repetedly.', 'event_espresso');
?>
</p>
</div>
function event_espresso_addons_mnu()
{
global $wpdb;
?>
<div id="event_reg_theme" class="wrap">
<div id="icon-options-event" class="icon32"></div>
<h2><?php
echo _e('Manage Addons', 'event_espresso');
?>
</h2>
<div id="poststuff" class="metabox-holder has-right-sidebar">
<?php
event_espresso_display_right_column();
?>
<div id="post-body">
<div id="post-body-content">
<div class="metabox-holder">
<div class="postbox">
<h3>
<?php
_e('Recurring Events Manager', 'event_espresso');
?>
</h3>
<div class="inside">
<ul>
<li>The <a href="http://eventespresso.com/download/plugins-and-addons/recurring-events-manager/" target="_blank">Recurring Events Manager</a> for Event Espresso adds an even more power to this amazing event registration and management system for WordPress. It can automatically create repeating events and classes that practically manage themselves. Just install this addon in conjunction with Event Espresso and start creating classes, meetings, and conferences for months (and even years) to come.</li>
<?php
if (function_exists('recurring_days')) {
echo '<li>';
echo '<strong style="padding:5px;" class="green_alert">' . __('Installed', 'event_espresso') . '</strong>';
echo '</li>';
} else {
echo '<li><a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=ESPRESSO-REM&cl=113214&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/add-to-cart.gif" border="0" alt="Add to Cart"/></a> <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=113214&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/checkout-button.gif" border="0" alt="View Cart"/></a></li>';
}
?>
</ul>
</div>
</div>
</div>
<div class="metabox-holder">
<div class="postbox">
<h3>
<?php
_e('Groupon Integration Module', 'event_espresso');
?>
</h3>
<div class="inside">
<ul>
<li>Did your site get featured on <a href="http://www.groupon.com/" target="_blank">Groupon.com</a>? Now you can easily accept Groupon codes to your events! Once installed, just upload all of your Groupon codes to the database and your ready to go. How easy is that?</li>
<li><strong><?php
_e('About Groupon', 'event_espresso');
?>
</strong><a href="http://www.groupon.com/" target="_blank"><img style="padding:0 10px;" align="right" src="<?php
echo EVENT_ESPRESSO_PLUGINFULLURL;
?>
images/groupon_logo.png" width="149" height="70" alt="GROUPON" /></a></li>
<li><a href="http://www.groupon.com/" target="_blank">Groupon</a> is a deal-of-the-day website that is localized to major markets in the United States. The first market for Groupon was Chicago, followed soon thereafter by Boston and New York City. As of January 2010, Groupon serves more than 40 markets. Groupon debuted in November 2008 as part of The Point, a platform for collective action.</li>
<?php
if (function_exists('event_espresso_groupon_config_mnu')) {
echo '<li>';
echo '<strong style="padding:5px;" class="green_alert">' . __('Installed', 'event_espresso') . '</strong>';
echo '</li>';
} else {
echo '<li><a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=ESPRESSO-GROUPON&cl=113214&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/add-to-cart.gif" border="0" alt="Add to Cart"/></a> <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=113214&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/checkout-button.gif" border="0" alt="View Cart"/></a></li>';
}
?>
</ul>
</div>
</div>
</div>
<div class="metabox-holder">
<div class="postbox">
<h3>
<?php
_e('Members Integration Module', 'event_espresso');
?>
</h3><div class="inside">
<ul>
<?php
echo '<li>The "Member Integration Module" allows you to take full advantage of the WordPress user system. </li>';
echo '<li><p><strong>Member Pricing</strong><br />Allows you to override event prices when your members are logged in. <a class="ev_reg_event_info" href="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/member-setup-screen.jpg">Sample Screen</a></p></li>';
echo '<li><p><strong>Member Profiles</strong><br />Members can store personal information into the WordPress databse allowing your members to quickly register for events by auto-filling in the personal information on the event registration form. Your users can also view past events, pay for events, and cancel registrations to current events. <a class="ev_reg_event_info" href="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/member-event-management-scr.jpg">My Events Screen</a> | <a class="ev_reg_event_info" href="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/events-profile-screen.jpg">Profile Screen</a></p></li>';
echo '<li><p><strong>Roles and Capabilites</strong><br />If you are already using the "<a href="http://wordpress.org/extend/plugins/members/" target="_blank">Members</a>" plugin by <a href="Justin Tadlock" target="_blank">Justin Tadlock</a>. Your custom roles will be stored as well. With a little customization, you will be able to display events by user role, membership level, etc.</p></li>';
if (function_exists('event_espresso_member_only_pricing')) {
echo '<li>';
echo '<strong style="padding:5px;" class="green_alert">' . __('Installed', 'event_espresso') . '</strong>';
echo '</li>';
} else {
echo '<li><a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=ESPRESSO-MEM-ADDON&cl=113214&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/add-to-cart.gif" border="0" alt="Add to Cart"/></a> <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=113214&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/checkout-button.gif" border="0" alt="View Cart"/></a></li>';
}
?>
</ul>
</div>
</div>
</div>
<div class="metabox-holder">
//.........这里部分代码省略.........
请发表评论