예제 #1
0
 public static function get_layout_id()
 {
     if (self::$layout_id === null) {
         $self = new Types_Helper_Condition_Layouts_Archive_Exists();
         $self->valid();
     }
     return self::$layout_id;
 }
예제 #2
0
 public function valid()
 {
     if (!defined('WPDDL_GENERAL_OPTIONS')) {
         return false;
     }
     // opposite of parents "exists"
     return !parent::valid();
 }
 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];
 }