Server IP : 172.67.157.199 / Your IP : 3.15.198.92 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/themes/CubicWP/inc/functions/ |
Upload File : |
<?php /** * WooCommerce support * * @package ListMode WordPress Theme * @copyright Copyright (C) 2024 ThemesDNA * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later * @author ThemesDNA <[email protected]> */ if (!class_exists('ListMode_WooCommerce')) : class ListMode_WooCommerce { public function __construct() { if (defined('LISTMODE_WOOCOMMERCE_ACTIVE') && LISTMODE_WOOCOMMERCE_ACTIVE) { $this->removeDefaultContentWrapperActions(); $this->addCustomContentWrapperActions(); } } private function removeDefaultContentWrapperActions() { remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); } private function addCustomContentWrapperActions() { add_action('woocommerce_before_main_content', array($this, 'listmodeWooWrapperStart'), 10); add_action('woocommerce_after_main_content', array($this, 'listmodeWooWrapperEnd'), 10); } public function listmodeWooWrapperStart() { ?> <div class="listmode-main-wrapper listmode-clearfix" id="listmode-main-wrapper" itemscope="itemscope" itemtype="http://schema.org/Blog" role="main"> <div class="theiaStickySidebar"> <div class="listmode-main-wrapper-inside listmode-clearfix"> <?php $listmode_hooks_instance = ListMode_Hooks::get_instance(); $listmode_hooks_instance->before_main_content(); ?> <div class="listmode-posts-wrapper" id="listmode-posts-wrapper"> <div class="listmode-posts listmode-singular-box"> <div class="listmode-singular-box-inside"> <div class="listmode-posts-content"> <?php } public function listmodeWooWrapperEnd() { ?> </div> </div> </div> </div><!--/#listmode-posts-wrapper --> <?php $listmode_hooks_instance = ListMode_Hooks::get_instance(); $listmode_hooks_instance->after_main_content(); ?> </div> </div> </div><!-- /#listmode-main-wrapper --> <?php //get_sidebar(); ?> <?php } } $listModeWooCommerceSupport = new ListMode_WooCommerce(); endif;