Esempio n. 1
0
function create_zip($F)
{
    $N = new ZipArchive();
    if ($N->open($F, ZipArchive::OVERWRITE) !== TRUE) {
        header("HTTP/1.0 400 Impossible to create zip file.");
        exit("Cannot write zipfile {$F}\n");
    }
    $N->addEmptyDir(GNAME);
    foreach (get_images_list() as $C) {
        $N->addFile(IDIR . $C, GNAME . '/' . $C);
    }
    $N->close();
}
Esempio n. 2
0
function create_zip($zpath)
{
    $zip = new ZipArchive();
    if ($zip->open($zpath, ZipArchive::OVERWRITE) !== TRUE) {
        header("HTTP/1.0 400 Impossible to create zip file.");
        exit("Cannot write zipfile {$zpath}\n");
    }
    $zip->addEmptyDir(GNAME);
    foreach (get_images_list() as $iname) {
        $zip->addFile(IDIR . $iname, GNAME . '/' . $iname);
    }
    $zip->close();
}
Esempio n. 3
0
 * woocommerce_before_shop_loop_item_title hook
 *
 * @hooked woocommerce_show_product_loop_sale_flash - 10 [REMOVED in woo.php]
 * @hooked woocommerce_template_loop_product_thumbnail - 10 [REMOVED in woo.php]
 */
do_action('woocommerce_before_shop_loop_item_title');
?>
		<div class="product-image-wrapper hover-effect-<?php 
echo esc_attr($hover);
?>
">
				<a class="product-content-image" href="<?php 
the_permalink();
?>
" data-images="<?php 
echo get_images_list();
?>
">
					<?php 
woocommerce_show_product_loop_sale_flash();
?>
					<?php 
if ($hoverUrl != '') {
    ?>
						<img src="<?php 
    echo $hoverImg['url'];
    ?>
" class="show-image">
					<?php 
}
?>
Esempio n. 4
0
    the_permalink();
    ?>
" class="product-content-image <?php 
    if ($hover == 'tooltip') {
        ?>
imageTooltip<?php 
    }
    ?>
 <?php 
    if ($hoverUrl != '') {
        ?>
with-hover<?php 
    }
    ?>
" data-images-list="<?php 
    echo get_images_list($width, $height, $crop);
    ?>
">
					<?php 
    echo apply_filters('woocommerce_single_product_image_html', sprintf('<img src="%s" alt="Placeholder" />', woocommerce_placeholder_img_src()), $post->ID);
    ?>
				</a>
			<?php 
}
?>

			<?php 
if ($hover == 'description') {
    ?>
				<div class="product-mask">
					<div class="mask-text">