本文整理汇总了PHP中Meta::getCitysAddr方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::getCitysAddr方法的具体用法?PHP Meta::getCitysAddr怎么用?PHP Meta::getCitysAddr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meta
的用法示例。
在下文中一共展示了Meta::getCitysAddr方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hookDisplayTop
public function hookDisplayTop($params)
{
$this->context->controller->addJS($this->_path . 'views/js/egmarketing.js', 'all');
if (egmarketing::isMarketingSite() > 0) {
$this->context->controller->addCSS($this->_path . 'views/css/messager.css', 'all');
$this->context->controller->addCSS($this->_path . 'views/css/sbm.css', 'all');
}
if (egmarketing::isMarketingSite() > 0) {
$context = Context::getContext();
$id_shop = $context->shop->id;
$sql = 'select i.*
from `' . _DB_PREFIX_ . 'eginvate` i
where i.id_shop=' . (int) $id_shop . '
and i.deleted = 0
and \'' . $_SERVER['REQUEST_URI'] . '\' like rules';
if (Tools::getValue('id_product', false) !== false) {
$sql .= ' and i.id_product=' . Tools::getValue('id_product');
}
if (Tools::getValue('id_category', false) !== false) {
$sql .= ' and i.id_category=' . Tools::getValue('id_category');
}
if (!($link = Db::getInstance()->executeS($sql))) {
return "";
}
$row = $link[0];
if (1 == 1 && !$this->context->cookie->__isset($row['id_eginvate'])) {
$this->context->cookie->__set($row['id_eginvate'], 'shown');
$ceo_word = Meta::getCitysAddr();
$this->smarty->assign(array('mname' => $row['mname'], 'mtiz' => $row['mtiz'], 'message' => Meta::sprintf2($row['message'], $ceo_word), 'message2' => Meta::sprintf2($row['message2'], $ceo_word), 'delay' => $row['delay'], 'oimg' => $this->_path . 'views/img/' . $row['mphoto']));
return $this->display(__FILE__, 'displaytop.tpl');
}
}
}
示例2: replaceCeoContact
public function replaceCeoContact($page)
{
$ceo_word = Meta::getCitysAddr();
$host = array('host' => $this->host);
list($x1, $x2) = array_reverse(explode('.', $this->host));
$xdomain = $x2 . '.' . $x1;
$ceo_word = array_merge($ceo_word, $host, array('ehost' => $xdomain));
return Meta::sprintf2($page, $ceo_word);
}