/**
  * Administrative interface class default constructor
  * 
  * @param bcn_breadcrumb_trail $breadcrumb_trail a breadcrumb trail object
  * @param string $basename The basename of the plugin
  */
 function __construct(bcn_breadcrumb_trail &$breadcrumb_trail, $basename)
 {
     $this->breadcrumb_trail =& $breadcrumb_trail;
     $this->plugin_basename = $basename;
     //Grab defaults from the breadcrumb_trail object
     $this->opt =& $this->breadcrumb_trail->opt;
     //We're going to make sure we load the parent's constructor
     parent::__construct();
 }
 /**
  * Administrative interface class default constructor
  * @param bcn_breadcrumb_trail $breadcrumb_trail a breadcrumb trail object
  * @param string $basename The basename of the plugin
  */
 function __construct(bcn_breadcrumb_trail $breadcrumb_trail, $basename)
 {
     $this->breadcrumb_trail = $breadcrumb_trail;
     $this->plugin_basename = $basename;
     //Grab defaults from the breadcrumb_trail object
     $this->opt = $this->breadcrumb_trail->opt;
     add_action('network_admin_menu', array($this, 'add_page'));
     //We're going to make sure we load the parent's constructor
     parent::__construct();
 }
Example #3
0
 /**
  * Administrative interface class default constructor
  * 
  * @param bcn_breadcrumb_trail $breadcrumb_trail a breadcrumb trail object
  * @param string $basename The basename of the plugin
  */
 function __construct(bcn_breadcrumb_trail &$breadcrumb_trail, $basename)
 {
     $this->breadcrumb_trail =& $breadcrumb_trail;
     $this->plugin_basename = $basename;
     $this->full_name = __('Breadcrumb NavXT Settings', 'breadcrumb-navxt');
     //Grab defaults from the breadcrumb_trail object
     $this->opt =& $this->breadcrumb_trail->opt;
     //We're going to make sure we load the parent's constructor
     parent::__construct();
 }
 /**
  * Administrative interface class default constructor
  * @param bcn_breadcrumb_trail $breadcrumb_trail a breadcrumb trail object
  * @param string $basename The basename of the plugin
  */
 function __construct($opts, $basename, $template_tags)
 {
     $this->plugin_basename = $basename;
     //Grab default options that were passed in
     $this->opt = $opts;
     $this->template_tags = $template_tags;
     add_action('admin_print_styles-post.php', array($this, 'admin_edit_page_styles'));
     add_action('admin_print_styles-post-new.php', array($this, 'admin_edit_page_styles'));
     //We're going to make sure we load the parent's constructor
     parent::__construct();
 }
 /**
  * Administrative interface class default constructor
  * @param bcn_breadcrumb_trail	$breadcrumb_trail a breadcrumb trail object
  */
 function __construct(bcn_breadcrumb_trail $breadcrumb_trail)
 {
     $this->breadcrumb_trail = $breadcrumb_trail;
     //Grab defaults from the breadcrumb_trail object
     $this->opt = $this->breadcrumb_trail->opt;
     //We set the plugin basename here, could manually set it, but this is for demonstration purposes
     //$this->plugin_basename = plugin_basename(__FILE__);
     //Register the WordPress 2.8 Widget
     add_action('widgets_init', create_function('', 'return register_widget("' . $this->unique_prefix . '_widget");'));
     //We're going to make sure we load the parent's constructor
     parent::__construct();
     add_action('init', array($this, 'wp_init'));
 }
 /**
  * Administrative interface class default constructor
  */
 function bcn_admin()
 {
     //We'll let it fail fataly if the class isn't there as we depend on it
     $this->breadcrumb_trail = new bcn_breadcrumb_trail();
     //Grab defaults from the breadcrumb_trail object
     $this->opt = $this->breadcrumb_trail->opt;
     //We need to add in the defaults for CPTs and custom taxonomies after all other plugins are loaded
     add_action('wp_loaded', array($this, 'wp_loaded'));
     //We set the plugin basename here, could manually set it, but this is for demonstration purposes
     //$this->plugin_basename = plugin_basename(__FILE__);
     //Register the WordPress 2.8 Widget
     add_action('widgets_init', create_function('', 'return register_widget("' . $this->unique_prefix . '_widget");'));
     //We're going to make sure we load the parent's constructor
     parent::__construct();
 }