PluginProbe
Thumbnail Editor / trunk
Thumbnail Editor vtrunk
trunk 1.0.0 1.1.0 1.2.0 2.0.0 2.0.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4
thumbnail-editor / includes / class-scripts.php

class-scripts.php in Thumbnail Editor trunk, at includes/class-scripts.php

27 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Thumbnail_Editor_Scripts {
4
5 public function __construct() {
6 add_action( 'admin_enqueue_scripts', array( $this, 'additional_scripts_admin' ) );
7 add_action( 'wp_enqueue_scripts', array( $this, 'additional_scripts' ) );
8 }
9
10 public function additional_scripts_admin(){
11 wp_enqueue_script( 'jquery.Jcrop', plugins_url( THE_PLUGIN_DIR . '/js/jquery.Jcrop.js' ) );
12 wp_enqueue_script( 'jquery.cr', plugins_url( THE_PLUGIN_DIR . '/js/jquery.cr.js' ) );
13 wp_enqueue_script( 'jquery-ui-resizable' );
14 wp_enqueue_script( 'jquery-ui-tooltip' );
15 wp_enqueue_style( 'jquery.Jcrop', plugins_url( THE_PLUGIN_DIR . '/css/jquery.Jcrop.css' ) );
16 wp_enqueue_style( 'jquery-ui', plugins_url( THE_PLUGIN_DIR . '/css/jquery-ui.css' ) );
17 wp_enqueue_style( 'th-editor-admin', plugins_url( THE_PLUGIN_DIR . '/css/editor.css' ) );
18
19 wp_enqueue_script( 'ap.cookie', plugins_url( THE_PLUGIN_DIR . '/js/ap.cookie.js' ) );
20 wp_enqueue_script( 'ap-tabs', plugins_url( THE_PLUGIN_DIR . '/js/ap-tabs.js' ) );
21 }
22
23 public function additional_scripts(){
24 wp_enqueue_style( 'th-editor-front', plugins_url( THE_PLUGIN_DIR . '/css/editor-front.css' ) );
25 }
26
27 }