예제 #1
0
 public function registerAssets()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.mediaTags.js", array('jquery', 'jquery-ui-core', 'pe_theme_utils'), "pe_theme_mediaTags");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.media.filter.js", array('jquery', 'pe_theme_utils'), "pe_theme_media_filter");
     //PeThemeAsset::addScript("framework/js/admin/jquery.theme.quickImage.js",array('utils','jquery','jquery-ui-core','pe_theme_utils'),"pe_theme_quickImage");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.gallery.js", array("pe_theme_utils", "json2"), "pe_theme_gallery");
 }
예제 #2
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.color.js", array('wp-color-picker', 'json2'), "pe_theme_field_color");
     wp_enqueue_style('wp-color-picker');
     wp_enqueue_script("pe_theme_field_color");
 }
예제 #3
0
 public function registerAssets()
 {
     add_filter('pe_theme_js_init_file', array(&$this, 'pe_theme_js_init_file_filter'));
     add_filter('pe_theme_js_init_deps', array(&$this, 'pe_theme_js_init_deps_filter'));
     add_filter('pe_theme_minified_js_deps', array(&$this, 'pe_theme_minified_js_deps_filter'));
     parent::registerAssets();
     if ($this->minifyCSS) {
         $deps = array('pe_theme_compressed');
     } else {
         // theme styles
         $this->addStyle('css/foundation.css', array(), 'pe_theme_thread-foundation');
         $this->addStyle('css/flexslider.css', array(), 'pe_theme_thread-flexslider');
         $this->addStyle('css/icons.css', array(), 'pe_theme_thread-icons');
         $this->addStyle('css/social-icons.css', array(), 'pe_theme_thread-social_icons');
         $this->addStyle('css/style.css', array(), 'pe_theme_thread-style');
         $this->addStyle('css/responsive.css', array(), 'pe_theme_thread-responsive');
         $this->addStyle('css/blog.css', array(), 'pe_theme_thread-blog');
         $this->addStyle('css/custom.css', array(), 'pe_theme_thread-custom');
         $deps = array('pe_theme_thread-foundation', 'pe_theme_thread-flexslider', 'pe_theme_thread-icons', 'pe_theme_thread-social_icons', 'pe_theme_thread-style', 'pe_theme_thread-responsive', 'pe_theme_thread-blog', 'pe_theme_thread-custom');
     }
     $this->addStyle('style.css', $deps, 'pe_theme_init');
     $this->addScript('theme/js/pe/pixelentity.controller.js', array('pe_theme_utils_browser', 'pe_theme_selectivizr', 'pe_theme_lazyload', 'pe_theme_widgets_contact', 'pe_theme_thread-modernizr', 'pe_theme_thread-foundation', 'pe_theme_thread-flexslider', 'pe_theme_thread-fitvids', 'pe_theme_thread-smooth_scroll', 'pe_theme_thread-tweenmax', 'pe_theme_thread-ScrollToPlugin', 'pe_theme_thread-scripts', 'pe_theme_thread-custom'), 'pe_theme_controller');
     $this->addScript('js/vendor/modernizr.js', array(), 'pe_theme_thread-modernizr', false);
     $this->addScript('js/foundation.min.js', array(), 'pe_theme_thread-foundation');
     $this->addScript('js/jquery.flexslider-min.js', array(), 'pe_theme_thread-flexslider');
     $this->addScript('js/vendor/jquery.fitvids.js', array(), 'pe_theme_thread-fitvids');
     $this->addScript('js/smooth-scroll.js', array(), 'pe_theme_thread-smooth_scroll');
     $this->addScript('js/TweenMax.min.js', array(), 'pe_theme_thread-tweenmax');
     $this->addScript('js/ScrollToPlugin.min.js', array(), 'pe_theme_thread-ScrollToPlugin');
     $this->addScript('js/scripts.js', array(), 'pe_theme_thread-scripts');
     $this->addScript('js/custom.js', array(), 'pe_theme_thread-custom');
 }
예제 #4
0
 public function registerAssets()
 {
     parent::registerAssets();
     // prototype.js alters JSON2 behaviour, it shouldn't be loaded in our admin page anyway but
     // if other plugins are forcing it in all wordpress admin pages, we get rid of it here.
     wp_deregister_script("prototype");
     if (version_compare($GLOBALS["wp_version"], '3.5-RC1', '<')) {
         // for wordpress < 3.5, the bundled jquery ui is not able to handle correctly the nested sortables
         // so we load a newer version in noconflict mode and only use for our layout builder
         PeThemeAsset::addScript("framework/js/admin/3.5/jquery.js", array(), "pe_theme_35_jquery");
         PeThemeAsset::addScript("framework/js/admin/3.5/jquery-ui-1.9.2.custom.min.js", array("pe_theme_35_jquery"), "pe_theme_35_ui");
         PeThemeAsset::addScript("framework/js/admin/3.5/noconflict.js", array("pe_theme_35_ui"), "pe_theme_35");
         wp_enqueue_script("pe_theme_35");
     }
     PeThemeAsset::addStyle("framework/css/jquery.theme.field.layout.css", array("pe_theme_admin"), "pe_theme_field_layout");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.layout.js", array("pe_theme_utils", "jquery-ui-sortable", "pe_theme_tooltip", "json2"), "pe_theme_field_layout");
     wp_enqueue_style("pe_theme_field_layout");
     wp_enqueue_script("pe_theme_field_layout");
     $views = array();
     // modules
     foreach (peTheme()->view->views() as $view) {
         if ($view->capability("layout")) {
             $view->registerAssets();
             $views[] = $view;
         }
     }
     foreach ($views as $view) {
         $view->requireAssets();
     }
 }
예제 #5
0
 public function pe_theme_visia_custom_meta_js()
 {
     PeThemeAsset::addScript("js/visia-homepage-meta.js", array('jquery'), "pe_theme_visia_homepage_meta");
     $screen = get_current_screen();
     if (is_admin() && 'page' === $screen->post_type) {
         wp_enqueue_script("pe_theme_visia_homepage_meta");
     }
 }
예제 #6
0
 public function pe_theme_font_awesome_icons()
 {
     PeThemeAsset::addStyle("css/icons.css", array(), "pe_theme_outlined_iconset_css");
     $screen = get_current_screen();
     if (is_admin() && ('page' === $screen->post_type || 'post' === $screen->post_type || 'project' === $screen->post_type)) {
         wp_enqueue_style("pe_theme_outlined_iconset_css");
     }
 }
예제 #7
0
 protected function registerAssets()
 {
     parent::registerAssets();
     $deps = array('jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-sortable', 'jquery-ui-dialog', 'wpdialogs', 'wpdialogs-popup', 'jquery-ui-progressbar', 'pe_theme_metabox');
     if (!wp_script_is('wpdialogs-popup', 'registered')) {
         $deps = array_merge(array_diff($deps, array('wpdialogs-popup')));
     }
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.gallery.js", $deps, "pe_theme_metabox_gallery");
 }
예제 #8
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.sidebars.js", array("pe_theme_utils", "jquery-ui-sortable", "json2"), "pe_theme_field_sidebars");
     wp_enqueue_script("pe_theme_field_sidebars");
     // prototype.js alters JSON2 behaviour, it shouldn't be loaded in our admin page anyway but
     // if other plugins are forcing it in all wordpress admin pages, we get rid of it here.
     wp_deregister_script("prototype");
 }
 public function registerAssets()
 {
     parent::registerAssets();
     peTheme()->asset->registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.thumbnails.js", array("jquery", "pe_theme_transform", "pe_theme_utils_geom"), "pe_theme_field_thumbnails");
     PeThemeAsset::addStyle("framework/css/jquery.theme.field.thumbnails.css", null, "pe_theme_field_thumbnails");
     wp_enqueue_script("pe_theme_field_thumbnails");
     wp_enqueue_style("pe_theme_field_thumbnails");
 }
예제 #10
0
 public function registerAssets()
 {
     PeThemeAsset::addScript("framework/js/pe/jquery.pixelentity.utils.geom.js", array("jquery"), "pe_theme_utils_geom");
     PeThemeAsset::addScript("framework/js/pe/jquery.pixelentity.transform.js", array("jquery"), "pe_theme_transform");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.slide.js", array("pe_theme_utils", "pe_theme_utils_geom", "pe_theme_transform", "editor", "json2"), "pe_theme_slide");
     // prototype.js alters JSON2 behaviour, it shouldn't be loaded in our admin page anyway but
     // if other plugins are forcing it in all wordpress admin pages, we get rid of it here.
     wp_deregister_script("prototype");
 }
예제 #11
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.icon.js", array("jquery-ui-dialog", "pe_theme_utils"), "pe_theme_field_icon");
     PeThemeAsset::addStyle("css/entypo-icon-font.css", array("wp-jquery-ui-dialog"), "pe_theme_admin_icon_font");
     wp_localize_script("pe_theme_field_icon", "pe_theme_field_icon", array("icons" => PeGlobal::$const->data->icons));
     wp_enqueue_style("pe_theme_admin_icon_font");
     wp_enqueue_script("pe_theme_field_icon");
 }
예제 #12
0
 public function requireAssets()
 {
     static $registered = false;
     if (!$registered) {
         PeThemeAsset::addScript("framework/js/admin/layout/jquery.theme.layout.module.standard.js", array("jquery"), "pe_theme_layout_module_standard");
         $registered = true;
     }
     $type = str_replace("PeThemeViewLayoutModule", "", get_class($this));
     wp_localize_script('pe_theme_layout_module_standard', "pe_theme_layout_module_{$type}", $this->config());
 }
예제 #13
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeTheme()->editor->instantiate();
     $params = array("type" => "RadioUI", "options" => array("one" => 1, "two" => 2, "three" => 3));
     $test = new PeThemeFormElementRadioUI("", "", $params);
     $test = $test->get_render();
     PeThemeAsset::addScript("framework/js/admin/layout/jquery.theme.layout.module.text.js", array("jquery"), "pe_theme_layout_module_text");
     wp_enqueue_script("pe_theme_layout_module_text");
 }
예제 #14
0
 public function registerAssets()
 {
     parent::registerAssets();
     wp_enqueue_script("pe_theme_field_select");
     if (function_exists("wp_enqueue_media")) {
         PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.upload.v35.js", array(), "pe_theme_field_upload");
         wp_enqueue_media();
     } else {
         PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.upload.js", array(), "pe_theme_field_upload");
         wp_enqueue_script("thickbox");
         wp_enqueue_script("media-upload");
         wp_enqueue_style("thickbox");
     }
     wp_enqueue_script("pe_theme_field_upload");
 }
예제 #15
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.items.js", array("pe_theme_utils", "jquery-ui-sortable", "json2"), "pe_theme_field_items");
     wp_enqueue_script("pe_theme_field_items");
     // prototype.js alters JSON2 behaviour, it shouldn't be loaded in our admin page anyway but
     // if other plugins are forcing it in all wordpress admin pages, we get rid of it here.
     wp_deregister_script("prototype");
     if (!self::$icon) {
         // we need icon field assets to be enqueued, this is done only once
         // by storing the object into a static class variable
         self::$icon = new PeThemeFormElementIcon(null, null, $null);
         self::$icon->registerAssets();
     }
 }
예제 #16
0
 public function registerAssets()
 {
     add_filter("pe_theme_js_init_file", array(&$this, "pe_theme_js_init_file_filter"));
     add_filter("pe_theme_js_init_deps", array(&$this, "pe_theme_js_init_deps_filter"));
     add_filter("pe_theme_minified_js_deps", array(&$this, "pe_theme_minified_js_deps_filter"));
     parent::registerAssets();
     if ($this->minifyCSS) {
         $deps = array("pe_theme_compressed");
     } else {
         // theme styles
         $this->addStyle("css/loader.css", array(), "pe_theme_visia-loader");
         $this->addStyle("css/reset.css", array(), "pe_theme_visia-reset");
         $this->addStyle("css/grid.css", array(), "pe_theme_visia-grid");
         $this->addStyle("css/icons.css", array(), "pe_theme_visia-icons");
         $this->addStyle("css/style.css", array(), "pe_theme_visia-style");
         $this->addStyle("css/shortcodes.css", array(), "pe_theme_visia-shortcodes");
         $this->addStyle("css/ruby-red.css", array(), "pe_theme_visia-color");
         $this->addStyle("css/animations.css", array(), "pe_theme_visia-animations");
         $this->addStyle("css/ie.css", array(), "pe_theme_visia-ie");
         $this->addStyle("css/custom.css", array(), "pe_theme_visia-custom");
         $deps = array("pe_theme_visia-loader", "pe_theme_visia-reset", "pe_theme_visia-grid", "pe_theme_visia-icons", "pe_theme_visia-style", "pe_theme_visia-shortcodes", "pe_theme_visia-color", "pe_theme_visia-animations", "pe_theme_visia-ie", "pe_theme_flare", "pe_theme_visia-custom");
     }
     $this->addStyle("style.css", $deps, "pe_theme_init");
     $this->addScript("theme/js/pe/pixelentity.controller.js", array("pe_theme_mobile", "pe_theme_selectivizr", "pe_theme_lazyload", "pe_theme_flare", "pe_theme_visia-smoothscroll", "pe_theme_visia-vegas", "pe_theme_visia-imagesloaded", "pe_theme_visia-mixitup", "pe_theme_visia-countto", "pe_theme_visia-jqueryui", "pe_theme_visia-video", "pe_theme_visia-bigvideo", "pe_theme_visia-waypoints", "pe_theme_visia-parallax", "pe_theme_widgets_contact", "pe_theme_visia-navigation", "pe_theme_visia-jquery-easing", "pe_theme_visia-jquery-fittext", "pe_theme_visia-jquery-localscroll", "pe_theme_visia-jquery-scrollto", "pe_theme_visia-jquery-appear", "pe_theme_visia-jquery-waitforimages", "pe_theme_visia-jquery-bxslider", "pe_theme_visia-jquery-fitvids", "pe_theme_visia-shortcodes", "pe_theme_visia-main", "pe_theme_visia-custom"), "pe_theme_controller");
     $this->addScript("js/smoothscroll.js", array(), "pe_theme_visia-smoothscroll");
     $this->addScript("js/jquery.imagesloaded.js", array(), "pe_theme_visia-imagesloaded");
     $this->addScript("js/jquery.mixitup.js", array(), "pe_theme_visia-mixitup");
     $this->addScript("js/jquery.countto.js", array(), "pe_theme_visia-countto");
     $this->addScript("js/jqueryui.js", array(), "pe_theme_visia-jqueryui");
     $this->addScript("js/video.js", array(), "pe_theme_visia-video");
     $this->addScript("js/bigvideo.js", array(), "pe_theme_visia-bigvideo");
     $this->addScript("js/vegas.js", array(), "pe_theme_visia-vegas");
     $this->addScript("js/waypoints.js", array(), "pe_theme_visia-waypoints");
     $this->addScript("js/parallax.js", array(), "pe_theme_visia-parallax");
     $this->addScript("js/navigation.js", array(), "pe_theme_visia-navigation");
     $this->addScript("js/jquery.easing.js", array(), "pe_theme_visia-jquery-easing");
     $this->addScript("js/jquery.fittext.js", array(), "pe_theme_visia-jquery-fittext");
     $this->addScript("js/jquery.localscroll.js", array(), "pe_theme_visia-jquery-localscroll");
     $this->addScript("js/jquery.scrollto.js", array(), "pe_theme_visia-jquery-scrollto");
     $this->addScript("js/jquery.appear.js", array(), "pe_theme_visia-jquery-appear");
     $this->addScript("js/jquery.waitforimages.js", array(), "pe_theme_visia-jquery-waitforimages");
     $this->addScript("js/jquery.bxslider.js", array(), "pe_theme_visia-jquery-bxslider");
     $this->addScript("js/jquery.fitvids.js", array(), "pe_theme_visia-jquery-fitvids");
     $this->addScript("js/shortcodes.js", array(), "pe_theme_visia-shortcodes");
     $this->addScript("js/main.js", array(), "pe_theme_visia-main");
     $this->addScript("js/custom.js", array(), "pe_theme_visia-custom");
 }
예제 #17
0
 public function registerAssets()
 {
     add_filter("pe_theme_js_init_file", array(&$this, "pe_theme_js_init_file_filter"));
     add_filter("pe_theme_js_init_deps", array(&$this, "pe_theme_js_init_deps_filter"));
     add_filter("pe_theme_minified_js_deps", array(&$this, "pe_theme_minified_js_deps_filter"));
     parent::registerAssets();
     if ($this->minifyCSS) {
         $deps = array("pe_theme_compressed");
     } else {
         // theme styles
         $this->addStyle("css/slider_captions.css", array("pe_theme_animate_css"), "pe_theme_windfall_slider_captions");
         $this->addStyle("css/slider_captions_style.css", array(), "pe_theme_windfall_slider_captions_style");
         $this->addStyle("css/slider_ui.css", array(), "pe_theme_windfall_slider_ui");
         $this->addStyle("css/style.css", array(), "pe_theme_windfall_style");
         $this->addStyle("css/style_responsive.css", array(), "pe_theme_windfall_style_responsive");
         $this->addStyle("css/entypo-icon-font.css", array(), "pe_theme_windfall_icon_font");
         $this->addStyle("css/menu.css", array(), "pe_theme_windfall_menu");
         $this->addStyle("css/menu_style.css", array(), "pe_theme_windfall_menu_style");
         $deps = array("pe_theme_reset", "pe_theme_bootstrap", "pe_theme_bootstrap_responsive", "pe_theme_windfall_icon_font", "pe_theme_video", "pe_theme_background", "pe_theme_isotope", "pe_theme_carousel", "pe_theme_ajaxportfolio", "pe_theme_volo", "pe_theme_vario", "pe_theme_flare", "pe_theme_windfall_slider_ui", "pe_theme_windfall_slider_captions", "pe_theme_windfall_slider_captions_style", "pe_theme_windfall_menu", "pe_theme_windfall_menu_style", "pe_theme_windfall_style", "pe_theme_windfall_style_responsive");
     }
     $this->addStyle("style.css", $deps, "pe_theme_init");
     $this->addScript("theme/js/pe/pixelentity.controller.js", array("pe_theme_mobile", "pe_theme_menu", "pe_theme_smoothscroll", "pe_theme_waypoints", "pe_theme_parallax", "pe_theme_lazyload", "pe_theme_loadmore", "pe_theme_flare", "pe_theme_vario", "pe_theme_vista", "pe_theme_widgets_bslinks", "pe_theme_widgets_contact", "pe_theme_widgets_bootstrap", "pe_theme_widgets_isotope", "pe_theme_widgets_backgroundSlider", "pe_theme_widgets_volo", "pe_theme_widgets_carousel", "pe_theme_widgets_newsletter", "pe_theme_widgets_gmap", "pe_theme_widgets_dynamicBackground", "pe_theme_widgets_social_facebook", "pe_theme_widgets_social_twitter", "pe_theme_widgets_social_pinterest", "pe_theme_widgets_social_google", "pe_theme_widgets_ajaxportfolio"), "pe_theme_controller");
 }
예제 #18
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.shortcode.properties.js", array(), "pe_theme_shortcode_properties");
     wp_enqueue_script("pe_theme_shortcode_properties");
 }
예제 #19
0
 public function registerAssets()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.utils.js", array(), "pe_theme_utils");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.tooltip.js", array('jquery', 'jquery-ui-tooltip', 'pe_theme_utils'), "pe_theme_tooltip");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.admin.js", array('jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-sortable', 'pe_theme_tooltip', 'pe_theme_utils'), "pe_theme_admin");
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.edit.js", array(), "pe_theme_edit");
     PeThemeAsset::addStyle("framework/css/ui/jquery-ui-1.8.17.custom.css", NULL, "pe_theme_admin_ui");
     PeThemeAsset::addStyle("framework/css/customadminicons.css", array(), "pe_theme_admin_icons");
     PeThemeAsset::addStyle("framework/css/admin.css", array("pe_theme_admin_ui", "pe_theme_admin_icons"), "pe_theme_admin");
     //PeThemeAsset::addStyle("framework/css/admin.css",array("pe_theme_admin_icons"),"pe_theme_admin");
 }
예제 #20
0
 public function registerAssets()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.editor.js", array("jquery", "pe_theme_utils"), "pe_theme_editor");
     wp_enqueue_script("pe_theme_editor");
 }
예제 #21
0
 protected function registerAssets()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.js", array("pe_theme_utils", "jquery-ui-button", "pe_theme_tooltip"), "pe_theme_metabox");
 }
예제 #22
0
 protected function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.galleryPost.js", array('pe_theme_metabox'), "pe_theme_metabox_galleryPost");
 }
예제 #23
0
 public static function addScript()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.background.js", array('jquery'), "pe_theme_metabox_background");
 }
예제 #24
0
 protected function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.slider.js", array('jquery'), "pe_theme_metabox_slider");
 }
예제 #25
0
 public function admin_enqueue_scripts()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.menu.js", array("jquery", "pe_theme_tooltip"), "pe_theme_admin_menu");
     wp_enqueue_script("pe_theme_admin_menu");
 }
예제 #26
0
 public function registerAssets()
 {
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.view.js", array("jquery", "pe_theme_utils"), "pe_theme_view");
 }
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.selectSlider.js", array(), "pe_theme_field_selectSlider");
     wp_enqueue_script("pe_theme_field_selectSlider");
 }
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/layout/jquery.theme.layout.module.container.js", array("jquery", "pe_theme_layout_module_standard"), "pe_theme_layout_module_container");
 }
예제 #29
0
 protected function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.conditional.js", array('jquery', 'json2'), "pe_theme_metabox_conditional");
 }
예제 #30
0
 public function enqueue()
 {
     PeThemeAsset::addAsset("script", "framework/js/admin/jquery.theme.debug.js", array('jquery', 'pe_theme_utils'), "pe_theme_debug", true);
     wp_localize_script("pe_theme_debug", 'peThemeDebug', array("url" => admin_url("admin-ajax.php")));
     wp_enqueue_script("pe_theme_debug");
 }