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


PHP Tribe__Events__Template_Factory类代码示例

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


在下文中一共展示了Tribe__Events__Template_Factory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: enqueue_month_view_scripts

 function enqueue_month_view_scripts()
 {
     if (is_front_page()) {
         Tribe__Events__Template_Factory::asset_package('ajax-calendar');
         Tribe__Events__Template_Factory::asset_package('events-css');
     }
 }
开发者ID:woodwardtw,项目名称:rvarts_,代码行数:7,代码来源:functions.php

示例3: load_assets

 public function load_assets($hook)
 {
     if ('widgets.php' !== $hook) {
         return;
     }
     Tribe__Events__Template_Factory::asset_package('select2');
     wp_enqueue_script('tribe-admin-widget-countdown', tribe_events_pro_resource_url('admin-widget-countdown.js'), array('jquery'), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION));
 }
开发者ID:TakenCdosG,项目名称:chefs,代码行数:8,代码来源:Countdown_Widget.php

示例4: setup

 protected function setup()
 {
     Tribe__Events__Main::instance()->displaying = 'month';
     $this->set_current_month();
     $this->shortcode->prepare_default();
     Tribe__Events__Template_Factory::asset_package('ajax-calendar');
     $this->shortcode->set_template_object(new Tribe__Events__Template__Month($this->shortcode->get_query_args()));
 }
开发者ID:TakenCdosG,项目名称:chefs,代码行数:8,代码来源:Month.php

示例5: load_scripts

 public function load_scripts($hook)
 {
     if ($hook != 'widgets.php') {
         return;
     }
     Tribe__Events__Template_Factory::asset_package('select2');
     wp_enqueue_script('calendar-widget-admin', tribe_events_pro_resource_url('calendar-widget-admin.js'), array(), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION));
 }
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:8,代码来源:Mini_Calendar_Widget.php

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

示例7: handle

 public function handle()
 {
     $ajax_data = array('ajaxurl' => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'), 'post_type' => Tribe__Events__Main::POSTTYPE);
     $path = Tribe__Events__Template_Factory::getMinFile(tribe_events_resource_url('tribe-events-ajax-day.js'), true);
     $handle = 'tribe-events-ajax-day';
     wp_enqueue_script($handle, $path, array('tribe-events-bar'), $this->filter_js_version(), true);
     wp_localize_script($handle, 'TribeCalendar', $ajax_data);
 }
开发者ID:partisan-collective,项目名称:partisan,代码行数:8,代码来源:Ajax_Dayview.php

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

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

示例10: handle

 public function handle()
 {
     $deps = array_merge($this->deps, array('jquery'), Tribe__Events__Template_Factory::get_vendor_scripts());
     $path = Tribe__Events__Template_Factory::getMinFile(tribe_events_resource_url('tribe-events.js'), true);
     $handle = $this->prefix . '-calendar-script';
     wp_enqueue_script($handle, $path, $deps, $this->filter_js_version());
     $js_config_array = array('permalink_settings' => get_option('permalink_structure'), 'events_post_type' => Tribe__Events__Main::POSTTYPE, 'events_base' => tribe_get_events_link());
     wp_localize_script($handle, 'tribe_js_config', $js_config_array);
 }
开发者ID:TMBR,项目名称:johnjohn,代码行数:9,代码来源:Calendar_Script.php

示例11: handle

 public function handle()
 {
     $ajax_data = array('ajaxurl' => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'), 'post_type' => Tribe__Events__Main::POSTTYPE);
     $path1 = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'nanoscroller/jquery.nanoscroller.js', true);
     wp_enqueue_script('tribe-events-pro-slimscroll', $path1, array('tribe-events-pro', 'jquery-ui-draggable'), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION), true);
     $path2 = Tribe__Events__Template_Factory::getMinFile(tribe_events_pro_resource_url('tribe-events-week.js'), true);
     wp_enqueue_script('tribe-events-pro-week', $path2, array('tribe-events-pro-slimscroll'), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION), true);
     wp_localize_script('tribe-events-pro-week', 'TribeWeek', $ajax_data);
 }
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:9,代码来源:Ajax_Weekview.php

示例12: handle

 public function handle()
 {
     $deps = array_merge($this->deps, array('jquery', $this->prefix . '-bootstrap-datepicker', $this->prefix . '-calendar-script'));
     $ajax_data = array("ajaxurl" => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'));
     $path = Tribe__Events__Template_Factory::getMinFile(tribe_events_resource_url('tribe-events-ajax-calendar.js'), true);
     $handle = 'tribe-events-calendar';
     wp_enqueue_script($handle, $path, $deps, $this->filter_js_version(), true);
     wp_localize_script($handle, 'TribeCalendar', $ajax_data);
 }
开发者ID:TMBR,项目名称:johnjohn,代码行数:9,代码来源:Ajax_Calendar.php

示例13: setup

 protected function setup()
 {
     Tribe__Events__Main::instance()->displaying = 'list';
     $this->shortcode->set_current_page();
     $this->shortcode->prepare_default();
     Tribe__Events__Template_Factory::asset_package('ajax-list');
     $this->template = new Tribe__Events__Template__List($this->shortcode->get_query_args());
     $this->shortcode->set_template_object($this->template);
 }
开发者ID:TakenCdosG,项目名称:chefs,代码行数:9,代码来源:List.php

示例14: handle

 public function handle()
 {
     $tribe_paged = !empty($_REQUEST['tribe_paged']) ? $_REQUEST['tribe_paged'] : 0;
     $ajax_data = array('ajaxurl' => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'), 'tribe_paged' => $tribe_paged);
     $path1 = Tribe__Events__Template_Factory::getMinFile($this->vendor_url . 'isotope/jquery.isotope.js', true);
     $path2 = Tribe__Events__Template_Factory::getMinFile(tribe_events_pro_resource_url('tribe-events-photo-view.js'), true);
     wp_enqueue_script('tribe-events-pro-isotope', $path1, array('tribe-events-pro'), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION), true);
     wp_enqueue_script('tribe-events-pro-photo', $path2, array('tribe-events-pro-isotope'), apply_filters('tribe_events_pro_js_version', Tribe__Events__Pro__Main::VERSION), true);
     wp_localize_script('tribe-events-pro-photo', 'TribePhoto', $ajax_data);
 }
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:10,代码来源:Ajax_Photoview.php

示例15: handle

 public function handle()
 {
     $deps = array_merge($this->deps, array('jquery', $this->prefix . '-calendar-script'));
     $tribe_paged = !empty($_REQUEST['tribe_paged']) ? $_REQUEST['tribe_paged'] : 0;
     $ajax_data = array('ajaxurl' => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'), 'tribe_paged' => $tribe_paged);
     $path = Tribe__Events__Template_Factory::getMinFile(tribe_events_resource_url('tribe-events-ajax-list.js'), true);
     $handle = 'tribe-events-list';
     wp_enqueue_script($handle, $path, $deps, $this->filter_js_version(), true);
     wp_localize_script($handle, 'TribeList', $ajax_data);
 }
开发者ID:duongnguyen92,项目名称:tvd12v2,代码行数:10,代码来源:Ajax_List.php


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