当前位置: 首页>>代码示例>>PHP>>正文


PHP em_get_hour_format函数代码示例

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


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

示例1: esc_html

}
?>
><?php 
echo esc_html(sprintf(_x('%s the event starts', 'before or after', 'events-manager'), __('After', 'events-manager')));
?>
</option>
					</select>
				</div>
				<?php 
echo esc_html_x('at', 'time', 'events-manager');
?>
				<input id="end-time" class="em-time-input em-time-end" type="text" size="8" maxlength="8" name="em_tickets[<?php 
echo $col_count;
?>
][ticket_end_time]" value="<?php 
echo !empty($EM_Ticket->ticket_end) ? date(em_get_hour_format(), $EM_Ticket->end_timestamp) : '';
?>
" />
			</div>
		</div>
		<?php 
if (!get_option('dbem_bookings_tickets_single') || count($EM_Ticket->get_event()->get_tickets()->tickets) > 1) {
    ?>
		<div class="ticket-required">
			<label title="<?php 
    esc_attr_e('If checked every booking must select one or the minimum number of this ticket.', 'events-manager');
    ?>
"><?php 
    esc_html_e('Required?', 'events-manager');
    ?>
</label>
开发者ID:mjrobison,项目名称:FirstCareCPR,代码行数:31,代码来源:bookings-ticket-form.php

示例2: em_get_days_names

<?php

/* Used by the admin area to display recurring event time-related information - edit with caution */
global $EM_Event;
$days_names = em_get_days_names();
$hours_format = em_get_hour_format();
if (is_admin()) {
    ?>
<input type="hidden" name="_emnonce" value="<?php 
    echo wp_create_nonce('edit_event');
    ?>
" /><?php 
}
?>
<!-- START recurrence postbox -->
<div id="em-form-recurrence" class="event-form-recurrence event-form-when">
	<?php 
_e('This event repeats', 'dbem');
?>
 
		<select id="recurrence-frequency" name="recurrence_freq">
			<?php 
$freq_options = array("daily" => __('Daily', 'dbem'), "weekly" => __('Weekly', 'dbem'), "monthly" => __('Monthly', 'dbem'), 'yearly' => __('Yearly', 'dbem'));
em_option_items($freq_options, $EM_Event->recurrence_freq);
?>
		</select>
		<?php 
_e('every', 'dbem');
?>
		<input id="recurrence-interval" name='recurrence_interval' size='2' value='<?php 
echo $EM_Event->interval;
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:31,代码来源:recurring-when.php

示例3: sprintf

    if (!empty($EM_Event->recurrence_rsvp_days) && $EM_Event->recurrence_rsvp_days > 0) {
        echo 'selected="selected"';
    }
    ?>
><?php 
    echo sprintf(_x('%s the event starts', 'before or after', 'dbem'), __('After', 'dbem'));
    ?>
</option>
			</select>
			<?php 
    _e('at', 'dbem');
    ?>

		</span>
		<input type="text" name="event_rsvp_time" class="em-time-input" maxlength="8" size="8" value="<?php 
    echo date(em_get_hour_format(), $EM_Event->rsvp_end);
    ?>
" />
		<br />
		<em><?php 
    esc_html_e('This is the definite date after which bookings will be closed for this event, regardless of individual ticket settings above. Default value will be the event start date.', 'dbem');
    ?>
</em>
	</p>
	<?php 
}
?>

	</div>
	<?php 
if (!empty($delete_temp_ticket)) {
开发者ID:pcco,项目名称:portal-redesign,代码行数:31,代码来源:bookings.php


注:本文中的em_get_hour_format函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。