update date display process

This commit is contained in:
Shreesh Arora
2024-10-01 20:00:08 +05:30
parent 4a007d2724
commit 527fa2f048
24 changed files with 62 additions and 35 deletions

View File

@@ -2160,7 +2160,8 @@ class AdminControllerCore extends Controller
'currentIndex' => self::$currentIndex,
'bootstrap' => $this->bootstrap,
'default_language' => (int)Configuration::get('PS_LANG_DEFAULT'),
'display_addons_connection' => Tab::checkTabRights(Tab::getIdFromClassName('AdminModulesController'))
'display_addons_connection' => Tab::checkTabRights(Tab::getIdFromClassName('AdminModulesController')),
'show_full_date' => $this->show_full_date,
));
$module = Module::getInstanceByName('themeconfigurator');

View File

@@ -78,6 +78,8 @@ abstract class ControllerCore
/** @var string Controller name */
public $php_self;
public $show_full_date = false;
/**
* Check if the controller is available for the current user/visitor
*/

View File

@@ -596,7 +596,8 @@ class FrontControllerCore extends Controller
'HOOK_TOP' => Hook::exec('displayTop'),
'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
'show_breadcrump' => $this->show_breadcrump, // By webkul
'show_breadcrump' => $this->show_breadcrump,
'show_full_date' => $this->show_full_date
));
} else {
$this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader'));
@@ -1191,6 +1192,7 @@ class FrontControllerCore extends Controller
'token' => Tools::getToken(),
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
'content_only' => (int)Tools::getValue('content_only'),
'show_full_date' => $this->show_full_date,
));
$this->context->smarty->assign($this->initLogoAndFavicon());