<?php
/**
 * Template Hooks
 *
 * @package shop-zen
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Archive swatches hook.
 * Renders color swatch dots on product archive cards.
 */
if ( ! function_exists( 'shop_zen_archive_swatches' ) ) :
function shop_zen_archive_swatches() {
	do_action( 'shop_zen_archive_swatches' );
}
endif;

/**
 * Single product swatches hook.
 * Renders color swatch circles on the single product page.
 */
if ( ! function_exists( 'shop_zen_single_swatches' ) ) :
function shop_zen_single_swatches() {
	do_action( 'shop_zen_single_swatches' );
}
endif;

/**
 * Trust signals hook.
 * Renders trust signal icons and text on the single product page.
 */
if ( ! function_exists( 'shop_zen_trust_signals' ) ) :
function shop_zen_trust_signals() {
	do_action( 'shop_zen_trust_signals' );
}
endif;

/**
 * Size chart hook.
 * Renders the size chart button or modal on the single product page.
 *
 * @param string $type Either 'button' or 'modal'.
 */
if ( ! function_exists( 'shop_zen_size_chart' ) ) :
function shop_zen_size_chart( $type = 'button' ) {
	do_action( 'shop_zen_size_chart', $type );
}
endif;

/**
 * Product tabs hook.
 * Renders the dynamic product tabs section on single product pages.
 */
if ( ! function_exists( 'shop_zen_product_tabs' ) ) :
function shop_zen_product_tabs() {
	do_action( 'shop_zen_product_tabs' );
}
endif;

/**
 * Countdown loop hook.
 * Renders countdown timer on shop/archive product cards.
 */
if ( ! function_exists( 'shop_zen_countdown_loop' ) ) :
function shop_zen_countdown_loop() {
	do_action( 'shop_zen_countdown_loop' );
}
endif;

/**
 * Wishlist button hook.
 * Renders the wishlist button on the single product page.
 */
if ( ! function_exists( 'shop_zen_wishlist_button' ) ) :
function shop_zen_wishlist_button() {
	do_action( 'shop_zen_wishlist_button' );
}
endif;

/**
 * Countdown single product hook.
 * Renders countdown timer on the single product page, before the category/title.
 */
if ( ! function_exists( 'shop_zen_countdown_single' ) ) :
function shop_zen_countdown_single() {
	do_action( 'shop_zen_countdown_single' );
}
endif;

/**
 * Before Title Wrapper
 */
if( !function_exists( 'shop_zen_before_title' ) ):
    function shop_zen_before_title() {
        do_action( 'shop_zen_before_title' );
    }
endif;

/**
 * After Title Wrapper
 */
if( !function_exists( 'shop_zen_after_title' ) ):
    function shop_zen_after_title() {
        do_action( 'shop_zen_after_title' );
    }
endif;

/**
 * Before Title Content
 */
if( !function_exists( 'shop_zen_before_title_content' ) ):
    function shop_zen_before_title_content() {
        do_action( 'shop_zen_before_title_content' );
    }
endif;

/**
 * After Title Content
 */
if( !function_exists( 'shop_zen_after_title_content' ) ):
    function shop_zen_after_title_content() {
        do_action( 'shop_zen_after_title_content' );
    }
endif;
