• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP em_options_radio_binary函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中em_options_radio_binary函数的典型用法代码示例。如果您正苦于以下问题:PHP em_options_radio_binary函数的具体用法?PHP em_options_radio_binary怎么用?PHP em_options_radio_binary使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了em_options_radio_binary函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: admin_options

    public static function admin_options()
    {
        global $save_button;
        if (current_user_can('list_users')) {
            ?>
			<div  class="postbox " id="em-opt-pro-booking-form-options" >
			<div class="handlediv" title="<?php 
            esc_attr_e_emp('Click to toggle', 'dbem');
            ?>
"><br /></div><h3 class='hndle'><span><?php 
            _e('PRO Booking Form Options', 'em-pro');
            ?>
 </span></h3>
			<div class="inside">
				<table class='form-table'>
					<?php 
            em_options_radio_binary(__('Show profile fields to logged in users?', 'em-pro'), 'dbem_emp_booking_form_reg_show', __('When logged in, users usually don\'t see their profile fields, with this enabled, users will be able to update their profile fields alongside their booking. This is particularly useful if the user is missing key information.', 'em-pro'), '', '#dbem_emp_booking_form_reg_show_name_row, #dbem_emp_booking_form_reg_show_email_row, #dbem_emp_booking_form_reg_input_row');
            em_options_radio_binary(__('Show name profile fields?', 'em-pro'), 'dbem_emp_booking_form_reg_show_name', sprintf(__('If fields are editable users will be able to change their %s whilst making a booking.', 'em-pro'), esc_html__emp('Name', 'dbem')));
            em_options_radio_binary(__('Show email profile fields?', 'em-pro'), 'dbem_emp_booking_form_reg_show_email', sprintf(__('If fields are editable users will be able to change their %s whilst making a booking.', 'em-pro'), esc_html__emp('Email', 'dbem')));
            em_options_radio_binary(__('Make profile fields editable?', 'em-pro'), 'dbem_emp_booking_form_reg_input', __('If profile fields are set to show to logged in users, you can also choose whether or not to make these fields editable or just for viewing reference.', 'em-pro'));
            ?>
				</table>
				<?php 
            echo $save_button;
            ?>
 
			</div> <!-- . inside -->
			</div> <!-- .postbox -->
		<?php 
        }
    }
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:31,代码来源:emp-forms.php


示例2: admin_options

    public static function admin_options()
    {
        if (current_user_can('list_users')) {
            ?>
			<a name="pro-api"></a>
			<div  class="postbox " id="em-opt-gateway-options">
			<div class="handlediv" title="<?php 
            esc_attr_e_emp('Click to toggle', 'dbem');
            ?>
"><br /></div><h3 class='hndle'><span><?php 
            _e('Payment Gateway Options', 'em-pro');
            ?>
 </span></h3>
			<div class="inside">
				<table class='form-table'>
					<?php 
            em_options_radio_binary(__('Enable Quick Pay Buttons?', 'em-pro'), 'dbem_gateway_use_buttons', sprintf(__('Only works with gateways that do not require additional payment information to be submitted (e.g. PayPal and Offline payments). If enabled, the default booking form submit button is not used, and each gateway will have a button (or image, see <a href="%s">individual gateway settings</a>) which if clicked on will submit a booking for that gateway.', 'em-pro'), admin_url('edit.php?post_type=' . EM_POST_TYPE_EVENT . '&page=events-manager-gateways')));
            em_options_input_text(__('Gateway Label', 'em-pro'), 'dbem_gateway_label', __('If you are not using quick pay buttons a drop-down menu will be used, with this label.', 'em-pro'));
            ?>
				</table>
			</div> <!-- . inside -->
			</div> <!-- .postbox -->
		<?php 
        }
    }
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:25,代码来源:gateways-admin.php


示例3: wpfc_em_admin_options

function wpfc_em_admin_options()
{
    ?>
	<div  class="postbox " >
		<div class="handlediv" title="<?php 
    __('Click to toggle', 'dbem');
    ?>
"><br /></div><h3 class='hndle'><span><?php 
    _e('Full Calendar Options', 'dbem');
    ?>
 </span></h3>
		<div class="inside">
			<p  class="em-boxheader"><?php 
    echo sprintf(__('Looking for the rest of the FullCalendar Options? They\'ve moved <a href="%s">here</a>, the options below are for overriding specific bits relevant to Events Manager.', 'dbem'), admin_url('options-general.php?page=wp-fullcalendar'));
    ?>
</p>
			<table class='form-table'>
				<?php 
    global $events_placeholder_tip, $save_button;
    em_options_radio_binary(__('Override calendar on events page?', 'dbem'), 'dbem_emfc_override_calendar', __('If set to yes, the FullCalendar will be used instead of the standard calendar on the events page.', 'dbem'));
    em_options_radio_binary(__('Override calendar shortcode?', 'dbem'), 'dbem_emfc_override_shortcode', __('Overrides the default calendar shortcode. You can also use [events_fullcalendar] instead.', 'dbem'));
    em_options_input_text(__('Event title format', 'dbem'), 'dbem_emfc_full_calendar_event_format', __('HTML is not accepted.', 'dbem') . ' ' . $events_placeholder_tip, '#_EVENTNAME');
    em_options_textarea(__('Event tooltips format', 'dbem'), 'dbem_emfc_qtips_format', __('If you enable tips, this information will be shown, which can include HTML.', 'dbem') . ' ' . $events_placeholder_tip, '#_EVENTNAME');
    $positions_options = array();
    ?>
			</table>
			<?php 
    echo $save_button;
    ?>
		</div> <!-- . inside -->
		</div> <!-- .postbox -->
	<?php 
}
开发者ID:javipaur,项目名称:TiendaVirtual,代码行数:33,代码来源:wpfc-admin.php


示例4: logging_settings

    public static function logging_settings()
    {
        ?>
		<table class="form-table">
		    <tr class="em-header"><td colspan="2">
		        <h4><?php 
        _e('Logging', 'dbem');
        ?>
</h4>
		    </td></tr>
			<?php 
        em_options_radio_binary(__('Enable Logging?', 'em-pro'), 'dbem_enable_logging', sprintf(__('If enabled, a folder called %s will be created. Please ensure that your wp-contents folder is writable by the server.', 'em-pro'), '<code>' . WP_PLUGIN_DIR . '/events-manager-logs' . '</code>'));
        ?>
		</table>
		<?php 
    }
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:16,代码来源:emp-admin.php


示例5: em_options_input_text

em_options_input_text(__('Event titles', 'events-manager'), 'dbem_small_calendar_event_title_format', __('The format of the title, corresponding to the text that appears when hovering on an eventful calendar day.', 'events-manager') . $events_placeholder_tip);
em_options_input_text(__('Title separator', 'events-manager'), 'dbem_small_calendar_event_title_separator', __('The separator appearing on the above title when more than one events are taking place on the same day.', 'events-manager'));
em_options_radio_binary(__('Abbreviated weekdays', 'events-manager'), 'dbem_small_calendar_abbreviated_weekdays', __('The calendar headings uses abbreviated weekdays', 'events-manager'));
em_options_input_text(__('Initial lengths', 'events-manager'), 'dbem_small_calendar_initials_length', __('Shorten the calendar headings containing the days of the week, use 0 for the full name.', 'events-manager') . $events_placeholder_tip);
em_options_radio_binary(__('Show Long Events?', 'events-manager'), 'dbem_small_calendar_long_events', __('Events with multiple dates will appear on each of those dates in the calendar.', 'events-manager'));
?>
    		<tr class="em-header"><td colspan="2"><h4><?php 
_e('Full Calendar', 'events-manager');
?>
</h4></td></tr>
		    <?php 
em_options_input_text(__('Month format', 'events-manager'), 'dbem_full_calendar_month_format', __('The format of the month/year header of the calendar.', 'events-manager') . ' ' . $date_time_format_tip);
em_options_input_text(__('Event format', 'events-manager'), 'dbem_full_calendar_event_format', __('The format of each event when displayed in the full calendar. Remember to include <code>li</code> tags before and after the event.', 'events-manager') . $events_placeholder_tip);
em_options_radio_binary(__('Abbreviated weekdays?', 'events-manager'), 'dbem_full_calendar_abbreviated_weekdays', __('Use abbreviations, e.g. Friday = Fri. Useful for certain languages where abbreviations differ from full names.', 'events-manager'));
em_options_input_text(__('Initial lengths', 'events-manager'), 'dbem_full_calendar_initials_length', __('Shorten the calendar headings containing the days of the week, use 0 for the full name.', 'events-manager') . $events_placeholder_tip);
em_options_radio_binary(__('Show Long Events?', 'events-manager'), 'dbem_full_calendar_long_events', __('Events with multiple dates will appear on each of those dates in the calendar.', 'events-manager'));
?>
		
		    <tr class="em-header"><td colspan="2"><h4><?php 
echo __('Calendar Day Event List Settings', 'events-manager');
?>
</h4></td></tr>			
			<tr valign="top" id='dbem_display_calendar_orderby_row'>
		   		<th scope="row"><?php 
_e('Default event list ordering', 'events-manager');
?>
</th>
		   		<td>   
					<select name="dbem_display_calendar_orderby" >
						<?php 
$orderby_options = apply_filters('dbem_display_calendar_orderby_ddm', array('event_name,event_start_time' => __('Order by event name, then event start time', 'events-manager'), 'event_start_time,event_name' => __('Order by event start time, then event name', 'events-manager')));
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:31,代码来源:formats.php


示例6: em_admin_options_page

function em_admin_options_page()
{
    //TODO place all options into an array
    $events_placeholders = '<a href="admin.php?page=events-manager-help#event-placeholders">' . __('Event Related Placeholders', 'dbem') . '</a>';
    $locations_placeholders = '<a href="admin.php?page=events-manager-help#location-placeholders">' . __('Location Related Placeholders', 'dbem') . '</a>';
    $bookings_placeholders = '<a href="admin.php?page=events-manager-help#booking-placeholders">' . __('Booking Related Placeholders', 'dbem') . '</a>';
    $events_placeholder_tip = " " . sprintf(__('This accepts %s and %s placeholders.', 'dbem'), $events_placeholders, $locations_placeholders);
    $locations_placeholder_tip = " " . sprintf(__('This accepts %s placeholders.', 'dbem'), $locations_placeholders);
    $bookings_placeholder_tip = " " . sprintf(__('This accepts %s, %s and %s placeholders.', 'dbem'), $bookings_placeholders, $events_placeholders, $locations_placeholders);
    $save_button = '<tr><th>&nbsp;</th><td><p class="submit" style="margin:0px; padding:0px; text-align:right;"><input type="submit" id="dbem_options_submit" name="Submit" value="' . __('Save Changes') . ' (' . __('All', 'dbem') . ')" /></p></ts></td></tr>';
    ?>
	
	<script type="text/javascript" charset="utf-8">
		jQuery(document).ready(function($){
			var close_text = '<?php 
    _e('Collapse All', 'dbem');
    ?>
';
			var open_text = '<?php 
    _e('Expand All', 'dbem');
    ?>
';
			var open_close = $('<a href="#" style="display:block; float:right; clear:right; margin:10px;">'+close_text+'</a>');
			$('#icon-options-general').after(open_close);
			open_close.click( function(e){
				e.preventDefault();
				if($(this).text() == close_text){
					$(".postbox").addClass('closed');
					$(this).text(open_text);
				}else{
					$(".postbox").removeClass('closed');
					$(this).text(close_text);
				} 
			});
			//For rewrite titles
			$('input:radio[name=dbem_disable_title_rewrites]').live('change',function(){
				checked_check = $('input:radio[name=dbem_disable_title_rewrites]:checked');
				if( checked_check.val() == 1 ){
					$('#dbem_title_html_row').show();
				}else{
					$('#dbem_title_html_row').hide();					
				}
			});
			$('input:radio[name=dbem_disable_title_rewrites]').trigger('change');
			
		});
	</script>
	<div class="wrap">
		<div id='icon-options-general' class='icon32'><br />
		</div>		
		<h2><?php 
    _e('Event Manager Options', 'dbem');
    ?>
</h2>
		
		<form id="dbem_options_form" method="post" action="">          

			<div class="metabox-holder">         
			<!-- // TODO Move style in css -->
			<div class='postbox-container' style='width: 99.5%'>
			<div id="" class="meta-box-sortables" >
		  
			<div  class="postbox " >
			<div class="handlediv" title="<?php 
    __('Click to toggle');
    ?>
"><br /></div><h3 class='hndle'><span><?php 
    _e('General options', 'dbem');
    ?>
 </span></h3>
			<div class="inside">
	            <table class="form-table">
					<?php 
    em_options_radio_binary(__('Use dropdown for locations?'), 'dbem_use_select_for_locations', __('Select yes to select location from a drow-down menu; location selection will be faster, but you will lose the ability to insert locations with events', 'dbem'));
    em_options_radio_binary(__('Use recurrence?'), 'dbem_recurrence_enabled', __('Select yes to enable the recurrence features feature', 'dbem'));
    em_options_radio_binary(__('Use RSVP?'), 'dbem_rsvp_enabled', __('Select yes to enable the RSVP feature', 'dbem'));
    em_options_radio_binary(__('Use categories?'), 'dbem_categories_enabled', __('Select yes to enable the category features', 'dbem'));
    em_options_radio_binary(__('Use attributes?'), 'dbem_attributes_enabled', __('Select yes to enable the attributes feature', 'dbem'));
    /*default category*/
    $category_options = array();
    $category_options[0] = __('no default category', 'dbem');
    $EM_Categories = EM_Categories::get();
    foreach ($EM_Categories as $EM_Category) {
        $category_options[$EM_Category->id] = $EM_Category->name;
    }
    em_options_select(__('Default Category'), 'dbem_default_category', $category_options, __('This option allows you to select the default category when adding an event.', 'dbem') . " " . __('(not applicable with event ownership on presently, coming soon!)', 'dbem'));
    /*default location*/
    $location_options = array();
    $location_options[0] = __('no default location', 'dbem');
    $EM_Locations = EM_Locations::get();
    foreach ($EM_Locations as $EM_Location) {
        $location_options[$EM_Location->id] = $EM_Location->name;
    }
    em_options_select(__('Default Location'), 'dbem_default_location', $location_options, __('This option allows you to select the default location when adding an event.', 'dbem') . " " . __('(not applicable with event ownership on presently, coming soon!)', 'dbem'));
    em_options_textarea(__('Custom Placeholders', 'dbem'), 'dbem_placeholders_custom', sprintf(__("You can add custom placeholders here, one per line in this format <code>#_ATT{key}</code>. They will not appear on event pages unless you insert them into another template below, but you may want to store extra information about an event for other uses. <a href='%s'>More information on placeholders.</a>", 'dbem'), 'wp-events-plugin.com/documentation/the-em-templates-syntax/'));
    echo $save_button;
    ?>
				</table>
				    
			</div> <!-- . inside --> 
//.........这里部分代码省略.........
开发者ID:hypenotic,项目名称:slowfood,代码行数:101,代码来源:em-options.php


示例7: mysettings


//.........这里部分代码省略.........
		<p><?php 
        echo sprintf(__('Please visit the <a href="%s">documentation</a> for further instructions.', 'em-pro'), 'http://wp-events-plugin.com/documentation/');
        ?>
</p>
		<table class="form-table">
		<tbody>
		  <tr valign="top">
			  <th scope="row"><?php 
        _e('PayPal Email', 'em-pro');
        ?>
</th>
				  <td><input type="text" name="paypal_email" value="<?php 
        esc_attr_e(get_option('em_' . $this->gateway . "_email"));
        ?>
" />
				  <br />
			  </td>
		  </tr>
		  <tr valign="top">
			  <th scope="row"><?php 
        _e('Paypal Currency', 'em-pro');
        ?>
</th>
			  <td><?php 
        echo esc_html(get_option('dbem_bookings_currency', 'USD'));
        ?>
<br /><i><?php 
        echo sprintf(__('Set your currency in the <a href="%s">settings</a> page.', 'em-pro'), EM_ADMIN_URL . '&amp;page=events-manager-options#bookings');
        ?>
</i></td>
		  </tr>
		  
		  <?php 
        em_options_radio_binary(__('Include Taxes In Itemized Prices', 'em-pro'), 'em_' . $this->gateway . '_inc_tax', __('If set to yes, taxes are not included in individual item prices and total tax is shown at the bottom. If set to no, taxes are included within the individual prices.', 'em-pro') . ' ' . __('We strongly recommend setting this to No.', 'em-pro') . ' <a href="http://wp-events-plugin.com/documentation/events-with-paypal/paypal-displaying-taxes/">' . __('Click here for more information.', 'em-pro')) . '</a>';
        ?>
		  
		  <tr valign="top">
			  <th scope="row"><?php 
        _e('PayPal Language', 'em-pro');
        ?>
</th>
			  <td>
			  	<select name="paypal_lc">
			  		<option value=""><?php 
        _e('Default', 'em-pro');
        ?>
</option>
				  <?php 
        $ccodes = em_get_countries();
        $paypal_lc = get_option('em_' . $this->gateway . '_lc', 'US');
        foreach ($ccodes as $key => $value) {
            if ($paypal_lc == $key) {
                echo '<option value="' . $key . '" selected="selected">' . $value . '</option>';
            } else {
                echo '<option value="' . $key . '">' . $value . '</option>';
            }
        }
        ?>
				  
				  </select>
				  <br />
				  <i><?php 
        _e('PayPal allows you to select a default language users will see. This is also determined by PayPal which detects the locale of the users browser. The default would be US.', 'em-pro');
        ?>
</i>
			  </td>
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:67,代码来源:gateway.paypal.php


示例8: sprintf

    ?>
 </span></h3>
	<div class="inside">
		<p class="em-boxheader">
			<?php 
    echo sprintf(__('This is only applicable when %s is not active.', 'dbem'), '<em>' . __('No-User Booking Mode', 'dbem') . '</em>');
    ?>

			<?php 
    _e('When a guest user makes a booking for the first time in Events Manager, a new user account is created for them and they are sent their credentials in a seperate email, which can be modified below.', 'dbem');
    ?>

		</p>
		<table class='form-table'>
			<?php 
    em_options_radio_binary(__('Disable new registration email?', 'dbem'), 'dbem_email_disable_registration', __('Check this option if you want to prevent the WordPress registration email from going out when a user anonymously books an event.', 'dbem'));
    em_options_input_text(__('Registration email subject', 'dbem'), 'dbem_bookings_email_registration_subject');
    em_options_textarea(__('Registration email', 'dbem'), 'dbem_bookings_email_registration_body', sprintf(__('%s is replaced by username and %s is replaced by the user password.', 'dbem'), '<code>%username%</code>', '<code>%password%</code>'));
    echo $save_button;
    ?>

		</table>
	</div> <!-- . inside -->
	</div> <!-- .postbox -->
	<?php 
}
?>

	
	<div  class="postbox " id="em-opt-event-submission-emails" >
	<div class="handlediv" title="<?php 
开发者ID:pcco,项目名称:portal-redesign,代码行数:31,代码来源:emails.php


示例9: sprintf

						<em><?php 
    echo sprintf(__('This option allows you to select which page to use as the %s page.', 'dbem'), __('tags', 'dbem'), __('tags', 'dbem'));
    ?>
</em>
					</td>
				</tr>
				<tr class="em-header">
					<td colspan="2">
						<h4><?php 
    echo _e('General settings', 'dbem');
    ?>
</h4>
					</td>
				</tr>
				<?php 
    em_options_radio_binary(__('Override with Formats?', 'dbem'), 'dbem_cp_tags_formats', sprintf($format_override_tip, __('tags', 'dbem')));
    ?>

				<tr valign="top">
			   		<th scope="row"><?php 
    _e('Default archive ordering', 'dbem');
    ?>
</th>
			   		<td>   
						<select name="dbem_tags_default_archive_orderby" >
							<?php 
    foreach ($event_archive_orderby_options as $key => $value) {
        ?>
   
			 				<option value='<?php 
        echo esc_attr($key);
开发者ID:pcco,项目名称:portal-redesign,代码行数:31,代码来源:pages.php


示例10: em_admin_options_page


//.........这里部分代码省略.........
        ?>
		<?php 
    }
    ?>
		<?php 
    /*
     *  END MIGRATION BIT
     */
    ?>
		<form id="dbem_options_form" method="post" action="">          

			<div class="metabox-holder">         
			<!-- // TODO Move style in css -->
			<div class='postbox-container' style='width: 99.5%'>
			<div id="" class="meta-box-sortables" >
		  
			<?php 
    if (is_multisite() && is_super_admin()) {
        ?>
			<div  class="postbox " >
				<div class="handlediv" title="<?php 
        __('Click to toggle');
        ?>
"><br /></div><h3 class='hndle'><span><?php 
        _e('Multi Site Options', 'dbem');
        ?>
 <?php 
        echo $multisite_view;
        ?>
</span></h3>
				<div class="inside">
		            <table class="form-table">
						<?php 
        em_options_radio_binary(__('Enable global tables mode?'), 'dbem_ms_global_table', __('Setting this to yes will make all events save in the main site event tables (EM must also be activated). This allows you to share events across different blogs, such as showing events in your network whilst allowing users to display and manage their events within their own blog. Bear in mind that activating this will mean old events created on the sub-blogs will not be accessible anymore, and if you switch back they will be but new events created during global events mode will only remain on the main site.', 'dbem'));
        em_options_radio_binary(__('Display global events on main blog?'), 'dbem_ms_global_events', __('Displays events from all sites on the network by default. You can still restrict events by blog using shortcodes and template tags coupled with the <code>blog</code> attribute. Requires global tables to be turned on.', 'dbem'));
        em_options_radio_binary(__('Link sub-site events directly to sub-site?'), 'dbem_ms_global_events_links', __('When displaying global events on the main site you have the option of users viewing the event details on the main site or being directed to the sub-site.', 'dbem'));
        echo $save_button;
        ?>
					</table>
					    
				</div> <!-- . inside --> 
			</div> <!-- .postbox --> 
			<?php 
    }
    ?>
		  
			<div  class="postbox " >
			<div class="handlediv" title="<?php 
    __('Click to toggle');
    ?>
"><br /></div><h3 class='hndle'><span><?php 
    _e('General options', 'dbem');
    ?>
 </span></h3>
			<div class="inside">
	            <table class="form-table">
					<?php 
    em_options_radio_binary(__('Use dropdown for locations?'), 'dbem_use_select_for_locations', __('Select yes to select location from a drow-down menu; location selection will be faster, but you will lose the ability to insert locations with events', 'dbem'));
    em_options_radio_binary(__('Use recurrence?'), 'dbem_recurrence_enabled', __('Select yes to enable the recurrence features feature', 'dbem'));
    em_options_radio_binary(__('Enable bookings?'), 'dbem_rsvp_enabled', __('Select yes to allow bookings and tickets for events.', 'dbem'));
    em_options_radio_binary(__('Use categories?'), 'dbem_categories_enabled', __('Select yes to enable the category features', 'dbem'));
    em_options_radio_binary(__('Use event attributes?'), 'dbem_attributes_enabled', __('Select yes to enable the attributes feature', 'dbem'));
    /*default category*/
    $category_options = array();
    $category_options[0] = __('no default category', 'dbem');
    $EM_Categories = EM_Categories::get();
开发者ID:hypenotic,项目名称:slowfood,代码行数:67,代码来源:em-options.php


示例11: _e

				<p><?php 
_e('The option below allows you to disable user accounts and assign all bookings to a parent user, yet you will still see the supplied booking personal information for each booking. When this mode is enabled, extra booking information about the person is stored alongside the booking record rather than as a WordPress user.', 'dbem');
?>
</p>
				<p><?php 
_e('Users with accounts (which would be created by other means when this mode is enabled) will still be able to log in and make bookings linked to their account as normal.', 'dbem');
?>
</p>
				<p><?php 
_e('<strong>Warning : </strong> Various features afforded to users with an account will not be available, e.g. viewing bookings. Once you enable this and select a user, modifying these values will prevent older non-user bookings from displaying the correct information.', 'dbem');
?>
</p>
			</td></tr>
			<?php 
em_options_radio_binary(__('Enable No-User Booking Mode?', 'dbem'), 'dbem_bookings_registration_disable', __('This disables user registrations for bookings.', 'dbem'));
em_options_radio_binary(__('Allow bookings with registered emails?', 'dbem'), 'dbem_bookings_registration_disable_user_emails', __('By default, if a guest tries to book an event using the email of a user account on your site they will be asked to log in, selecting yes will bypass this security measure.', 'dbem') . '<br />' . __('<strong>Warning : </strong> By enabling this, registered users will not be able to see bookings they make as guests in their "My Bookings" page.', 'dbem'));
$current_user = array();
if (get_option('dbem_bookings_registration_user')) {
    $user = get_user_by('id', get_option('dbem_bookings_registration_user'));
    $current_user[$user->ID] = $user->display_name;
}
if (defined('EM_OPTIMIZE_SETTINGS_PAGE_USERS') && EM_OPTIMIZE_SETTINGS_PAGE_USERS) {
    em_options_input_text(__('Assign bookings to', 'dbem'), 'dbem_bookings_registration_user', __('Please add a User ID.', 'dbem') . ' ' . __('Choose a parent user to assign bookings to. People making their booking will be unaware of this and will never have access to those user details. This should be a subscriber user you do not use to log in with yourself.', 'dbem'));
} else {
    em_options_select(__('Assign bookings to', 'dbem'), 'dbem_bookings_registration_user', em_get_wp_users(array('role' => 'subscriber'), $current_user), __('Choose a parent user to assign bookings to. People making their booking will be unaware of this and will never have access to those user details. This should be a subscriber user you do not use to log in with yourself.', 'dbem'));
}
echo $save_button;
?>

		</table>
	</div> <!-- . inside -->
开发者ID:pcco,项目名称:portal-redesign,代码行数:31,代码来源:bookings.php


示例12: emails

    public static function emails()
    {
        global $save_button;
        $bookings_placeholders = '<a href="' . EM_ADMIN_URL . '&amp;page=events-manager-help#booking-placeholders">' . esc_html__emp('Booking Related Placeholders', 'dbem') . '</a>';
        $bookings_placeholder_tip = " " . sprintf(esc_html__emp('This accepts %s placeholders.', 'dbem'), $bookings_placeholders);
        ?>
		<div  class="postbox " id="em-opt-multiple-booking-emails" >
		<div class="handlediv" title="<?php 
        esc_attr_e_emp('Click to toggle', 'dbem');
        ?>
"><br /></div><h3><span><?php 
        _e('Multiple Booking Email Templates', 'em-pro');
        ?>
 </span></h3>
		<div class="inside">
		    <div class="em-boxheader">
                <p><?php 
        echo sprintf(__('When users make a booking in Multiple Bookings Mode or cancels their booking, these emails get sent to the attendee and administrator emails you assign in the %s section above.', 'em-pro'), '<code>' . esc_html__emp('Booking Email Templates', 'dbem') . '</code>');
        ?>
</p>
                <p><?php 
        _e('When administrators modify a set of multiple bookings rather than individual events, these templates will be used to notify the attendee.', 'em-pro');
        ?>
</p>
            </div>
			<table class='form-table'>
				<?php 
        $email_subject_tip = esc_html__emp('You can disable this email by leaving the subject blank.', 'dbem');
        em_options_radio_binary(__('Email event owners?', 'em-pro'), 'dbem_multiple_bookings_contact_email', sprintf(__('If enabled, additional emails will be sent to administrators and event owners for EVERY event booked based on the above %s settings.', 'em-pro'), '<code>' . esc_html__emp('Booking Email Templates', 'dbem') . '</code>'));
        ?>
				<tr class="em-header"><td colspan='2'><h4><?php 
        esc_html_e_emp('Event Admin/Owner Emails', 'dbem');
        ?>
</h4></td></tr>
				<tbody class="em-subsection">
    				<tr class="em-subheader"><td colspan='2'>
    					<h5><?php 
        esc_html_e_emp('Contact person booking confirmed', 'dbem');
        ?>
</h5>
    					<em><?php 
        esc_html_e_emp('An email will be sent to the event contact when a booking is first made.', 'dbem') . $bookings_placeholder_tip;
        ?>
</em>
    				</td></tr>
    				<?php 
        em_options_input_text(esc_html__emp('Contact person email subject', 'dbem'), 'dbem_multiple_bookings_contact_email_subject', $email_subject_tip);
        em_options_textarea(esc_html__emp('Contact person email', 'dbem'), 'dbem_multiple_bookings_contact_email_body', '');
        ?>
    				<tr class="em-subheader"><td colspan='2'>
    					<h5><?php 
        esc_html_e_emp('Contact person booking cancelled', 'dbem');
        ?>
</h5>
    					<em><?php 
        esc_html_e_emp('An email will be sent to the event contact if someone cancels their booking.', 'dbem') . $bookings_placeholder_tip;
        ?>
</em>
    				</td></tr>
    				<?php 
        em_options_input_text(esc_html__emp('Contact person cancellation subject', 'dbem'), 'dbem_multiple_bookings_contact_email_cancelled_subject', $email_subject_tip);
        em_options_textarea(esc_html__emp('Contact person cancellation email', 'dbem'), 'dbem_multiple_bookings_contact_email_cancelled_body', '');
        ?>
				</tbody>
				<tbody class="em-subsection">
    				<tr class="em-header"><td colspan='2'><h4><?php 
        esc_html_e_emp('Booked User Emails', 'dbem');
        ?>
</h4></td></tr>
    				<tr class="em-subheader"><td colspan='2'>
    					<h5><?php 
        esc_html_e_emp('Confirmed booking email', 'dbem');
        ?>
</h5>
    					<em><?php 
        esc_html_e_emp('This is sent when a person\'s booking is confirmed. This will be sent automatically if approvals are required and the booking is approved. If approvals are disabled, this is sent out when a user first submits their booking.', 'dbem') . $bookings_placeholder_tip;
        ?>
</em>
    				</td></tr>
    				<?php 
        em_options_input_text(esc_html__emp('Booking confirmed email subject', 'dbem'), 'dbem_multiple_bookings_email_confirmed_subject', $email_subject_tip);
        em_options_textarea(esc_html__emp('Booking confirmed email', 'dbem'), 'dbem_multiple_bookings_email_confirmed_body', '');
        ?>
    				<tr class="em-subheader"><td colspan='2'>
    					<h5><?php 
        esc_html_e_emp('Pending booking email', 'dbem');
        ?>
</h5>
    					<em><?php 
        esc_html_e_emp('This will be sent to the person when they first submit their booking. Not relevant if bookings don\'t require approval.', 'dbem') . $bookings_placeholder_tip;
        ?>
</em>
    				</td></tr>
    				<?php 
        em_options_input_text(esc_html__emp('Booking pending email subject', 'dbem'), 'dbem_multiple_bookings_email_pending_subject', $email_subject_tip);
        em_options_textarea(esc_html__emp('Booking pending email', 'dbem'), 'dbem_multiple_bookings_email_pending_body', '');
        ?>
    				<tr class="em-subheader"><td colspan='2'>
    					<h5><?php 
        esc_html_e_emp('Rejected booking email', 'dbem');
//.........这里部分代码省略.........
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:101,代码来源:multiple-bookings-admin.php


示例13: em_ms_admin_options_page


//.........这里部分代码省略.........
	<div class="wrap">		
		<div id='icon-options-general' class='icon32'><br /></div>
		<h2 class="nav-tab-wrapper">
			<a href="#" id="em-menu-general" class="nav-tab nav-tab-active"><?php 
    _e('General', 'dbem');
    ?>
</a>
		</h2>
		<h3 id="em-options-title"><?php 
    _e('Event Manager Options', 'dbem');
    ?>
</h3>
		<?php 
    echo $EM_Notices;
    ?>
		<form id="em-options-form" method="post" action="">
			<div class="metabox-holder">         
			<!-- // TODO Move style in css -->
			<div class='postbox-container' style='width: 99.5%'>
			<div id="">
		  
		  	<div class="em-menu-general em-menu-group">
				<div  class="postbox " >
					<div class="handlediv" title="<?php 
    __('Click to toggle', 'dbem');
    ?>
"><br /></div><h3><span><?php 
    _e('Multi Site Options', 'dbem');
    ?>
</span></h3>
					<div class="inside">
			            <table class="form-table">
							<?php 
    em_options_radio_binary(__('Enable global tables mode?', 'dbem'), 'dbem_ms_global_table', __('Setting this to yes will make all events save in the main site event tables (EM must also be activated). This allows you to share events across different blogs, such as showing events in your network whilst allowing users to display and manage their events within their own blog. Bear in mind that activating this will mean old events created on the sub-blogs will not be accessible anymore, and if you switch back they will be but new events created during global events mode will only remain on the main site.', 'dbem'));
    ?>
							<tbody class="em-global-options">
							<?php 
    global $current_site;
    $global_slug_tip = __('%s belonging to other sub-sites will have an extra slug preppended to it so that your main site can differentiate between its own %s and those belonging to other sites in your network.');
    $global_link_tip = __('When displaying global %s on the main site you have the option of users viewing the %s details on the main site or being directed to the sub-site.', 'dbem');
    $global_post_tip = __('Displays %s from all sites on the network by default. You can still restrict %s by blog using shortcodes and template tags coupled with the <code>blog</code> attribute. Requires global tables to be turned on.', 'dbem');
    $global_link_tip2 = __('You <strong>must</strong> have assigned a %s page in your <a href="%s">main blog settings</a> for this to work.');
    $options_page_link = get_admin_url($current_site->blog_id, 'edit.php?post_type=event&page=events-manager-options#pages');
    ?>
<tr><td><strong><?php 
    echo sprintf(__('%s Options', 'dbem'), __('Event', 'dbem'));
    ?>
</strong></td></tr><?php 
    em_options_radio_binary(sprintf(__('Display global events on main blog?', 'dbem'), __('events', 'dbem')), 'dbem_ms_global_events', sprintf($global_post_tip, __('events', 'dbem'), __('events', 'dbem')));
    em_options_radio_binary(sprintf(__('Link sub-site %s directly to sub-site?', 'dbem'), __('events', 'dbem')), 'dbem_ms_global_events_links', sprintf($global_link_tip, __('events', 'dbem'), __('event', 'dbem')) . sprintf($global_link_tip2, __('event', 'dbem'), $options_page_link));
    em_options_input_text(sprintf(__('Global %s slug', 'dbem'), __('event', 'dbem')), 'dbem_ms_events_slug', sprintf($global_slug_tip, __('Events', 'dbem'), __('events', 'dbem')) . __('Example:', 'dbem') . '<code>http://yoursite.com/events/<strong>event</strong>/subsite-event-slug/', EM_EVENT_SLUG);
    ?>
<tr><td><strong><?php 
    echo sprintf(__('%s Options', 'dbem'), __('Location', 'dbem'));
    ?>
</strong></td></tr><?php 
    em_options_radio_binary(sprintf(__('Locations on main blog?', 'dbem'), __('locations', 'dbem')), 'dbem_ms_mainblog_locations', __('If you would prefer all your locations to belong to your main blog, users in sub-sites will still be able to create locations, but the actual locations are created and reside in the main blog.', 'dbem'));
    ?>
							</tbody>
							<tbody class="em-global-options em-global-locations">
							<?php 
    em_options_radio_binary(sprintf(__('Display global %s on main blog?', 'dbem'), __('locations', 'dbem')), 'dbem_ms_global_locations', sprintf($global_post_tip, __('locations', 'dbem'), __('locations', 'dbem')));
    em_options_radio_binary(sprintf(__('Link sub-site %s directly to sub-site?', 'dbem'), __('locations', 'dbem')), 'dbem_ms_global_locations_links', sprintf($global_link_tip, __('locations', 'dbem'), __('location', 'dbem')) . sprintf($global_link_tip2, __('location', 'dbem'), $options_page_link));
    em_options_input_text(sprintf(__('Global %s slug', 'dbem'), __('event', 'dbem')), 'dbem_ms_locations_slug', sprintf($global_slug_tip, __('Locations', 'dbem'), __('locations', 'dbem')) . __('Example:', 'dbem') . '<code>http://yoursite.com/locations/<strong>location</strong>/subsite-location-slug/', EM_LOCATION_SLUG);
    ?>
							</tbody>
开发者ID:adisonc,项目名称:MaineLearning,代码行数:67,代码来源:em-ms-options.php


示例14: custom_email_options

    /**
     * Generates meta box for settings page 
     */
    public static function custom_email_options()
    {
        global $save_button;
        ?>
		<div  class="postbox " id="em-opt-custom-emails" >
		<div class="handlediv" title="<?php 
        esc_attr_e_emp('Click to toggle', 'dbem');
        ?>
"><br /></div><h3><?php 
        _e('Custom Booking Email Templates', 'em-pro');
        ?>
 <em>(Beta)</em></h3>
		<div class="inside">
			<table class='form-table'>
				<tr class="em-boxheader"><td colspan='2'>
					<p><?php 
        _e('You can customize the email templates sent when users make a booking for one of your events.', 'em-pro');
        ?>
</p>
				</td></tr>
				<?php 
        em_options_radio_binary(sprintf(_x('Enable %s?', 'Enable a feature in settings page', 'em-pro'), __('Custom Booking Email Templates', 'em-pro')), 'dbem_custom_emails', '');
        ?>
				<tbody class="dbem-js-custom-emails">
					<tr class="em-header"><td colspan="2"><h4><?php 
        _e('Event Emails', 'em-pro');
        ?>
</h4></td></tr>
					<?php 
        em_options_radio_binary(__('Allow custom emails for events?', 'em-pro'), 'dbem_custom_emails_events', __('Allow custom booking email templates to be configured for individual events.', 'em-pro') . ' ' . __('Users with the %s user capability will be able to do this when adding/editing events.', 'em-pro'));
        em_options_radio_binary(__('Allow custom admin email addresses for events?', 'em-pro'), 'dbem_custom_emails_events_admins', __('Allow adding custom email addresses to be addded to individual events.', 'em-pro') . ' ' . __('Users with the %s user capability will be able to do this when adding/editing events.', 'em-pro'));
        ?>
					<tr class="em-header"><td colspan="2"><h4><?php 
        _e('Gateway Emails', 'em-pro');
        ?>
</h4></td></tr>
					<?php 
        em_options_radio_binary(__('Allow custom emails for gateways?', 'em-pro'), 'dbem_custom_emails_gateways', sprintf(__('Allow administrators of this blog to configure custom booking email templates inside each %s settings page.', 'em-pro'), '<a href="' . admin_url('edit.php?post_type=event&page=events-manager-gateways') . '">' . __('Payment Gateways', 'em-pro') . '</a>'));
        em_options_radio_binary(__('Allow custom admin email addresses for gateways?', 'em-pro'), 'dbem_custom_emails_gateways_admins', sprintf(__('Allow administrators of this blog to add additional admin email addresses for gateways inside each %s settings page.', 'em-pro'), '<a href="' . admin_url('edit.php?post_type=event&page=events-manager-gateways') . '">' . __('Payment Gateways', 'em-pro') . '</a>'));
        ?>
				</tbody>
				<?php 
        echo $save_button;
        ?>
			</table>
		</div> <!-- . inside -->
		</div> <!-- .postbox -->
		<script type="text/javascript">
			jQuery(document).ready(function($){
				$('input:radio[name="dbem_custom_emails"]').change(function(){
					if( $('input:radio[name="dbem_custom_emails"]:checked').val() == 1 ){
						$('tbody.dbem-js-custom-emails').show();
					}else{
						$('tbody.dbem-js-custom-emails').hide();					
					}
				}).first().trigger('change');
				$('input:radio[name="dbem_custom_emails_events"], input:radio[name="dbem_custom_emails_gateways"]').change(function(){
					if( $('input:radio[name="'+this.name+'"]:checked').val() == 1 ){
						$('tr#'+this.name+'_admins_row').show();
					}else{
						$('tr#'+this.name+'_admins_row').hide();
					}
				}).filter('input:radio:checked').trigger('change');
			});
		</script>
	    <?php 
    }
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:70,代码来源:emails-admin.php


示例15: _e

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP em_options_select函数代码示例发布时间:2022-05-15
下一篇:
PHP em_options_input_text函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap