![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/gg.corals.io/wp-content/themes/bugster/front-page/ |
<div class="front_page_section front_page_section_woocommerce<?php $bugster_scheme = bugster_get_theme_option( 'front_page_woocommerce_scheme' ); if ( ! bugster_is_inherit( $bugster_scheme ) ) { echo ' scheme_' . esc_attr( $bugster_scheme ); } echo ' front_page_section_paddings_' . esc_attr( bugster_get_theme_option( 'front_page_woocommerce_paddings' ) ); ?>" <?php $bugster_css = ''; $bugster_bg_image = bugster_get_theme_option( 'front_page_woocommerce_bg_image' ); if ( ! empty( $bugster_bg_image ) ) { $bugster_css .= 'background-image: url(' . esc_url( bugster_get_attachment_url( $bugster_bg_image ) ) . ');'; } if ( ! empty( $bugster_css ) ) { echo ' style="' . esc_attr( $bugster_css ) . '"'; } ?> > <?php // Add anchor $bugster_anchor_icon = bugster_get_theme_option( 'front_page_woocommerce_anchor_icon' ); $bugster_anchor_text = bugster_get_theme_option( 'front_page_woocommerce_anchor_text' ); if ( ( ! empty( $bugster_anchor_icon ) || ! empty( $bugster_anchor_text ) ) && shortcode_exists( 'trx_sc_anchor' ) ) { echo do_shortcode( '[trx_sc_anchor id="front_page_section_woocommerce"' . ( ! empty( $bugster_anchor_icon ) ? ' icon="' . esc_attr( $bugster_anchor_icon ) . '"' : '' ) . ( ! empty( $bugster_anchor_text ) ? ' title="' . esc_attr( $bugster_anchor_text ) . '"' : '' ) . ']' ); } ?> <div class="front_page_section_inner front_page_section_woocommerce_inner <?php if ( bugster_get_theme_option( 'front_page_woocommerce_fullheight' ) ) { echo ' bugster-full-height sc_layouts_flex sc_layouts_columns_middle'; } ?> " <?php $bugster_css = ''; $bugster_bg_mask = bugster_get_theme_option( 'front_page_woocommerce_bg_mask' ); $bugster_bg_color_type = bugster_get_theme_option( 'front_page_woocommerce_bg_color_type' ); if ( 'custom' == $bugster_bg_color_type ) { $bugster_bg_color = bugster_get_theme_option( 'front_page_woocommerce_bg_color' ); } elseif ( 'scheme_bg_color' == $bugster_bg_color_type ) { $bugster_bg_color = bugster_get_scheme_color( 'bg_color', $bugster_scheme ); } else { $bugster_bg_color = ''; } if ( ! empty( $bugster_bg_color ) && $bugster_bg_mask > 0 ) { $bugster_css .= 'background-color: ' . esc_attr( 1 == $bugster_bg_mask ? $bugster_bg_color : bugster_hex2rgba( $bugster_bg_color, $bugster_bg_mask ) ) . ';'; } if ( ! empty( $bugster_css ) ) { echo ' style="' . esc_attr( $bugster_css ) . '"'; } ?> > <div class="front_page_section_content_wrap front_page_section_woocommerce_content_wrap content_wrap woocommerce"> <?php // Content wrap with title and description $bugster_caption = bugster_get_theme_option( 'front_page_woocommerce_caption' ); $bugster_description = bugster_get_theme_option( 'front_page_woocommerce_description' ); if ( ! empty( $bugster_caption ) || ! empty( $bugster_description ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) { // Caption if ( ! empty( $bugster_caption ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) { ?> <h2 class="front_page_section_caption front_page_section_woocommerce_caption front_page_block_<?php echo ! empty( $bugster_caption ) ? 'filled' : 'empty'; ?>"> <?php echo wp_kses( $bugster_caption, 'bugster_kses_content' ); ?> </h2> <?php } // Description (text) if ( ! empty( $bugster_description ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) { ?> <div class="front_page_section_description front_page_section_woocommerce_description front_page_block_<?php echo ! empty( $bugster_description ) ? 'filled' : 'empty'; ?>"> <?php echo wp_kses( wpautop( $bugster_description ), 'bugster_kses_content' ); ?> </div> <?php } } // Content (widgets) ?> <div class="front_page_section_output front_page_section_woocommerce_output list_products shop_mode_thumbs"> <?php $bugster_woocommerce_sc = bugster_get_theme_option( 'front_page_woocommerce_products' ); if ( 'products' == $bugster_woocommerce_sc ) { $bugster_woocommerce_sc_ids = bugster_get_theme_option( 'front_page_woocommerce_products_per_page' ); $bugster_woocommerce_sc_per_page = count( explode( ',', $bugster_woocommerce_sc_ids ) ); } else { $bugster_woocommerce_sc_per_page = max( 1, (int) bugster_get_theme_option( 'front_page_woocommerce_products_per_page' ) ); } $bugster_woocommerce_sc_columns = max( 1, min( $bugster_woocommerce_sc_per_page, (int) bugster_get_theme_option( 'front_page_woocommerce_products_columns' ) ) ); echo do_shortcode( "[{$bugster_woocommerce_sc}" . ( 'products' == $bugster_woocommerce_sc ? ' ids="' . esc_attr( $bugster_woocommerce_sc_ids ) . '"' : '' ) . ( 'product_category' == $bugster_woocommerce_sc ? ' category="' . esc_attr( bugster_get_theme_option( 'front_page_woocommerce_products_categories' ) ) . '"' : '' ) . ( 'best_selling_products' != $bugster_woocommerce_sc ? ' orderby="' . esc_attr( bugster_get_theme_option( 'front_page_woocommerce_products_orderby' ) ) . '"' . ' order="' . esc_attr( bugster_get_theme_option( 'front_page_woocommerce_products_order' ) ) . '"' : '' ) . ' per_page="' . esc_attr( $bugster_woocommerce_sc_per_page ) . '"' . ' columns="' . esc_attr( $bugster_woocommerce_sc_columns ) . '"' . ']' ); ?> </div> </div> </div> </div>