本文整理汇总了PHP中BYT_Theme_Utils::dateformat_PHP_to_jQueryUI方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::dateformat_PHP_to_jQueryUI方法的具体用法?PHP BYT_Theme_Utils::dateformat_PHP_to_jQueryUI怎么用?PHP BYT_Theme_Utils::dateformat_PHP_to_jQueryUI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::dateformat_PHP_to_jQueryUI方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cruise_schedule_admin_styles
function cruise_schedule_admin_styles()
{
if (isset($_POST['start_date'])) {
$start_date = wp_kses($_POST['start_date'], '');
}
echo '<style type="text/css">';
echo ' .wp-list-table .column-Id { width: 100px; }';
echo ' .wp-list-table .column-CruiseName { width: 250px; }';
echo ' .wp-list-table .column-CabinType { width: 200px; }';
echo ' .wp-list-table .column-CruiseType { width: 150px; }';
echo ' .wp-list-table .column-StartDate { width: 150px; }';
echo ' .wp-list-table .column-EndDate { width: 150px; }';
echo ' .wp-list-table .column-DurationDays { width: 100px; }';
echo ' .wp-list-table .column-Action { width: 150px; }';
echo ' table.calendar { width:60%; }
table.calendar th { text-align:center; }
table.calendar td { border:none;text-align:center;height:30px;line-height:30px;vertical-align:middle; }
table.calendar td.sel a { color:#fff;padding:10px;background:#b1b1b1; }
table.calendar td.cur a { color:#fff;padding:10px;background:#ededed; }';
echo "</style>";
echo '<script>';
echo 'window.adminAjaxUrl = "' . admin_url('admin-ajax.php') . '";';
echo 'window.datepickerDateFormat = "' . BYT_Theme_Utils::dateformat_PHP_to_jQueryUI(get_option('date_format')) . '";';
echo 'window.datepickerAltFormat = "' . BOOKYOURTRAVEL_ALT_DATE_FORMAT . '";';
echo '</script>';
}
示例2: bookings_admin_styles
function bookings_admin_styles()
{
echo '<style type="text/css">';
echo '.wp-list-table .column-Id { width: 100px; }';
echo '.wp-list-table .column-TourName { width: 250px; }';
echo '.wp-list-table .column-TourDate { width: 150px; }';
echo '.wp-list-table .column-People { width: 100px; }';
echo '.wp-list-table .column-UserId { width: 50px; }';
echo '</style>';
echo '<script>';
echo 'window.adminAjaxUrl = "' . admin_url('admin-ajax.php') . '";';
echo 'window.datepickerDateFormat = "' . BYT_Theme_Utils::dateformat_PHP_to_jQueryUI(get_option('date_format')) . '";';
echo 'window.datepickerAltFormat = "' . BOOKYOURTRAVEL_ALT_DATE_FORMAT . '";';
echo '</script>';
}
示例3: wp_title
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php
wp_title();
?>
</title>
<link rel="shortcut icon" href="<?php
echo esc_url(BYT_Theme_Utils::get_file_uri('/images/favicon.ico'));
?>
" />
<link rel="pingback" href="<?php
echo esc_url(get_bloginfo('pingback_url'));
?>
" />
<script type="text/javascript">
window.datepickerDateFormat = "<?php
echo BYT_Theme_Utils::dateformat_PHP_to_jQueryUI(get_option('date_format'));
?>
";
window.datepickerAltFormat = "<?php
echo BOOKYOURTRAVEL_ALT_DATE_FORMAT;
?>
";
window.themePath = '<?php
echo esc_js(get_template_directory_uri());
?>
';
window.siteUrl = '<?php
echo esc_js($byt_theme_globals->get_site_url());
?>
';
window.wooCartPageUri = '<?php
示例4: vacancies_admin_styles
function vacancies_admin_styles()
{
echo '<style type="text/css">';
echo ' .wp-list-table .column-Id { width: 100px; }';
echo ' .wp-list-table .column-AccommodationName { width: 250px; }';
echo ' .wp-list-table .column-RoomType { width: 150px; }';
echo ' .wp-list-table .column-StartDate { width: 150px; }';
echo ' .wp-list-table .column-EndDate { width: 150px; }';
echo ' .wp-list-table .column-Rooms { width: 150px; }';
echo ' table.calendar { width:60%; }
table.calendar th { text-align:center; }
table.calendar td { border:none;text-align:center;height:30px;line-height:30px;vertical-align:middle; }
table.calendar td.sel a { color:#fff;padding:10px;background:#b1b1b1; }
table.calendar td.cur a { color:#fff;padding:10px;background:#ededed; }';
echo "</style>";
echo '<script>';
echo 'window.adminAjaxUrl = "' . admin_url('admin-ajax.php') . '";';
echo 'window.datepickerDateFormat = "' . BYT_Theme_Utils::dateformat_PHP_to_jQueryUI(get_option('date_format')) . '";';
echo 'window.datepickerAltFormat = "' . BOOKYOURTRAVEL_ALT_DATE_FORMAT . '";';
echo '</script>';
}