• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Tribe__Events__Template_Factory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


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


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


示例18: setup

 protected function setup()
 {
     Tribe__Events__Main::instance()->displaying = 'map';
     $this->shortcode->set_current_page();
     $this->shortcode->prepare_default();
     Tribe__Events__Pro__Main::instance()->enqueue_pro_scripts();
     Tribe__Events__Pro__Template_Factory::asset_package('events-pro-css');
     Tribe__Events__Template_Factory::asset_package('jquery-placeholder');
     Tribe__Events__Pro__Template_Factory::asset_package('ajax-maps');
     $this->shortcode->set_template_object(new Tribe__Events__Pro__Templates__Map($this->shortcode->get_query_args()));
 }
开发者ID:TakenCdosG,项目名称:chefs,代码行数:11,代码来源:Map.php


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


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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Trigger类代码示例发布时间:2022-05-23
下一篇:
PHP Tribe__Events__Main类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap