public static function get_layout_id() { $type = self::get_type_name(); if (!isset(self::$layout_id[$type])) { $self = new Types_Helper_Condition_Layouts_Template_Exists(); $self->valid(); } return self::$layout_id[$type]; }
public function valid() { if (parent::$layout_id !== null && parent::$layout_id !== false) { return false; } return !parent::valid(); }
public static function get_layout_name() { if (self::$layout_name === null) { self::$layout_name = get_the_title(self::get_layout_id()); } return self::$layout_name; }
public function valid() { $type = self::get_type_name(); if (isset(parent::$layout_id[$type]) && parent::$layout_id[$type] !== null && parent::$layout_id !== false) { return false; } return !parent::valid(); }
private static function get_post_edit_layout_template() { $url = admin_url() . 'admin.php?page=dd_layouts_edit&action=edit&layout_id=' . Types_Helper_Condition_Layouts_Template_Exists::get_layout_id(); return self::add_referer($url); }
private static function get_post_edit_layout_template() { if (self::$post_type_edit_layout_template === null) { self::$post_type_edit_layout_template = admin_url() . 'admin.php?page=dd_layouts_edit&action=edit&layout_id=' . Types_Helper_Condition_Layouts_Template_Exists::get_layout_id(); } return self::$post_type_edit_layout_template; }