예제 #1
0
파일: json.php 프로젝트: voomco/WordPress
 function scripts()
 {
     pl_script('pl-site', pl_framework_url('js') . '/site.js', array('jquery'));
     pl_script('pl-common', pl_framework_url('js') . '/common.js');
     pl_style('pl-components', pl_framework_url('css') . '/components.css');
     //  wp_enqueue_media();
 }
 /** 
  * Include extra scripts and styles here
  * Use the pl_script and pl_style functions (which enqueues the files)
  */
 function section_styles()
 {
     /** Include the sample script */
     pl_script($this->id, $this->base_url . '/scripts.js');
     pl_script($this->id, $this->base_url . '<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>');
     pl_style('style-css', $this->base_url . '/style.css');
 }
예제 #3
0
 function workarea_enqueue()
 {
     wp_deregister_script('jquery-ui');
     global $wp_styles;
     $wp_styles->queue = array('admin-bar');
     global $wp_scripts;
     $wp_scripts->queue = array();
     pl_script('pl-common', pl_framework_url('js') . '/common.js', array('jquery'), false, false);
     pl_style('pl-components', pl_framework_url('css') . '/components.css');
     pl_style('pl-editing', pl_framework_url('css') . '/workarea.css');
     pl_script('pl-editing', pl_framework_url('js') . '/editing.js', array('jquery'), false, false);
     pl_script('pl-utils', pl_framework_url('js') . '/utils.js', array('jquery'), false, false);
     /** WordPress Color Picker */
     pl_enqueue_color_picker();
     wp_enqueue_script('jquery');
     global $pl_page;
     $this->page = $pl_page;
     global $maps_data_handler;
     $this->map = $maps_data_handler;
     global $plfactory;
     $this->factory = $plfactory;
     global $plselector;
     $this->selector = $plselector;
     wp_localize_script('pl-editing', 'PLWorkarea', $this->workarea_config());
     pl_hook('pl_workarea_enqueue');
 }
 /** 
  * Include extra scripts and styles here
  * Use the pl_script and pl_style functions (which enqueues the files)
  */
 function section_styles()
 {
     /** Include the sample script */
     pl_script($this->id, $this->base_url . '/scripts.js');
     pl_style('style-css', $this->base_url . '/style.css');
 }
예제 #5
0
 function pl_load_codemirror($path = '')
 {
     // Codemirror Styles
     pl_style('codemirror', $path . '/codemirror/codemirror.css');
     // CodeMirror Syntax Highlighting
     pl_script('pl-codemirror', $path . '/codemirror/pl.codemirror.js', array('jquery'), '', false);
     // Codebox defaults
     $base_editor_config = array('lineNumbers' => true, 'lineWrapping' => false, 'tabSize' => 2);
     wp_localize_script('pl-codemirror', 'cm_base_config', apply_filters('pagelines_cm_config', $base_editor_config));
 }