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


PHP siteorigin_widget_get_plugin_dir_url函数代码示例

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


在下文中一共展示了siteorigin_widget_get_plugin_dir_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sow_slider_register_scripts

/**
 * Register all the slider scripts
 */
function sow_slider_register_scripts()
{
    wp_register_style('sow-slider-slider', siteorigin_widget_get_plugin_dir_url('slider') . 'css/slider.css', array(), SOW_BUNDLE_VERSION);
    wp_register_script('sow-slider-slider-cycle2', siteorigin_widget_get_plugin_dir_url('slider') . 'js/jquery.cycle.min.js', array('jquery'), SOW_BUNDLE_VERSION);
    wp_register_script('sow-slider-slider-cycle2-swipe', siteorigin_widget_get_plugin_dir_url('slider') . 'js/jquery.cycle.swipe.min.js', array('jquery'), SOW_BUNDLE_VERSION);
    wp_register_script('sow-slider-slider', siteorigin_widget_get_plugin_dir_url('slider') . 'js/slider.min.js', array('jquery'), SOW_BUNDLE_VERSION);
}
开发者ID:erkmen,项目名称:wpstartersetup,代码行数:10,代码来源:widget.php

示例2: enqueue_frontend_scripts

 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

示例3: enqueue_frontend_scripts

 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

示例4: enqueue_frontend_scripts

 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

示例5: enqueue_frontend_scripts

 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

示例6: initialize

 /**
  * Initialize the CTA widget
  */
 function initialize()
 {
     if (!class_exists('SiteOrigin_Widget_Button_Widget')) {
         include plugin_dir_path(__FILE__) . '../so-button-widget/so-button-widget.php';
         siteorigin_widget_register('button', realpath(plugin_dir_path(__FILE__) . '../so-button-widget/so-button-widget.php'));
     }
     $this->register_frontend_styles(array(array('sow-cta-main', siteorigin_widget_get_plugin_dir_url('cta') . 'css/style.css', array(), SOW_BUNDLE_VERSION)));
     $this->register_frontend_scripts(array(array('sow-cta-main', siteorigin_widget_get_plugin_dir_url('cta') . 'js/cta' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery'), SOW_BUNDLE_VERSION)));
 }
开发者ID:DonMehdi,项目名称:wordpress_website,代码行数:12,代码来源:so-cta-widget.php

示例7: enqueue_frontend_scripts

 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

示例8: enqueue_frontend_scripts

 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

示例9: initialize

 function initialize()
 {
     $frontend_scripts = array();
     $frontend_scripts[] = array('sow-slider-slider-cycle2', siteorigin_widget_get_plugin_dir_url('slider') . 'js/jquery.cycle' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery'), SOW_BUNDLE_VERSION);
     if (wp_is_mobile()) {
         $frontend_scripts[] = array('sow-slider-slider-cycle2-swipe', siteorigin_widget_get_plugin_dir_url('slider') . 'js/jquery.cycle.swipe' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery'), SOW_BUNDLE_VERSION);
     }
     $frontend_scripts[] = array('sow-slider-slider', siteorigin_widget_get_plugin_dir_url('slider') . 'js/slider' . SOW_BUNDLE_JS_SUFFIX . '.js', array('jquery'), SOW_BUNDLE_VERSION);
     $this->register_frontend_scripts($frontend_scripts);
     $this->register_frontend_styles(array(array('sow-slider-slider', siteorigin_widget_get_plugin_dir_url('slider') . 'css/slider.css', array(), SOW_BUNDLE_VERSION)));
 }
开发者ID:DonMehdi,项目名称:wordpress_website,代码行数:11,代码来源:so-slider-widget.php

示例10: enqueue_frontend_scripts

 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

示例11: enqueue_frontend_scripts

 function enqueue_frontend_scripts()
 {
     wp_enqueue_style('sow-cta-main', siteorigin_widget_get_plugin_dir_url('cta') . 'css/style.css', array(), SOW_BUNDLE_VERSION);
     wp_enqueue_script('sow-cta-main', siteorigin_widget_get_plugin_dir_url('cta') . 'js/cta.min.js', array('jquery'), SOW_BUNDLE_VERSION);
 }
开发者ID:erkmen,项目名称:wpstartersetup,代码行数:5,代码来源:cta-widget.php

示例12: enqueue_frontend_scripts

 function enqueue_frontend_scripts()
 {
     $js_suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
     wp_enqueue_style('sow-cta-main', siteorigin_widget_get_plugin_dir_url('cta') . 'css/style.css', array(), SOW_BUNDLE_VERSION);
     wp_enqueue_script('sow-cta-main', siteorigin_widget_get_plugin_dir_url('cta') . 'js/cta' . $js_suffix . '.js', array('jquery'), SOW_BUNDLE_VERSION);
 }
开发者ID:MiquelAdell,项目名称:miqueladell,代码行数:6,代码来源:so-cta-widget.php

示例13: initialize

 /**
  * Enqueue the slider scripts
  */
 function initialize()
 {
     $this->register_frontend_styles(array(array('bxslider-css', siteorigin_widget_get_plugin_dir_url('lrw-slider') . 'assets/css/jquery.bxslider.css', array(), LRW_BUNDLE_VERSION)));
     $this->register_frontend_scripts(array(array('bxslider-js', siteorigin_widget_get_plugin_dir_url('lrw-slider') . 'assets/js/jquery.bxslider.min.js', array('jquery'), LRW_BUNDLE_VERSION), array('slider-init', siteorigin_widget_get_plugin_dir_url('lrw-slider') . 'assets/js/slider-init.js', array('jquery'), LRW_BUNDLE_VERSION)));
 }
开发者ID:luizrw,项目名称:lrw-so-widgets-bundle,代码行数:8,代码来源:lrw-slider.php

示例14: enqueue_frontend_scripts

 function enqueue_frontend_scripts()
 {
     wp_enqueue_style('siteorigin-widgets', siteorigin_widget_get_plugin_dir_url('features') . 'css/style.css', array(), SOW_BUNDLE_VERSION);
 }
开发者ID:erkmen,项目名称:wpstartersetup,代码行数:4,代码来源:features-widget.php

示例15: initialize

 function initialize()
 {
     $this->register_frontend_scripts(array(array('countup', siteorigin_widget_get_plugin_dir_url('lrw-counter') . 'assets/js/countUp.min.js', array('jquery'), LRW_BUNDLE_VERSION), array('countinit', siteorigin_widget_get_plugin_dir_url('lrw-counter') . 'assets/js/jquery.countinit.js', array('jquery'), LRW_BUNDLE_VERSION)));
 }
开发者ID:luizrw,项目名称:lrw-so-widgets-bundle,代码行数:4,代码来源:lrw-counter.php


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