';
- else :
- echo '
';
- endif;
+ $id = ( get_option('template') === 'twentyeleven' ) ? 'primary' : 'container';
+ echo '
';
}
}
if (!function_exists('woocommerce_output_content_wrapper_end')) {
@@ -119,7 +116,6 @@ if (!function_exists('woocommerce_check_product_visibility')) {
**/
if (!function_exists('woocommerce_show_product_images')) {
function woocommerce_show_product_images() {
-
global $post, $woocommerce;
echo '
';
@@ -327,10 +323,7 @@ if (!function_exists('woocommerce_variable_add_to_cart')) {
}
if (!function_exists('woocommerce_external_add_to_cart')) {
function woocommerce_external_add_to_cart( $post, $_product ) {
- global $product_url;
-
- $product_url = get_post_meta( $_product->id, 'product_url', true );
- if ($product_url) woocommerce_get_template('single-product/add-to-cart/external.php', false);
+ woocommerce_get_template('single-product/add-to-cart/external.php', false);
}
}
@@ -342,17 +335,6 @@ if (!function_exists('woocommerce_quantity_input')) {
echo '';
}
}
-
-
-/**
- * Product Add to Cart forms
- **/
-if (!function_exists('woocommerce_add_to_cart_form_nonce')) {
- function woocommerce_add_to_cart_form_nonce() {
- global $woocommerce;
- $woocommerce->nonce_field('add_to_cart');
- }
-}
/**
* Pagination
@@ -388,11 +370,7 @@ if (!function_exists('woocommerce_catalog_ordering')) {
'price' => __('Price', 'woothemes')
));
- foreach ($catalog_orderby as $id => $name) :
-
- echo '';
-
- endforeach;
+ foreach ($catalog_orderby as $id => $name) echo '';
?>
@@ -406,9 +384,7 @@ if (!function_exists('woocommerce_catalog_ordering')) {
**/
if (!function_exists('woocommerce_product_description_tab')) {
function woocommerce_product_description_tab() {
- ?>
-
- ';
- $heading = apply_filters('woocommerce_product_description_heading', __('Product Description', 'woothemes'));
- if ($heading) echo '
';
+ woocommerce_get_template('single-product/tabs/description.php', false);
}
}
if (!function_exists('woocommerce_product_attributes_panel')) {
function woocommerce_product_attributes_panel() {
- global $_product;
- echo '' . $heading . '
'; - the_content(); - echo '';
- echo '
';
+ woocommerce_get_template('single-product/tabs/attributes.php', false);
}
}
if (!function_exists('woocommerce_product_reviews_panel')) {
function woocommerce_product_reviews_panel() {
- echo '' . apply_filters('woocommerce_product_additional_information_heading', __('Additional Information', 'woothemes')) . '
'; - $_product->list_attributes(); - echo '';
- comments_template();
- echo '
';
+ woocommerce_get_template('single-product/tabs/reviews.php', false);
}
}
-
-
/**
* WooCommerce Product Thumbnail
**/