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(); }
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(); }
function __construct($post) { //run the parrent constructor parent::__construct($post); }
function __construct($post) { parent::__construct($post); }