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


PHP SiteOrigin_Widget::enqueue_frontend_scripts方法代碼示例

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


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

示例1: array

 function enqueue_frontend_scripts($instance)
 {
     wp_enqueue_script('iw-folio-js', siteorigin_widget_get_plugin_dir_url('ink-folio') . 'scripts/folio.js', array('iw-mixitup-js'), INKED_SO_WIDGETS);
     wp_enqueue_script('ink-folio-init', siteorigin_widget_get_plugin_dir_url('ink-folio') . 'scripts/equalizer.init.js', array('iw-equalizer-js'), INKED_SO_WIDGETS, true);
     wp_enqueue_style('iw-folio', siteorigin_widget_get_plugin_dir_url('ink-folio') . 'styles/folio.css', array(), INKED_SO_WIDGETS);
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:ErhanLammar,項目名稱:all-construct.be,代碼行數:7,代碼來源:ink-ptfl-widget.php

示例2: array

 function enqueue_frontend_scripts($instance)
 {
     wp_register_script('iw-alert-js', siteorigin_widget_get_plugin_dir_url('ink-alert') . 'scripts/alert.js', array('iw-foundation-js'), INKED_SO_WIDGETS, true);
     wp_enqueue_script('iw-alert-init', siteorigin_widget_get_plugin_dir_url('ink-alert') . 'scripts/alert.init.js', array('iw-alert-js'), INKED_SO_WIDGETS, true);
     wp_enqueue_style('iw-alert', siteorigin_widget_get_plugin_dir_url('ink-alert') . 'styles/alert.css', array(), INKED_SO_WIDGETS);
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:ErhanLammar,項目名稱:all-construct.be,代碼行數:7,代碼來源:ink-alrt-widget.php

示例3: array

 function enqueue_frontend_scripts($instance)
 {
     if (!empty($instance['trigger'])) {
         wp_enqueue_script('waypoints', plugin_dir_url(LRW_BASE_FILE) . 'inc/assets/js/waypoints.min.js', array('jquery'), LRW_BUNDLE_VERSION);
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:luizrw,項目名稱:lrw-so-widgets-bundle,代碼行數:7,代碼來源:lrw-progress-bar-vert.php

示例4: array

 function enqueue_frontend_scripts($instance)
 {
     parent::enqueue_frontend_scripts($instance);
     wp_enqueue_style('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/css/magnific-popup.css');
     wp_enqueue_script('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/jquery.magnific-popup.min.js', array('jquery'), '1.0.0', true);
     wp_enqueue_script('erm-front', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/erm-front-scripts.js', array('jquery'), '', true);
 }
開發者ID:tutv95,項目名稱:restaurant-wp,代碼行數:7,代碼來源:tabs-menu-widget.php

示例5: array

 function enqueue_frontend_scripts($instance)
 {
     wp_register_script('iw-accordion-js', siteorigin_widget_get_plugin_dir_url('ink-accordion') . 'scripts/accordion.js', array('iw-foundation-js'), INKED_SO_WIDGETS, true);
     wp_enqueue_script('iw-filter-init', siteorigin_widget_get_plugin_dir_url('ink-filt-ardn') . 'scripts/filter.init.js', array('iw-accordion-js', 'iw-mixitup-js'), INKED_SO_WIDGETS, true);
     wp_enqueue_style('iw-filt-ardn', siteorigin_widget_get_plugin_dir_url('ink-filt-ardn') . 'styles/accordion.css', array(), INKED_SO_WIDGETS);
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:ErhanLammar,項目名稱:all-construct.be,代碼行數:7,代碼來源:ink-fard-widget.php

示例6: array

 function enqueue_frontend_scripts($instance)
 {
     if (isset($instance['visibility']) && $instance['visibility'] == 'yes') {
         wp_enqueue_script('emptyspace', siteorigin_widget_get_plugin_dir_url('lrw-empty-space') . 'assets/js/jquery.emptyspace.js', array('jquery'), LRW_BUNDLE_VERSION);
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:luizrw,項目名稱:lrw-so-widgets-bundle,代碼行數:7,代碼來源:lrw-empty-space.php

示例7: array

 function enqueue_frontend_scripts($instance)
 {
     parent::enqueue_frontend_scripts($instance);
     wp_enqueue_style('Google-MrDeHaviland-Font', '//fonts.googleapis.com/css?family=Mr+De+Haviland');
     wp_enqueue_script('ResWP-Moment', RESWP_THEME_URL . 'inc/siteorigin-widgets/open-table/js/moment.js', array('jquery'), '2.10.6', true);
     wp_enqueue_script('ResWP-Pikaday', RESWP_THEME_URL . 'inc/siteorigin-widgets/open-table/js/pikaday.js', array('ResWP-Moment'), '1.4.0', true);
 }
開發者ID:tutv95,項目名稱:restaurant-wp,代碼行數:7,代碼來源:open-table.php

示例8: array

 function enqueue_frontend_scripts($instance)
 {
     parent::enqueue_frontend_scripts($instance);
     wp_enqueue_style('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/css/magnific-popup.css');
     wp_enqueue_script('magnific-popup', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/jquery.magnific-popup.min.js', array('jquery'), '', true);
     wp_enqueue_script('erm-front', RESWP_THEME_URL . 'inc/siteorigin-widgets/assets/js/erm-front-scripts.js', array('jquery'), '', true);
     wp_enqueue_script('jquery-mixitup', RESWP_THEME_URL . 'inc/siteorigin-widgets/filter-restaurant-menu/js/jquery.mixitup.min.js', array('jquery'), '2.1.11', true);
     wp_enqueue_script('restaurant_wp_mixitup', RESWP_THEME_URL . 'inc/siteorigin-widgets/filter-restaurant-menu/js/restaurant_wp_mixitup.js', array('jquery-mixitup'), RESWP_THEME_VERSION, true);
 }
開發者ID:tutv95,項目名稱:restaurant-wp,代碼行數:9,代碼來源:filter-restaurant-menu.php

示例9: array

 function enqueue_frontend_scripts($instance)
 {
     wp_enqueue_style('lsow-button', siteorigin_widget_get_plugin_dir_url('lsow-button') . 'css/style.css', array(), LSOW_VERSION);
     $custom_css = $this->custom_css($instance);
     if (!empty($custom_css)) {
         wp_add_inline_style('lsow-button', $custom_css);
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:studiopengpeng,項目名稱:ASCOMETAL,代碼行數:9,代碼來源:lsow-button-widget.php

示例10: array

 function enqueue_frontend_scripts($instance)
 {
     if ($instance['audio']['type'] == 'hosted') {
         wp_enqueue_style('iw-audio', siteorigin_widget_get_plugin_dir_url('ink-audio') . 'styles/audio.css', array(), INKED_SO_WIDGETS);
     } elseif ($instance['audio']['type'] == 'oembed') {
         wp_enqueue_style('iw-audio-oembed', siteorigin_widget_get_plugin_dir_url('ink-audio') . 'styles/audio-oembed.css', array(), INKED_SO_WIDGETS);
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:ErhanLammar,項目名稱:all-construct.be,代碼行數:9,代碼來源:ink-auds-widget.php

示例11: array

 function enqueue_frontend_scripts($instance)
 {
     if (!empty($instance['trigger'])) {
         wp_enqueue_script('waypoints', plugin_dir_url(LRW_BASE_FILE) . 'inc/assets/js/waypoints.min.js', array('jquery'), LRW_BUNDLE_VERSION);
     }
     if (isset($instance['settings']['e_easing']) && $instance['settings']['e_easing'] == 'yes') {
         wp_enqueue_script('easing', plugin_dir_url(LRW_BASE_FILE) . 'inc/assets/js/jquery.easing.1.3.js', array('jquery'), LRW_BUNDLE_VERSION);
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:luizrw,項目名稱:lrw-so-widgets-bundle,代碼行數:10,代碼來源:lrw-pie-chart.php

示例12: array

 function enqueue_frontend_scripts($instance)
 {
     $video_host = !empty($instance['video']['external_video']) ? $this->get_host_from_url($instance['video']['external_video']) : '';
     if ($this->is_skinnable_video_host($video_host)) {
         if ($video_host == 'vimeo' && !wp_script_is('froogaloop')) {
             wp_enqueue_script('froogaloop');
         }
         if (!wp_style_is('wp-mediaelement')) {
             wp_enqueue_style('wp-mediaelement');
         }
         if (!wp_script_is('so-video-widget')) {
             wp_enqueue_script('so-video-widget', siteorigin_widget_get_plugin_dir_url('video') . 'js/so-video-widget' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery', 'mediaelement'), SOW_BUNDLE_VERSION);
         }
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:DonMehdi,項目名稱:wordpress_website,代碼行數:16,代碼來源:so-video-widget.php

示例13: array

 function enqueue_frontend_scripts($instance)
 {
     $video_host = $instance['host_type'];
     if ($video_host == 'external') {
         $video_host = !empty($instance['video']['external_video']) ? $this->get_host_from_url($instance['video']['external_video']) : '';
     }
     if ($this->is_skinnable_video_host($video_host)) {
         if ($video_host == 'vimeo' && !wp_script_is('froogaloop')) {
             wp_enqueue_script('froogaloop');
         }
         if (!wp_style_is('sow-html-player-responsive')) {
             wp_enqueue_style('html-player-responsive', plugin_dir_url(__FILE__) . 'css/html-player-responsive.css', array(), SOW_BUNDLE_VERSION);
         }
         if (!wp_style_is('wp-mediaelement')) {
             wp_enqueue_style('wp-mediaelement');
         }
         if (!wp_script_is('so-video-widget')) {
             wp_enqueue_script('so-video-widget', plugin_dir_url(__FILE__) . 'js/so-video-widget' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery', 'mediaelement'), SOW_BUNDLE_VERSION);
         }
     }
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:jesusmarket,項目名稱:jesusmarket,代碼行數:22,代碼來源:video.php

示例14: array

 function enqueue_frontend_scripts($instance)
 {
     wp_enqueue_style('lsow-frontend-styles', LSOW_PLUGIN_URL . 'assets/css/lsow-frontend.css', array(), LSOW_VERSION);
     wp_enqueue_style('lsow-services', siteorigin_widget_get_plugin_dir_url('lsow-services') . 'css/style.css', array(), LSOW_VERSION);
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:studiopengpeng,項目名稱:ASCOMETAL,代碼行數:6,代碼來源:lsow-services-widget.php

示例15: array

 function enqueue_frontend_scripts($instance)
 {
     wp_enqueue_style('iw-testimonial', siteorigin_widget_get_plugin_dir_url('ink-testimonial') . 'styles/testimonial.css', array(), INKED_SO_WIDGETS);
     parent::enqueue_frontend_scripts($instance);
 }
開發者ID:ErhanLammar,項目名稱:all-construct.be,代碼行數:5,代碼來源:ink-tsml-widget.php


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