예제 #1
0
 /**
  * Enqueue required javascript libraries and css files.
  *
  * This method also setups reminder about license activation.
  *
  * @since  4.2
  * @access public
  */
 public function printScriptsMessages()
 {
     if (in_array(get_post_type(), vc_editor_post_types())) {
         vc_license()->setupReminder();
         wp_enqueue_style('wp-color-picker');
         wp_enqueue_script('wp-color-picker');
         wp_enqueue_style('farbtastic');
         wp_enqueue_style('ui-custom-theme');
         wp_enqueue_style('isotope-css');
         wp_enqueue_style('animate-css');
         wp_enqueue_style('js_composer');
         wp_enqueue_style('wpb_jscomposer_autosuggest');
         WPBakeryShortCode_Settings::enqueueCss();
         wp_enqueue_script('jquery-ui-tabs');
         wp_enqueue_script('jquery-ui-sortable');
         wp_enqueue_script('jquery-ui-droppable');
         wp_enqueue_script('jquery-ui-draggable');
         wp_enqueue_script('jquery-ui-accordion');
         wp_enqueue_script('jquery-ui-autocomplete');
         wp_enqueue_script('farbtastic');
         wp_enqueue_script('isotope');
         wp_enqueue_script('vc_bootstrap_js', vc_asset_url('lib/bootstrap3/dist/js/bootstrap.min.js'), array('jquery'), '3.0.2', true);
         wp_enqueue_script('wpb_scrollTo_js');
         wp_enqueue_script('wpb_php_js');
         wp_enqueue_script('wpb_js_composer_js_sortable');
         wp_enqueue_script('wpb_json-js');
         wp_enqueue_style('js_composer_settings', vc_asset_url('css/js_composer_settings.css'), false, WPB_VC_VERSION, false);
         wp_enqueue_script('ace-editor');
         wp_enqueue_script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
         // Google Web Font CDN
         wp_enqueue_script('wpb_js_composer_js_tools');
         wp_enqueue_script('wpb_js_composer_js_storage');
         wp_enqueue_script('wpb_js_composer_js_models');
         wp_enqueue_script('wpb_js_composer_js_view');
         wp_enqueue_script('wpb_js_composer_js_custom_views');
         /**
          * Enqueue deprecated
          */
         wp_enqueue_script('vc_js_composer_js_backend_deprecated', vc_asset_url('js/backend/deprecated.js'), array('wpb_js_composer_js_view'), WPB_VC_VERSION, true);
         wp_enqueue_script('wpb_js_composer_js_backbone');
         wp_enqueue_script('wpb_jscomposer_composer_js');
         wp_enqueue_script('wpb_jscomposer_shortcode_js');
         wp_enqueue_script('wpb_jscomposer_modal_js');
         wp_enqueue_script('wpb_jscomposer_templates_js');
         wp_enqueue_script('wpb_jscomposer_stage_js');
         wp_enqueue_script('wpb_jscomposer_layout_js');
         wp_enqueue_script('wpb_jscomposer_row_js');
         wp_enqueue_script('wpb_jscomposer_settings_js');
         wp_enqueue_script('wpb_jscomposer_media_editor_js');
         wp_enqueue_script('wpb_jscomposer_autosuggest_js');
         // }}
         wp_enqueue_script('wpb_js_composer_js');
         WPBakeryShortCode_Settings::enqueueJs();
     }
 }
예제 #2
0
파일: build.php 프로젝트: jjmas/jjmas.net
 public function editScreen_js()
 {
     if (in_array(get_post_type(), $this->composer->getPostTypes())) {
         wp_enqueue_style('wp-color-picker');
         wp_enqueue_script('wp-color-picker');
         wp_enqueue_style('farbtastic');
         wp_enqueue_style('ui-custom-theme');
         wp_enqueue_style('isotope-css');
         wp_enqueue_style('animate-css');
         wp_enqueue_style('js_composer');
         wp_enqueue_style('wpb_jscomposer_autosuggest');
         WPBakeryShortCode_Settings::enqueueCss();
         wp_enqueue_script('jquery-ui-tabs');
         wp_enqueue_script('jquery-ui-sortable');
         wp_enqueue_script('jquery-ui-droppable');
         wp_enqueue_script('jquery-ui-draggable');
         wp_enqueue_script('jquery-ui-accordion');
         wp_enqueue_script('jquery-ui-autocomplete');
         wp_enqueue_script('farbtastic');
         //MMM wp_enqueue_script('bootstrap-js');
         wp_enqueue_script('isotope');
         wp_enqueue_script('wpb_bootstrap_modals_js');
         wp_enqueue_script('wpb_scrollTo_js');
         wp_enqueue_script('wpb_php_js');
         // js composer js app {{
         // wpb_js_composer_js_sortable
         wp_enqueue_script('wpb_js_composer_js_sortable');
         wp_enqueue_script('wpb_json-js');
         wp_enqueue_script('wpb_js_composer_js_tools');
         wp_enqueue_script('wpb_js_composer_js_storage');
         wp_enqueue_script('wpb_js_composer_js_models');
         wp_enqueue_script('wpb_js_composer_js_view');
         wp_enqueue_script('wpb_js_composer_js_custom_views');
         wp_enqueue_script('wpb_js_composer_js_backbone');
         wp_enqueue_script('wpb_jscomposer_composer_js');
         wp_enqueue_script('wpb_jscomposer_shortcode_js');
         wp_enqueue_script('wpb_jscomposer_modal_js');
         wp_enqueue_script('wpb_jscomposer_templates_js');
         wp_enqueue_script('wpb_jscomposer_stage_js');
         wp_enqueue_script('wpb_jscomposer_layout_js');
         wp_enqueue_script('wpb_jscomposer_row_js');
         wp_enqueue_script('wpb_jscomposer_settings_js');
         wp_enqueue_script('wpb_jscomposer_media_editor_js');
         wp_enqueue_script('wpb_jscomposer_autosuggest_js');
         // }}
         wp_enqueue_script('wpb_js_composer_js');
         WPBakeryShortCode_Settings::enqueueJs();
     }
 }
예제 #3
0
파일: build.php 프로젝트: unisexx/drtooth
 public function editScreen_js()
 {
     if (in_array(get_post_type(), $this->composer->getPostTypes())) {
         $this->setupNotifications();
         wp_enqueue_style('farbtastic');
         wp_enqueue_style('bootstrap');
         wp_enqueue_style('bootstrap_modals');
         wp_enqueue_style('ui-custom-theme');
         wp_enqueue_style('isotope-css');
         wp_enqueue_style('animate-css');
         wp_enqueue_style('js_composer');
         WPBakeryShortCode_Settings::enqueueCss();
         wp_enqueue_script('jquery-ui-tabs');
         wp_enqueue_script('jquery-ui-sortable');
         wp_enqueue_script('jquery-ui-droppable');
         wp_enqueue_script('jquery-ui-draggable');
         wp_enqueue_script('jquery-ui-accordion');
         wp_enqueue_script('farbtastic');
         wp_enqueue_script('bootstrap-js');
         wp_enqueue_script('isotope');
         wp_enqueue_script('wpb_bootstrap_modals_js');
         wp_enqueue_script('wpb_scrollTo_js');
         wp_enqueue_script('wpb_php_js');
         WPBakeryShortCode_Settings::enqueueJs();
         // js composer js app {{
         wp_enqueue_script('wpb_jscomposer_composer_js');
         wp_enqueue_script('wpb_jscomposer_shortcode_js');
         wp_enqueue_script('wpb_jscomposer_modal_js');
         wp_enqueue_script('wpb_jscomposer_templates_js');
         wp_enqueue_script('wpb_jscomposer_stage_js');
         wp_enqueue_script('wpb_jscomposer_layout_js');
         wp_enqueue_script('wpb_jscomposer_row_js');
         wp_enqueue_script('wpb_jscomposer_settings_js');
         wp_enqueue_script('wpb_jscomposer_media_editor_js');
         // }}
         wp_enqueue_script('wpb_js_composer_js');
     }
 }