public static function get_layout_id()
 {
     $type = self::get_type_name();
     if (!isset(self::$layout_id[$type])) {
         $self = new Types_Helper_Condition_Layouts_Archive_Exists();
         $self->valid();
     }
     return self::$layout_id[$type];
 }
 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;
 }
Example #3
0
 private static function get_post_edit_layout_archive()
 {
     if (self::$post_type_edit_layout_archive === null) {
         self::$post_type_edit_layout_archive = admin_url() . 'admin.php?page=dd_layouts_edit&action=edit&layout_id=' . Types_Helper_Condition_Layouts_Archive_Exists::get_layout_id();
     }
     return self::$post_type_edit_layout_archive;
 }
 public function valid()
 {
     if (!defined('WPDDL_GENERAL_OPTIONS')) {
         return false;
     }
     // opposite of parents "exists"
     return !parent::valid();
 }
Example #5
0
 private static function get_post_edit_layout_archive()
 {
     $url = admin_url() . 'admin.php?page=dd_layouts_edit&action=edit&layout_id=' . Types_Helper_Condition_Layouts_Archive_Exists::get_layout_id();
     return self::add_referer($url);
 }