Пример #1
0
 function __construct($post = '')
 {
     //run the parent constructor
     parent::__construct($post);
     //read post settings
     $this->td_post_theme_settings = get_post_meta($post->ID, 'td_post_theme_settings', true);
     $this->is_single = is_single();
 }
Пример #2
0
 function __construct($post = '')
 {
     // construct the class without the post object, used in the author template for the box
     if (empty($post)) {
         return;
     }
     parent::__construct($post);
     //read post settings
     $this->td_post_theme_settings = get_post_meta($post->ID, 'td_post_theme_settings', true);
     $this->is_single = is_single();
 }
Пример #3
0
 function __construct($post)
 {
     //run the parrent constructor
     parent::__construct($post);
 }
Пример #4
0
 function __construct($post)
 {
     parent::__construct($post);
 }