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"); }
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(); } }
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"); }
public function pe_theme_thread_custom_meta_js() { PeThemeAsset::addScript("js/thread-homepage-meta.js", array('jquery'), "pe_theme_thread_homepage_meta"); $screen = get_current_screen(); if (is_admin() && ('page' === $screen->post_type || 'post' === $screen->post_type)) { wp_enqueue_script("pe_theme_thread_homepage_meta"); } }
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"); }
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"); }
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"); }
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"); }
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()); }
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"); }
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"); }
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(); } }
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"); }
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"); }
protected function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.galleryPost.js", array('pe_theme_metabox'), "pe_theme_metabox_galleryPost"); }
protected function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.slider.js", array('jquery'), "pe_theme_metabox_slider"); }
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 static function addScript() { PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.background.js", array('jquery'), "pe_theme_metabox_background"); }
protected function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.conditional.js", array('jquery', 'json2'), "pe_theme_metabox_conditional"); }
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.shortcode.properties.js", array(), "pe_theme_shortcode_properties"); wp_enqueue_script("pe_theme_shortcode_properties"); }
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"); }
public function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.importDemo.js", array("jquery-ui-progressbar"), "pe_theme_field_importDemo"); wp_enqueue_script("pe_theme_field_importDemo"); }
protected function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.gallery.js", array('jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-sortable', 'jquery-ui-dialog', 'wpdialogs', 'wpdialogs-popup', 'jquery-ui-progressbar', 'pe_theme_metabox'), "pe_theme_metabox_gallery"); }
public function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.fonts.js", array("jquery"), "pe_theme_field_fonts"); wp_enqueue_script("pe_theme_field_fonts"); }
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"); }
public function pe_theme_asset_script_pe_theme_init_deps_filter($deps) { PeThemeAsset::addScript("framework/js/pe/jquery.pixelentity.woocommerce.js", array("jquery"), "pe_theme_woocommerce"); $deps[] = "pe_theme_woocommerce"; return $deps; }
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"); }
public function registerAssets() { parent::registerAssets(); PeThemeAsset::addScript("framework/js/admin/jquery.theme.metabox.video.js", array('pe_theme_metabox'), "pe_theme_metabox_video"); wp_enqueue_script("pe_theme_metabox_video"); }