PageRenderTime 2768ms queryTime 447ms sortTime 123ms getByIdsTime 1271ms findMatchingLines 499ms

100+ results results for 'smarty' (2768 ms)

Not the results you expected?
serviceSummary.php https://gitlab.com/florianocomercial/centreon | PHP | 193 lines
                    
65
                    
66	# Smarty template Init
                    
67	$tpl = new Smarty();
                    
67	$tpl = new Smarty();
                    
68	$tpl = initSmartyTpl($svc_path, $tpl, "/templates/");
                    
69
                    
184
                    
185	$renderer = new HTML_QuickForm_Renderer_ArraySmarty($tpl);
                    
186	$form->accept($renderer);
                    
                
integration_test.go https://gitlab.com/CORP-RESELLER/advanced-ssh-config | Go | 265 lines
                    
32
                    
33const ogletestPkg = "github.com/smartystreets/assertions/internal/ogletest"
                    
34
                    
51		ogletestPkg,
                    
52		"github.com/smartystreets/assertions/internal/oglemock",
                    
53		"github.com/smartystreets/assertions/internal/ogletest/test_cases/mock_image")
                    
166
                    
167	pkg = path.Join("github.com/smartystreets/assertions/internal/ogletest", dir[len(ogletestPkgDir):])
                    
168	return
                    
                
recipes.rst https://gitlab.com/fbi/web | ReStructuredText | 259 lines
                    
131
                    
132    // Smarty like
                    
133    $lexer = new Twig_Lexer($twig, array(
                    
                
conf.py https://bitbucket.org/freebsd/freebsd-base.git | Python | 255 lines
                    
131
                    
132# If true, SmartyPants will be used to convert quotes and dashes to
                    
133# typographically correct entities.
                    
133# typographically correct entities.
                    
134#html_use_smartypants = True
                    
135
                    
                
index.php https://github.com/lsces/users.git | PHP | 194 lines
                    
19	if( $newUser->importUser( $userRecord ) ) {
                    
20		$gBitSmarty->assign( 'addSuccess', "User Added Successfully" );
                    
21		if( empty( $_REQUEST['admin_noemail_user'] ) ) {
                    
30	} else {
                    
31		$gBitSmarty->assign_by_ref( 'newUser', $_REQUEST );
                    
32		$gBitSmarty->assign( 'errors', $newUser->mErrors );
                    
163foreach( $gBitUser->getDefaultRole() as $defaultRoleId => $defaultRoleName ) {
                    
164	$gBitSmarty->assign('defaultRoleId', $defaultRoleId );
                    
165	$gBitSmarty->assign('defaultRoleName', $defaultRoleName );
                    
170$gBitUser->getList( $_REQUEST );
                    
171$gBitSmarty->assign_by_ref('users', $_REQUEST["data"]);
                    
172$gBitSmarty->assign_by_ref('usercount', $_REQUEST["cant"]);
                    
178$_REQUEST['listInfo']["URL"] = USERS_PKG_URL."admin/index.php";
                    
179$gBitSmarty->assign_by_ref('listInfo', $_REQUEST['listInfo']);
                    
180
                    
                
conf.py https://github.com/rashmi/newrepo.git | Python | 255 lines
                    
137
                    
138# If true, SmartyPants will be used to convert quotes and dashes to
                    
139# typographically correct entities.
                    
139# typographically correct entities.
                    
140# html_use_smartypants = True
                    
141
                    
                
%%85^856^85682F26%%ErrorPage.tpl.php https://github.com/doctorjbeam/wmrc.git | PHP | 199 lines
                    
1<?php /* Smarty version 2.6.20, created on 2010-06-13 19:23:32
                    
2         compiled from modules/core/templates/ErrorPage.tpl */ ?>
                    
183<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
184$this->_smarty_include(array('smarty_include_tpl_file' => "gallery:templates/debug.tpl", 'smarty_include_vars' => array()));
                    
185$this->_tpl_vars = $_smarty_tpl_vars;
                    
185$this->_tpl_vars = $_smarty_tpl_vars;
                    
186unset($_smarty_tpl_vars);
                    
187 ?>
                    
192<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
193$this->_smarty_include(array('smarty_include_tpl_file' => "gallery:templates/profile.tpl", 'smarty_include_vars' => array()));
                    
194$this->_tpl_vars = $_smarty_tpl_vars;
                    
194$this->_tpl_vars = $_smarty_tpl_vars;
                    
195unset($_smarty_tpl_vars);
                    
196 ?>
                    
                
article_list.html https://github.com/bluelovers/ShopNC.git | HTML | 126 lines
                    
49						 <input type="hidden" name="action" id="action" value="article_list" />
                    
50                          <tpl>$shop_admin_article_list_title</tpl>:<input class="TextBoxAt2" type="text" name="akeywords" id="akeywords" value="<tpl>$smarty.get.akeywords</tpl>" />
                    
51                          <input type="submit" name="button" id="button" value="<tpl> $shop_admin_article_list_submit </tpl>" class="btnInput" /><!-- 提交 -->
                    
                
List.php https://github.com/zikula-modules/Clip.git | PHP | 202 lines
                    
72     * @param boolean          $includeEmptyElement Whether or not to include an empty null item.
                    
73     * @param array            $params              The parameters passed from the Smarty plugin.
                    
74     * @param FormFilter       $filter              Clip filter form manager instance.
                    
161     *
                    
162     * @param array            $params Parameters passed from the Smarty plugin function.
                    
163     * @param Clip_Filter_Form $filter Clip filter form manager instance.
                    
                
Dynamic.php https://github.com/michaelmcandrew/vaw.git | PHP | 320 lines
                    
158    {
                    
159        $template = CRM_Core_Smarty::singleton( ); 
                    
160        if ( $this->_id && $this->_gid ) {
                    
                
djangodocs.py https://github.com/h3/django.git | Python | 250 lines
                    
20from sphinx.builders.html import StandaloneHTMLBuilder
                    
21from sphinx.writers.html import SmartyPantsHTMLTranslator
                    
22from sphinx.util.console import bold
                    
122
                    
123class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
                    
124    """
                    
142    #
                    
143    # Don't apply smartypants to literal blocks
                    
144    #
                    
145    def visit_literal_block(self, node):
                    
146        self.no_smarty += 1
                    
147        SmartyPantsHTMLTranslator.visit_literal_block(self, node)
                    
149    def depart_literal_block(self, node):
                    
150        SmartyPantsHTMLTranslator.depart_literal_block(self, node)
                    
151        self.no_smarty -= 1
                    
                
%%BE^BE8^BE87FFC6%%rolesView.tpl.php https://github.com/viglesiasce/testlink.git | PHP | 172 lines
                    
23<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
24$this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array('openHead' => 'yes','jsValidate' => 'yes','enableTableSorting' => 'yes')));
                    
25$this->_tpl_vars = $_smarty_tpl_vars;
                    
28<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
29$this->_smarty_include(array('smarty_include_tpl_file' => "inc_del_onclick.tpl", 'smarty_include_vars' => array()));
                    
30$this->_tpl_vars = $_smarty_tpl_vars;
                    
47<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
48$this->_smarty_include(array('smarty_include_tpl_file' => "usermanagement/tabsmenu.tpl", 'smarty_include_vars' => array()));
                    
49$this->_tpl_vars = $_smarty_tpl_vars;
                    
53<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
54$this->_smarty_include(array('smarty_include_tpl_file' => "inc_update.tpl", 'smarty_include_vars' => array('result' => $this->_tpl_vars['sqlResult'])));
                    
55$this->_tpl_vars = $_smarty_tpl_vars;
                    
143		 					            onclick="delete_confirmation(<?php echo $this->_tpl_vars['role']->dbID; ?>
                    
144,'<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['role']->getDisplayName())) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
                    
145',
                    
                
0b53fce194feb0845b82c52065b2dbdff5dd0f92.file.order-follow.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 261 lines
                    
87		</p>
                    
88		<?php  $_smarty_tpl->tpl_vars['id_order_detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['id_order_detail']->_loop = false;
                    
89 $_from = $_smarty_tpl->tpl_vars['ids_order_detail']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
177 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++;
                    
178 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['return']->last;
                    
179?>
                    
179?>
                    
180				<tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } else { ?>item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?>alternate_item<?php }?>">
                    
181					<td class="bold">
                    
210">
                    
211						<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['return']->value['date_add'],'full'=>0),$_smarty_tpl);?>
                    
212
                    
250	<li>
                    
251		<a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
                    
252<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
                    
                
CampaignDiagnostic.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 287 lines
                    
80    //use html if not inline
                    
81    $ss = new Sugar_Smarty();
                    
82    $ss->assign("MOD", $mod_strings);
                    
                
yjxb_statistics.php https://github.com/karlom/gameadmin.git | PHP | 268 lines
                    
101//data
                    
102$smarty->assign('joinData', $joinData );
                    
103$smarty->assign('viewData', $viewData );
                    
104
                    
105$smarty->assign('thisWeek', $thisWeek );
                    
106$smarty->assign('lastWeek', $lastWeek );
                    
107//other
                    
108$smarty->assign('lang', $lang );
                    
109$smarty->assign('minDate', ONLINEDATE );
                    
109$smarty->assign('minDate', ONLINEDATE );
                    
110$smarty->assign('maxDate', $today );
                    
111$smarty->assign('startDay', $startDay );
                    
111$smarty->assign('startDay', $startDay );
                    
112$smarty->assign('endDay', $endDay );
                    
113$smarty->assign('selectDay', $selectDay );
                    
                
tlsmarty.inc.php https://github.com/franciscom/testlink-code-playground.git | PHP | 306 lines
                    
29
                    
30define('SMARTY_DIR', TL_ABS_PATH . 'third_party'. DIRECTORY_SEPARATOR . 'smarty'.  
                    
31	            DIRECTORY_SEPARATOR . 'libs' . DIRECTORY_SEPARATOR);
                    
31	            DIRECTORY_SEPARATOR . 'libs' . DIRECTORY_SEPARATOR);
                    
32define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR);
                    
33
                    
34/** include parent extrenal component */
                    
35require_once( SMARTY_DIR . 'Smarty.class.php');
                    
36
                    
63 */
                    
64function translate_tc_status_smarty($params, &$smarty)
                    
65{
                    
105 */
                    
106class TLSmarty extends Smarty
                    
107{
                    
                
function.html_select_date.php https://github.com/kpike/moodle.git | PHP | 331 lines
                    
29 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
30 *      (Smarty online manual)
                    
31 * @version 1.3.4
                    
37 */
                    
38function smarty_function_html_select_date($params, &$smarty)
                    
39{
                    
41    require_once $smarty->_get_plugin_filepath('shared','make_timestamp');
                    
42    require_once $smarty->_get_plugin_filepath('function','html_options');
                    
43    /* Default values. */
                    
127                if(!is_array($_value)) {
                    
128                    $extra_attrs .= ' '.$_key.'="'.smarty_function_escape_special_chars($_value).'"';
                    
129                } else {
                    
298                                                               'print_result' => false),
                    
299                                                         $smarty);
                    
300            $year_result .= '</select>';
                    
                
TplEditorSupport.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 367 lines
                    
41 */
                    
42package org.netbeans.modules.php.smarty.editor;
                    
43
                    
                
Fee.tpl https://github.com/ksecor/civicrm.git | Smarty Template | 235 lines
                    
71        {section name=loop start=1 loop=11}
                    
72           {assign var=idx value=$smarty.section.loop.index}
                    
73           <tr><td class="even-row">{$form.label.$idx.html}</td><td>{$form.value.$idx.html|crmMoney}</td><td class="even-row">{$form.default.$idx.html}</td></tr>
                    
94	{section name=rowLoop start=1 loop=6}
                    
95	   {assign var=index value=$smarty.section.rowLoop.index}
                    
96	   <tr id="discount_{$index}" {if $index GT 1 AND empty( $form.discount_name[$index].value) } style="display:none"{/if} class="form-item {cycle values="odd-row,even-row"}">
                    
128	       {section name=dloop start=1 loop=6}
                    
129	          {assign var=i value=$smarty.section.dloop.index}
                    
130		  {if $form.discount_name.$i.value}
                    
137            {section name=loop start=1 loop=11}
                    
138               {assign var=idx value=$smarty.section.loop.index}
                    
139               <tr><td class="even-row">{$form.discounted_label.$idx.html}</td>
                    
140	          {section name=loop1 start=1 loop=6}
                    
141                     {assign var=idy value=$smarty.section.loop1.index}
                    
142		      {if $form.discount_name.$idy.value}
                    
                
partyPage.html https://github.com/openstate/Watstemtmijnraad.git | HTML | 187 lines
                    
115	<div class="col size1of4">
                    
116		{include file=`$smartyData.contentDir`/../../regions/includable/sb_mun_branding.html}
                    
117	</div>
                    
160					{/if}
                    
161					{include file=`$smartyData.contentDir`/../../raadsstukken/includable/voting.html}
                    
162				</div>
                    
175	<div class="col size1of4 sidebar">
                    
176		{include file=`$smartyData.contentDir`/../../parties/includable/sb_correlate.html}
                    
177		{include file=`$smartyData.contentDir`/../../parties/includable/sb_list.html}
                    
184        </div>
                    
185		{include file=`$smartyData.contentDir`/../../regions/includable/sb_mun_pages.html}
                    
186	</div>
                    
                
smarty_internal_compile_block.php https://github.com/pedramphp/alhussain.git | PHP | 187 lines
                    
57            // replace {$smarty.block.child}
                    
58            if (strpos($block_content, $template->smarty->left_delimiter . '$smarty.block.child' . $template->smarty->right_delimiter) !== false) {
                    
59                if (isset($template->block_data[$_name])) {
                    
59                if (isset($template->block_data[$_name])) {
                    
60                    $block_content = str_replace($template->smarty->left_delimiter . '$smarty.block.child' . $template->smarty->right_delimiter,
                    
61                        $template->block_data[$_name]['source'], $block_content);
                    
63                } else {
                    
64                    $block_content = str_replace($template->smarty->left_delimiter . '$smarty.block.child' . $template->smarty->right_delimiter,
                    
65                        '', $block_content);
                    
153 */
                    
154class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_CompileBase {
                    
155    /**
                    
164        $this->compiler = $compiler;
                    
165        $this->smarty = $compiler->smarty;
                    
166        $this->compiler->has_code = true; 
                    
                
UFGroup.php https://github.com/michaelmcandrew/cic.git | PHP | 421 lines
                    
163 
                    
164    $template =& CRM_Core_Smarty::singleton( ); 
                    
165    return trim( $template->fetch( 'CRM/Profile/Form/Dynamic.tpl' ) );
                    
                
smarty_internal_templatebase.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 324 lines
                    
2/**
                    
3 * Smarty Internal Plugin Smarty Template  Base
                    
4 * This file contains the basic shared methods for template handling
                    
16 *
                    
17 * @property Smarty $smarty
                    
18 *
                    
23 * @method Smarty_Internal_TemplateBase addDefaultModifier(mixed $modifiers)
                    
24 * @method Smarty_Internal_TemplateBase createData(Smarty_Internal_Data $parent = null, string $name = null)
                    
25 * @method array getAutoloadFilters(string $type = null)
                    
29 * @method object getRegisteredObject(string $object_name)
                    
30 * @method Smarty_Internal_TemplateBase registerCacheResource(string $name, Smarty_CacheResource $resource_handler)
                    
31 * @method Smarty_Internal_TemplateBase registerClass(string $class_name, string $class_impl)
                    
45 */
                    
46abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
                    
47{
                    
                
create.php https://github.com/HenrikNielsen/revolution.git | PHP | 218 lines
                    
14    if ($parent != null) {
                    
15        $modx->smarty->assign('parent',$parent);
                    
16    }
                    
20$ctx = !empty($_REQUEST['context_key']) ? $_REQUEST['context_key'] : 'web';
                    
21$modx->smarty->assign('_ctx',$ctx);
                    
22$context = $modx->getContext($ctx);
                    
52}
                    
53$modx->smarty->assign('onDocFormPrerender',$onDocFormPrerender);
                    
54
                    
68}
                    
69$modx->smarty->assign('parentname',$parentname);
                    
70
                    
78$onDocFormRender = str_replace(array('"',"\n","\r"),array('\"','',''),$onDocFormRender);
                    
79$modx->smarty->assign('onDocFormRender',$onDocFormRender);
                    
80
                    
                
SmartyCustom.php https://gitlab.com/staging06/myproject | PHP | 320 lines
                    
26
                    
27class SmartyCustomCore extends Smarty
                    
28{
                    
93            if ($last_flush === null) {
                    
94                $sql = 'SELECT UNIX_TIMESTAMP(last_flush) as last_flush FROM `'._DB_PREFIX_.'smarty_last_flush` WHERE type=\'compile\'';
                    
95                $last_flush = Db::getInstance()->getValue($sql, false);
                    
250        $template_md5 = md5($template);
                    
251        $sql          = 'INSERT IGNORE INTO `'._DB_PREFIX_.'smarty_lazy_cache`
                    
252							(`template_hash`, `cache_id`, `compile_id`, `last_update`)
                    
277        if (!$template) {
                    
278            return Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'smarty_lazy_cache`', false);
                    
279        }
                    
299
                    
300class Smarty_Custom_Template extends Smarty_Internal_Template
                    
301{
                    
                
EditView.tpl https://bitbucket.org/blakeball/test-repository.git | Smarty Template | 278 lines
                    
77{{if $label == 'DEFAULT'}}
                    
78  <div id="detailpanel_{{$smarty.foreach.section.iteration}}" >
                    
79{{else}}
                    
79{{else}}
                    
80  <div id="detailpanel_{{$smarty.foreach.section.iteration}}" class="{$def.templateMeta.panelClass|default:'edit view edit508'}">
                    
81{{/if}}
                    
92<h4>&nbsp;&nbsp;
                    
93  <a href="javascript:void(0)" class="collapseLink" onclick="collapsePanel({{$smarty.foreach.section.iteration}});">
                    
94  <img border="0" id="detailpanel_{{$smarty.foreach.section.iteration}}_img_hide" src="{sugar_getimagepath file="basic_search.gif"}"></a>
                    
94  <img border="0" id="detailpanel_{{$smarty.foreach.section.iteration}}_img_hide" src="{sugar_getimagepath file="basic_search.gif"}"></a>
                    
95  <a href="javascript:void(0)" class="expandLink" onclick="expandPanel({{$smarty.foreach.section.iteration}});">
                    
96  <img border="0" id="detailpanel_{{$smarty.foreach.section.iteration}}_img_show" src="{sugar_getimagepath file="advanced_search.gif"}"></a>
                    
104    <script>
                    
105      document.getElementById('detailpanel_{{$smarty.foreach.section.iteration}}').className += ' collapsed';
                    
106    </script>
                    
                
Dashlet.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 403 lines
                    
37
                    
38require_once('include/Sugar_Smarty.php');
                    
39require_once('include/utils/layout_utils.php');
                    
251        }
                    
252        $autoRefreshSS = new Sugar_Smarty();
                    
253        $autoRefreshSS->assign('dashletOffset', $dashletOffset);
                    
                
Variables.php https://github.com/michaelmcandrew/th.git | PHP | 545 lines
                    
53    /**
                    
54     * the directory where Smarty and plugins are installed
                    
55     * @var string
                    
56     */
                    
57    public $smartyDir           = null;
                    
58    public $pluginsDir          = null;
                    
                
resultsMoreBuilds.php https://github.com/testlinkjp/testlink-japanese-localization.git | PHP | 302 lines
                    
35
                    
36$smarty = new TLSmarty();
                    
37
                    
37
                    
38$smarty->assign('gui', $gui);
                    
39$smarty->assign('report_type', $args->report_type);
                    
39$smarty->assign('report_type', $args->report_type);
                    
40displayReport($templateCfg->template_dir . $templateCfg->default_template, $smarty, $args->report_type,$mailCfg);
                    
41
                    
                
6fcd78d08ae72f493e78dba05715eb88db712faf.file.homebanners.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 210 lines
                    
119$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
                    
120$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
                    
121if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
                    
128
                    
129            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                    
130                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                    
130                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                    
131                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
                    
132$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
                    
133$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
                    
134$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
                    
135$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
                    
135$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
                    
136$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
                    
137?>
                    
                
maintenance.php https://github.com/Shigaru/shigaru.git | PHP | 353 lines
                    
200	{
                    
201		global $smartyvs;
                    
202		$c = hwd_vs_Config::get_instance();
                    
203
                    
204		$smartyvs->clear_compiled_tpl();
                    
205
                    
206		$vs_temp_cache = JPATH_SITE.'/cache/hwdvs'.$c->hwdvids_template_file;
                    
207		$smartyvs->compile_dir = $vs_temp_cache;
                    
208		$smartyvs->clear_compiled_tpl();
                    
291	{
                    
292		global $smartyvs;
                    
293		$c = hwd_vs_Config::get_instance();
                    
319	{
                    
320		global $smartyvs;
                    
321		$db = & JFactory::getDBO();
                    
                
Controller.php https://gitlab.com/ElvisAns/tiki | PHP | 309 lines
                    
120            $editlib = TikiLib::lib('edit');
                    
121            $smarty = TikiLib::lib('smarty');
                    
122            $wikilib = TikiLib::lib('wiki');
                    
211                $smarty->assign('mid', '');
                    
212                $parsed = $smarty->fetch("tiki_full.tpl");
                    
213
                    
233
                    
234        $smarty = TikiLib::lib('smarty');
                    
235
                    
289        $smarty = TikiLib::lib('smarty');
                    
290        $smarty->loadPlugin('smarty_function_service_inline');
                    
291
                    
293        foreach ($input->fields as $field) {
                    
294            $html = smarty_function_service_inline($field->fetch->text(), $smarty->getEmptyInternalTemplate());
                    
295            $display[] = [
                    
                
reqSpecEdit.php https://github.com/viglesiasce/testlink.git | PHP | 241 lines
                    
99{
                    
100    $smartyObj = new TLSmarty();
                    
101    $renderType = 'none';
                    
196        case 'template':
                    
197			$smartyObj->assign('mgt_view_events',has_rights($db,"mgt_view_events"));
                    
198 		    $smartyObj->assign('gui',$guiObj);
                    
198 		    $smartyObj->assign('gui',$guiObj);
                    
199		    $smartyObj->display($tpl);
                    
200        	break;  
                    
                
sourcedoc.go git://github.com/speedata/publisher.git | Go | 346 lines
                    
37	htmlFlags |= blackfriday.HTML_USE_XHTML
                    
38	htmlFlags |= blackfriday.HTML_SMARTYPANTS_FRACTIONS
                    
39	htmlFlags |= blackfriday.HTML_SMARTYPANTS_LATEX_DASHES
                    
                
smarty_internal_compile_block.php https://bitbucket.org/makarewicz/galeria.git | PHP | 282 lines
                    
18 */
                    
19class Smarty_Internal_Compile_Block extends Smarty_Internal_CompileBase {
                    
20
                    
54        $_attr = $this->getAttributes($compiler, $args);
                    
55        $save = array($_attr, $compiler->parser->current_buffer, $compiler->nocache, $compiler->smarty->merge_compiled_includes, $compiler->merged_templates, $compiler->smarty->merged_templates_func, $compiler->template->properties, $compiler->template->has_nocache_code);
                    
56        $this->openTag($compiler, 'block', $save);
                    
180        }
                    
181        $_tpl = new Smarty_Internal_template('string:' . $compiler->template->block_data[$_name]['source'], $compiler->smarty, $compiler->template, $compiler->template->cache_id,
                    
182                        $compiler->template->compile_id = null, $compiler->template->caching, $compiler->template->cache_lifetime);
                    
195        if (strpos($compiler->template->block_data[$_name]['source'], '%%%%SMARTY_PARENT%%%%') !== false) {
                    
196            $_output = str_replace('%%%%SMARTY_PARENT%%%%', $compiler->parser->current_buffer->to_smarty_php(), $_tpl->compiler->compileTemplate($_tpl));
                    
197        } elseif ($compiler->template->block_data[$_name]['mode'] == 'prepend') {
                    
234 */
                    
235class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_CompileBase {
                    
236
                    
                
Debugger.php https://github.com/xoops-pi/engine.git | PHP | 303 lines
                    
95        if (XOOPS::registry("view")) {
                    
96            $system['Smarty Version'] = XOOPS::registry("view")->getEngine()->getVersion();
                    
97        }
                    
                
login.class.php https://github.com/Mark-H/revolution.git | PHP | 303 lines
                    
189                if ($activated === false) {
                    
190                    $this->modx->smarty->assign('error_message',$this->modx->lexicon('login_activation_key_err'));
                    
191                    $validated = false;
                    
                
smarty_security.php https://github.com/halka139/html-warrior.git | PHP | 411 lines
                    
18     * <ul>
                    
19     *   <li>Smarty::PHP_PASSTHRU -> echo PHP tags as they are</li>
                    
20     *   <li>Smarty::PHP_QUOTE    -> escape tags as entities</li>
                    
122    /**
                    
123     * @param Smarty $smarty 
                    
124     */
                    
126    {
                    
127        $this->smarty = $smarty;
                    
128    }
                    
160     * @return boolean true if function is trusted
                    
161     * @throws SmartyCompilerException if php function is not trusted
                    
162     */
                    
366     * @return boolean true if directory is trusted
                    
367     * @throws SmartyException if PHP directory is not trusted
                    
368     */
                    
                
program.tpl https://gitlab.com/staging06/myproject | Smarty Template | 223 lines
                    
98					{section name=friends start=0 loop=$nbFriends step=1}
                    
99					<tr class="{if $smarty.section.friends.index % 2}item{else}alternate_item{/if}">
                    
100						<td class="align_right">{$smarty.section.friends.iteration}</td>
                    
100						<td class="align_right">{$smarty.section.friends.iteration}</td>
                    
101						<td><input type="text" class="form-control" name="friendsLastName[{$smarty.section.friends.index}]" size="14" value="{if isset($smarty.post.friendsLastName[$smarty.section.friends.index])}{$smarty.post.friendsLastName[$smarty.section.friends.index]|escape:'html':'UTF-8'}{/if}" /></td>
                    
102						<td><input type="text" class="form-control" name="friendsFirstName[{$smarty.section.friends.index}]" size="14" value="{if isset($smarty.post.friendsFirstName[$smarty.section.friends.index])}{$smarty.post.friendsFirstName[$smarty.section.friends.index]|escape:'html':'UTF-8'}{/if}" /></td>
                    
102						<td><input type="text" class="form-control" name="friendsFirstName[{$smarty.section.friends.index}]" size="14" value="{if isset($smarty.post.friendsFirstName[$smarty.section.friends.index])}{$smarty.post.friendsFirstName[$smarty.section.friends.index]|escape:'html':'UTF-8'}{/if}" /></td>
                    
103						<td><input type="text" class="form-control" name="friendsEmail[{$smarty.section.friends.index}]" size="20" value="{if isset($smarty.post.friendsEmail[$smarty.section.friends.index])}{$smarty.post.friendsEmail[$smarty.section.friends.index]|escape:'html':'UTF-8'}{/if}" /></td>
                    
104					</tr>
                    
111				<p class="checkbox">
                    
112					<input type="checkbox" name="conditionsValided" id="conditionsValided" value="1" {if isset($smarty.post.conditionsValided) AND $smarty.post.conditionsValided eq 1}checked="checked"{/if} />
                    
113					<label for="conditionsValided">{l s='I agree to the terms of service and adhere to them unconditionally.' mod='referralprogram'}</label>
                    
196			<tr>
                    
197				<td>{$smarty.foreach.myLoop.iteration}.</td>
                    
198				<td>{$subscribeFriend.lastname|substr:0:22}</td>
                    
                
smarty_cacheresource_custom.php https://gitlab.com/adamlwalker/generatedata | PHP | 237 lines
                    
174     *
                    
175     * @param Smarty  $smarty        Smarty object
                    
176     * @param string  $resource_name template name
                    
190     *
                    
191     * @param Smarty $smarty Smarty object
                    
192     * @param Smarty_Template_Cached $cached cached object
                    
213     */
                    
214    public function acquireLock(Smarty $smarty, Smarty_Template_Cached $cached)
                    
215    {
                    
225     *
                    
226     * @param Smarty $smarty Smarty object
                    
227     * @param Smarty_Template_Cached $cached cached object
                    
228     */
                    
229    public function releaseLock(Smarty $smarty, Smarty_Template_Cached $cached)
                    
230    {
                    
                
dashtrends.php https://gitlab.com/staging06/myproject | PHP | 351 lines
                    
71	{
                    
72		$this->context->smarty->assign(array(
                    
73			'currency' => $this->context->currency,
                    
                
_DataEntry.php.html https://gitlab.com/karora/awl | HTML | 190 lines
                    
1
                    
2Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
                    
3<?xml version="1.0" encoding="iso-8859-1"?>
                    
161			
                    
162Strict Standards: Only variables should be passed by reference in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 712
                    
163
                    
163
                    
164Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
                    
165<a name="_AWLUtilities_php"><!-- --></a>
                    
                
function.html_select_date.php https://github.com/webdevwilson/RabbitPHP.git | PHP | 323 lines
                    
27 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
28 *      (Smarty online manual)
                    
29 * @version 1.3.2
                    
35 */
                    
36function smarty_function_html_select_date($params, &$smarty)
                    
37{
                    
39    require_once $smarty->_get_plugin_filepath('shared','make_timestamp');
                    
40    require_once $smarty->_get_plugin_filepath('function','html_options');
                    
41    /* Default values. */
                    
125                if(!is_array($_value)) {
                    
126                    $extra_attrs .= ' '.$_key.'="'.smarty_function_escape_special_chars($_value).'"';
                    
127                } else {
                    
290                                                               'print_result' => false),
                    
291                                                         $smarty);
                    
292            $year_result .= '</select>';
                    
                
exp_add_log_view.php https://gitlab.com/xusasuke6/Slg_php | PHP | 217 lines
                    
12include SYSDIR_ADMIN.'/include/page.php';
                    
13global $smarty, $db;
                    
14
                    
119if(isset($ex) && $ex == true ){
                    
120        $smarty->assign('title', $excel['title']); // 标题
                    
121        $smarty->assign('hd', $excel['hd']);       // 表头
                    
121        $smarty->assign('hd', $excel['hd']);       // 表头
                    
122        $smarty->assign('num',$excel['hdnum']);    // 列数
                    
123        $smarty->assign('ct', $excel['content']);  // 内容
                    
127        header('Content-Disposition: attachment; filename='.$excel['title'].date('_Ymd_Gi').'.xls');
                    
128        $smarty->display('module/pay/pay_excel.tpl');
                    
129        exit;
                    
134
                    
135$smarty->assign("balance", $balance);
                    
136$smarty->assign("time_start", $dateStartStr);
                    
                
order-detail.tpl https://github.com/sealence/local.git | Smarty Template | 271 lines
                    
14		{foreach from=$order_history item=state name="orderStates"}
                    
15			<tr class="{if $smarty.foreach.orderStates.first}first_item{elseif $smarty.foreach.orderStates.last}last_item{/if} {if $smarty.foreach.orderStates.index % 2}alternate_item{else}item{/if}">
                    
16				<td>{dateFormat date=$state.date_add full=1}</td>
                    
133						</td>
                    
134						<td><input class="order_qte_input" name="order_qte_input[{$smarty.foreach.products.index}]" type="text" size="2" value="{$customizationQuantityTotal|intval}" /><label for="cb_{$product.id_order_detail|intval}"><span class="order_qte_span editable">{$product.customizationQuantityTotal|intval}</span></label></td>
                    
135						<td><label for="cb_{$product.id_order_detail|intval}">{convertPriceWithCurrency price=$product.product_price_wt currency=$currency convert=0}</label></td>
                    
231		{foreach from=$messages item=message name="messageList"}
                    
232			<tr class="{if $smarty.foreach.messageList.first}first_item{elseif $smarty.foreach.messageList.last}last_item{/if} {if $smarty.foreach.messageList.index % 2}alternate_item{else}item{/if}">
                    
233				<td>
                    
                
Component.php https://github.com/michaelmcandrew/vaw.git | PHP | 381 lines
                    
135                if ( $type == 'main' ) {
                    
136                    // also set the smarty variables to the current component
                    
137                    $template = CRM_Core_Smarty::singleton( );
                    
                
smarty_internal_data.php https://gitlab.com/mike_tm555/batiste | PHP | 404 lines
                    
76     *
                    
77     * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining
                    
78     */
                    
180     *
                    
181     * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining
                    
182     */
                    
274     *
                    
275     * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining
                    
276     */
                    
289     *
                    
290     * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining
                    
291     */
                    
369     *
                    
370     * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining
                    
371     */
                    
                
form.tpl https://gitlab.com/elasa/shop2.elasa.ir | Smarty Template | 231 lines
                    
28	{if $input.name == 'caching_system'}<div id="{$input.name}_wrapper"{if isset($_PS_CACHE_ENABLED_) && !$_PS_CACHE_ENABLED_} style="display:none"{/if}>{/if}
                    
29	{if $input.name == 'smarty_caching_type' || $input.name == 'smarty_clear_cache'}<div id="{$input.name}_wrapper"{if isset($fields_value.smarty_cache) && !$fields_value.smarty_cache} style="display:none"{/if}>{/if}
                    
30	{$smarty.block.parent}
                    
30	{$smarty.block.parent}
                    
31	{if $input.name == 'caching_system' || $input.name == 'smarty_caching_type' || $input.name == 'smarty_clear_cache'}</div>{/if}
                    
32{/block}
                    
39	{/if}
                    
40	{$smarty.block.parent}
                    
41{/block}
                    
43{block name="description"}
                    
44	{$smarty.block.parent}
                    
45	{if $input.type == 'radio' && $input.name == 'combination'}
                    
209
                    
210		$('input[name="smarty_force_compile"], input[name="smarty_cache"], input[name="smarty_clear_cache"], input[name="smarty_caching_type"], input[name="smarty_console"], input[name="smarty_console_key"]').change(function(){
                    
211			$('#smarty_up').val(1);
                    
                
function.fetch.php https://gitlab.com/flyhope/Hiblog | PHP | 221 lines
                    
14 *
                    
15 * @link   http://www.smarty.net/manual/en/language.function.fetch.php {fetch}
                    
16 *         (Smarty online manual)
                    
19 * @param array                    $params   parameters
                    
20 * @param Smarty_Internal_Template $template template object
                    
21 *
                    
21 *
                    
22 * @throws Smarty_SmartyException
                    
23 * @return string|null if the assign parameter is passed, Smarty assigns the result to a template variable
                    
64            $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
                    
65            $agent = "Smarty Template Engine " . Smarty::SMARTY_VERSION;
                    
66            $referer = "";
                    
211        if ($content === false) {
                    
212            throw new Smarty_SmartyException("{fetch} cannot read resource '" . $params['file'] . "'");
                    
213        }
                    
                
MembershipBlock.tpl https://gitlab.com/virtualrealms/d7civicrm | Smarty Template | 302 lines
                    
55                  {if $row.current_membership}
                    
56                    {if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
                    
57                      {ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expired on %1.{/ts}<br />
                    
198              {if $row.current_membership}
                    
199                {if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
                    
200                  <br /><em>{ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expired on %1.{/ts}</em>
                    
                
smarty_internal_cacheresource_file.php https://github.com/phobia/Kohana_Smarty3.git | PHP | 207 lines
                    
19    {
                    
20        $this->smarty = $smarty;
                    
21    } 
                    
99        if (!$_template->resource_object->isEvaluated) {
                    
100            if (Smarty_Internal_Write_File::writeFile($_template->getCachedFilepath(), $content, $this->smarty) === true) {
                    
101                $_template->cached_timestamp = filemtime($_template->getCachedFilepath());
                    
130        $_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
                    
131        $_dir_sep = $this->smarty->use_sub_dirs ? '/' : '^';
                    
132        $_compile_id_offset = $this->smarty->use_sub_dirs ? 3 : 0;
                    
132        $_compile_id_offset = $this->smarty->use_sub_dirs ? 3 : 0;
                    
133        $_dir = rtrim($this->smarty->cache_dir, '/\\') . DS;
                    
134        $_dir_length = strlen($_dir);
                    
146            $this->smarty->caching = true;
                    
147            $tpl = new $this->smarty->template_class($resource_name, $this->smarty); 
                    
148            $this->smarty->caching = $_save_stat;
                    
                
voip_did.inc.php https://github.com/axxtel/agilebill.git | PHP | 264 lines
                    
103	{	
                    
104		global $smarty;
                    
105		$type = "view";
                    
113		while (!$rs->EOF) {
                    
114			$smarty->assign('sip_'.$rs->fields['keyword'],$rs->fields['data']);
                    
115			$rs->MoveNext();
                    
119		$sip_canreinvite_options['update'] = 'Update';
                    
120		$smarty->assign('sip_canreinvite_options', $sip_canreinvite_options);
                    
121		$sip_dtmfmode_options['info'] = 'Info';
                    
123		$sip_dtmfmode_options['inband'] = 'In-band Audio';
                    
124		$smarty->assign('sip_dtmfmode_options', $sip_dtmfmode_options);
                    
125		$sip_nat_options['yes'] = 'Yes';
                    
127		$sip_nat_options['always'] = 'Always';
                    
128		$smarty->assign('sip_nat_options', $sip_nat_options);
                    
129	}		
                    
                
goods_list.html https://github.com/bluelovers/ShopNC.git | HTML | 156 lines
                    
12	<tpl> section name=i loop=$goods_array </tpl>
                    
13		$("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_icon").mouseover(function(){
                    
14			$("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_thumb").show();
                    
15		});
                    
16		$("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_icon").mouseout(function(){
                    
17			$("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_thumb").hide();
                    
59				  <tpl> $goods_provider </tpl>	<!-- 供应商分类 -->
                    
60                  <input  class="TextBoxAt2" type="text" name="search" id="search" value="<tpl> if $smarty.post.search != '' </tpl> <tpl>$smarty.post.search</tpl> <tpl> /if </tpl>" />
                    
61                  <input type="submit" name="button" id="button" value="<tpl>$admin_goods_list_submit</tpl>" class="btnInput" /><!-- 提交 -->
                    
113            <td><a href="<tpl>$Site_Url</tpl>/admin/admin_goods.php?action=goods_page&modify_id=<tpl>$goods_array[i].goods_id</tpl>"><tpl> $goods_array[i].goods_name </tpl></a></td>
                    
114            <td id="imgTd<tpl>$smarty.section.i.rownum</tpl>"><tpl> if $goods_array[i].goods_image eq "default.jpg"</tpl><tpl>$admin_goods_list_null</tpl><!-- 无 --><tpl>else</tpl><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_pic.gif" alt="" class="img_icon" />
                    
115            <div class="thumbDiv"><img src="<tpl>$Site_Url</tpl>/<tpl> $goods_array[i].goods_small_image </tpl>" class="img_thumb" /></div>
                    
                
5e0521c068659d7604a9bf0b1879765a376f16ab.file.features.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 283 lines
                    
61		<tbody>
                    
62		<?php  $_smarty_tpl->tpl_vars['available_feature'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['available_feature']->_loop = false;
                    
63 $_from = $_smarty_tpl->tpl_vars['available_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
85"<?php if ($_smarty_tpl->tpl_vars['available_feature']->value['current_item']==$_smarty_tpl->tpl_vars['value']->value['id_feature_value']) {?>selected="selected"<?php }?> >
                    
86							<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['value']->value['value'],40);?>
                    
87
                    
110_ALL"
                    
111								cols="40" style='background-color:#CCF'	rows="1" onkeyup="<?php  $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
                    
112 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
                    
130							<ul class="dropdown-menu">
                    
131								<?php  $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
                    
132 $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
146
                    
147				<?php  $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
                    
148 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
                    
                
sys_init.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 221 lines
                    
78define('DEFAULT_THEME_NAME', 'default');     // name of the theme. theme files are under themes/theme_name
                    
79define('SMARTY_CPL_PATH', APP_HOME . DIRECTORY_SEPARATOR . "files/tpl_cpl");    // smarty template compiling path
                    
80
                    
                
add.tpl https://github.com/axxtel/agilebill.git | Smarty Template | 269 lines
                    
238						{else}
                    
239						{ $list->menu("no", "checkout_plugin_data[country_id]", "country", "name", $smarty.const.DEFAULT_COUNTRY, "") }
                    
240						{/if}
                    
                
metadata.tpl https://github.com/mcrider/pkpUpgradeTestSuite.git | Smarty Template | 185 lines
                    
118		{foreach from=$article->getGalleys() item=galley name=galleys}
                    
119			{$galley->getGalleyLabel()|escape}{if !$smarty.foreach.galleys.last}, {/if}
                    
120		{/foreach}
                    
                
%%62^628^6281BA49%%editorDecisionComment.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 107 lines
                    
7<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
8$this->_smarty_include(array('smarty_include_tpl_file' => "submission/comment/header.tpl", 'smarty_include_vars' => array()));
                    
9$this->_tpl_vars = $_smarty_tpl_vars;
                    
25		<?php if ($this->_tpl_vars['comment']->getAuthorId() == $this->_tpl_vars['userId'] && ! $this->_tpl_vars['isLocked']): ?>
                    
26			<div style="float: right"><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'deleteComment','path' => ((is_array($_tmp=$this->_tpl_vars['articleId'])) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['comment']->getCommentId()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['comment']->getCommentId()))), $this);?>
                    
27" onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.confirmDelete"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
                    
54
                    
55<form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => $this->_tpl_vars['commentAction']), $this);?>
                    
56">
                    
68<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
69$this->_smarty_include(array('smarty_include_tpl_file' => "common/formErrors.tpl", 'smarty_include_vars' => array()));
                    
70$this->_tpl_vars = $_smarty_tpl_vars;
                    
103<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
104$this->_smarty_include(array('smarty_include_tpl_file' => "submission/comment/footer.tpl", 'smarty_include_vars' => array()));
                    
105$this->_tpl_vars = $_smarty_tpl_vars;
                    
                
Display.php https://github.com/michaelmcandrew/lbc.git | PHP | 213 lines
                    
120        $this->_setRenderTemplates($page);
                    
121        $template = CRM_Core_Smarty::singleton( );
                    
122        $template->assign( 'form'   ,  $page->toSmarty());
                    
154        if ( $print ) {
                    
155            if ( $print == CRM_Core_Smarty::PRINT_PDF ) {
                    
156                require_once 'CRM/Utils/PDF/Utils.php';
                    
                
loraserver_test.go https://gitlab.com/3maple/loraserver | Go | 420 lines
                    
9	"github.com/brocaar/lorawan"
                    
10	. "github.com/smartystreets/goconvey/convey"
                    
11)
                    
                
%%FF^FFF^FFF4BFA6%%editorDecision.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 163 lines
                    
22			</select>
                    
23			<input type="submit" onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.submissionReview.confirmDecision"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
                    
24')" name="submit" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.recordDecision"), $this);?>
                    
51	<td class="value" colspan="2">
                    
52		<?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'emailEditorDecisionComment','articleId' => $this->_tpl_vars['submission']->getArticleId()), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'notifyAuthorUrl') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'notifyAuthorUrl'));?>
                    
53
                    
93,<?php echo $this->_tpl_vars['authorFile']->getRevision(); ?>
                    
94" /> <?php endif; ?><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'downloadFile','path' => ((is_array($_tmp=$this->_tpl_vars['submission']->getArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['authorFile']->getFileId(), $this->_tpl_vars['authorFile']->getRevision()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['authorFile']->getFileId(), $this->_tpl_vars['authorFile']->getRevision()))), $this);?>
                    
95" class="file"><?php echo $this->_tpl_vars['authorFile']->getFileName(); ?>
                    
121,<?php echo $this->_tpl_vars['editorFile']->getRevision(); ?>
                    
122" /> <?php endif; ?><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'downloadFile','path' => ((is_array($_tmp=$this->_tpl_vars['submission']->getArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()))), $this);?>
                    
123" class="file"><?php echo $this->_tpl_vars['editorFile']->getFileName(); ?>
                    
127			</td>
                    
128			<td width="30%" class="value"><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'deleteArticleFile','path' => ((is_array($_tmp=$this->_tpl_vars['submission']->getArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()))), $this);?>
                    
129" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.delete"), $this);?>
                    
                
%%C4^C49^C498A7FD%%userProfile.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 178 lines
                    
6<?php $this->assign('pageTitle', "manager.people");  $_smarty_tpl_vars = $this->_tpl_vars;
                    
7$this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
                    
8$this->_tpl_vars = $_smarty_tpl_vars;
                    
65			<?php $this->assign('emailString', ($this->_tpl_vars['user']->getFullName())." <".($this->_tpl_vars['user']->getEmail()).">"); ?>
                    
66			<?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('to' => ((is_array($_tmp=$this->_tpl_vars['emailString'])) ? $this->_run_mod_handler('to_array', true, $_tmp) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp)),'redirectUrl' => $this->_tpl_vars['currentUrl']), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'url') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'url'));?>
                    
67
                    
92</td>
                    
93		<td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getMailingAddress())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
                    
94</td>
                    
104</td>
                    
105		<td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getBiography())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
                    
106</td>
                    
174<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
175$this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
                    
176$this->_tpl_vars = $_smarty_tpl_vars;
                    
                
HelperForm.php https://gitlab.com/staging06/myproject | PHP | 337 lines
                    
136
                    
137                                $this->context->smarty->assign('categories_tree', $tree->render());
                    
138                                $categories = false;
                    
                
classdatesTest.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 269 lines
                    
1<?php
                    
2require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
                    
3require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
                    
                
product-list.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 222 lines
                    
42	{foreach from=$products item=product name=products}
                    
43		{math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
                    
44		{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
                    
44		{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
                    
45		{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile}
                    
46		{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
                    
48		{if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
                    
49		<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}">
                    
50			<div class="product-container" itemscope itemtype="https://schema.org/Product">
                    
121					{capture name='displayProductListReviews'}{hook h='displayProductListReviews' product=$product}{/capture}
                    
122					{if $smarty.capture.displayProductListReviews}
                    
123						<div class="hook-reviews">
                    
156								{capture}add=1&amp;id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&amp;ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&amp;token={$static_token}{/if}{/capture}
                    
157								<a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}">
                    
158									<span>{l s='Add to cart'}</span>
                    
                
grades-6.inc.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 99 lines
                    
2$g_vars['page']['location'] = array('test_manager', 'grading_systems', 'grading_scale');
                    
3$g_smarty->assign('g_vars', $g_vars);
                    
4displayTemplate('_header');
                    
                
%%1B^1B2^1B258F23%%rt.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 239 lines
                    
42
                    
43<h5><?php echo ((is_array($_tmp=$this->_tpl_vars['journal']->getSetting('journalInitials'))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
                    
44<br /><?php echo ((is_array($_tmp=$this->_tpl_vars['issue']->getIssueIdentification())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
                    
53
                    
54<h6><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['article']->getArticleTitle())) ? $this->_run_mod_handler('truncate', true, $_tmp, 20) : smarty_modifier_truncate($_tmp, 20)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
                    
55</h6>
                    
67<div class="rtBlock">
                    
68	<span class="rtSubtitle"><?php if ($this->_tpl_vars['section'] && $this->_tpl_vars['section']->getIdentifyType()):  echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.forThis",'identifyType' => ((is_array($_tmp=$this->_tpl_vars['section']->getIdentifyType())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp))), $this); else:  echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.peerReviewed"), $this); endif; ?></span>
                    
69	<ul>
                    
98/article/download/<?php echo ((is_array($_tmp=$this->_tpl_vars['articleId'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
                    
99/<?php echo $this->_tpl_vars['galley']->getFileId();  endif; ?>"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.printVersion"), $this);?>
                    
100</a></li><?php endif; ?>
                    
223/<?php echo $this->_tpl_vars['galleyId']; ?>
                    
224" target="_parent" class="rtAction"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.close"), $this);?>
                    
225</a>
                    
                
%%A9^A94^A942575E%%huoyuedu.tpl.php https://github.com/karlom/gameadmin.git | PHP | 219 lines
                    
1<?php /* Smarty version 2.6.25, created on 2014-04-18 11:17:31
                    
2         compiled from module/basedata/huoyuedu.tpl */ ?>
                    
                
blockmanufacturer.php https://gitlab.com/sutrix.hoa.tran/Research-Prestashop | PHP | 235 lines
                    
86
                    
87			$this->smarty->assign(array(
                    
88				'manufacturers' => $manufacturers,
                    
                
MembershipBlock.tpl https://github.com/timstephenson/NatureBridge.git | Smarty Template | 195 lines
                    
95              {if $row.current_membership AND $context EQ "makeContribution" }
                    
96                    {if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
                    
97                        <br /><em>{ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expired on %1.{/ts}</em>
                    
                
d9b992a06f2d7350275fe497171e6295945dbd46.file.filters.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 121 lines
                    
70</option>
                    
71				<option value="nativeModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='nativeModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Free Modules'),$_smarty_tpl);?>
                    
72</option>
                    
76</option>
                    
77				<?php if (isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)) {?><option value="addonsModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='addonsModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Modules purchased on Addons'),$_smarty_tpl);?>
                    
78</option><?php }?> -->
                    
88					<option value="authorModules[<?php echo $_smarty_tpl->tpl_vars['module_author']->value;?>
                    
89]" <?php if ($_smarty_tpl->tpl_vars['status']->value=="selected") {?>selected<?php }?>><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['module_author']->value,20,'...');?>
                    
90</option>
                    
91				<?php } ?>
                    
92				<!-- <option value="otherModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='otherModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Other Modules'),$_smarty_tpl);?>
                    
93</option> -->
                    
101</option>
                    
102			<option value="1" <?php if ($_smarty_tpl->tpl_vars['showCountryModules']->value==1) {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Current country:'),$_smarty_tpl);?>
                    
103 <?php echo $_smarty_tpl->tpl_vars['nameCountryDefault']->value;?>
                    
                
47a3fbe0e5d0e9011904e12942353e056dbb8c71.file.gerenciarProduto.tpl.php https://gitlab.com/alvarobacelar/cms-admin-marko | PHP | 162 lines
                    
2         compiled from "/home/www/html/siteMarko/admin/libs/smarty/templates/paginas/gerenciarProduto.tpl" */ ?>
                    
3<?php /*%%SmartyHeaderCode:184691668256a98a4ec2e709-58744258%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
                    
4$_valid = $_smarty_tpl->decodeProperties(array (
                    
39                    <option value="">Grupo do produto</option>
                    
40                    <?php  $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['p']->_loop = false;
                    
41 $_from = $_smarty_tpl->tpl_vars['produto']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
41 $_from = $_smarty_tpl->tpl_vars['produto']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
42foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
                    
43$_smarty_tpl->tpl_vars['p']->_loop = true;
                    
57                    <option value="">Selecione a marca</option>
                    
58                    <?php  $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['m']->_loop = false;
                    
59 $_from = $_smarty_tpl->tpl_vars['marca']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
59 $_from = $_smarty_tpl->tpl_vars['marca']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
60foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value){
                    
61$_smarty_tpl->tpl_vars['m']->_loop = true;
                    
                
userInfo.tpl https://github.com/viglesiasce/testlink.git | Smarty Template | 251 lines
                    
1{* 
                    
2Testlink: smarty template - Edit own account 
                    
3$Id: userInfo.tpl,v 1.20 2010/05/01 19:45:41 franciscom Exp $
                    
215	{if $mgt_view_events == "yes"}
                    
216	<img style="margin-left:5px;" class="clickable" src="{$smarty.const.TL_THEME_IMG_DIR}/question.gif" onclick="showEventHistoryFor('{$user->dbID}','users')" alt="{$labels.show_event_history}" title="{$labels.show_event_history}"/>
                    
217</h2>
                    
                
EmbeddingHighlightsContainer.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 290 lines
                    
41
                    
42package org.netbeans.modules.php.smarty.editor.coloring;
                    
43
                    
64import org.netbeans.editor.Utilities;
                    
65import org.netbeans.modules.php.smarty.editor.TplDataLoader;
                    
66import org.netbeans.spi.editor.highlighting.HighlightsSequence;
                    
71 * Implementation of Highlighting SPI creating coloured background
                    
72 * for SMARTY templates.
                    
73 *
                    
80
                    
81    private static final String TPL_BACKGROUND_TOKEN_NAME = "smarty"; //NOI18N
                    
82    private static final String TPL_INNER_MIME_TYPE = "text/x-tpl-inner"; //NOI18N
                    
                
editviewdefs.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 267 lines
                    
47        array (
                    
48          0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
                    
49          1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
                    
49          1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
                    
50          2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
                    
51          3 => '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',
                    
51          3 => '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',
                    
52          4 => '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">',
                    
53        ),
                    
                
c_event_write_confirm.tpl https://github.com/usagi-project/mynets1.git | Smarty Template | 232 lines
                    
1({$inc_html_header|smarty:nodefaults})
                    
2<body>
                    
6<td class="container inc_page_header">
                    
7({$inc_page_header|smarty:nodefaults})
                    
8</td>
                    
11<td class="container inc_navi">
                    
12({$inc_navi|smarty:nodefaults})
                    
13</td>
                    
223<td class="container inc_page_footer">
                    
224({$inc_page_footer|smarty:nodefaults})
                    
225</td>
                    
                
carrier.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 203 lines
                    
53                    -&nbsp;{$error|escape:'htmlall':'UTF-8'}
                    
54                    {if !$smarty.foreach.f_errors.last}<br/><br/>{/if}
                    
55                {/foreach}
                    
                
Menu.php https://gitlab.com/florianocomercial/centreon | PHP | 362 lines
                    
47/*
                    
48 * Smarty template Init
                    
49 */
                    
49 */
                    
50$tpl = new Smarty();
                    
51$tpl = initSmartyTpl($path, $tpl);
                    
311/*
                    
312 * Assign for Smarty Template
                    
313 */
                    
                
smarty_internal_compile_foreach.php https://github.com/ACCORD5/TrellisDesk.git | PHP | 192 lines
                    
59            $usesSmartyShow = strpos($tpl->template_source, $SmartyVarName . 'show') !== false;
                    
60            $usesSmartyTotal = $usesSmartyLast || strpos($tpl->template_source, $SmartyVarName . 'total') !== false;
                    
61        } else {
                    
90            if ($usesSmartyTotal) {
                    
91                $output .= " \$_smarty_tpl->tpl_vars['smarty']->value['foreach'][$name]['total'] = \$_smarty_tpl->tpl_vars[$item]->total;\n";
                    
92            } 
                    
114        if ($usesPropLast) {
                    
115            $output .= " \$_smarty_tpl->tpl_vars[$item]->last = \$_smarty_tpl->tpl_vars[$item]->iteration === \$_smarty_tpl->tpl_vars[$item]->total;\n";
                    
116        } 
                    
118            if ($usesSmartyFirst) {
                    
119                $output .= " \$_smarty_tpl->tpl_vars['smarty']->value['foreach'][$name]['first'] = \$_smarty_tpl->tpl_vars[$item]->first;\n";
                    
120            } 
                    
127            if ($usesSmartyLast) {
                    
128                $output .= " \$_smarty_tpl->tpl_vars['smarty']->value['foreach'][$name]['last'] = \$_smarty_tpl->tpl_vars[$item]->last;\n";
                    
129            } 
                    
                
smarty_internal_compile_if.php https://gitlab.com/fiesta-framework/Documentation | PHP | 210 lines
                    
52            if (is_array($parameter['if condition']['var'])) {
                    
53                $_output = "<?php if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]) || !is_array(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value)) \$_smarty_tpl->createLocalArrayVariable(" . $parameter['if condition']['var']['var'] . "$_nocache);\n";
                    
54                $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value" . $parameter['if condition']['var']['smarty_internal_index'] . " = " . $parameter['if condition']['value'] . ") {?>";
                    
55            } else {
                    
56                $_output = "<?php if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "])) \$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "] = new Smarty_Variable(null{$_nocache});";
                    
57                $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "]->value = " . $parameter['if condition']['value'] . ") {?>";
                    
144                } else {
                    
145                    $_output = "<?php  } else { if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "])) \$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "] = new Smarty_Variable(null{$_nocache});";
                    
146                    $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "]->value = " . $parameter['if condition']['value'] . ") {?>";
                    
163                if (is_array($parameter['if condition']['var'])) {
                    
164                    $_output = "<?php } else {?>{$tmp}<?php  if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]) || !is_array(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value)) \$_smarty_tpl->createLocalArrayVariable(" . $parameter['if condition']['var']['var'] . "$_nocache);\n";
                    
165                    $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value" . $parameter['if condition']['var']['smarty_internal_index'] . " = " . $parameter['if condition']['value'] . ") {?>";
                    
166                } else {
                    
167                    $_output = "<?php } else {?>{$tmp}<?php if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "])) \$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "] = new Smarty_Variable(null{$_nocache});";
                    
168                    $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "]->value = " . $parameter['if condition']['value'] . ") {?>";
                    
                
blockcart.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 178 lines
                    
76			{assign var='productAttributeId' value=$product.id_product_attribute}
                    
77			<dt id="cart_block_product_{$product.id_product}_{if $product.id_product_attribute}{$product.id_product_attribute}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
                    
78				<span class="quantity-formated"><span class="quantity">{$product.cart_quantity}</span>x</span>
                    
83					{if $product.total > 0}
                    
84						{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$product.total`"}{else}{displayWtPrice p="`$product.total_wt`"}{/if}
                    
85					{else}
                    
90			{if isset($product.attributes_small)}
                    
91			<dd id="cart_block_combination_of_{$product.id_product}{if $product.id_product_attribute}_{$product.id_product_attribute}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
                    
92				<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
                    
96			{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
                    
97				{if !isset($product.attributes_small)}<dd id="cart_block_combination_of_{$product.id_product}_{if $product.id_product_attribute}{$product.id_product_attribute}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">{/if}
                    
98				<ul class="cart_block_customizations" id="customization_{$productId}_{$productAttributeId}">
                    
                
function.content.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 282 lines
                    
18
                    
19function smarty_function_content($params, &$smarty)
                    
20{
                    
188				    @trigger_error('Attempt to access module '.$modulename.' which could not be foune (is it properly installed and configured?');
                    
189				    return _smarty_function_content_return('', $params, $smarty);
                    
190				  }
                    
223					@ob_end_clean();
                    
224					return _smarty_function_content_return($modresult, $params, $smarty);
                    
225				      }
                    
243	}
                    
244	return _smarty_function_content_return('', $params, $smarty);
                    
245	*/
                    
248/*
                    
249function _smarty_function_content_return($result, &$params, &$smarty)
                    
250{
                    
                
overview.html https://github.com/ECP-Black/ECP.git | HTML | 148 lines
                    
3        <ul class="tabSet">    
                    
4			<li class="off"><a>{$smarty.const.GENERAL}</a></li>
                    
5            <li class="off"><a>{$smarty.const.WEB_STATS}</a></li>
                    
10              <tr class="{cycle values="row_odd, row_even"}">
                    
11                <td width="25%">{$smarty.const.UPTIME}:</td>
                    
12                <td width="25%">{$installed} ({$tage} {$smarty.const.DAYS})</td>
                    
12                <td width="25%">{$installed} ({$tage} {$smarty.const.DAYS})</td>
                    
13                <td width="25%">{$smarty.const.MEMBERS}:</td>
                    
14                <td width="25%">{$members}</td>
                    
16              <tr class="{cycle values="row_odd, row_even"}">
                    
17                <td>{$smarty.const.VISITS}:</td>
                    
18                <td>{$visits}</td>
                    
18                <td>{$visits}</td>
                    
19                <td>{$smarty.const.NEWEST_MEMBER}:</td>
                    
20                <td>{$lastmember}</td>
                    
                
%%37^37F^37F26BBC%%profile.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 204 lines
                    
1<?php /* Smarty version 2.6.12, created on 2006-07-17 16:34:39
                    
2         compiled from user/profile.tpl */ ?>
                    
2         compiled from user/profile.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'user/profile.tpl', 13, false),array('function', 'fieldLabel', 'user/profile.tpl', 22, false),array('function', 'translate', 'user/profile.tpl', 39, false),array('function', 'html_options', 'user/profile.tpl', 74, false),array('modifier', 'assign', 'user/profile.tpl', 13, false),array('modifier', 'escape', 'user/profile.tpl', 23, false),)), $this); ?>
                    
5
                    
6<?php $this->assign('pageTitle', "user.profile.editProfile");  echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'profile'), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'url') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'url'));?>
                    
7
                    
8<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
9$this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
                    
10$this->_tpl_vars = $_smarty_tpl_vars;
                    
17<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
18$this->_smarty_include(array('smarty_include_tpl_file' => "common/formErrors.tpl", 'smarty_include_vars' => array()));
                    
19$this->_tpl_vars = $_smarty_tpl_vars;
                    
200<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
201$this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
                    
202$this->_tpl_vars = $_smarty_tpl_vars;
                    
                
%%AB^AB2^AB2370DF%%resultsGeneral.tpl.php https://github.com/viglesiasce/testlink.git | PHP | 248 lines
                    
25<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
26$this->_smarty_include(array('smarty_include_tpl_file' => "inc_result_tproject_tplan.tpl", 'smarty_include_vars' => array('arg_tproject_name' => $this->_tpl_vars['session']['testprojectName'],'arg_tplan_name' => $this->_tpl_vars['gui']->tplan_name)));
                    
27$this->_tpl_vars = $_smarty_tpl_vars;
                    
103      <?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
104$this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_res_by_platform'],'args_first_column_header' => $this->_tpl_vars['labels']['th_platform'],'args_first_column_key' => 'name','args_show_percentage' => true,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->platform,'args_column_data' => $this->_tpl_vars['gui']->statistics->platform)));
                    
105$this->_tpl_vars = $_smarty_tpl_vars;
                    
110      <?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
111$this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_report_tc_priorities'],'args_first_column_header' => $this->_tpl_vars['labels']['priority'],'args_first_column_key' => 'name','args_show_percentage' => true,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->platform,'args_column_data' => $this->_tpl_vars['gui']->statistics->priorities)));
                    
112$this->_tpl_vars = $_smarty_tpl_vars;
                    
117  	  	<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
118$this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_res_by_kw'],'args_first_column_header' => $this->_tpl_vars['labels']['trep_kw'],'args_first_column_key' => 'name','args_show_percentage' => true,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->keywords,'args_column_data' => $this->_tpl_vars['gui']->statistics->keywords)));
                    
119$this->_tpl_vars = $_smarty_tpl_vars;
                    
243<p style="margin: 10px;"><?php echo $this->_tpl_vars['labels']['generated_by_TestLink_on']; ?>
                    
244 <?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['gsmarty_timestamp_format']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['gsmarty_timestamp_format'])); ?>
                    
245</p>
                    
                
view_gallery_images_inc.tpl https://github.com/tekimaki/fisheye.git | Smarty Template | 176 lines
                    
19		{foreachelse}
                    
20			<div class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gContent->mGalleryId}">Upload pictures!</a></div>
                    
21		{/foreach}
                    
129						{if $gContent->isOwner( $galItem->mInfo ) || $gBitUser->isAdmin()}
                    
130							<a href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?content_id={$galItem->mInfo.content_id}&amp;action=edit">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit File"}</a>
                    
131							<a href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?content_id={$galItem->mInfo.content_id}&amp;delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Remove File"}</a>
                    
169		{foreachelse}
                    
170			<tr><td class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gContent->mGalleryId}">Upload pictures!</a></td></tr>
                    
171		{/foreach}
                    
                
%%64^641^64140FCA%%inc_exec_controls.tpl.php https://github.com/viglesiasce/testlink.git | PHP | 95 lines
                    
1<?php /* Smarty version 2.6.26, created on 2010-09-27 15:50:41
                    
2         compiled from execute/inc_exec_controls.tpl */ ?>
                    
2         compiled from execute/inc_exec_controls.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'execute/inc_exec_controls.tpl', 37, false),)), $this); ?>
                    
44    							        checked="checked" 
                    
45    							    <?php endif; ?> /> &nbsp;<?php echo lang_get_smarty(array('s' => $this->_tpl_vars['locale_status']), $this);?>
                    
46<br />
                    
                
a647b190b30160270a05d4a6a733a871b9b4d344.file.payment_execution.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 139 lines
                    
1<?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 17:38:14
                    
2         compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\modules\bankwire\views\templates\front\payment_execution.tpl" */ ?>
                    
54<?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('payment', null, 0);?>
                    
55<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./order-steps.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
                    
56
                    
80
                    
81                <span id="amount" class="price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['total']->value),$_smarty_tpl);?>
                    
82</span>
                    
93                    <div class="form-group">
                    
94                        <label><?php echo smartyTranslate(array('s'=>'Choose one of the following:','mod'=>'bankwire'),$_smarty_tpl);?>
                    
95</label>
                    
96                        <select id="currency_payment" class="form-control" name="currency_payment">
                    
97                            <?php  $_smarty_tpl->tpl_vars['currency'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['currency']->_loop = false;
                    
98 $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
                    
118            <p>
                    
119                - <?php echo smartyTranslate(array('s'=>'Bank wire account information will be displayed on the next page.','mod'=>'bankwire'),$_smarty_tpl);?>
                    
120
                    
                
function.html_select_time.php https://gitlab.com/adamlwalker/generatedata | PHP | 366 lines
                    
2/**
                    
3 * Smarty plugin
                    
4 *
                    
4 *
                    
5 * @package Smarty
                    
6 * @subpackage PluginsFunction
                    
11 */
                    
12require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
13/**
                    
15 */
                    
16require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
                    
17
                    
18/**
                    
19 * Smarty {html_select_time} function plugin
                    
20 *
                    
                
Header.php https://github.com/orchestra-io/sample-openx.git | PHP | 230 lines
                    
192        
                    
193        $view = Zend_Registry::getInstance()->get('smartyView');
                    
194        $selectHelper = new Zend_View_Helper_FormSelect();
                    
                
9c04b940cdaa76a0c388694057a378669c722ba8.file.menu.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 209 lines
                    
58	<?php }?>
                    
59	<?php if (in_array('ri-rideslist',$_smarty_tpl->getVariable('modlist')->value)||in_array('bo-bookings',$_smarty_tpl->getVariable('modlist')->value)||in_array('ri-member_payment',$_smarty_tpl->getVariable('modlist')->value)){?>
                    
60	<li>
                    
82
                    
83	<?php if (in_array('r-member_reports',$_smarty_tpl->getVariable('modlist')->value)||in_array('r-rides_reports',$_smarty_tpl->getVariable('modlist')->value)||in_array('r-payment_reports',$_smarty_tpl->getVariable('modlist')->value)||in_array('r-money_reports',$_smarty_tpl->getVariable('modlist')->value)){?>
                    
84	<li>
                    
105	<?php }?>
                    
106	<?php if (in_array('m-member_stories',$_smarty_tpl->getVariable('modlist')->value)||in_array('u-media_partners',$_smarty_tpl->getVariable('modlist')->value)||in_array('u-email_templates',$_smarty_tpl->getVariable('modlist')->value)||in_array('u-faqcategory',$_smarty_tpl->getVariable('modlist')->value)||in_array('u-faq',$_smarty_tpl->getVariable('modlist')->value)||in_array('to-homebanners',$_smarty_tpl->getVariable('modlist')->value)||in_array('to-banners',$_smarty_tpl->getVariable('modlist')->value)||in_array('u-currency',$_smarty_tpl->getVariable('modlist')->value)||in_array('u-newsletter_subscriber',$_smarty_tpl->getVariable('modlist')->value)){?>
                    
107	<li style="width:120px;">
                    
153	<?php }?>
                    
154	<?php if (in_array('l-country',$_smarty_tpl->getVariable('modlist')->value)||in_array('l-state',$_smarty_tpl->getVariable('modlist')->value)||in_array('l-city',$_smarty_tpl->getVariable('modlist')->value)){?>
                    
155	<li>
                    
178	<?php }?>
                    
179	<?php if (in_array('to-generalsettings',$_smarty_tpl->getVariable('modlist')->value)||in_array('to-languagelabel',$_smarty_tpl->getVariable('modlist')->value)||in_array('pg-staticpages',$_smarty_tpl->getVariable('modlist')->value)){?>
                    
180	<li>
                    
                
%%99^99A^99A58582%%createReviewerForm.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 154 lines
                    
1<?php /* Smarty version 2.6.12, created on 2006-07-17 16:34:36
                    
2         compiled from sectionEditor/createReviewerForm.tpl */ ?>
                    
2         compiled from sectionEditor/createReviewerForm.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'sectionEditor/createReviewerForm.tpl', 15, false),array('function', 'fieldLabel', 'sectionEditor/createReviewerForm.tpl', 21, false),array('function', 'translate', 'sectionEditor/createReviewerForm.tpl', 25, false),array('function', 'html_options', 'sectionEditor/createReviewerForm.tpl', 81, false),array('modifier', 'to_array', 'sectionEditor/createReviewerForm.tpl', 15, false),array('modifier', 'escape', 'sectionEditor/createReviewerForm.tpl', 23, false),)), $this); ?>
                    
6<?php $this->assign('pageTitle', "sectionEditor.review.createReviewer");  $_smarty_tpl_vars = $this->_tpl_vars;
                    
7$this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
                    
8$this->_tpl_vars = $_smarty_tpl_vars;
                    
11
                    
12<form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'createReviewer','path' => ((is_array($_tmp=$this->_tpl_vars['articleId'])) ? $this->_run_mod_handler('to_array', true, $_tmp, 'create') : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, 'create'))), $this);?>
                    
13">
                    
15<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
16$this->_smarty_include(array('smarty_include_tpl_file' => "common/formErrors.tpl", 'smarty_include_vars' => array()));
                    
17$this->_tpl_vars = $_smarty_tpl_vars;
                    
150<?php $_smarty_tpl_vars = $this->_tpl_vars;
                    
151$this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
                    
152$this->_tpl_vars = $_smarty_tpl_vars;
                    
                
smarty_internal_compile_if.php https://gitlab.com/team_fsn/fsn-php | PHP | 252 lines
                    
16 */
                    
17class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase
                    
18{
                    
60                    "]) || !is_array(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] .
                    
61                    "]->value)) \$_smarty_tpl->smarty->ext->_var->createLocalArrayVariable(\$_smarty_tpl, " . $parameter['if condition']['var']['var'] .
                    
62                    "$_nocache);\n";
                    
86 */
                    
87class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase
                    
88{
                    
164                        $parameter['if condition']['var']['var'] .
                    
165                        "]->value)) \$_smarty_tpl->smarty->ext->_var->createLocalArrayVariable(\$_smarty_tpl, " .
                    
166                        $parameter['if condition']['var']['var'] . "$_nocache);\n";
                    
197                                                         $parameter['if condition']['var']['var'] .
                    
198                                                         "]->value)) \$_smarty_tpl->smarty->ext->_var->createLocalArrayVariable(\$_smarty_tpl, " .
                    
199                                                         $parameter['if condition']['var']['var'] . "$_nocache);\n");
                    
                
76286211767165f14fe40f64191338d47f6aa0ce.file.password.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 84 lines
                    
35</a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
                    
36</span><?php echo smartyTranslate(array('s'=>'Forgot your password'),$_smarty_tpl);?>
                    
37<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                    
40 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
                    
41 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
                    
42} else $_smarty_tpl->capture_error();?>
                    
43<div class="box">
                    
44<h1 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Forgot your password?'),$_smarty_tpl);?>
                    
45</h1>
                    
46
                    
47<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
                    
48
                    
79	<li><a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('authentication'), ENT_QUOTES, 'UTF-8', true);?>
                    
80" title="<?php echo smartyTranslate(array('s'=>'Back to Login'),$_smarty_tpl);?>
                    
81" rel="nofollow"><span><i class="icon-chevron-left"></i><?php echo smartyTranslate(array('s'=>'Back to Login'),$_smarty_tpl);?>
                    
                
DashletGenericChart.php https://github.com/joshbhamilton/sugarcrm_dev.git | PHP | 354 lines
                    
59    /**
                    
60     * location of smarty template file for configuring
                    
61     * @var string
                    
83    /**
                    
84     * smarty object for the generic configuration template
                    
85     * @var object
                    
159    /**
                    
160     * Gets the smarty object for the config window. Designed to allow lazy loading the object
                    
161     * when it's needed.
                    
162     */
                    
163    protected function getConfigureSmartyInstance()
                    
164    {
                    
164    {
                    
165        if ( !($this->_configureSS instanceof Sugar_Smarty) ) {
                    
166            
                    
                
statistics-resultid.inc.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 148 lines
                    
141writeResultStats((int)$i_resultid);
 
                    
142$g_smarty->assign('g_vars', $g_vars);
                    
143if(!empty($_GET['print'])) {
                    
                
index2.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 168 lines
                    
72
                    
73		$smarty->assign("countItem", $menuLeftCountItem);
                    
74		
                    
83		list($mod) = split('[/]', $hdl);
                    
84		$smarty->assign("mod", 	$mod);
                    
85
                    
85
                    
86		$smarty->config_load("lang_en.conf");
                    
87		include_once FRONTEND_PAGE_PATH.DS."include".DS."categories.php";
                    
115		$PositionEight 	= $PromoteDao->getAllPromotes($provinceTmp, Status::active, Position::positioneight, 1, 0);
                    
116		$smarty->assign("PositionTopCenter", $PositionTC[0]);
                    
117		$smarty->assign("PositionTopRight", $PositionTR[0]);
                    
117		$smarty->assign("PositionTopRight", $PositionTR[0]);
                    
118		$smarty->assign("Position3", 	$PositionThr);
                    
119		$smarty->assign("Position4", 	$PositionFou);
                    
                
Presenter.class.php https://github.com/mrbmc/erector.git | PHP | 271 lines
                    
14	private $format;
                    
15	private $smarty;
                    
16	private $OUTPUT;
                    
52	private function compile () {
                    
53		include_once LIB.'/smarty/Smarty.class.php';//Template engine
                    
54		$this->smarty = new Smarty();
                    
54		$this->smarty = new Smarty();
                    
55		$this->smarty->debugging = DEBUG;
                    
56		$this->smarty->template_dir = APP.'/views';
                    
56		$this->smarty->template_dir = APP.'/views';
                    
57		$this->smarty->compile_dir = $this->smarty->cache_dir = LIB.'/../cache';
                    
58		$this->smarty->config_dir = LIB.'/smarty/configs';
                    
59		$this->smarty->caching = !DEBUG;
                    
60		$this->smarty->force_compile = DEBUG;
                    
61		//Debugger::trace($this->smarty);
                    
                
85ae5825f0ecc116df7cd025321b82c10742acf0.file.order-address-product-line.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 154 lines
                    
43_0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
                    
44" class="<?php if ($_smarty_tpl->tpl_vars['productLast']->value) {?>last_item<?php } elseif ($_smarty_tpl->tpl_vars['productFirst']->value) {?>first_item<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])&&$_smarty_tpl->tpl_vars['quantityDisplayed']->value==0) {?>alternate_item<?php }?> cart_item <?php if ($_smarty_tpl->tpl_vars['odd']->value) {?>odd<?php } else { ?>even<?php }?>">
                    
45	<td class="cart_product">
                    
67	<?php if (isset($_smarty_tpl->tpl_vars['cannotModify']->value)&&$_smarty_tpl->tpl_vars['cannotModify']->value==1) {?>
                    
68		<span><?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
                    
69<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
                    
72		<?php if (!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])||$_smarty_tpl->tpl_vars['quantityDisplayed']->value>0) {?>
                    
73        	<input type="hidden" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
                    
74<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
                    
78_hidden" />
                    
79			<input size="2" type="text" class="cart_quantity_input form-control grey" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
                    
80<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
                    
139"
                    
140                            <?php if (($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']>0&&$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==$_smarty_tpl->tpl_vars['address']->value['id_address'])||($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==0&&$_smarty_tpl->tpl_vars['address']->value['id_address']==$_smarty_tpl->tpl_vars['delivery']->value->id)) {?>
                    
141                                selected="selected"
                    
                
57968774dad30046502d1520fa458aca95144eb9.file.actions.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 235 lines
                    
75			<label for="apply_discount_off">
                    
76				<input type="radio" name="apply_discount" id="apply_discount_off" value="off" <?php if (!floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_amount'))>0&&!floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_percent'))>0) {?>checked="checked"<?php }?> />
                    
77				<i class="icon-remove color_danger"></i> <?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
                    
114					<option value="<?php echo intval($_smarty_tpl->tpl_vars['currency']->value['id_currency']);?>
                    
115" <?php if ($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_currency')==$_smarty_tpl->tpl_vars['currency']->value['id_currency']||(!$_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_currency')&&$_smarty_tpl->tpl_vars['currency']->value['id_currency']==$_smarty_tpl->tpl_vars['defaultCurrency']->value)) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['currency']->value['iso_code'];?>
                    
116</option>
                    
121				<select name="reduction_tax" >
                    
122					<option value="0" <?php if ($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_tax')==0) {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Tax excluded'),$_smarty_tpl);?>
                    
123</option>
                    
123</option>
                    
124					<option value="1" <?php if ($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_tax')==1) {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Tax included'),$_smarty_tpl);?>
                    
125</option>
                    
160				<?php echo smartyTranslate(array('s'=>'Selected product(s)'),$_smarty_tpl);?>
                    
161<?php if (count($_smarty_tpl->tpl_vars['product_rule_groups']->value)==0) {?>&nbsp;<span id="apply_discount_to_selection_warning" class="text-muted clearfix"><i class="icon-warning-sign"></i> <a href="#" id="apply_discount_to_selection_shortcut"><?php echo smartyTranslate(array('s'=>'You must select some products before'),$_smarty_tpl);?>
                    
162</a></span><?php }?>
                    
                
gold_user_record.tpl https://github.com/karlom/gameadmin.git | Smarty Template | 173 lines
                    
62<div class='divOperation'>
                    
63<form name="myform" id="myform" method="post" action="<{$smarty.const.URL_SELF}>">
                    
64	<{$lang->page->roleName}>:<input type="text" id="roleName" name="role[roleName]" size="10" value="<{$role.roleName}>" />
                    
                
configuressl-stepone.tpl https://gitlab.com/billyprice1/templates-six | Smarty Template | 167 lines
                    
14
                    
15        <form method="post" action="{$smarty.server.PHP_SELF}?cert={$cert}&step=2">
                    
16
                    
                
h_confirm_list.tpl https://github.com/usagi-project/mynets1.git | Smarty Template | 84 lines
                    
1({$inc_ktai_header|smarty:nodefaults})
                    
2
                    
83
                    
84({$inc_ktai_footer|smarty:nodefaults})
                    
                
tcAssign2Tplan.php https://github.com/viglesiasce/testlink.git | PHP | 242 lines
                    
197}
                    
198$smarty = new TLSmarty();
                    
199$smarty->assign('gui',$gui);
                    
199$smarty->assign('gui',$gui);
                    
200$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
                    
201
                    
                
DetailView.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 122 lines
                    
10
                    
11require_once('Smarty_setup.php');
                    
12require_once('include/utils/utils.php');
                    
32
                    
33$smarty = new vtigerCRM_Smarty;
                    
34$smarty->assign("MOD", $mod_strings);
                    
35$smarty->assign("APP", $app_strings);
                    
36$smarty->assign("THEME", $theme);
                    
37
                    
37
                    
38if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
                    
39else $smarty->assign("NAME", "");
                    
71
                    
72$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
                    
73$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
                    
                
 

Source

Language