Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
wp-conte...
/
plugins
/
themify-...
/
includes
/
dynamic-...
•
File:
ProductGallery.php
•
Content:
<?php /** * @package Themify Builder Pro * @link https://themify.me/ */ class Tbp_Dynamic_Item_ProductGallery extends Tbp_Dynamic_Item { function is_available() { return themify_is_woocommerce_active(); } function get_category() { return 'wc'; } function get_type() { return array( 'gallery' ); } function get_label() { return __( 'Product Gallery', 'tbp' ); } function get_value( $args = array() ) { $value=''; if(empty($args['post_id'])){ $the_query = Tbp_Utils::get_wc_actual_query(); if($the_query===null || $the_query->have_posts()){ if($the_query!==null){ $the_query->the_post(); } global $product; if(!empty($product)){ $value = $product->get_gallery_image_ids(); } } if($the_query!==null){ wp_reset_postdata(); } } else{ $product = wc_get_product( $args['post_id'] ); if(!empty($product)){ $value = $product->get_gallery_image_ids(); } } return !empty($value)?'[gallery ids="' . implode( ',', $value ) . '"]':''; } function get_options() { return array( array( 'label' => __( 'Product ID', 'tbp' ), 'id' => 'post_id', 'type' => 'number', 'help' => __( 'Leave empty to get the data from current product in the loop.', 'tbp' ), ), ); } }
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List