Пример #1
0
 public function __construct($id, $args = array())
 {
     parent::__construct($id, $args);
     $this->contact_form_counter = null;
     add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item'));
 }
Пример #2
0
 public function __construct($id, $args = array())
 {
     parent::__construct($id, $args);
     $this->set_content('content', array('form_control' => 'Long_Text', 'label' => __('text_before', 'g1_theme'), 'hint' => __('Text to show above subscription form', 'g1_theme')));
     add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item'));
 }
Пример #3
0
 public function __construct($id, $args = array())
 {
     parent::__construct($id, $args);
     //add_action( 'g1_shortcode_generator_register', array( $this, 'add_shortcode_generator_item' ) );
 }
Пример #4
0
 public function __construct($id, $args = array())
 {
     parent::__construct($id, $args);
     // content
     $this->set_content('content', array('form_control' => 'Text'));
     add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item'));
 }
Пример #5
0
 public function setup_hooks()
 {
     parent::setup_hooks();
     add_action('init', array($this, 'set_details'), 9999);
     add_action('wp_loaded', array($this, 'add_special_attributes'), 9999);
     add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item'));
 }
Пример #6
0
 public function init()
 {
     /* This will help us nest columns */
     $temp = $this->get_id_aliases();
     $temp[] = '_' . $this->get_id();
     $this->set_id_aliases($temp);
     parent::init();
 }