lib/Yepsua/SmarTwig/Twig/Node/ContentNode.php
public function compileWidget(Twig_Compiler $compiler){            
    $compiler->addDebugInfo($this);
    $this->compileExtension($compiler);
    //if($this->getNode('values')->getNode('value') instanceof \Twig_Node_Expression_GetAttr ){
    if($this->getNode('values')->hasNode('type')){
      $type = $this->getNodeValue('type');
      if($type === 'footer_panel' || $type === 'panel_footer'){
        if($this->getNode('values')->hasNode('class')){
          $this->prependValueInNode(
            'class', 
            'ui-panel-footer ui-widget-content ui-helper-clearfix '
          );
        }else{
          $this->addExpressionConstantNode(
            'class', 
            'ui-panel-footer ui-widget-content ui-helper-clearfix', 
            $this->lineno
          );
        }
      }
    }
    
    if ($this->isIterable()) {
      $this->compileIteratorInitSintax($compiler);
        $this->compileInitWidget($compiler);
        $this->compileHtmlProperties($compiler);
        $this->buildId();
        $this->compileWidgetContents($compiler);
        $this->compileEndWidget($compiler);
      $this->compileIteratorEndSintax($compiler, $this->isValidateEmpty());
    }else{
      $this->compileInitWidget($compiler);
      $this->compileHtmlProperties($compiler);
      $this->compileWidgetContents($compiler);
      $this->compileEndWidget($compiler);
    }    
  }
public function compileWidget(Twig_Compiler $compiler){            
    $compiler->addDebugInfo($this);
    $this->compileExtension($compiler);
    //if($this->getNode('values')->getNode('value') instanceof \Twig_Node_Expression_GetAttr ){
    if($this->getNode('values')->hasNode('type')){
      $type = $this->getNodeValue('type');
      if($type === 'footer_panel' || $type === 'panel_footer'){
        if($this->getNode('values')->hasNode('class')){
          $this->prependValueInNode(
            'class', 
            'ui-panel-footer ui-widget-content ui-helper-clearfix '
          );
        }else{
          $this->addExpressionConstantNode(
            'class', 
            'ui-panel-footer ui-widget-content ui-helper-clearfix', 
            $this->lineno
          );
        }
      }
    }
    
    if ($this->isIterable()) {
      $this->compileIteratorInitSintax($compiler);
        $this->compileInitWidget($compiler);
        $this->compileHtmlProperties($compiler);
        $this->buildId();
        $this->compileWidgetContents($compiler);
        $this->compileEndWidget($compiler);
      $this->compileIteratorEndSintax($compiler, $this->isValidateEmpty());
    }else{
      $this->compileInitWidget($compiler);
      $this->compileHtmlProperties($compiler);
      $this->compileWidgetContents($compiler);
      $this->compileEndWidget($compiler);
    }    
  }
Compiles the node to PHP.

@param Twig_Compiler A Twig_Compiler instance