本文整理汇总了PHP中smarty_modifier_translate函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_modifier_translate函数的具体用法?PHP smarty_modifier_translate怎么用?PHP smarty_modifier_translate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_modifier_translate函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_url
<a class="submit" href="<?php
echo smarty_function_url(array('action' => $this->_tpl_vars['nextModuleName']), $this);
?>
"><?php
echo is_array($_tmp = 'General_Next') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
»</a>
</p>
<?php
}
?>
</div>
<div class="both"></div>
<br />
<br />
<h3><?php
echo is_array($_tmp = 'Installation_InstallationStatus') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h3>
<div id="progressbar"></div>
<?php
echo is_array($_tmp = 'Installation_PercentDone') ? $this->_run_mod_handler('translate', true, $_tmp, $this->_tpl_vars['percentDone']) : smarty_modifier_translate($_tmp, $this->_tpl_vars['percentDone']);
?>
</div>
</div>
</body>
</html>
示例2: smarty_function_url
<tbody id="tb">
</tbody>
<tfoot>
<?php
if ($this->_tpl_vars['isSuperUser']) {
?>
<tr>
<td colspan="8" class="clean" style="text-align: right; padding-top: 15px;padding-right:10px">
<a href="<?php
echo smarty_function_url(array(), $this);
?>
&module=SitesManager&action=index&showaddsite=1"><img src='plugins/UsersManager/images/add.png' alt=""
style="margin: 0;"/> <?php
echo is_array($_tmp = 'SitesManager_AddSite') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</a>
</td>
</tr>
<?php
}
?>
<tr row_id="last">
<td colspan="8" class="clean" style="padding: 20px">
<span id="prev" class="pager" style="padding-right: 20px;"></span>
<span class="dataTablePages">
<span id="counter">
</span>
</span>
<span id="next" class="clean" style="padding-left: 20px;"></span>
示例3: is_array
<div id="rightcolumn">
<h2><?php
echo is_array($_tmp = 'UserCountry_Country') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h2>
<?php
echo $this->_tpl_vars['dataTableCountry'];
?>
<h2><?php
echo is_array($_tmp = 'UserCountry_Region') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h2>
<?php
echo $this->_tpl_vars['dataTableRegion'];
?>
<h2><?php
echo is_array($_tmp = 'UserCountry_City') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h2>
<?php
echo $this->_tpl_vars['dataTableCity'];
?>
</div>
示例4: is_array
?>
.<?php
echo $this->_tpl_vars['info_sort'][$this->_tpl_vars['id_sort']]['7'];
?>
');"><?php
echo is_array($_tmp = 'generique_lowpop') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</a>
<?php
} else {
?>
<a href="javascript:void(0);" onclick="javascript:changeDetails(this,'<?php
echo $this->_tpl_vars['url_a_int_sort'];
?>
&a_<?php
echo $this->_tpl_vars['id_sort'];
?>
_sort=<?php
echo $this->_tpl_vars['info_sort'][$this->_tpl_vars['id_sort']]['0'];
?>
.<?php
echo $this->_tpl_vars['i'];
?>
.0.0');"><?php
echo is_array($_tmp = 'generique_allpop') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</a>
<?php
}
?>
</p>
开发者ID:ber5ien,项目名称:www.jade-palace.co.uk,代码行数:31,代码来源:default2.4^%%AF^AFD^AFD26537%%link_population.tpl.php
示例5: smarty_core_load_plugins
compiled from common/display_data_array.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'translate', 'common/display_data_array.tpl', 3, false))), $this);
if ($this->_tpl_vars['id'] != 'continent') {
?>
<a id="a<?php
echo $this->_tpl_vars['a'];
?>
"></a>
<h3><?php
echo is_array($_tmp = $this->_tpl_vars['headline']) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h3>
<?php
}
if ($this->_tpl_vars['data'] != 'null') {
if ($this->_tpl_vars['text']) {
echo $this->_tpl_vars['text'];
?>
<br /><br /> <?php
}
echo $this->_tpl_vars['data'];
?>
<?php
} else {
echo is_array($_tmp = $this->_tpl_vars['lang_no_visit']) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
<?php
}
开发者ID:ber5ien,项目名称:www.jade-palace.co.uk,代码行数:31,代码来源:default2.4^%%5A^5A2^5A2CD8BC%%display_data_array.tpl.php
示例6: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2013-04-09 04:42:27
compiled from default/genericForm.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'translate', 'default/genericForm.tpl', 4, false))), $this);
if ($this->_tpl_vars['form_data']['errors']) {
?>
<div class="warning">
<img src="themes/default/images/warning_medium.png">
<strong><?php
echo is_array($_tmp = 'Installation_PleaseFixTheFollowingErrors') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
:</strong>
<ul>
<?php
$_from = $this->_tpl_vars['form_data']['errors'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from)) {
foreach ($_from as $this->_tpl_vars['data']) {
?>
<li><?php
echo $this->_tpl_vars['data'];
?>
</li>
<?php
}
}
unset($_from);
示例7: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2013-04-09 04:41:26
compiled from LanguagesManager/templates/languages.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'translate', 'LanguagesManager/templates/languages.tpl', 5, false))), $this);
?>
<span class="topBarElem" style="padding-right:70px">
<span id="languageSelection" style="position:absolute">
<form action="index.php?module=LanguagesManager&action=saveLanguage" method="post">
<select name="language" id="language">
<option title="" value="" href="?module=Proxy&action=redirect&url=http://piwik.org/translations/"><?php
echo is_array($_tmp = 'LanguagesManager_AboutPiwikTranslations') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</option>
<?php
$_from = $this->_tpl_vars['languages'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from)) {
foreach ($_from as $this->_tpl_vars['language']) {
?>
<option value="<?php
echo $this->_tpl_vars['language']['code'];
?>
" <?php
if ($this->_tpl_vars['language']['code'] == $this->_tpl_vars['currentLanguageCode']) {
?>
selected="selected"<?php
}
示例8: unset
?>
</a>
<?php
}
?>
<?php
}
?>
<?php
}
}
unset($_from);
?>
<?php
if ($this->_foreach['visitorPages']['iteration'] > $this->_tpl_vars['maxPagesDisplayedByVisitor']) {
?>
<i>(<?php
echo is_array($_tmp = 'Live_MorePagesNotDisplayed') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
)</i>
<?php
}
?>
</div>
</li>
<?php
}
}
unset($_from);
?>
</ul>
示例9: is_array
<div class="dataTableActionsWrapper">
<?php
if (isset($this->_tpl_vars['arrayDataTable']['result']) && $this->_tpl_vars['arrayDataTable']['result'] == 'error') {
?>
<?php
echo $this->_tpl_vars['arrayDataTable']['message'];
?>
<?php
} else {
?>
<?php
if (count($this->_tpl_vars['arrayDataTable']) == 0) {
?>
<div class="pk-emptyDataTable"><?php
echo is_array($_tmp = 'CoreHome_ThereIsNoDataForThisReport') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</div>
<?php
} else {
?>
<table cellspacing="0" class="dataTable dataTableActions">
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CoreHome/templates/datatable_head.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<tbody>
示例10: is_array
?>
checked="checked" <?php
}
?>
/> <?php
echo is_array($_tmp = 'Login_RememberMe') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</label>
</p>
<p class="submit">
<input type="submit" value="<?php
echo is_array($_tmp = 'Login_LogIn') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
" tabindex="100" />
</p>
</form>
<p id="nav">
<a href="index.php?module=Login&action=lostPassword" title="<?php
echo is_array($_tmp = 'Login_LostYourPassword') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
"><?php
echo is_array($_tmp = 'Login_LostYourPassword') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</a>
</p>
</div>
</body>
</html>
示例11: smarty_function_sparkline
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineAvgVisitDuration']), $this);
?>
<?php
$this->assign('averageVisitDuration', is_array($_tmp = $this->_tpl_vars['averageVisitDuration']) ? $this->_run_mod_handler('sumtime', true, $_tmp) : smarty_modifier_sumtime($_tmp));
?>
<?php
echo is_array($_tmp = 'VisitsSummary_AverageVisitDuration') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['averageVisitDuration'] . "</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['averageVisitDuration'] . "</strong>");
?>
</div>
<div class="sparkline"><?php
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineBounceRate']), $this);
?>
<?php
echo is_array($_tmp = 'VisitsSummary_NbVisitsBounced') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['bounceRate'] . "%</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['bounceRate'] . "%</strong>");
?>
</div>
<div class="sparkline"><?php
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineMaxActions']), $this);
?>
<?php
echo is_array($_tmp = 'VisitsSummary_MaxNbActions') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['maxActions'] . "</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['maxActions'] . "</strong>");
?>
</div>
</div>
<div style="clear:both;"></div>
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CoreHome/templates/sparkline_footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
示例12: foreach
if ($this->_foreach['topGoalElements']['total'] > 0) {
foreach ($_from as $this->_tpl_vars['element']) {
$this->_foreach['topGoalElements']['iteration']++;
?>
<?php
$this->assign('goal_nb_conversion', $this->_tpl_vars['element']['nb_conversions']);
?>
<?php
$this->assign('goal_conversion_rate', $this->_tpl_vars['element']['conversion_rate']);
?>
<span class='goalTopElement' title='<?php
echo is_array($_tmp = 'Goals_Conversions') ? $this->_run_mod_handler('translate', true, $_tmp, "<b>" . $this->_tpl_vars['goal_nb_conversion'] . "</b>") : smarty_modifier_translate($_tmp, "<b>" . $this->_tpl_vars['goal_nb_conversion'] . "</b>");
?>
,
<?php
echo is_array($_tmp = 'Goals_ConversionRate') ? $this->_run_mod_handler('translate', true, $_tmp, "<b>" . $this->_tpl_vars['goal_conversion_rate'] . "</b>") : smarty_modifier_translate($_tmp, "<b>" . $this->_tpl_vars['goal_conversion_rate'] . "</b>");
?>
'>
<?php
echo $this->_tpl_vars['element']['name'];
?>
</span>
<?php
echo smarty_function_logoHtml(array('metadata' => $this->_tpl_vars['element']['metadata'], 'alt' => $this->_tpl_vars['element']['name']), $this);
?>
<?php
if ($this->_foreach['topGoalElements']['iteration'] == $this->_foreach['topGoalElements']['total'] - 1) {
?>
and <?php
} elseif ($this->_foreach['topGoalElements']['iteration'] < $this->_foreach['topGoalElements']['total'] - 1) {
示例13: is_array
<a id="a<?php
echo $this->_tpl_vars['a'];
?>
"></a>
<h3><?php
echo is_array($_tmp = 'visites_graphheureserveur') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h3>
<img src="<?php
echo $this->_tpl_vars['url_mod'];
?>
&mod=view_graph&graph_type=2&graph_data=visits_server_time" alt="" />
<?php
echo smarty_function_counter(array('name' => 'a'), $this);
?>
<a id="a<?php
echo $this->_tpl_vars['a'];
?>
"></a>
<h3><?php
echo is_array($_tmp = 'visites_graphheurevisiteur') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h3>
<img src="<?php
echo $this->_tpl_vars['url_mod'];
?>
&mod=view_graph&graph_type=2&graph_data=visits_local_time" alt="" />
</div>
开发者ID:ber5ien,项目名称:www.jade-palace.co.uk,代码行数:30,代码来源:default2.4^%%98^985^98526B30%%viewvisits_all.tpl.php
示例14: elseif
} elseif ($this->_tpl_vars['counts']['count'] == 1) {
?>
title="<?php
echo is_array($_tmp = 'Annotations_AnnotationOnDate') ? $this->_run_mod_handler('translate', true, $_tmp, $this->_tpl_vars['date'], $this->_tpl_vars['counts']['note']) : smarty_modifier_translate($_tmp, $this->_tpl_vars['date'], $this->_tpl_vars['counts']['note']);
?>
<?php
echo is_array($_tmp = 'Annotations_ClickToEditOrAdd') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
"
<?php
} else {
?>
title="<?php
echo is_array($_tmp = 'Annotations_ViewAndAddAnnotations_js') ? $this->_run_mod_handler('translate', true, $_tmp, $this->_tpl_vars['date']) : smarty_modifier_translate($_tmp, $this->_tpl_vars['date']);
?>
"
<?php
}
?>
>
<img src="themes/default/images/<?php
if ($this->_tpl_vars['counts']['starred'] > 0) {
?>
yellow_marker.png<?php
} else {
?>
grey_marker.png<?php
}
?>
示例15: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2013-04-09 04:45:34
compiled from Installation/templates/generalSetup.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'translate', 'Installation/templates/generalSetup.tpl', 1, false))), $this);
?>
<h2><?php
echo is_array($_tmp = 'Installation_SuperUser') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h2>
<?php
if (isset($this->_tpl_vars['form_data'])) {
?>
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/genericForm.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
}