本文整理汇总了PHP中FrontController::displayContent方法的典型用法代码示例。如果您正苦于以下问题:PHP FrontController::displayContent方法的具体用法?PHP FrontController::displayContent怎么用?PHP FrontController::displayContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrontController
的用法示例。
在下文中一共展示了FrontController::displayContent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayContent
public function displayContent()
{
parent::displayContent();
if ($this->supplier) {
self::$smarty->display(_PS_THEME_DIR_ . 'supplier.tpl');
} else {
self::$smarty->display(_PS_THEME_DIR_ . 'supplier-list.tpl');
}
}
示例2: displayContent
public function displayContent()
{
if (Tools::isAjaxRequest()) {
echo json_encode(array('blockcallback_error' => self::$smarty->get_template_vars('blockcallback_error'), 'blockcallback_msg' => self::$smarty->get_template_vars('blockcallback_msg')));
} else {
parent::displayContent();
self::$smarty->display(_PS_THEME_DIR_ . 'category.tpl');
}
}
示例3: displayContent
public function displayContent()
{
parent::displayContent();
if ($this->success) {
self::$smarty->display(_TAS_THEME_DIR_ . 'success.tpl');
} else {
self::$smarty->display(_TAS_THEME_DIR_ . 'forgotpassword.tpl');
}
}
示例4: displayContent
public function displayContent()
{
parent::displayContent();
global $isBetaUser;
if ($isBetaUser) {
self::$smarty->display(_PS_THEME_DIR_ . 'beta/addresses.tpl');
} else {
self::$smarty->display(_PS_THEME_DIR_ . 'addresses.tpl');
}
}
示例5: displayContent
public function displayContent()
{
global $isBetaUser;
parent::displayContent();
if ($isBetaUser) {
self::$smarty->display(_PS_THEME_DIR_ . 'beta/history.tpl');
} else {
self::$smarty->display(_PS_THEME_DIR_ . 'history.tpl');
}
}
示例6: displayContent
public function displayContent()
{
parent::displayContent();
$customer = new Customer((int) self::$cart->id_customer);
$address_invoice = new Address((int) self::$cart->id_address_invoice);
$country = new Country((int) $address_invoice->id_country);
$currency = new Currency((int) self::$cart->id_currency);
$countries = $this->klarna->getCountries();
$type = Tools::getValue('type');
if ($this->klarna->verifCountryAndCurrency($country, $currency) && ($type == 'invoice' || $type == 'account' || $type == 'special')) {
$pno = array('SE' => 'yymmdd-nnnn', 'FI' => 'ddmmyy-nnnn', 'DK' => 'ddmmyynnnn', 'NO' => 'ddmmyynnnn', 'DE' => 'ddmmyy', 'NE' => 'ddmmyynnnn');
self::$smarty->assign('country', $country);
self::$smarty->assign('pnoValue', $pno[$country->iso_code]);
self::$smarty->assign('iso_code', strtolower($country->iso_code));
$i = 1;
while ($i <= 31) {
if ($i < 10) {
$days[] = '0' . $i;
} else {
$days[] = $i;
}
$i++;
}
$i = 1;
while ($i <= 12) {
if ($i < 10) {
$months[] = '0' . $i;
} else {
$months[] = $i;
}
$i++;
}
$i = 2000;
while ($i >= 1910) {
$years[] = $i--;
}
$houseInfo = $this->getHouseInfo($address_invoice->address1);
self::$smarty->assign(array('days' => $days, 'customer_day' => (int) substr($customer->birthday, 8, 2), 'months' => $months, 'customer_month' => (int) substr($customer->birthday, 5, 2), 'years' => $years, 'customer_year' => (int) substr($customer->birthday, 0, 4), 'street_number' => $houseInfo[1], 'house_ext' => $houseInfo[2]));
if ($type == 'invoice') {
$total = self::$cart->getOrderTotal() + (double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name']));
} else {
$total = self::$cart->getOrderTotal();
}
self::$smarty->assign(array('total_fee' => $total, 'fee' => $type == 'invoice' ? (double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name'])) : 0));
if ($type == 'account') {
self::$smarty->assign('accountPrice', $this->getMonthlyCoast(self::$cart, $countries, $country));
}
if ($customer->id_gender != 1 && $customer->id_gender != 2 && $customer->id_gender != 3 && ($country->iso_code == 'DE' || $country->iso_code == 'NL')) {
self::$smarty->assign('gender', Gender::getGenders()->getResults());
}
self::$smarty->assign('linkTermsCond', $type == 'invoice' ? 'https://online.klarna.com/villkor' . ($country->iso_code != 'SE' ? '_' . strtolower($country->iso_code) : '') . '.yaws?eid=' . (int) Configuration::get('KLARNA_STORE_ID_' . $countries[$country->iso_code]['name']) . '&charge=' . round((double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name'])), 2) : 'https://online.klarna.com/account_' . strtolower($country->iso_code) . '.yaws?eid=' . (int) Configuration::get('KLARNA_STORE_ID_' . $countries[$country->iso_code]['name']));
self::$smarty->assign('payment_type', Tools::safeOutput($type));
self::$smarty->display(_PS_MODULE_DIR_ . 'klarnaprestashop/tpl/form.tpl');
}
}
示例7: displayContent
public function displayContent()
{
parent::displayContent();
if ($this->success) {
self::$smarty->display(_TAS_THEME_DIR_ . 'resetsuccess.tpl');
} elseif ($this->expired) {
self::$smarty->display(_TAS_THEME_DIR_ . 'passwordexpired.tpl');
} else {
self::$smarty->display(_TAS_THEME_DIR_ . 'resetpassword.tpl');
}
}
示例8: displayContent
public function displayContent()
{
parent::displayContent();
self::$smarty->display(_PS_THEME_DIR_ . 'helpanorphan.tpl');
}
示例9: displayContent
public function displayContent()
{
$_POST = array_merge($_POST, $_GET);
parent::displayContent();
self::$smarty->display(_PS_THEME_DIR_ . 'contact-form.tpl');
}
示例10: displayContent
public function displayContent()
{
parent::displayContent();
if ($_POST["booking"] == 'finish') {
self::$smarty->display(_TAS_THEME_DIR_ . 'booking_finish.tpl');
} else {
if ($_POST["booking"] == 'payment') {
self::$smarty->display(_TAS_THEME_DIR_ . 'paymentsuccess.tpl');
} else {
if ($_POST["booking"] == 'calculate') {
self::$smarty->display(_TAS_THEME_DIR_ . 'booking_order.tpl');
} else {
// view
if ($_REQUEST['voucher']) {
self::$smarty->display(_TAS_THEME_DIR_ . 'booking_confirm_voucher.tpl');
} else {
if ($_REQUEST['vouch_info']) {
self::$smarty->display(_TAS_THEME_DIR_ . 'hotelvoucher.tpl');
} else {
self::$smarty->display(_TAS_THEME_DIR_ . 'booking_confirm.tpl');
}
}
}
}
}
}
示例11: displayContent
public function displayContent()
{
parent::displayContent();
$this->_processAddressFormat();
self::$smarty->display(_PS_THEME_DIR_ . 'address.tpl');
}
示例12: displayContent
public function displayContent()
{
parent::displayContent();
$this->display();
}
示例13: displayContent
public function displayContent()
{
parent::displayContent();
self::$smarty->display(_TAS_THEME_DIR_ . 'booking_order.tpl');
}
示例14: displayContent
/**
* Display front office tpl
*/
public function displayContent()
{
parent::displayContent();
self::$smarty->display(dirname(__FILE__) . '/../search.tpl');
}
示例15: displayContent
public function displayContent()
{
parent::displayContent();
self::$smarty->assign(array('HOOK_RIGHTPRODUCTCOLUMN' => Module::hookExec('rightColumn', array('cart' => self::$cart))));
self::$smarty->display(_PS_THEME_DIR_ . 'product.tpl');
}