Added block wise override feature for the smarty template files

This commit is contained in:
vishalsingh.qlo325
2024-08-30 11:18:25 +05:30
parent 528498dadf
commit a62ed6d9f7
66 changed files with 9952 additions and 9470 deletions

View File

@@ -1624,28 +1624,10 @@ class FrontControllerCore extends Controller
if ($this->useMobileTheme()) {
$this->setMobileTemplate($default_template);
} else {
$template = $this->getOverrideTemplate();
if ($template) {
parent::setTemplate($template);
} else {
parent::setTemplate($default_template);
}
parent::setTemplate($default_template);
}
}
/**
* Returns an overridden template path (if any) for this controller.
* If not overridden, will return false. This method can be easily overriden in a
* specific controller.
*
* @since 1.5.0.13
* @return string|bool
*/
public function getOverrideTemplate()
{
return Hook::exec('DisplayOverrideTemplate', array('controller' => $this));
}
/**
* Checks if mobile theme is active and in use.
*