Created
November 24, 2012 00:16
-
-
Save martisj/4137803 to your computer and use it in GitHub Desktop.
enqueue script hooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SGPro extends SGProPlugin { | |
function __construct() { | |
$url = explode("&", $_SERVER['REQUEST_URI']); | |
$this -> url = $url[0]; | |
$this -> register_plugin('slideshow-gallery-pro', __FILE__); | |
//WordPress action hooks | |
$this -> add_action('admin_menu'); | |
$this -> add_action('admin_head'); | |
$this -> add_action('admin_notices'); | |
// $this -> add_action('sg2_enqueue_styles'); | |
//WordPress filter hooks | |
$this -> add_filter('mce_buttons'); | |
$this -> add_filter('mce_external_plugins'); | |
$this -> add_filter('plugin_action_links', 'add_sgpro_settings_link', 10, 2 ); | |
add_shortcode('slideshow', array($this, 'embed')); | |
add_shortcode('gpslideshow', array($this, 'embed')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment