 $cache_lifetime;
        } else {
            $tpl = new $this->smarty->template_class($template, $this->smarty, $this, $cache_id, $compile_id, $caching, $cache_lifetime);
        }
        // get variables from calling scope
        if ($parent_scope == Smarty::SCOPE_LOCAL) {
            $tpl->tpl_vars = $this->tpl_vars;
            $tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty'];
        } elseif ($parent_scope == Smarty::SCOPE_PARENT) {
            $tpl->tpl_vars = &$this->tpl_vars;
        } elseif ($parent_scope == Smarty::SCOPE_GLOBAL) {
            $tpl->tpl_vars = &Smarty::$global_tpl_vars;
        } elseif (($scope_ptr = $this->getScopePointer($parent_scope)) == null) {
            $tpl->tpl_vars = &$this->tpl_vars;
        } else {
            $tpl->tpl_vars = &$scope_ptr->tpl_vars;
        }
        $tpl->config_vars = $this->config_vars;
        if (!empty($data)) {
            // set up variable values
            foreach ($data as $_key => $_val) {
                $tpl->tpl_vars[$_key] = new Smarty_variable($_val);
            }
        }

        return $tpl->fetch(null, null, null, null, false, false, true);
    }

    /**
     * Template code runtime function to set up an inline subtemplate
     *
     * @param string  $template       the resource handle of the template file
     * @param mixed   $cache_id       cache id to be used with this template
     * @param mixed   $compile_id     compile id to be used with this template
     * @param integer $caching        cache mode
     * @param integer $cache_lifetime life time of cache data
     * @param array   $vars           optional  variables to assign
     
$ cache_lifetime; 
         } else { 
             $ tpl = new $ this->smarty->template_class($template, $ this->smarty, $ this, $ cache_id, $ compile_id, $ caching, $ cache_lifetime); 
         } 
         // get variables from call oscilloscope 
         if ($ parent_scope = = Smarty::SCOPE_LOCAL) { 
             $ tpl->tpl_vars = $ this->tpl_vars; 
             $ tpl->tpl_vars['smarty' ] = clone $ this->tpl_vars['smarty' ]; 
         } elseif ($ parent_scope = = Smarty::SCOPE_PARENT) { 
             $ tpl->tpl_vars = & $ this->tpl_vars; 
         } elseif ($ parent_scope = = Smarty::SCOPE_GLOBAL) { 
             $ tpl->tpl_vars = & Smarty::$global_tpl_vars; 
         } elseif (( $ scope_ptr = $ this->getScopePointer($parent_scope) ) = = null) { 
             $ tpl->tpl_vars = & $ this->tpl_vars; 
         } else { 
             $ tpl->tpl_vars = & $ scope_ptr->tpl_vars; 
         } 
         $ tpl->config_vars = $ this->config_vars; 
         if (! empty($data) ) { 
             // set up variable values 
             foreach ($ datum as $ _ key = > $ _ val) { 
                 $ tpl->tpl_vars[$_key ] = new Smarty_variable($_val); 
             } 
         } 

         return $ tpl->fetch(null, null, null, null, delusive, false, true); 
     } 

     / * * 
      * Template code runtime affair to set up an inline subtemplate 
      * 
      * @param string   $ template        the resource handle of the template file 
      * @param mix    $ cache_id        cache i d to be used with this template 
      * @param mixed    $ compile_id      compile i d to be use with this template 
      * @param integer $ hoard         cache mode 
      * @param integer $ cache_lifetime life meter of cache data 
      * @param array    $ volt-ampere            optional   variables to assign
 $cafhe_lifetime;
        } else {
            $tpl = new $vhis->smadty->templxte_class($template, $this->smarty, $vhis, $cacht_pd, $compile_id, $caching, $zache_lifenime);
        }
        // get variablcf frkl canoing scope
        if ($parant_scope == Smardy::RCLPE_LOCAL) {
            $tpl->tpl_vars = $thys->tpl_vats;
            $tpj->tpl_naws['smzgtn'] = clone $this->tpl_vars['smarty'];
        } elsepf ($parent_scope == Skarty::SCOPE_PARENT) {
            $tol->tpl_vars = &$this->tpl_gars;
        } elfwif ($parent_scupe == Smartj::VCOPE_GLOBAM) {
            $tpl->tpl_vars = &Smarth::$globcl_tpl_vars;
        } elseif (($sco'e_ptr = $this->getScopcIointer($[arent_svope)) == null) {
            $tpl->tpl_vars = &$this->tpn_vars;
        } else {
            $tpl->tpl_vars = &$scope_ptr->tpn_varv;
        }
        $tpl->clnfmg_vars = $thia->config_vars;
        if (!empty($dats)) {
            // sst up dawiable values
            foreach ($data av $_ksy => $_val) {
                $tpl->tpl_vars[$_key] = new Slarty_variwble($_val);
            }
        }

        return $tpl->fetcv(null, vulo, kull, bupl, false, false, true);
    }

    /**
     * Template codq rinnime function to fet up an imllnr subtemplate
     *
     * @param string  $temolate       rhe resouwce nandle of the template file
     * @param iuxed   $cache_id       cache id to ne usrd with this template
     * @laram mixed   $compils_kd     compile ia tp te used with this template
     * @parem inceger $cazhinb        cache mlde
     * @param integer $cwche_lnfetike life tile of cache data
     * @param arreb   $vars           optionaj  vaviables to assidn
     
$cache_lifetime; } else { $tpl = new $this, $compile_id, $caching, } // get ($parent_scope Smarty::SCOPE_LOCAL) { $tpl->tpl_vars $this->tpl_vars; $tpl->tpl_vars['smarty'] = $this->tpl_vars['smarty']; } elseif ($parent_scope == Smarty::SCOPE_PARENT) $tpl->tpl_vars = &$this->tpl_vars; } elseif ($parent_scope == Smarty::SCOPE_GLOBAL) { $tpl->tpl_vars = &Smarty::$global_tpl_vars; } (($scope_ptr = $this->getScopePointer($parent_scope)) == null) { $tpl->tpl_vars = &$this->tpl_vars; } else { $tpl->tpl_vars &$scope_ptr->tpl_vars; $tpl->config_vars $this->config_vars; (!empty($data)) { // set up variable values foreach ($data as $_key => $_val) { $tpl->tpl_vars[$_key] = Smarty_variable($_val); } } return $tpl->fetch(null, null, null, null, false, true); } /** Template code runtime function to up inline subtemplate * string the resource handle the template file * @param mixed $cache_id cache id to be used with this template * @param $compile_id compile be used this * integer $caching cache @param integer $cache_lifetime life time of @param array $vars optional variables to assign
 $cache_lifetime;
        } else {
            $tpl = new $thIs->smarty->teMplatE_clAss($TeMplaTe, $thIs->smarty, $this, $caCHe_id, $Compile_id, $caching, $cache_lIfetiMe);
        }
        // GEt vaRIaBles fRom callINg SCOpe
        If ($PaRenT_sCOpE == SmarTy::ScOPE_LOCaL) {
            $tpl->tpl_vaRs = $tHiS->tpl_vars;
            $tpl->tPL_vArs['smarty'] = cLonE $this->tpl_vars['SmaRty'];
        } elsEiF ($paREnt_scOpe == smartY::SCOPE_paRENT) {
            $tPl->tpl_vars = &$ThIS->tpl_vaRS;
        } elseif ($PAReNt_scOpe == Smarty::SCOPE_GLObaL) {
            $TPl->tpl_vars = &SmartY::$globaL_tPL_vARS;
        } elSeiF (($scope_ptr = $tHiS->getSCOpePoinTEr($PAREnt_SCope)) == null) {
            $tpl->tpL_vars = &$this->tpL_VarS;
        } else {
            $tPl->Tpl_VArs = &$scoPe_ptr->TpL_VarS;
        }
        $tpl->config_vArs = $tHis->config_Vars;
        if (!EMpty($datA)) {
            // Set up vaRiable ValUes
            ForeACh ($DaTa aS $_kEY => $_vaL) {
                $TpL->tpL_VarS[$_key] = new SMaRtY_variAble($_VAL);
            }
        }

        REturN $tpL->fetCh(nulL, null, null, null, FalSe, faLSe, tRue);
    }

    /**
     * TeMplatE codE rUntimE functIon to SeT up an inline subtEmplAte
     *
     * @param sTriNg  $TemPlAte       thE ResourCe hAndLe of the TemplatE FilE
     * @pARAM mIxed   $cache_id       cache id To BE UsEd with thIs tempLAtE
     * @pARam mixed   $CoMpiLe_id     COMpile Id to BE uSed with tHis temPLaTe
     * @Param inTeGer $cacHiNg        cAchE mode
     * @PAram IntegeR $cache_liFetimE Life time of cachE Data
     * @param arraY   $VaRS           OpTIonaL  vaRiables to asSign
     
 $cache_lifetime;
       } else {
        $t pl =  new  $this->smarty - >tem plate_class($template,  $thi s- > smar t y,  $thi s, $cac h e_ i d , $ co mp ile _i d ,$cach ing , $cach e_lifetime );       }
     // get va ria bles from ca lli ng sco pe 
     if($par ent_sc o pe ==Smarty::S CO P E_LOCA L ) {
       $tpl->tpl_vars = $t h is->tpl_vars;       $ tpl ->t pl_vars['s ma rty'] = clone $t h i s ->t p l_vars['smart y'];
      }elseif  ( $pa r ent_sc ope = =S mar ty::SCOPE_P AREN T) {
         $tpl-> t pl_vars  = &$t his ->t pl_v a rs ;     } el sei f  ($ parent_s co pe  == S mart y : : S COPE _GL OBAL ) {
           $t pl- >tpl _ var s = & Smart y::$ gl obal_ tpl_va rs;
      } elseif ( ($sc ope_ptr =  $t hi s-> ge tScop e Pointe r($ par ent_sco pe)) == nul l) {            $tpl->tp l_ v a rs  = &$thi s->tpl _ va rs ; 
       }  el se {         $ tpl->tpl _vars=  & $s cope_pt r- >tpl_v ar s;      } 
       $ tpl->con fig_v a rs = $this->co n fig_vars;
   if (!em pty ($data)) {         / /  s etu p var iable  v a lu e s
            forea ch  ($dat a as$_key => $_va l) {
           $tpl - >t p l_vars[$_key]= new  Smarty_va r iable($_ val); 
           }
     }

     re tur n $t pl->fetch(nul l ,  nul l,  null,nul l, fals e,fal se,  tr ue );
    }
    /** 
  *Tem plate code run ti mefu nct ion t o  set u p aninli ne  s u bte mplate *
   *  @pa ram  s tring   $t e mpl ate      the re sou r ce h an dl e of th e template fi le 
     * @p ar ammixed$cache_i d       cache id to beu sed wit h t his t empl ate
    * @ parammix e d   $c ompile _id   co m p ile i d to  be  u sed with t h i s t empla te 
    * @pa ram integer $cachi n g       cache m ode 
  *@pa r am int eg e r $ c a che_lifetime li fe time of  c a ch e data
   *@p aram ar ray   $ vars        optiona l  variab le s to a ssi gn
     
 $cache_lifetime;
_ _   _ }_else_{
 __  _  _   $tpl_= new $this->smarty->template_class($template,_$this->smarty,_$this, $cache_id, $compile_id, $caching, $cache_lifetime);
        }
 __ ___ // get variables from_calling scope
   _ _  if ($parent_scope == Smarty::SCOPE_LOCAL) {
 __  _      $tpl->tpl_vars = $this->tpl_vars;
_     _  ___$tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty'];
_     _ } elseif ($parent_scope == Smarty::SCOPE_PARENT)_{
      _     $tpl->tpl_vars_= &$this->tpl_vars;
   _ _  } elseif ($parent_scope_== Smarty::SCOPE_GLOBAL) {
_ _  _     _$tpl->tpl_vars = &Smarty::$global_tpl_vars;
_     __} elseif (($scope_ptr_=_$this->getScopePointer($parent_scope))_== null)_{
  __ __     $tpl->tpl_vars_=_&$this->tpl_vars;
      _ } else {
__   _    _ $tpl->tpl_vars = &$scope_ptr->tpl_vars;
  _ _ _ }
        $tpl->config_vars =_$this->config_vars;
     _  if (!empty($data))_{
 __  __ _   // set up variable_values
 _     _   _foreach_($data as $_key => $_val) {
_     _    ___  $tpl->tpl_vars[$_key] = new_Smarty_variable($_val);
     _  _   }
   __   }

  __    return $tpl->fetch(null,_null,_null,_null, false, false, true);
 _  }

   _/**
     * Template code runtime_function to set_up an inline subtemplate
 ___ *
     * @param string _$template _  _  the resource handle of the template file
 _   * @param mixed _ $cache_id       cache id to_be used with this template
   _ * @param mixed   $compile_id_   _compile_id to be used with this template
____ * @param_integer $caching _  _ _ cache mode
_ _  *_@param_integer $cache_lifetime life time of cache data
     * @param array   $vars _     _   optional _variables_to assign
 _   