File: /www/wwwroot/www.scdc-marine.com/wp-content/themes/heku-cms/HekuClass/View/Product.php
<?php
namespace Heku\HekuClass\View;
/**
* @package Heku\HekuClass\View
* @subpackage Classes/Product
* @author Heku Daleconan <http://www.daleconan.com>
* @copyright Copyright (c) 2022-2023, Heku Daleconan
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/
class Product {
/**
* 类实现单例模式,类的独生子女
*/
private static $instance;
/**
* 依赖注入的接口 Instance 方法
* 目标是 保证 init() 初始化方法 只执行一次
*
* @return self 唯一实例化的本类
*/
public static function instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self;
self::$instance->init();
}
return self::$instance;
}
private function init() {
// // 产品单页面,产品轮播图片,视频,和右侧 产品属性,型号,宣传语等 信息排版
// add_action('product_img_line',array($this,'product_img_html'), 10);
}
// public function product_sidebar(){
// $html ='
// <div class="mt-4 toc-sidebar ">
// <h3 class="toc-header"><i class="joe-font joe-icon-xiaoxi" title="文章目录"></i>文章目录</h3>
// <div class="toc-container"></div>
// </div>';
// return apply_filters('heku_top_sidebar_html', $html );
// }
// public function get_related_posts($post_id){
// }
}