Submit
Path:
~
/
home
/
getwphos
/
www
/
BenjaminMarc2023
/
wp-content
/
plugins
/
xt-woo-quick-view-lite
/
xt-framework
/
includes
/
File Content:
class-woocommerce.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'XT_Framework_Woocommerce' ) ) { class XT_Framework_Woocommerce { public static function wrap_product_images() { if(did_action('xtfw_wc_wrapped_product_images')) { return; } add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_styles')); // Flatsome theme if(XT_Framework::first_instance()->is_theme('Flatsome')) { add_action('flatsome_woocommerce_shop_loop_images', array(__CLASS__, 'template_loop_before_product_thumbnail'), 9); add_action('flatsome_woocommerce_shop_loop_images', array(__CLASS__, 'template_loop_after_product_thumbnail'), 12); // Other themes }else { add_action('woocommerce_before_shop_loop_item_title', array(__CLASS__, 'template_loop_before_product_thumbnail'), 9); add_action('woocommerce_before_shop_loop_item_title', array(__CLASS__, 'template_loop_after_product_thumbnail'), 11); } do_action('xtfw_wc_wrapped_product_images'); } public static function template_loop_before_product_thumbnail() { $classes = apply_filters('xtfw_wc_product_image_wrapper_classes', array('xtfw-wc-product-image')); $classes = implode(" ", $classes); do_action('xtfw_wc_above_product_image'); echo '<div class="'.esc_attr($classes).'">'; do_action('xtfw_wc_before_product_image'); } public static function template_loop_after_product_thumbnail() { do_action('xtfw_wc_after_product_image'); echo '</div>'; do_action('xtfw_wc_below_product_image'); } public static function enqueue_styles() { wp_add_inline_style('xtfw-inline', ' .xtfw-wc-product-image{ position: relative; } '); } // @email - Email address of the receiver // @subject - Subject of the email // @heading - Heading to place inside the woocommerce template // @message - Body content (can be HTML) public static function send_email($email, $subject, $heading, $message) { if(!function_exists('WC')) { return new WP_Error( '422', __( "WooCommerce is not installed", "xt-framework" ) ); } // Get woocommerce mailer from instance $mailer = WC()->mailer(); // Wrap message using woocommerce html email template $wrapped_message = $mailer->wrap_message($heading, $message); // Create new WC_Email instance $wc_email = new WC_Email; // Style the wrapped message with woocommerce inline styles $html_message = $wc_email->style_inline($wrapped_message); // Send the email using wordpress mail function return $mailer->send( $email, $subject, $html_message, array('Content-Type: text/html; charset=UTF-8') ); } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
admin-tabs
---
0755
customizer
---
0755
freemius
---
0755
modules
---
0755
notices
---
0755
settings
---
0755
class-admin-messages.php
3381 bytes
0644
class-ajax.php
5633 bytes
0644
class-base-hooks.php
2951 bytes
0644
class-cache.php
1312 bytes
0644
class-conflicts-check.php
2031 bytes
0644
class-dependencies-check.php
3390 bytes
0644
class-framework.php
65633 bytes
0644
class-i18n.php
1029 bytes
0644
class-loader.php
9504 bytes
0644
class-migration.php
3214 bytes
0644
class-parsedown.php
30394 bytes
0644
class-plugin.php
2436 bytes
0644
class-recommended-plugins.php
16977 bytes
0644
class-review-notice.php
9508 bytes
0644
class-system-status.php
58083 bytes
0644
class-transient.php
1245 bytes
0644
class-wc-ajax.php
2831 bytes
0644
class-woocommerce.php
3105 bytes
0644
functions-essential.php
16803 bytes
0644
functions-formatting.php
12064 bytes
0644
functions-helpers.php
6448 bytes
0644
functions-metabox.php
13670 bytes
0644
functions-wp-filters.php
787 bytes
0644
functions-wp.php
3127 bytes
0644
N4ST4R_ID | Naxtarrr