本文整理汇总了PHP中smarty_function_mailto函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_mailto函数的具体用法?PHP smarty_function_mailto怎么用?PHP smarty_function_mailto使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_mailto函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_oxmailto
/**
* Smarty {mailto} function plugin extension, fixes character encoding problem
*
* @param array $aParams parameters
* @param Smarty &$oSmarty smarty object
*
* @return string
*/
function smarty_function_oxmailto($aParams, &$oSmarty)
{
if (isset($aParams['encode']) && $aParams['encode'] == 'javascript') {
$sAddress = isset($aParams['address']) ? $aParams['address'] : '';
$sText = $sAddress;
$aMailParms = array();
foreach ($aParams as $sVarName => $sValue) {
switch ($sVarName) {
case 'cc':
case 'bcc':
case 'followupto':
if ($sValue) {
$aMailParms[] = $sVarName . '=' . str_replace(array('%40', '%2C'), array('@', ','), rawurlencode($sValue));
}
break;
case 'subject':
case 'newsgroups':
$aMailParms[] = $sVarName . '=' . rawurlencode($sValue);
break;
case 'extra':
case 'text':
$sName = "s" . ucfirst($sVarName);
${$sName} = $sValue;
default:
}
}
for ($iCtr = 0; $iCtr < count($aMailParms); $iCtr++) {
$sAddress .= $iCtr == 0 ? '?' : '&';
$sAddress .= $aMailParms[$iCtr];
}
$sString = 'document.write(\'<a href="mailto:' . $sAddress . '" ' . $sExtra . '>' . $sText . '</a>\');';
$sEncodedString = "%" . wordwrap(current(unpack("H*", $sString)), 2, "%", true);
return '<script type="text/javascript">eval(decodeURIComponent(\'' . $sEncodedString . '\'))</script>';
} else {
include_once $oSmarty->_get_plugin_filepath('function', 'mailto');
return smarty_function_mailto($aParams, $oSmarty);
}
}
示例2: array_pop
array_pop($this->_tag_stack);
?>
</p>
<p id="b"><?php
echo $this->_tpl_vars['_copyright'];
?>
© <?php
echo $this->_tpl_vars['_service_hotline'];
echo $this->_tpl_vars['service_tel'];
?>
<?php
echo $this->_tpl_vars['_service_email'];
?>
:<?php
echo smarty_function_mailto(array('text' => $this->_tpl_vars['service_email'], 'address' => $this->_tpl_vars['service_email'], 'encode' => 'javascript'), $this);
?>
</p>
</div>
</div>
<script language="javascript" src="scripts/highlight.js"></script>
<?php
if ($this->_tpl_vars['highlight_str']) {
?>
<script>
$('#res div:not("#no_result,#rs")').highlight('<?php
echo $this->_tpl_vars['highlight_str'];
?>
');
</script>
<?php
示例3: is_array
?>
: <?php
echo is_array($_tmp = $this->_tpl_vars['journalSettings']['supportPhone']) ? $this->_run_mod_handler('escape', true, $_tmp) : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp);
?>
<br />
<?php
}
?>
<?php
if (!empty($this->_tpl_vars['journalSettings']['supportEmail'])) {
?>
<?php
echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "about.contact.email"), $this);
?>
: <?php
echo smarty_function_mailto(array('address' => is_array($_tmp = $this->_tpl_vars['journalSettings']['supportEmail']) ? $this->_run_mod_handler('escape', true, $_tmp) : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp), 'encode' => 'hex'), $this);
?>
<br />
<?php
}
?>
</p>
<?php
}
?>
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
示例4: content_555770635d6048_02809565
function content_555770635d6048_02809565($_smarty_tpl)
{
if (!is_callable('smarty_function_mailto')) {
include '/home/matej/webapps/webshop/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<section id="block_contact_infos" class="footer-block">
<div>
<h4 class="title_block mainFont"><?php
echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h4>
<ul class="toggle-footer">
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li>
<i class="icon-home"></i><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, ENT_QUOTES, 'UTF-8', true);
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
, <?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, ENT_QUOTES, 'UTF-8', true);
}
?>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li>
<i class="icon-mobile-phone"></i><?php
echo smartyTranslate(array('s' => 'Call us now:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, ENT_QUOTES, 'UTF-8', true);
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li>
<i class="icon-envelope"></i><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo smarty_function_mailto(array('address' => htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, ENT_QUOTES, 'UTF-8', true), 'encode' => "hex"), $_smarty_tpl);
?>
</span>
</li>
<?php
}
?>
</ul>
</div>
</section>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:blaz1988,项目名称:presta,代码行数:69,代码来源:49bd97721469c4d63b6377897cdbf62e1a44ad7c.file.blockcontactinfos.tpl.php
示例5: content_561cd205cb3072_55705805
function content_561cd205cb3072_55705805($_smarty_tpl)
{
if (!is_callable('smarty_function_mailto')) {
include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4">
<div>
<h4><?php
echo smartyTranslate(array('s' => 'Store Information', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h4>
<ul class="toggle-footer">
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li>
<i class="icon-map-marker"></i><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, ENT_QUOTES, 'UTF-8', true);
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
, <?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, ENT_QUOTES, 'UTF-8', true);
}
?>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li>
<i class="icon-phone"></i><?php
echo smartyTranslate(array('s' => 'Call us now:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, ENT_QUOTES, 'UTF-8', true);
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li>
<i class="icon-envelope-alt"></i><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo smarty_function_mailto(array('address' => htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, ENT_QUOTES, 'UTF-8', true), 'encode' => "hex"), $_smarty_tpl);
?>
</span>
</li>
<?php
}
?>
</ul>
</div>
</section>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:baljinderimpinge,项目名称:maestrano_presta,代码行数:69,代码来源:b018fab38adfb2d7ed5a69922c9cf0a426226ea4.file.blockcontactinfos.tpl.cache.php
示例6: content_52a1fabe2c9bd9_70353162
function content_52a1fabe2c9bd9_70353162($_smarty_tpl)
{
if (!is_callable('smarty_modifier_escape')) {
include '/var/www/vhosts/www.a3workout.com/httpdocs/shop3/tools/smarty/plugins/modifier.escape.php';
}
if (!is_callable('smarty_function_mailto')) {
include '/var/www/vhosts/www.a3workout.com/httpdocs/shop3/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<p class="title_block"><?php
echo smartyTranslate(array('s' => 'Contact us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</p>
<ul>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li><strong><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, 'htmlall', 'UTF-8');
?>
</strong></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
<li><pre><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, 'htmlall', 'UTF-8');
?>
</pre></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Tel:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, 'htmlall', 'UTF-8');
?>
</li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<?php
echo smarty_function_mailto(array('address' => smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, 'htmlall', 'UTF-8'), 'encode' => "hex"), $_smarty_tpl);
?>
</li><?php
}
?>
</ul>
</div>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:64,代码来源:08473e746e0aaecf02b455803cefc7b9d6760c7f.file.blockcontactinfos.tpl.php
示例7: content_5598e079a1da07_27185008
function content_5598e079a1da07_27185008($_smarty_tpl)
{
if (!is_callable('smarty_function_mailto')) {
include 'C:\\xampp\\htdocs\\zocart\\tools\\smarty\\plugins\\function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<section id="block_contact_infos" class="footer-block">
<div>
<h4 class="title_block mainFont"><?php
echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h4>
<ul class="toggle-footer">
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li>
<i class="icon-home"></i><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, ENT_QUOTES, 'UTF-8', true);
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
, <?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, ENT_QUOTES, 'UTF-8', true);
}
?>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li>
<i class="icon-mobile-phone"></i><?php
echo smartyTranslate(array('s' => 'Call us now:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, ENT_QUOTES, 'UTF-8', true);
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li>
<i class="icon-envelope"></i><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo smarty_function_mailto(array('address' => htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, ENT_QUOTES, 'UTF-8', true), 'encode' => "hex"), $_smarty_tpl);
?>
</span>
</li>
<?php
}
?>
</ul>
</div>
</section>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:habypk,项目名称:zocart,代码行数:69,代码来源:6e0c21d15a5bc9f82cb4cbd8ef0da60d94262448.file.blockcontactinfos.tpl.cache.php
示例8: content_529f43279b29e5_12231169
function content_529f43279b29e5_12231169($_smarty_tpl)
{
if (!is_callable('smarty_modifier_escape')) {
include 'C:\\wamp\\www\\a3shop\\tools\\smarty\\plugins\\modifier.escape.php';
}
if (!is_callable('smarty_function_mailto')) {
include 'C:\\wamp\\www\\a3shop\\tools\\smarty\\plugins\\function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<p class="title_block"><?php
echo smartyTranslate(array('s' => 'Contact us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</p>
<ul>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li><strong><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, 'htmlall', 'UTF-8');
?>
</strong></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
<li><pre><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, 'htmlall', 'UTF-8');
?>
</pre></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Tel:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, 'htmlall', 'UTF-8');
?>
</li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<?php
echo smarty_function_mailto(array('address' => smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, 'htmlall', 'UTF-8'), 'encode' => "hex"), $_smarty_tpl);
?>
</li><?php
}
?>
</ul>
</div>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:64,代码来源:ff905bdf1339b911663b36595facd010fc5a5c4e.file.blockcontactinfos.tpl.php
示例9: content_56671902ea0816_54339400
function content_56671902ea0816_54339400($_smarty_tpl)
{
if (!is_callable('smarty_modifier_escape')) {
include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/modifier.escape.php';
}
if (!is_callable('smarty_function_mailto')) {
include '/srv/www/helveti/helveti.cz/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<h3 class="title_block"><?php
echo smartyTranslate(array('s' => 'Contact us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h3>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<p><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, 'htmlall', 'UTF-8');
?>
</p><?php
}
?>
<ul>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
<li class="link"><span class="fa fa-map-marker"> </span> <?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, 'htmlall', 'UTF-8');
?>
</li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li class="link"><span class="fa fa-mobile-phone"> </span><?php
echo smartyTranslate(array('s' => 'Phone', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
: <?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, 'htmlall', 'UTF-8');
?>
</li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li class="link"><span class="fa fa-envelope"> </span><?php
echo smartyTranslate(array('s' => 'Email', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
: <?php
echo smarty_function_mailto(array('address' => smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, 'htmlall', 'UTF-8'), 'encode' => "hex"), $_smarty_tpl);
?>
</li><?php
}
?>
</ul>
</div>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:h0n24,项目名称:leodig,代码行数:64,代码来源:7bf70ae280c9a7dd8f4b694ce9a5ebba3c0654bd.file.blockcontactinfos.tpl.cache.php
示例10: content_560ec47e7300d0_27151790
function content_560ec47e7300d0_27151790($_smarty_tpl)
{
if (!is_callable('smarty_modifier_escape')) {
include '/Applications/XAMPP/xamppfiles/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
}
if (!is_callable('smarty_function_mailto')) {
include '/Applications/XAMPP/xamppfiles/htdocs/prestashop/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<p class="title_block"><?php
echo smartyTranslate(array('s' => 'Contact us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</p>
<ul>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li><strong><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, 'htmlall', 'UTF-8');
?>
</strong></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
<li><pre><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, 'htmlall', 'UTF-8');
?>
</pre></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Tel:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, 'htmlall', 'UTF-8');
?>
</li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<?php
echo smarty_function_mailto(array('address' => smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, 'htmlall', 'UTF-8'), 'encode' => "hex"), $_smarty_tpl);
?>
</li><?php
}
?>
</ul>
</div>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:jep004,项目名称:prestashop,代码行数:64,代码来源:abd6365b306d1749825fe4443fba1431295b2016.file.blockcontactinfos.tpl.php
示例11: content_530ffd724dc8c8_47102880
function content_530ffd724dc8c8_47102880($_smarty_tpl)
{
if (!is_callable('smarty_modifier_escape')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
}
if (!is_callable('smarty_function_mailto')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4">
<div>
<h4><?php
echo smartyTranslate(array('s' => 'Store Information', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h4>
<ul class="toggle-footer">
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li>
<i class="icon-map-marker"></i><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, 'html', 'UTF-8');
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
, <?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, 'html', 'UTF-8');
}
?>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li>
<i class="icon-phone"></i><?php
echo smartyTranslate(array('s' => 'Call us now toll free:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, 'html', 'UTF-8');
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li>
<i class="icon-envelope-alt"></i><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span><?php
echo smarty_function_mailto(array('address' => smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, 'html', 'UTF-8'), 'encode' => "hex"), $_smarty_tpl);
?>
</span>
</li>
<?php
}
?>
</ul>
</div>
</section>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:dev-lav,项目名称:htdocs,代码行数:72,代码来源:f08730d5d06a0fcd9b887c1650457c255bf6276a.file.blockcontactinfos.tpl.cache.php
示例12: settype
</ul>
<h4>Asesores:</h4>
<ul>
<?php
$_from = $this->_tpl_vars['tutors'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from)) {
foreach ($_from as $this->_tpl_vars['it']) {
echo '<li>';
echo $this->_tpl_vars['it']->getName();
echo ' ';
echo $this->_tpl_vars['it']->getLastname();
echo ' (';
echo smarty_function_mailto(array('address' => $this->_tpl_vars['it']->getMail(), 'encode' => 'javascript'), $this);
echo ')</li>';
?>
<?php
}
}
unset($_from);
?>
</ul>
<h4>Palabras clave</h4>
<p class="keyword">
<?php
$_from = $this->_tpl_vars['paper']->getKeywords();
if (!is_array($_from) && !is_object($_from)) {
示例13: content_55bf247a8f4819_60940082
function content_55bf247a8f4819_60940082($_smarty_tpl)
{
if (!is_callable('smarty_function_mailto')) {
include '/Applications/MAMP/htdocs/testguidingyou2/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<section id="block_contact_infos" class="footer-block col-xs-12 col-sm-2">
<div>
<h4><?php
echo smartyTranslate(array('s' => 'Store Information', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h4>
<ul class="toggle-footer">
<!---->
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li>
<i class="icon-home" style="line-height: inherit;"></i><span style="line-height: inherit;"><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, ENT_QUOTES, 'UTF-8', true);
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
<li style="min-height:inherit; line-height:inherit;">
<i class="icon-map-marker"></i>
<span><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, ENT_QUOTES, 'UTF-8', true);
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li>
<i class="icon-phone" style="line-height:inherit;"></i><?php
echo smartyTranslate(array('s' => 'Call us now:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span style="line-height:inherit;"><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, ENT_QUOTES, 'UTF-8', true);
?>
</span>
</li>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li>
<i class="icon-envelope-alt" style="line-height:inherit;"></i><?php
echo smartyTranslate(array('s' => 'Email:', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
<span style="line-height:inherit;"><?php
echo smarty_function_mailto(array('address' => htmlspecialchars($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, ENT_QUOTES, 'UTF-8', true), 'encode' => "hex"), $_smarty_tpl);
?>
</span>
</li>
<?php
}
?>
</ul>
</div>
</section>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:81,代码来源:b592a3de8ed0f9eba846ded70eb73a7e6434f0a1.file.blockcontactinfos.tpl.php
示例14: content_53ae65364ab2c1_00924253
function content_53ae65364ab2c1_00924253($_smarty_tpl)
{
if (!is_callable('smarty_modifier_escape')) {
include '/var/www/vipinsg/tools/smarty/plugins/modifier.escape.php';
}
if (!is_callable('smarty_function_mailto')) {
include '/var/www/vipinsg/tools/smarty/plugins/function.mailto.php';
}
?>
<!-- MODULE Block contact infos -->
<div id="block_contact_infos">
<h4><?php
echo smartyTranslate(array('s' => 'Contact us', 'mod' => 'blockcontactinfos'), $_smarty_tpl);
?>
</h4>
<ul>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value != '') {
?>
<li><strong><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_company']->value, 'htmlall', 'UTF-8');
?>
</strong></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value != '') {
?>
<li><pre><?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_address']->value, 'htmlall', 'UTF-8');
?>
</pre></li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Tel:'), $_smarty_tpl);
?>
<?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_phone']->value, 'htmlall', 'UTF-8');
?>
</li><?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value != '') {
?>
<li><?php
echo smartyTranslate(array('s' => 'Email:'), $_smarty_tpl);
?>
<?php
echo smarty_function_mailto(array('address' => smarty_modifier_escape($_smarty_tpl->tpl_vars['blockcontactinfos_email']->value, 'htmlall', 'UTF-8'), 'encode' => "hex"), $_smarty_tpl);
?>
</li><?php
}
?>
</ul>
</div>
<!-- /MODULE Block contact infos -->
<?php
}
开发者ID:jicheng17,项目名称:vipinsg,代码行数:64,代码来源:96578be0e5ff2fb474f6cb26816fd1377a203c87.file.blockcontactinfos.tpl.php
示例15: is_array
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['row']['customer_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
?>
');">編集</a></span></td>
<td class="center" rowspan="2"><span class="icon_delete"><a href="#" onclick="return fnDelete('<?php
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['row']['customer_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
?>
');">削除</a></span></td>
</tr>
<tr>
<td><?php
$this->assign('pref', is_array($_tmp = $this->_tpl_vars['row']['pref']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp));
echo is_array($_tmp = $this->_tpl_vars['arrPref'][$this->_tpl_vars['pref']]) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp);
?>
</td>
<td><?php
echo smarty_function_mailto(array('address' => is_array($_tmp = $this->_tpl_vars['row']['email']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp), 'encode' => 'javascript'), $this);
?>
</a><?php
if ((is_array($_tmp = $this->_tpl_vars['row']['status']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) == 1) {
?>
<br /><a href="#" onclick="return fnReSendMail('<?php
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['row']['customer_id']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('h', true, $_tmp) : smarty_modifier_h($_tmp);
?>
');">仮登録メール再送</a><?php
}
?>
</td>
</tr>
<?php
}
}