Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define( 'LITK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
- global $LITK_Bellisia;
- $LITK_Bellisia = new LITK_Bellisia();
- class LITK_Bellisia {
- // Including JavaScript (JQuery) and CSS (SASS)
- public function __construct() {
- $this->errors = new WP_Error();
- register_activation_hook( __FILE__, array( &$this, 'install' ) );
- add_action( 'load_styles', array( $this, 'load_style' ), 1 );
- add_action( 'load_scripts', array( $this, 'load_script' ), 1 );
- }
- public function load_style() {
- wp_enqueue_style( 'style', LITK__PLUGIN_DIR . 'source/css/style.css');
- }
- public function load_scripts() {
- wp_enqueue_script( 'script', LITK__PLUGIN_DIR . 'source/js/script.js');
- }
- }
- require_once( LITK__PLUGIN_DIR . 'source/php/class.widget.php' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement