예제 #1
0
 /**
  * Primary class constructor.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     // Load the base class object.
     $this->base = Soliloquy_Dynamic::get_instance();
     // Get Dynamic ID
     $this->dynamic_id = get_option('soliloquy_dynamic');
     // Actions and Filters
     add_filter('soliloquy_slider_types', array($this, 'add_dynamic_type'), 9999, 2);
     add_action('soliloquy_display_dynamic', array($this, 'images_display'));
 }
예제 #2
0
 /**
  * Primary class constructor.
  *
  * @since 2.1.9
  */
 public function __construct()
 {
     // Load the base class object.
     $this->base = Soliloquy_Dynamic::get_instance();
     // Get Dynamic ID
     $this->dynamic_id = get_option('soliloquy_dynamic');
     // Actions and Filters
     add_action('admin_head', array($this, 'remove_checkbox'));
     add_filter('page_row_actions', array($this, 'remove_row_actions'), 10, 2);
     add_filter('post_row_actions', array($this, 'remove_row_actions'), 10, 2);
 }
예제 #3
0
 /**
  * Returns the singleton instance of the class.
  *
  * @since 2.1.9
  *
  * @return object The Soliloquy_Dynamic object.
  */
 public static function get_instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Soliloquy_Dynamic) {
         self::$instance = new Soliloquy_Dynamic();
     }
     return self::$instance;
 }