/** * functions.php * @package WordPress * @subpackage Machic * @since Machic 1.0 */ // Load parent theme style add_action( 'wp_enqueue_scripts', 'machic_enqueue_styles', 99 ); function machic_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_style_add_data( 'parent-style', 'rtl', 'replace' ); } // Make shortcodes work inside text widgets add_filter('widget_text','do_shortcode'); // Shortcode to display product categories (footer + product pages) function custom_product_categories_shortcode() { $args = array( 'taxonomy' => 'product_cat', 'orderby' => 'name', 'hide_empty' => true, 'parent' => 0, 'number' => 8, // Limit to 8 categories ); if (is_product()) { global $product; $terms = get_the_terms($product->get_id(), 'product_cat'); if ($terms && !is_wp_error($terms)) { $parent_id = $terms[0]->parent ? $terms[0]->parent : $terms[0]->term_id; $args['parent'] = $parent_id; } } $categories = get_terms($args); if (!empty($categories) && !is_wp_error($categories)) { $output = '
'; // Close the unordered list return $output; } return 'No categories available
'; // Default message if no categories found } add_shortcode('footer_categories', 'custom_product_categories_shortcode');Supermicro’s single processor Socket H4 designs feature the Intel C236/C232 chipset which support the Intel® Xeon E3-1200 v5 processor family and Intel 6th Gen Core i7/i5/i3 processor family. With outstanding features that include up to 64GB of fast DDR4 DRAM in 4 DIMMS, onboard IPMI or vPro, USB 3.0/USB 3.1, PCI-E 3.0 M.2 and SATA 3.0 (6Gbps) HDD. With support for next generation graphics controller, 4K HD graphics resolution and 3 displays with HDMI, DP, and DVI ports. Designed with performance, reliability, manageability and long life in mind, Supermicro’s single processor motherboards are the perfect solution for a variety of server, workstation and embedded applications.
Reviews
There are no reviews yet.