Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. define( 'LITK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  2.  
  3. global $LITK_Bellisia;
  4. $LITK_Bellisia = new LITK_Bellisia();
  5.  
  6. class LITK_Bellisia {
  7.  
  8.     // Including JavaScript (JQuery) and CSS (SASS)
  9.     public function __construct() {
  10.  
  11.         $this->errors = new WP_Error();
  12.         register_activation_hook( __FILE__, array( &$this, 'install' ) );
  13.  
  14.         add_action( 'load_styles', array( $this, 'load_style' ), 1 );
  15.         add_action( 'load_scripts', array( $this, 'load_script' ), 1 );
  16.     }
  17.  
  18.  
  19.     public function load_style() {
  20.         wp_enqueue_style( 'style', LITK__PLUGIN_DIR . 'source/css/style.css');
  21.     }
  22.  
  23.     public function load_scripts() {
  24.         wp_enqueue_script( 'script', LITK__PLUGIN_DIR . 'source/js/script.js');
  25.     }
  26. }
  27.  
  28. require_once( LITK__PLUGIN_DIR . 'source/php/class.widget.php' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement