/home/sharedstore/public_html/prestashop.sharedstore.ma/classes/Smarty
NameSizeModeActions
SmartyCustom.php114500644editdlrm
SmartyCustomTemplate.php20580644editdlrm
SmartyDev.php16290644editdlrm
SmartyDevTemplate.php20740644editdlrm
SmartyLazyRegister.php27480644editdlrm
SmartyResourceModule.php23010644editdlrm
SmartyResourceParent.php21930644editdlrm
TemplateFinder.php60160644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/classes/Smarty/SmartyResourceModule.php (2301B)
* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ /** * Override module templates easily. * * @since 1.7.0.0 */ class SmartyResourceModuleCore extends Smarty_Resource_Custom { /** * @var array */ public $paths; /** * @var bool */ public $isAdmin; public function __construct(array $paths, $isAdmin = false) { $this->paths = $paths; $this->isAdmin = $isAdmin; } /** * Fetch a template. * * @param string $name template name * @param string $source template source * @param int $mtime template modification timestamp (epoch) */ protected function fetch($name, &$source, &$mtime) { foreach ($this->paths as $path) { if (Tools::file_exists_cache($file = $path . $name)) { if (_PS_MODE_DEV_) { $source = implode('', [ '', file_get_contents($file), '', ]); } else { $source = file_get_contents($file); } $mtime = filemtime($file); return; } } } }