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


PHP TravelHelper::getDateFormatJs方法代码示例

本文整理汇总了PHP中TravelHelper::getDateFormatJs方法的典型用法代码示例。如果您正苦于以下问题:PHP TravelHelper::getDateFormatJs方法的具体用法?PHP TravelHelper::getDateFormatJs怎么用?PHP TravelHelper::getDateFormatJs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TravelHelper的用法示例。


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

示例1: _e

		      					
		      				</div>
      					</div>
      					<div class="col-xs-12 col-sm-6">
      						<div class="form-group">
		      					<label for="check_out" class="head_bol"><?php 
_e('Check Out', ST_TEXTDOMAIN);
?>
 <span class="text-small text-danger">(*)</span>:</label>
		      					<?php 
$check_out = isset($_POST['check_out']) ? $_POST['check_out'] : '';
?>
		      					<div class="input-group">
			      					<span class="input-group-addon" id="basic-checkout"><i class="fa fa-calendar"></i></span>
								  	<input readonly aria-describedby="basic-checkout" data-date-format="<?php 
echo TravelHelper::getDateFormatJs();
?>
" autocomplete="off" type="text" name="check_out" id="check_out" value="<?php 
echo $check_out;
?>
" class="form-control">
							  	</div>
		      				</div>
      					</div>
      				</div>
      				<div class="form-group">
      					<input type="hidden" name="action" value="booking_form_submit">
      					<input type="hidden" name="booking_by" value="partner">
      					<input type="hidden" name="sc" value="<?php 
echo $_GET['sc'];
?>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:30,代码来源:user-add-hotel-booking.php

示例2: st_add_scripts


//.........这里部分代码省略.........
     }
     if (is_singular('st_hotel')) {
         wp_enqueue_script('single-hotel-js', get_template_directory_uri() . '/js/init/single-hotel.js', array('jquery'), '1.1.0', true);
     }
     if (is_singular('st_tours')) {
         wp_enqueue_script('st-qtip', get_template_directory_uri() . '/js/jquery.qtip.js', array('jquery'), null, true);
         wp_enqueue_script('single-tour-js', get_template_directory_uri() . '/js/init/single-tour.js', array('jquery'), '1.1.0', true);
     }
     if (is_singular('st_holidays')) {
         wp_enqueue_script('st-qtip', get_template_directory_uri() . '/js/jquery.qtip.js', array('jquery'), null, true);
         wp_enqueue_script('single-holiday-js', get_template_directory_uri() . '/js/init/single-holiday.js', array('jquery'), '1.1.0', true);
     }
     if (is_singular('st_activity')) {
         wp_enqueue_script('single-activity-js', get_template_directory_uri() . '/js/init/single-activity.js', array('jquery'), '1.1.0', true);
     }
     /**
      *@since 1.1.3
      **/
     wp_enqueue_script('date.js', get_template_directory_uri() . '/js/date.js', array('jquery'), null, true);
     wp_enqueue_script('mousewheel.js', get_template_directory_uri() . '/js/jquery.mousewheel-3.0.6.pack.js', array('jquery'), null, true);
     wp_enqueue_script('fancybox.js', get_template_directory_uri() . '/js/jquery.fancybox.js', array('jquery'), null, true);
     wp_enqueue_script('fancybox-buttons.js', get_template_directory_uri() . '/js/helpers/jquery.fancybox-buttons.js', array('jquery'), null, true);
     wp_enqueue_script('fancybox-media.js', get_template_directory_uri() . '/js/helpers/jquery.fancybox-media.js', array('jquery'), null, true);
     wp_enqueue_script('fancybox-thumbs.js', get_template_directory_uri() . '/js/helpers/jquery.fancybox-thumbs.js', array('jquery'), null, true);
     wp_enqueue_script('custom.js', get_template_directory_uri() . '/js/custom.js', array('jquery'), null, true);
     wp_enqueue_script('custom2.js', get_template_directory_uri() . '/js/custom2.js', array('jquery'), null, true);
     wp_enqueue_script('user.js', get_template_directory_uri() . '/js/user.js', array('jquery'), null, true);
     wp_enqueue_script('social-login.js', get_template_directory_uri() . '/js/init/social-login.js', array('jquery'), null, true);
     wp_enqueue_script('sst-select.js', get_template_directory_uri() . '/js/init/st-select.js', array('jquery'), null, true);
     wp_enqueue_script('jquery-sticky', get_template_directory_uri() . '/js/sticky.js', array('jquery'), null, true);
     if (is_page_template('template-checkout.php')) {
         wp_enqueue_script('checkout-js', get_template_directory_uri() . '/js/init/template-checkout.js', array('jquery'), null, true);
     }
     wp_localize_script('jquery', 'st_checkout_text', array('without_pp' => __('Submit Request', ST_TEXTDOMAIN), 'with_pp' => __('Booking Now', ST_TEXTDOMAIN), 'validate_form' => __('Please fill all required fields', ST_TEXTDOMAIN), 'error_accept_term' => __('Please accept our terms and conditions', ST_TEXTDOMAIN), 'adult_price' => __('Adult price', ST_TEXTDOMAIN), 'child_price' => __("Child price", ST_TEXTDOMAIN), 'infant_price' => __("Infant price", ST_TEXTDOMAIN), 'adult' => __("Adult", ST_TEXTDOMAIN), 'child' => __("Child", ST_TEXTDOMAIN), 'infant' => __("Infant", ST_TEXTDOMAIN), 'price' => __("Price", ST_TEXTDOMAIN), 'origin_price' => __("Origin Price", ST_TEXTDOMAIN)));
     wp_localize_script('jquery', 'st_params', array('theme_url' => get_template_directory_uri(), 'site_url' => site_url(), 'ajax_url' => admin_url('admin-ajax.php'), 'loading_url' => admin_url('/images/wpspin_light.gif'), 'st_search_nonce' => wp_create_nonce("st_search_security"), 'facebook_enable' => st()->get_option('social_fb_login', 'on'), 'facbook_app_id' => st()->get_option('social_fb_app_id'), 'booking_currency_precision' => TravelHelper::get_current_currency('booking_currency_precision'), 'thousand_separator' => TravelHelper::get_current_currency('thousand_separator'), 'decimal_separator' => TravelHelper::get_current_currency('decimal_separator'), 'currency_symbol' => TravelHelper::get_current_currency('symbol'), 'currency_position' => TravelHelper::get_current_currency('booking_currency_pos'), 'currency_rtl_support' => TravelHelper::get_current_currency('currency_rtl_support'), 'free_text' => __('Free', ST_TEXTDOMAIN), 'date_format' => TravelHelper::getDateFormatJs(), 'time_format' => st()->get_option('time_format', '12h'), 'text_loading' => __("Loading...", ST_TEXTDOMAIN), 'mk_my_location' => get_template_directory_uri() . '/img/my_location.png', 'locale' => $locale, 'header_bgr' => st()->get_option('header_background', ''), 'text_refresh' => __("Refresh", ST_TEXTDOMAIN)));
     wp_localize_script('jquery', 'st_list_map_params', array('mk_my_location' => get_template_directory_uri() . '/img/my_location.png', 'text_my_location' => __("3000 m radius", ST_TEXTDOMAIN), 'text_no_result' => __("No Result", ST_TEXTDOMAIN)));
     wp_localize_script('jquery', 'st_config_partner', array('text_er_image_format' => false));
     if (st()->get_option('social_fb_login', 'on')) {
         //wp_enqueue_script('st-facebook',get_template_directory_uri().'/js/init/facebook.js',null,true);
     }
     //Allow turn on nicescroll
     if (st()->get_option('gen_enable_smscroll', 'off') == 'on') {
         wp_enqueue_script('nicescroll.js', get_template_directory_uri() . '/js/nicescroll.js', array('jquery'), null, true);
     }
     wp_enqueue_style('bootstrap.css', get_template_directory_uri() . '/css/bootstrap.css');
     wp_enqueue_style('animate.css', get_template_directory_uri() . '/css/animate.css');
     wp_enqueue_style('fontawesome', get_template_directory_uri() . '/css/font-awesome.css');
     if (st_is_https()) {
         wp_enqueue_style('roboto-font', 'https://fonts.googleapis.com/css?family=Roboto:500,700,400,300,100');
     } else {
         wp_enqueue_style('roboto-font', 'http://fonts.googleapis.com/css?family=Roboto:500,700,400,300,100');
     }
     if (is_page_template('template-user.php')) {
         wp_enqueue_style('jquery.jqplot.min.css', get_template_directory_uri() . '/js/jqplot/js/jquery.jqplot.min.css');
         wp_enqueue_style('shCoreDefault.min.css', get_template_directory_uri() . '/js/jqplot/syntaxhighlighter/styles/shCoreDefault.min.css');
         wp_enqueue_style('shThemejqPlot.min.css', get_template_directory_uri() . '/js/jqplot/syntaxhighlighter/styles/shThemejqPlot.min.css');
         wp_enqueue_script('jquery.jqplot.min.js', get_template_directory_uri() . '/js/jqplot/js/jquery.jqplot.js', array('jquery'), null, true);
         wp_enqueue_script('shCore.min.js', get_template_directory_uri() . '/js/jqplot/syntaxhighlighter/scripts/shCore.min.js', array('jquery'), null, true);
         wp_enqueue_script('shBrushJScript.min.js', get_template_directory_uri() . '/js/jqplot/syntaxhighlighter/scripts/shBrushJScript.min.js', array('jquery'), null, true);
         wp_enqueue_script('shBrushXml.min.js', get_template_directory_uri() . '/js/jqplot/syntaxhighlighter/scripts/shBrushXml.min.js', array('jquery'), null, true);
         wp_enqueue_script('jqplot.barRenderer.min.js', get_template_directory_uri() . '/js/jqplot/plugins/jqplot.barRenderer.min.js', array('jquery'), null, true);
         wp_enqueue_script('jqplot.categoryAxisRenderer.min.js', get_template_directory_uri() . '/js/jqplot/plugins/jqplot.categoryAxisRenderer.js', array('jquery'), null, true);
         wp_enqueue_script('jqplot.pointLabels.min.js', get_template_directory_uri() . '/js/jqplot/plugins/jqplot.pointLabels.min.js', array('jquery'), null, true);
         wp_enqueue_script('jqplot.cursor.min', get_template_directory_uri() . '/js/jqplot/js/jqplot.cursor.min.js', array('jquery'), null, true);
         wp_enqueue_script('Chart.min.js', get_template_directory_uri() . '/inc/plugins/chart-master/Chart.js', array('jquery'), null, true);
     }
     wp_enqueue_script('jquery.scrollTo.min.js', get_template_directory_uri() . '/js/jquery.scrollTo.min.js', array('jquery'), null, true);
     wp_enqueue_style('icomoon.css', get_template_directory_uri() . '/css/icomoon.css');
     wp_enqueue_style('weather-icons.css', get_template_directory_uri() . '/css/weather-icons.min.css');
     wp_enqueue_style('styles.css', get_template_directory_uri() . '/css/styles.css');
     wp_enqueue_style('mystyles.css', get_template_directory_uri() . '/css/mystyles.css');
     wp_enqueue_style('tooltip-classic.css', get_template_directory_uri() . '/css/tooltip-classic.css');
     wp_enqueue_style('chosen-css', get_template_directory_uri() . '/js/chosen/chosen.min.css');
     wp_enqueue_style('default-style', get_stylesheet_uri());
     wp_enqueue_style('fancybox.css', get_template_directory_uri() . '/css/jquery.fancybox.css');
     wp_enqueue_style('fancybox-buttons.css', get_template_directory_uri() . '/js/helpers/jquery.fancybox-buttons.css');
     wp_enqueue_style('fancybox-thumbs.css', get_template_directory_uri() . '/js/helpers/jquery.fancybox-thumbs.css');
     wp_enqueue_style('custom.css', get_template_directory_uri() . '/css/custom.css');
     wp_enqueue_style('custom2css', get_template_directory_uri() . '/css/custom2.css');
     wp_enqueue_style('user.css', get_template_directory_uri() . '/css/user.css');
     wp_enqueue_style('custom-responsive', get_template_directory_uri() . '/css/custom-responsive.css');
     wp_enqueue_style('st-select.css', get_template_directory_uri() . '/css/st-select.css');
     // from 1.1.9 2nd menu
     wp_enqueue_style('menu_style2.css', get_template_directory_uri() . '/css/menu_style2.css');
     wp_enqueue_script('testimonial', get_template_directory_uri() . '/js/testimonial.js', array('jquery'), null, true);
     wp_enqueue_script('hover_effect_fix', get_template_directory_uri() . '/js/hover_effect.js', array('jquery'), null, true);
     wp_enqueue_style('hover_effect_demo', get_template_directory_uri() . '/css/hover_effect/demo.css');
     wp_enqueue_style('hover_effect_normal', get_template_directory_uri() . '/css/hover_effect/normalize.css');
     wp_enqueue_style('hover_effect_set1', get_template_directory_uri() . '/css/hover_effect/set1.css');
     wp_enqueue_style('hover_effect_set2', get_template_directory_uri() . '/css/hover_effect/set2.css');
     if (st()->get_option('right_to_left') == 'on') {
         wp_enqueue_style('rtl.css', get_template_directory_uri() . '/rtl.css');
     }
     $list_icon = get_option('st_list_fonticon_', array());
     if (is_array($list_icon) && count($list_icon)) {
         foreach ($list_icon as $item => $val) {
             wp_enqueue_style($item, $val['link_file_css']);
         }
     }
 }
开发者ID:DaddyFool,项目名称:travelTest,代码行数:101,代码来源:st-hook-functions.php


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