public function get($f3) { // 权限检查 $this->requirePrivilege('manage_plugin_theme_adv_configure'); global $smarty; $smarty->assign('shop_index_adv_slider', json_decode(ShopThemePlugin::getOptionValue('shop_index_adv_slider'), true)); $smarty->display('theme_shop_advshop_slider.tpl', 'get'); }
public function get($f3) { // 权限检查 $this->requirePrivilege('manage_plugin_theme_configure'); global $smarty; $smarty->assign('headNav', json_decode(ShopThemePlugin::getOptionValue('head_nav_json_data'), true)); $smarty->display('theme_shop_headnav.tpl', 'get'); }
public function get($f3) { // 权限检查 $this->requirePrivilege('manage_plugin_theme_configure'); // 取得所有 Option 的值 $optionArray = array(); foreach ($this->optionKeyArray as $optionKey) { $optionArray[$optionKey] = ShopThemePlugin::getOptionValue($optionKey); } global $smarty; $smarty->assign($optionArray); $smarty->display('theme_shop_basic.tpl', 'get'); }
public function get($f3) { // 权限检查 $this->requirePrivilege('manage_plugin_theme_adv_configure'); global $smarty; $shop_index_advblock_json_data = json_decode(ShopThemePlugin::getOptionValue('shop_index_advblock_json_data'), true); if (!empty($shop_index_advblock_json_data)) { // 生成随机的 id 号给 html 使用 foreach ($shop_index_advblock_json_data as &$advBlockObject) { $advBlockObject['id'] = Utils::generateRandomHtmlId(); foreach ($advBlockObject['advBlockImageArray'] as &$advBlockImage) { $advBlockImage['id'] = Utils::generateRandomHtmlId(); } } $smarty->assign('shop_index_advblock_json_data', $shop_index_advblock_json_data); } $smarty->display('theme_shop_advshop_block.tpl', 'get'); }
/** * 方便程序取得 optionValue 的一个方法 * * @param string $optionKey * * @return string */ function bzf_get_option_value($optionKey) { return \Theme\Shop\ShopThemePlugin::getOptionValue($optionKey); }