當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tribe__Events__Template_Factory::get_placeholder_handle方法代碼示例

本文整理匯總了PHP中Tribe__Events__Template_Factory::get_placeholder_handle方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tribe__Events__Template_Factory::get_placeholder_handle方法的具體用法?PHP Tribe__Events__Template_Factory::get_placeholder_handle怎麽用?PHP Tribe__Events__Template_Factory::get_placeholder_handle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tribe__Events__Template_Factory的用法示例。


在下文中一共展示了Tribe__Events__Template_Factory::get_placeholder_handle方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: handle

 public function handle()
 {
     $deps = array_merge($this->deps, array('jquery'));
     $path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'jquery-placeholder/jquery.placeholder.js', true);
     $placeholder_handle = Tribe__Events__Template_Factory::get_placeholder_handle();
     wp_enqueue_script($placeholder_handle, $path, $deps, '2.0.7', false);
     Tribe__Events__Template_Factory::add_vendor_script($placeholder_handle);
 }
開發者ID:duongnguyen92,項目名稱:tvd12v2,代碼行數:8,代碼來源:Jquery_Placeholder.php

示例2: handle

 public function handle()
 {
     $http = is_ssl() ? 'https' : 'http';
     $url = apply_filters('tribe_events_pro_google_maps_api', $http . '://maps.google.com/maps/api/js');
     wp_register_script('tribe-gmaps', $url, array('tribe-events-pro'));
     $path = Tribe__Events__Template_Factory::getMinFile(tribe_events_pro_resource_url('tribe-events-ajax-maps.js'), true);
     wp_register_script('tribe-events-pro-geoloc', $path, array('tribe-gmaps', Tribe__Events__Template_Factory::get_placeholder_handle()), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION));
     wp_enqueue_script('tribe-events-pro-geoloc');
     $geoloc = Tribe__Events__Pro__Geo_Loc::instance();
     $data = array('ajaxurl' => admin_url('admin-ajax.php', $http), 'nonce' => wp_create_nonce('tribe_geosearch'), 'map_view' => 'map' == Tribe__Events__Main::instance()->displaying ? true : false);
     wp_localize_script('tribe-events-pro-geoloc', 'GeoLoc', $data);
 }
開發者ID:TakenCdosG,項目名稱:chefs,代碼行數:12,代碼來源:Ajax_Maps.php

示例3: handle

 public function handle()
 {
     $deps = array_merge($this->deps, array('jquery', $this->prefix . '-calendar-script', $this->prefix . '-bootstrap-datepicker', $this->prefix . '-jquery-resize', Tribe__Events__Template_Factory::get_placeholder_handle()));
     $path = Tribe__Events__Template_Factory::getMinFile(tribe_events_resource_url('tribe-events-bar.js'), true);
     wp_enqueue_script($this->prefix . '-bar', $path, $deps, $this->filter_js_version());
 }
開發者ID:duongnguyen92,項目名稱:tvd12v2,代碼行數:6,代碼來源:Tribe_Events_Bar.php


注:本文中的Tribe__Events__Template_Factory::get_placeholder_handle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。