3, 'columns' => 3, 'child_categories' => 0, 'orderby' => 'name', 'title' => __( 'Product Categories', 'eighteen-tags' ), ) ); echo '
'; } } } if ( ! function_exists( 'eighteen_tags_recent_products' ) ) { /** * Display Recent Products * Hooked into the `homepage` action in the homepage template * @since 1.0.0 * @return void */ function eighteen_tags_recent_products( $args ) { if ( is_woocommerce_activated() ) { $args = apply_filters( 'eighteen_tags_recent_products_args', array( 'limit' => 4, 'columns' => 4, 'title' => __( 'Recent Products', 'eighteen-tags' ), ) ); echo ' '; } } } if ( ! function_exists( 'eighteen_tags_featured_products' ) ) { /** * Display Featured Products * Hooked into the `homepage` action in the homepage template * @since 1.0.0 * @return void */ function eighteen_tags_featured_products( $args ) { if ( is_woocommerce_activated() ) { $args = apply_filters( 'eighteen_tags_featured_products_args', array( 'limit' => 4, 'columns' => 4, 'orderby' => 'date', 'order' => 'desc', 'title' => __( 'Featured Products', 'eighteen-tags' ), ) ); echo ' '; } } } if ( ! function_exists( 'eighteen_tags_popular_products' ) ) { /** * Display Popular Products * Hooked into the `homepage` action in the homepage template * @since 1.0.0 * @return void */ function eighteen_tags_popular_products( $args ) { if ( is_woocommerce_activated() ) { $args = apply_filters( 'eighteen_tags_popular_products_args', array( 'limit' => 4, 'columns' => 4, 'title' => __( 'Top Rated Products', 'eighteen-tags' ), ) ); echo ' '; } } } if ( ! function_exists( 'eighteen_tags_on_sale_products' ) ) { /** * Display On Sale Products * Hooked into the `homepage` action in the homepage template * @since 1.0.0 * @return void */ function eighteen_tags_on_sale_products( $args ) { if ( is_woocommerce_activated() ) { $args = apply_filters( 'eighteen_tags_on_sale_products_args', array( 'limit' => 4, 'columns' => 4, 'title' => __( 'On Sale', 'eighteen-tags' ), ) ); echo ' '; } } } if ( ! function_exists( 'eighteen_tags_homepage_content' ) ) { /** * Display homepage content * Hooked into the `homepage` action in the homepage template * @since 1.0.0 * @return void */ function eighteen_tags_homepage_content() { while ( have_posts() ) : the_post(); get_template_part( 'content', 'page' ); endwhile; // end of the loop. } } if ( ! function_exists( 'eighteen_tags_social_icons' ) ) { /** * Display social icons * If the subscribe and connect plugin is active, display the icons. * @link http://wordpress.org/plugins/subscribe-and-connect/ * @since 1.0.0 */ function eighteen_tags_social_icons() { if ( class_exists( 'Subscribe_And_Connect' ) ) { echo '