public static function get_template_id() { $type = self::get_type_name(); if (!isset(self::$template_id[$type])) { $self = new Types_Helper_Condition_Views_Archive_Exists(); $self->valid(); } return self::$template_id[$type]; }
public function valid() { // if views not active if (!defined('WPV_VERSION')) { return false; } // opposite of parent "Views Archive exists" return !parent::valid(); }