PATH:
home
/
letacommog
/
rdvenunclick.fr1
/
wp-content
/
plugins
/
dokan-lite
/
includes
/
ThemeSupport
<?php namespace WeDevs\Dokan\ThemeSupport; /** * Storefront Theme Support * * @see https://woocommerce.com/storefront/ * * @since 3.0 */ class Storefront { /** * The constructor */ function __construct() { add_action( 'storefront_page_after', [ $this, 'remove_sidebar'], 5 ); add_filter( 'body_class', [ $this, 'full_width_page'] ); add_action( 'wp_enqueue_scripts', [ $this, 'reset_style' ] ); } /** * Remove sidebar from store and dashboard page * * @return void */ public function remove_sidebar() { if ( dokan_is_store_page() || dokan_is_seller_dashboard() ) { remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 ); } } /** * Makes the store and dashboard page full width * * @param array $classes * * @return array */ public function full_width_page( $classes ) { if ( dokan_is_store_page() || dokan_is_seller_dashboard() ) { if ( ! in_array( 'page-template-template-fullwidth-php', $classes ) ) { $classes[] = 'page-template-template-fullwidth-php'; } } return $classes; } /** * Reset style * * @since 2.9.30 * * @return void */ public function reset_style() { if ( ! dokan_is_store_listing() ) { return; } $style = '#dokan-seller-listing-wrap .store-content .store-data-container .store-data h2 a {text-decoration: none}'; $style .= '#dokan-seller-listing-wrap .store-content .store-data-container .store-data h2 {font-size: 24px; margin: 20px 0 10px 0}'; wp_add_inline_style( 'dokan-style', $style ); } }
[+]
..
[-] Flatsome.php
[edit]
[-] Electro.php
[edit]
[-] Enfold.php
[edit]
[-] Rehub.php
[edit]
[-] Manager.php
[edit]
[-] Divi.php
[edit]
[-] Storefront.php
[edit]