diff --git a/application/index/controller/Goods.php b/application/index/controller/Goods.php index 790b6aa5c8d76d3e7da9502af6c5f0f7e00ffa38..50968cf15e7bf681dfb85284d6d13758c8942e6a 100755 --- a/application/index/controller/Goods.php +++ b/application/index/controller/Goods.php @@ -145,6 +145,15 @@ class Goods extends Common */ private function PluginsHook($goods_id, &$goods) { + // 商品页面相册内部钩子 + $this->assign('plugins_view_goods_detail_photo_within_data', Hook::listen('plugins_view_goods_detail_photo_bottom', + [ + 'hook_name' => 'plugins_view_goods_detail_photo_within', + 'is_backend' => false, + 'goods_id' => $goods_id, + 'goods' => &$goods, + ])); + // 商品页面相册底部钩子 $this->assign('plugins_view_goods_detail_photo_bottom_data', Hook::listen('plugins_view_goods_detail_photo_bottom', [ diff --git a/application/index/view/default/goods/index.html b/application/index/view/default/goods/index.html index 82a6c0a6ae2d7e59cf3f2aef7a559244a9ecbec9..b2275c4be15544c8dc582444cbe9d32dd4d69e3c 100755 --- a/application/index/view/default/goods/index.html +++ b/application/index/view/default/goods/index.html @@ -36,6 +36,20 @@ your browser does not support the video tag {{/if}} + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +