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


PHP Tribe__Events__Template_Factory::add_vendor_script方法代碼示例

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


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

示例1: handle

 public function handle()
 {
     $handle = 'jquery-ui-datepicker';
     wp_enqueue_script($handle);
     wp_enqueue_style($handle);
     Tribe__Events__Template_Factory::add_vendor_script($handle);
 }
開發者ID:duongnguyen92,項目名稱:tvd12v2,代碼行數:7,代碼來源:Datepicker.php

示例2: 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

示例3: handle

 public function handle()
 {
     $path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'jquery-resize/jquery.ba-resize.js', true);
     $deps = array_merge($this->deps, array('jquery'));
     $handle = $this->prefix . '-jquery-resize';
     wp_enqueue_script($handle, $path, $deps, '1.1', false);
     Tribe__Events__Template_Factory::add_vendor_script($handle);
 }
開發者ID:partisan-collective,項目名稱:partisan,代碼行數:8,代碼來源:Jquery_Resize.php

示例4: handle

 public function handle()
 {
     $css_path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'select2/select2.css', true);
     $path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'select2/select2.js', true);
     wp_enqueue_style($this->prefix . '-select2-css', $css_path);
     $script_handle = $this->prefix . '-select2';
     wp_enqueue_script($script_handle, $path, 'jquery', '3.2');
     Tribe__Events__Template_Factory::add_vendor_script($script_handle);
 }
開發者ID:duongnguyen92,項目名稱:tvd12v2,代碼行數:9,代碼來源:Select2.php

示例5: handle

 public function handle()
 {
     $deps = array_merge($this->deps, array('jquery'));
     $css_path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'chosen/public/chosen.css', true);
     $path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'chosen/public/chosen.jquery.js', true);
     wp_enqueue_style($this->prefix . '-chosen-style', $css_path);
     $handle = $this->prefix . '-chosen-jquery';
     wp_enqueue_script($handle, $path, $deps, '0.9.5', false);
     Tribe__Events__Template_Factory::add_vendor_script($handle);
 }
開發者ID:duongnguyen92,項目名稱:tvd12v2,代碼行數:10,代碼來源:Chosen.php

示例6: handle

 public function handle()
 {
     $css_path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'bootstrap-datepicker/css/datepicker.css', true);
     $path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'bootstrap-datepicker/js/bootstrap-datepicker.min.js', true);
     wp_enqueue_style($this->prefix . '-bootstrap-datepicker-css', $css_path);
     $handle = $this->prefix . '-bootstrap-datepicker';
     wp_enqueue_script($handle, $path, 'jquery', '3.2');
     Tribe__Events__Template_Factory::add_vendor_script($handle);
     $localized_datepicker_array = array('days' => array_merge($this->tec->daysOfWeek, array($this->tec->daysOfWeek[0])), 'daysShort' => array_merge($this->tec->daysOfWeekShort, array($this->tec->daysOfWeekShort[0])), 'daysMin' => array_merge($this->tec->daysOfWeekMin, array($this->tec->daysOfWeekMin[0])), 'months' => array_values($this->tec->monthsFull), 'monthsShort' => array_values($this->tec->monthsShort), 'clear' => __('Clear', 'the-events-calendar'), 'today' => __('Today', 'the-events-calendar'));
     wp_localize_script($handle, 'tribe_bootstrap_datepicker_strings', array('dates' => $localized_datepicker_array));
 }
開發者ID:partisan-collective,項目名稱:partisan,代碼行數:11,代碼來源:Bootstrap_Datepicker.php

示例7: handle

 public function handle()
 {
     $css_path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'select2/select2.css', true);
     $path = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'select2/select2.js', true);
     wp_enqueue_style($this->prefix . '-select2-css', $css_path);
     // we know of other plugins loading a version of select2 compatible with our needs
     // let's not queue the script twice.
     if (!$this->has_script_alias('select2')) {
         $script_handle = $this->prefix . '-select2';
         wp_enqueue_script($script_handle, $path, 'jquery', '3.2');
         Tribe__Events__Template_Factory::add_vendor_script($script_handle);
     }
 }
開發者ID:uwmadisoncals,項目名稱:Cluster-Plugins,代碼行數:13,代碼來源:Select2.php

示例8: handle

 public function handle()
 {
     wp_enqueue_script('jquery-ui-dialog');
     Tribe__Events__Template_Factory::add_vendor_script('jquery-ui-dialog');
 }
開發者ID:partisan-collective,項目名稱:partisan,代碼行數:5,代碼來源:Dialog.php


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