本文整理汇总了PHP中espresso_choose_layout函数的典型用法代码示例。如果您正苦于以下问题:PHP espresso_choose_layout函数的具体用法?PHP espresso_choose_layout怎么用?PHP espresso_choose_layout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了espresso_choose_layout函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: espresso_calendar_config_mnu
//.........这里部分代码省略.........
</table>
<input type="hidden" name="update_calendar" value="update" />
<p>
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Save Calendar Options', 'event_espresso');
?>
" id="save_calendar_settings_1" />
<?php
wp_nonce_field('espresso_form_check', 'update_calendar');
?>
</p>
<p>
<?php
_e('Reset Calendar Settings?', 'event_espresso');
?>
<input name="reset_calendar" type="checkbox" />
<?php
wp_nonce_field('espresso_form_check', 'reset_calendar_nonce');
?>
</p>
</div>
<!-- / .padding -->
</div>
<!-- / .inside -->
</div>
<!-- / .postbox -->
</div>
<!-- / .metabox-holder -->
<!--</li>
</ul>-->
</form>
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
include_once 'calendar_help.php';
?>
</div>
<!-- / #wrap -->
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function($){
$("input[name='time_format']").click(function(){
if ( "time_format_custom_radio" != $(this).attr("id") )
$("input[name='time_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() );
});
$("input[name='time_format_custom']").focus(function(){
$("#time_format_custom_radio").attr("checked", "checked");
});
// disable color picker & thumb sizes inputs & fade if not use controls true
window.scp = $('select#espresso_use_pickers option:selected').val();
window.ect = $('select#enable-calendar-thumbs option:selected').val();
if(window.scp == ''){
$('input#event-background, input#event-text').attr('disabled', true);
$('.color-picker-style').attr('style', "opacity: .3");
$('tr.color-picker-selections th, tr.color-picker-selections td').attr('style', "opacity: .3");
}
if(window.ect == 'false'){
$('tr#thumbnail-sizes td input').attr('disabled', true);
$('tr#thumbnail-sizes').attr('style', "opacity: .3");
}
$('select#enable-calendar-thumbs').change(function(){
window.ect = $('select#enable-calendar-thumbs option:selected').val();
if(window.ect == 'false'){
示例2: event_espresso_gateways_options
function event_espresso_gateways_options()
{
global $active_gateways;
$active_gateways = get_option('event_espresso_active_gateways', array());
?>
<div id="event_reg_theme" class="wrap">
<div id="icon-options-event" class="icon32"></div>
<h2><?php
_e('Manage Payment Gateways', 'event_espresso');
?>
</h2>
<?php
ob_start();
?>
<div id="payment_settings" class="meta-box-sortables ui-sortables">
<?php
$gateways_glob = glob(EVENT_ESPRESSO_PLUGINFULLPATH . "gateways/*/settings.php");
$upload_gateways_glob = glob(EVENT_ESPRESSO_GATEWAY_DIR . '*/settings.php');
if (!is_array($upload_gateways_glob)) {
$upload_gateways_glob = array();
}
foreach ($upload_gateways_glob as $upload_gateway) {
$pos = strpos($upload_gateway, 'gateways');
$sub = substr($upload_gateway, $pos);
foreach ($gateways_glob as &$gateway) {
$pos2 = strpos($gateway, 'gateways');
$sub2 = substr($gateway, $pos2);
if ($sub == $sub2) {
$gateway = $upload_gateway;
}
}
unset($gateway);
}
$gateways = array_merge($upload_gateways_glob, $gateways_glob);
$gateways = array_unique($gateways);
foreach ($gateways as $gateway) {
require_once $gateway;
}
do_action('action_hook_espresso_display_gateway_settings');
if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/gateway_developer.php')) {
require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/gateway_developer.php';
}
global $espresso_premium;
if ($espresso_premium != true) {
?>
<h2><?php
_e('Need more payment options?', 'event_espresso');
?>
<a href="http://eventespresso.com/features/payment-options/" target="_blank"><?php
_e('Upgrade Now!', 'event_espresso');
?>
</a></h2>
<?php
}
?>
</div><!-- / .meta-box-sortables -->
<?php
$post_content = ob_get_clean();
espresso_choose_layout('', event_espresso_display_right_column(), $post_content);
?>
</div><!-- / #wrap -->
<div id="button_image" style="display:none">
<h2><?php
_e('Button Image URL', 'event_espresso');
?>
</h2>
<p><?php
_e('A default payment button is provided. A custom payment button may be used, choose your image or upload a new one, and just copy the "file url" here (optional.)', 'event_espresso');
?>
</p>
</div>
<div id="bypass_confirmation" style="display:none">
<h2><?php
_e('Bypassing the Confirmation Page', 'event_espresso');
?>
</h2>
<p><?php
_e('This will allow you to send your customers directly to the payment gateway of your choice.', 'event_espresso');
?>
</p>
</div>
<div id="force_ssl_return" style="display:none">
<h2><?php
_e('Force HTTPS on Return URL', 'event_espresso');
?>
</h2>
<p><?php
_e('Forces the gateway provider to send the customer back to the return page -- or pull the return page from the site -- using HTTPS. This is required in some instances to prevent a warning that the page the user is going to is not secure.', 'event_espresso');
?>
</p>
</div>
<div id="display_header" style="display:none">
<h2><?php
_e('Display a Form Header', 'event_espresso');
?>
</h2>
<p><?php
_e('Select if you would like to display a header above the payment form.', 'event_espresso');
?>
</p>
//.........这里部分代码省略.........
示例3: organization_config_mnu
//.........这里部分代码省略.........
?>
</h3>
<div class="inside">
<div class="padding">
<ul>
<li>
<label for="site_license_key">
<?php
_e('Site License Key:', 'event_espresso');
?>
</label>
<input type="text" name="site_license_key" size="45" value="<?php
echo isset($org_options['site_license_key']) ? stripslashes_deep($org_options['site_license_key']) : '';
?>
" />
</li>
</ul>
<p>
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Save Options', 'event_espresso');
?>
" id="save_organization_saetting_5" />
</p>
</div>
</div>
</div>
</div>
</li>
<?php
}
?>
</ul>
<input type="hidden" name="update_org" value="update" />
</form>
</div>
<?php
$post_content = ob_get_clean();
espresso_choose_layout($post_content, event_espresso_display_right_column());
?>
</div>
<script type="text/javascript" charset="utf-8">
//<![CDATA[
jQuery(document).ready(function() {
postboxes.add_postbox_toggles('event_espresso');
//Logo uploader
var header_clicked = false;
jQuery('#upload_image_button').click(function() {
formfield = jQuery('#upload_image').attr('name');
tb_show('', 'media-upload.php?type=image&TB_iframe=1');
jQuery('p.default-logo-thumb').addClass('old');
header_clicked = true;
return false;
});
window.original_send_to_editor = window.send_to_editor;
window.send_to_editor = function(html) {
if(header_clicked) {
//Remove old image
jQuery("#upload_image").val('');
jQuery("p.default-logo-thumb").remove();
jQuery("p#image-display").remove();
jQuery('#remove-image').remove();
//Add new image
imgurl = jQuery('img',html).attr('src');
jQuery('#' + formfield).val(imgurl);
jQuery('#default-logo-image').append("<p id='image-display'><img src='"+imgurl+"' alt='' /></p>");
header_clicked = false;
tb_remove();
} else {
window.original_send_to_editor(html);
}
}
// process the remove link in the metabox
jQuery('#remove-image').click(function(){
var answer = confirm('<?php
_e('Do you really want to delete this image? Please remember to save your settings to complete the removal.', 'event_espresso');
?>
');
if (answer){
jQuery("#upload_image").val('');
jQuery("p.default-logo-thumb").remove();
jQuery("p#image-display").remove();
jQuery('#remove-image').remove();
}
return false;
});
});
//]]>
</script>
<?php
echo event_espresso_custom_email_info();
if (!function_exists('wp_editor')) {
espresso_tiny_mce();
}
}
示例4: foot
/**
* Displays the common "footer" elements of the MailChimp Integration configuration view.
*/
function foot()
{
?>
</div><!-- / .inside -->
</div><!-- /.postbox -->
</div><!-- / .metabox-holder -->
<script type="text/javascript" charset="utf-8">
//<![CDATA[
jQuery(document).ready(function() {
postboxes.add_postbox_toggles('template_conf');
});
//]]>
</script>
</div><!-- / .meta-box-sortables .ui-sortables -->
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
?>
</div><!-- / #wrap -->
<?php
}
示例5: event_espresso_member_config_mnu
//.........这里部分代码省略.........
$member_options['member_only_all'] = isset($_POST['member_only_all']) && !empty($_POST['member_only_all']) ? $_POST['member_only_all'] : '';
$member_options['autofilled_editable'] = isset($_POST['autofilled_editable']) && !empty($_POST['autofilled_editable']) ? $_POST['autofilled_editable'] : '';
update_option('events_member_settings', $member_options);
echo '<div id="message" class="updated fade"><p><strong>' . __('Member settings saved.', 'event_espresso') . '</strong></p></div>';
}
$member_options = get_option('events_member_settings');
$login_page = empty($member_options['login_page']) ? '' : $member_options['login_page'];
$register_page = empty($member_options['register_page']) ? '' : $member_options['register_page'];
$member_only_all = empty($member_options['member_only_all']) ? 'N' : $member_options['member_only_all'];
$autofilled_editable = empty($member_options['autofilled_editable']) ? 'N' : $member_options['autofilled_editable'];
?>
<div id="event_reg_theme" class="wrap">
<div id="icon-options-event" class="icon32"></div>
<h2><?php
echo _e('Manage Member Settings', 'event_espresso');
?>
</h2>
<?php
ob_start();
?>
<div class="metabox-holder">
<div class="postbox">
<h3><?php
_e('Member Settings', 'event_espresso');
?>
</h3>
<div class="inside">
<form method="post" action="<?php
echo $_SERVER['REQUEST_URI'];
?>
">
<ul>
<li>
<label><?php
_e('Login page (if different from default Wordpress login page): ', 'event_espresso');
?>
</label> <input type="text" name="login_page" size="25" <?php
echo isset($login_page) ? 'value="' . $login_page . '"' : "";
?>
></li>
<?php
if (!get_option('users_can_register')) {
echo '<li class="updated" style="width:65%">' . __('New user registration is currently closed. If you would like to set a custom user regsistration page, you must enable "Anyone can register" in your Wordpress "<a href="options-general.php">General Settings</a>" page.', 'event_espresso') . '</li>';
} else {
?>
<li><label><?php
_e('Member registration page (if different from default Wordpress register page): ', 'event_espresso');
?>
</label> <input name="register_page" size="25" <?php
echo isset($register_page) ? 'value="' . $register_page . '"' : "";
?>
></li>
<?php
}
?>
<li>
<label><?php
_e('Require login for all events? ', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
echo select_input('member_only_all', $values, $member_only_all);
?>
</li>
<li>
<label><?php
_e('Make autofilled fields editable? ', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
echo select_input('autofilled_editable', $values, $autofilled_editable);
?>
</li>
<li>
<input type="hidden" name="update_member_settings" value="update">
<p>
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Save Settings', 'event_espresso');
?>
" id="save_member_settings" />
</p>
</li>
</ul>
</form>
</div>
</div>
</div>
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
?>
</div>
<?php
//============= End Event Registration Members Subpage - Settings =============== //
}
示例6: event_espresso_gateways_options
function event_espresso_gateways_options()
{
global $active_gateways;
$active_gateways = get_option('event_espresso_active_gateways', array());
?>
<div id="event_reg_theme" class="wrap">
<div id="icon-options-event" class="icon32"></div>
<h2><?php
_e('Manage Payment Gateways', 'event_espresso');
?>
</h2>
<?php
ob_start();
?>
<div id="payment_settings" class="meta-box-sortables ui-sortables">
<?php
$gateways_glob = glob(EVENT_ESPRESSO_PLUGINFULLPATH . "gateways/*/settings.php");
$upload_gateways_glob = glob(EVENT_ESPRESSO_GATEWAY_DIR . '*/settings.php');
if (!is_array($upload_gateways_glob)) {
$upload_gateways_glob = array();
}
foreach ($upload_gateways_glob as $upload_gateway) {
$pos = strpos($upload_gateway, 'gateways');
$sub = substr($upload_gateway, $pos);
foreach ($gateways_glob as &$gateway) {
$pos2 = strpos($gateway, 'gateways');
$sub2 = substr($gateway, $pos2);
if ($sub == $sub2) {
$gateway = $upload_gateway;
}
}
unset($gateway);
}
$gateways = array_merge($upload_gateways_glob, $gateways_glob);
$gateways = array_unique($gateways);
foreach ($gateways as $gateway) {
require_once $gateway;
}
do_action('action_hook_espresso_display_gateway_settings');
if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/gateway_developer.php')) {
require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/gateway_developer.php';
}
global $espresso_premium;
if ($espresso_premium != true) {
?>
<h2><?php
_e('Need more payment options?', 'event_espresso');
?>
<a href="http://eventespresso.com/download/" target="_blank"><?php
_e('Upgrade Now!', 'event_espresso');
?>
</a></h2>
<?php
}
?>
</div><!-- / .meta-box-sortables -->
<?php
$post_content = ob_get_clean();
espresso_choose_layout('', event_espresso_display_right_column(), $post_content);
?>
</div><!-- / #wrap -->
<div id="button_image" style="display:none">
<h2><?php
_e('Button Image URL', 'event_espresso');
?>
</h2>
<p><?php
_e('A default payment button is provided. A custom payment button may be used, choose your image or upload a new one, and just copy the "file url" here (optional.)', 'event_espresso');
?>
</p>
</div>
<div id="bypass_confirmation" style="display:none">
<h2><?php
_e('Bypassing the Confirmation Page', 'event_espresso');
?>
</h2>
<p><?php
_e('This will allow you to send your customers directly to the payment gateway of your choice.', 'event_espresso');
?>
</p>
</div>
<div id="force_ssl_return" style="display:none">
<h2><?php
_e('Force HTTPS on Return URL', 'event_espresso');
?>
</h2>
<p><?php
_e('Forces the gateway provider to send the customer back to the return page -- or pull the return page from the site -- using HTTPS. This is required in some instances to prevent a warning that the page the user is going to is not secure.', 'event_espresso');
?>
</p>
</div>
<div id="display_header" style="display:none">
<h2><?php
_e('Display a Form Header', 'event_espresso');
?>
</h2>
<p><?php
_e('Select if you would like to display a header above the payment form.', 'event_espresso');
?>
</p>
//.........这里部分代码省略.........
示例7: event_espresso_discount_config_mnu
//.........这里部分代码省略.........
?>
"><?php
_e('Delete', 'event_espresso');
?>
</a></span></div></td>
<?php
if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
?>
<td><?php
echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
?>
</td>
<?php
}
?>
<td class="author column-author"><?php
echo $coupon_code_price;
?>
</td>
<td class="author column-author"><?php
echo $use_percentage;
?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div style="clear:both">
<p><input type="checkbox" name="sAll" onclick="selectAll(this)" />
<strong>
<?php
_e('Check All', 'event_espresso');
?>
</strong>
<input name="delete_discount" type="submit" class="button-secondary" id="delete_discount" value="<?php
_e('Delete Promotional Code', 'event_espresso');
?>
" style="margin:10 0 0 10px;" onclick="return confirmDelete();">
<a style="margin-left:5px"class="button-primary" href="admin.php?page=discounts&action=new"><?php
_e('Add New Promotional Code', '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>
<script type="text/javascript">
jQuery(document).ready(function($) {
/* show the table data */
var mytable = $('#table').dataTable( {
"bStateSave": true,
"sPaginationType": "full_numbers",
"oLanguage": { "sSearch": "<strong><?php
_e('Live Search Filter', 'event_espresso');
?>
:</strong>",
"sZeroRecords": "<?php
_e('No Records Found!', 'event_espresso');
?>
" },
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
<?php
echo function_exists('espresso_is_admin') && espresso_is_admin() == true ? 'null,' : '';
?>
null
]
} );
} );
// Add new promo code form validation
jQuery(function(){
jQuery("#new-promo-code").validate( {
rules: {
coupon_code: "required"
},
messages: {
coupon_code: "Please add your promotional code"
}
});
});
</script>
<?php
}
示例8: event_espresso_questions_config_mnu
//.........这里部分代码省略.........
?>
</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>
示例9: event_espresso_venue_config_mnu
//.........这里部分代码省略.........
?>
<td>[ESPRESSO_VENUE id="<?php
echo $venue_id;
?>
"]</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div style="clear:both">
<p>
<input type="checkbox" name="sAll" onclick="selectAll(this)" />
<strong>
<?php
_e('Check All', 'event_espresso');
?>
</strong>
<input name="delete_venue" type="submit" class="button-secondary" id="delete_venue" value="<?php
_e('Delete Venue', 'event_espresso');
?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();">
<a style="margin-left:5px"class="button-primary" href="admin.php?page=event_venues&action=add_new_venue">
<?php
_e('Add New Venue', '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>
<?php
#### help dialogue box ####
?>
<div id="venue_locale" style="display:none">
<div class="TB-ee-frame">
<h2>
<?php
_e('Venue Locale/Region', 'event_espresso');
?>
</h2>
<p>
<?php
_e('This can be used to group venues together by locales/regions.', 'event_espresso');
?>
</p>
<p>
<?php
_e('Once you have created a locale in the <a href="admin.php?page=event_locales"> Manage Locales/Regions</a> page it will be available to select on the \'Add a Venue\' page', 'event_espresso');
?>
</p>
</div>
</div>
<?php
#### end help ####
?>
<script>
jQuery(document).ready(function($) {
/* show the table data */
var mytable = $('#table').dataTable( {
示例10: espresso_social_config_mnu
//.........这里部分代码省略.........
echo select_input('espresso_twitter_lang', $values, $espresso_twitter['espresso_twitter_lang'], 'id="espresso_twitter_lang"');
?>
</td>
</tr>
</tbody>
</table>
<p>
<input type="hidden" name="update_twitter" value="update" />
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Save Twitter Options', 'event_espresso');
?>
" id="save_twitter_settings" />
</p>
</form>
</div><!-- / .padding -->
</div>
<!-- / .inside -->
</div>
<!-- / .postbox -->
</div>
<!-- / .metabox-holder -->
<div class="metabox-holder">
<div class="postbox">
<div title="Click to toggle" class="handlediv"><br />
</div>
<h3 class="hndle">
<?php
_e('Google+1 Settings', 'event_espresso');
?>
</h3>
<div class="inside">
<div class="padding">
<form class="espresso_form" method="post" action="<?php
echo $_SERVER['REQUEST_URI'];
?>
">
<table id="event_espresso-facebook" class="form-table">
<tbody>
<tr>
<th>
<label for="espresso_google_button_size">
<?php
_e('Google Button size:', 'event_espresso');
?>
</label>
</th>
<td>
<?php
$values = array(array('id' => 'medium', 'text' => __('Horizontal', 'event_espresso')), array('id' => 'tall', 'text' => __('Vertical', 'event_espresso')));
echo select_input('espresso_google_button_size', $values, $espresso_google['espresso_google_button_size'], 'id="espresso_google_button_size"');
?>
</td>
</tr>
<tr>
<th>
<label for="espresso_google_annotation">
<?php
_e('Google text display:', 'event_espresso');
?>
</label>
</th>
<td>
<?php
$values = array(array('id' => 'none', 'text' => __('No Text', 'event_espresso')), array('id' => 'inline', 'text' => __('Inline Text', 'event_espresso')), array('id' => 'bubble', 'text' => __('In Speech Bubble', 'event_espresso')));
echo select_input('espresso_google_annotation', $values, $espresso_google['espresso_google_annotation'], 'id="espresso_google_annotation"');
?>
</td>
</tr>
</tbody>
</table>
<p>
<input type="hidden" name="update_google" value="update" />
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Save Google Options', 'event_espresso');
?>
" id="save_google_settings" />
</p>
</form>
</div><!-- / .padding -->
</div>
<!-- / .inside -->
</div>
<!-- / .postbox -->
</div>
<!-- / .metabox-holder -->
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
?>
</div>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function($){
// WP toggle function
postboxes.add_postbox_toggles('espresso_calendar');
});
//]]>
</script>
<?php
}
示例11: event_espresso_categories_config_mnu
//.........这里部分代码省略.........
?>
"]</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div style="clear:both">
<p>
<input type="checkbox" name="sAll" onclick="selectAll(this)" />
<strong>
<?php
_e('Check All', 'event_espresso');
?>
</strong>
<input name="delete_category" type="submit" class="button-secondary" id="delete_category" value="<?php
_e('Delete Category', 'event_espresso');
?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();">
<a style="margin-left:5px"class="<?php
echo $button_style;
?>
" href="admin.php?page=event_categories&action=add_new_category">
<?php
_e('Add New Category', '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="unique_id_info" style="display:none">
<h2>
<?php
_e('Unique Category Identifier', 'event_espresso');
?>
</h2>
<p>
<?php
_e('This should be a unique identifier for the category. Example: "category1" (without quotes.)', 'event_espresso');
?>
</p>
<p>The
<?php
_e(' unique ID can also be used in individual pages using the', 'event_espresso');
?>
[EVENT_ESPRESSO_CATEGORY event_category_id="category_identifier"]
<?php
_e('shortcode', 'event_espresso');
?>
.</p>
</div>
<script>
jQuery(document).ready(function($) {
/* show the table data */
var mytable = $('#table').dataTable( {
"bStateSave": true,
"sPaginationType": "full_numbers",
示例12: event_espresso_addons_mnu
//.........这里部分代码省略.........
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">
<div class="postbox">
<h3>
<?php
_e('Custom Files', 'event_espresso');
?>
</h3>
<div class="inside">
<ul>
<li><?php
_e('These files offer support for custom templates, functions, and shortcodes. Virtually allowing you to customize the plugin to your needs and making your custom changes future proof.', 'event_espresso');
?>
</li>
<?php
if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "custom_includes.php") || file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "custom_functions.php") || file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "custom_shortcodes.php")) {
?>
<?php
if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "custom_includes.php")) {
?>
<li><strong style="color:#090">custom_includes.php <?php
_e(' - Installed', 'event_espresso');
?>
</strong></li><?php
} else {
?>
<li><strong style="color:#F00">custom_includes.php <?php
_e(' - Not Installed', 'event_espresso');
?>
</strong></li><?php
}
?>
<?php
if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "custom_functions.php")) {
?>
<li><strong style="color:#090">custom_functions.php <?php
_e(' - Installed', 'event_espresso');
?>
</strong></li><?php
} else {
?>
<li><strong style="color:#F00">custom_functions.php <?php
_e(' - Not Installed', 'event_espresso');
?>
</strong></li><?php
}
?>
<?php
if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "custom_shortcodes.php")) {
?>
<li><strong style="color:#090">custom_shortcodes.php <?php
_e(' - Installed', 'event_espresso');
?>
</strong></li><?php
} else {
?>
<li><strong style="color:#F00">custom_shortcodes.php <?php
_e(' - Not Installed', 'event_espresso');
?>
</strong></li><?php
}
?>
<?php
} else {
echo '<li><a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=AERPRO-CF-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>
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
?>
</div>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>
<?php
}
示例13: event_espresso_staff_config_mnu
//.........这里部分代码省略.........
?>
"><?php
_e('Delete', 'event_espresso');
?>
</a>
</span>
</div>
</td>
<?php
if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
?>
<td><?php
echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
?>
</td>
<?php
}
?>
<td>[ESPRESSO_STAFF id="<?php
echo $staff_id;
?>
"]</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div style="clear:both">
<p>
<input type="checkbox" name="sAll" onclick="selectAll(this)" />
<strong>
<?php
_e('Check All', 'event_espresso');
?>
</strong>
<input name="delete_staff" type="submit" class="button-secondary" id="delete_staff" value="<?php
_e('Delete Staff Member(s)', 'event_espresso');
?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();" />
<a style="margin-left:5px"class="button-primary" href="admin.php?page=event_staff&action=add_new_staff"><?php
_e('Add New Staff Member', '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>
<script>
jQuery(document).ready(function($) {
/* show the table data */
var mytable = $('#table').dataTable( {
"bStateSave": true,
"sPaginationType": "full_numbers",
"oLanguage": { "sSearch": "<strong><?php
_e('Live Search Filter', 'event_espresso');
?>
:</strong>",
"sZeroRecords": "<?php
_e('No Records Found!', 'event_espresso');
?>
" },
"aoColumns": [
{ "bSortable": false },
null,
null,
<?php
echo function_exists('espresso_is_admin') && espresso_is_admin() == true ? 'null,' : '';
?>
{ "bSortable": false }
]
} );
} );
// Add new staff form validation
jQuery(function(){
jQuery('#add-staff').validate({
rules: {
name: "required"
},
messages: {
name: "Please add a name for your new staff member"
}
});
});
</script>
<?php
}
示例14: add_new_event
//.........这里部分代码省略.........
wp_editor("", "conf_mail", $args);
} else {
echo '<textarea name="conf_mail" class="theEditor" id="conf_mail"></textarea>';
espresso_tiny_mce();
}
?>
<table id="email-confirmation-form" cellspacing="0">
<tbody>
<tr>
<td class="aer-word-count"></td>
<td class="autosave-info"><span><a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_info">
<?php
_e('View Custom Email Tags', 'event_espresso');
?>
</a> | <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_example">
<?php
_e('Email Example', 'event_espresso');
?>
</a></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /confirmation-email-->
<?php
if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/event-management/new_event_post.php')) {
require_once EVENT_ESPRESSO_PLUGINFULLPATH . "includes/admin-files/event-management/new_event_post.php";
}
?>
</div>
<!-- /normal-sortables-->
<?php
$center_metabox_content = ob_get_clean();
espresso_choose_layout($main_post_content, $sidebar_content, $center_metabox_content);
include_once 'create_events_help.php';
?>
<input type="hidden" name="action" value="add" />
<?php
wp_nonce_field('espresso_verify_insert_event_nonce', 'nonce_verify_insert_event');
//Security check using nonce
//wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false );
//wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false );
?>
<script type="text/javascript" charset="utf-8">
//<![CDATA[
jQuery(document).ready(function() {
postboxes.add_postbox_toggles('events');
jQuery(".datepicker" ).datepicker({
changeMonth: true,
changeYear: true,
dateFormat: "yy-mm-dd",
showButtonPanel: true
});
jQuery("#start_date").change(function(){
jQuery("#end_date").val(jQuery(this).val());
});
var header_clicked = false;
jQuery('#upload_image_button').click(function() {
formfield = jQuery('#upload_image').attr('name');
tb_show('', 'media-upload.php?type=image&TB_iframe=1');
jQuery('p.event-featured-thumb').addClass('old');
header_clicked = true;
return false;
});
window.original_send_to_editor = window.send_to_editor;
window.send_to_editor = function(html) {
if(header_clicked) {
imgurl = jQuery('img',html).attr('src');
jQuery('#' + formfield).val(imgurl);
jQuery('#featured-image').append("<p id='image-display'><img class='show-selected-image' src='"+imgurl+"' alt='' /></p>");
header_clicked = false;
tb_remove();
} else {
window.original_send_to_editor(html);
}
}
// process the remove link in the metabox
jQuery('#remove-image').click(function(){
confirm('Do you really want to delete this image? Please remember to update your event to complete the removal.');
jQuery("#upload_image").val('');
jQuery("p.event-featured-thumb").remove();
jQuery("p#image-display").remove();
jQuery('#remove-image').remove();
jQuery("#show_thumb_in_lists, #show_on_calendar, #show_thumb_in_regpage").val(false);
});
});
//]]>
</script>
<?php
}
示例15: event_espresso_email_config_mnu
//.........这里部分代码省略.........
"><?php
echo $email_name;
?>
</a></strong>
<div class="row-actions"><span class="edit"><a href="admin.php?page=event_emails&action=edit&id=<?php
echo $email_id;
?>
"><?php
_e('Edit', 'event_espresso');
?>
</a> | </span><span class="delete"><a onclick="return confirmDelete();" class="delete submitdelete" href="admin.php?page=event_emails&action=delete_email&id=<?php
echo $email_id;
?>
"><?php
_e('Delete', 'event_espresso');
?>
</a></span></div>
</td>
<?php
if (function_exists('espresso_user_meta') && espresso_is_admin() == true) {
?>
<td><?php
echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
?>
</td>
<?php
}
?>
<td><a href="admin.php?page=event_emails&action=edit&id=<?php
echo $email_id;
?>
">
<?php
_e('Edit Email', 'event_espresso');
?>
</a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<p>
<input type="checkbox" name="sAll" onclick="selectAll(this)" />
<strong>
<?php
_e('Check All', 'event_espresso');
?>
</strong>
<input name="delete_email" type="submit" class="button-secondary" id="delete_email" value="<?php
_e('Delete Email', 'event_espresso');
?>
" style="margin-left:100px;" onclick="return confirmDelete();"> <?php
echo '<a href="admin.php?page=event_emails&action=add_new_email" style="margin-left:5px"class="' . $button_style . '">' . __('Add New Email', 'event_espresso') . '</a>';
?>
</p>
</form>
<?php
$main_post_content = ob_get_clean();
espresso_choose_layout($main_post_content, event_espresso_display_right_column());
?>
</div>
<script>
jQuery(document).ready(function($) {
/* show the table data */
var mytable = $('#table1').dataTable( {
"bStateSave": true,
"sPaginationType": "full_numbers",
"oLanguage": { "sSearch": "<strong><?php
_e('Live Search Filter', 'event_espresso');
?>
:</strong>",
"sZeroRecords": "<?php
_e('No Records Found!', 'event_espresso');
?>
" },
"aoColumns": [
{ "bSortable": false },
null,
null,
<?php
echo function_exists('espresso_is_admin') && espresso_is_admin() == true ? 'null,' : '';
?>
null,
]
} );
} );
</script>
<?php
echo event_espresso_custom_email_info();
}