<?php $specific_options = ob_get_contents(); ob_end_clean(); break; case 'product': $query = $wpdb->prepare("SELECT COUNT(ID) as WPSHOP_PRODUCT_NB FROM " . $wpdb->posts . " WHERE post_type=%s AND post_status=%s", WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT, 'publish'); $wpshop_product_nb = $wpdb->get_var($query); $content = sprintf(__('Due to product number, you have to search for product or click on "%s" button', 'wpshop'), __('View all element', 'wpshop')); if ($wpshop_product_nb <= 100) { $content = wpshop_products::product_list(true); } $wpshop_wysiwyg_shortcode_inserter_shortcode_main_identifier = 'wpshop_products pid'; break; case 'product_by_attribute': $content_explanation = '<p>' . __('Generate product listing shortcode from a selected attribute value', 'wpshop') . '</p>'; $content = wpshop_attributes::get_attribute_list(null, $type); $wpshop_wysiwyg_shortcode_inserter_shortcode_main_identifier = 'wpshop_products att_name'; $display_option_grouped = false; $display_search_form = false; break; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type');