Пример #1
0
 /**
  * Check if theme supports this feature
  *
  * @return boolean
  */
 public function supported()
 {
     if (!current_theme_supports($this->name)) {
         return false;
     }
     return parent::supported();
 }
Пример #2
0
 /**
  * Render a component in bypass mode
  *
  * @param ICE_Component $component The component to render
  * @return ICE_Renderer
  */
 public final function render_bypass(ICE_Component $component)
 {
     // check feature support
     if ($component->supported()) {
         // set as currently rendering component
         $this->component = $component;
         // mark as rendered
         $this->rendered[] = $component;
         // return myself
         return $this;
     }
 }
Пример #3
0
 /**
  * Check that theme has required feature support enabled if applicable
  *
  * @todo The logic here is suspicious?
  * @todo Make required feature available to all components?
  * @return boolean
  */
 public function supported()
 {
     if ($this->required_feature) {
         return current_theme_supports($this->required_feature);
     }
     return parent::supported();
 }