Пример #1
0
 public static function get_template_id()
 {
     if (self::$template_id === null) {
         $self = new Types_Helper_Condition_Views_Template_Exists();
         $self->valid();
     }
     return self::$template_id;
 }
Пример #2
0
 public function valid()
 {
     // if views not active
     if (!defined('WPV_VERSION')) {
         return false;
     }
     // opposite of parent "Views Template exists"
     return !parent::valid();
 }
 public static function get_template_id()
 {
     $type = self::get_type_name();
     if (isset(self::$template_id[$type])) {
         return self::$template_id[$type];
     }
     // not set yet
     $self = new Types_Helper_Condition_Views_Template_Exists();
     if ($self->valid()) {
         return self::get_template_id();
     }
 }