* * @since Swiss Design Group 1.0 */ require get_template_directory() . '/inc/template-tags.php'; /** * Customizer additions. * * @since Swiss Design Group 1.0 */ require get_template_directory() . '/inc/customizer.php'; /** * WooCommerce actions and filters. * * @since Swiss Design Group 1.0 */ if (hb_is_plugin_active('woocommerce/woocommerce.php')) { require get_template_directory() . '/inc/woocommerce.php'; } // Post Types require get_template_directory() . '/post-types/init.php'; // Shortcodes require get_template_directory() . '/shortcodes/shortcode-functions.php'; if (!function_exists('sanitize_hex_color')) { function sanitize_hex_color($color) { if ('' === $color) { return ''; } // 3 or 6 hex digits, or the empty string. if (preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color)) { return $color;
* @subpackage Swiss_Design_Group * @since Swiss Design Group 1.0 */ ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <header class="entry-header"> <?php if (hb_is_plugin_active('woocommerce/woocommerce.php') && (is_cart() || is_checkout())) { do_action('woocommerce_page_header_navigation'); } else { the_title('<h1 class="entry-title underline">', '</h1>'); } ?> </header> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', HB_DOMAIN_TXT) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', HB_DOMAIN_TXT) . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>')); ?> </div>