View difference between Paste ID: pwkQ2rbJ and cW2h00Wp
SHOW: | | - or go back to the newest paste.
1-
<?php
1+
2
$product = foxyshop_setup_product();
3
if (!$product['hide_product']) {
4
	$name= urlencode($product['name']);
5
	$name= strtolower($name);
6
	echo '<li class="foxyshop_product_box '.$name.'">';
7
8
	//Show Image on Left
9
	echo '<div class="foxyshop_product_image">';
10
	if ($thumbnailSRC = foxyshop_get_main_image("thumbnail")) echo '<img src="' . $thumbnailSRC . '" alt="' . htmlspecialchars($product['name']) . '" class="foxyshop_main_image" />';
11
	echo "</div>\n";
12
13
	//Show Main Product Info
14
	echo '<div class="foxyshop_product_info">';
15
	echo '<h3>' . apply_filters('the_title', $product['name']) . '</h3>';
16
17
	if ($product['short_description']) { echo "<p>" . $product['short_description'] . "</p>"; }
18
	else if ($product['description']) { echo "<p>" . $product['description'] . "</p>"; }
19
	echo "</div>\n";
20
	echo '<div class="foxyshop_product_quantity">';
21
	echo foxyshop_quantity();
22
23
	//Add To Cart Button (options)
24
	foxyshop_product_link("Add To Cart", false);
25
26
	echo '<div class="foxyshop_message"></div>';
27
28
	echo "</div>\n";
29
30
	echo "</li>\n";
31
}