<?php
/**
 * Feminine Lifestyle Blog Customizer Partials
 *
 * @package Feminine_Lifestyle_Blog
 */

/**
 * Render the site title for the selective refresh partial.
 *
 * @return void
 */
function feminine_lifestyle_blog_customize_partial_blogname() {
	bloginfo( 'name' );
}

/**
 * Render the site tagline for the selective refresh partial.
 *
 * @return void
 */
function feminine_lifestyle_blog_customize_partial_blogdescription() {
	bloginfo( 'description' );
}

if( ! function_exists( 'feminine_lifestyle_blog_get_read_more' ) ) :
/**
 * Display blog readmore button
*/
function feminine_lifestyle_blog_get_read_more(){
    return esc_html( get_theme_mod( 'read_more_text', __( 'Read More', 'feminine-lifestyle-blog' ) ) );    
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_author_title' ) ) :
/**
 * Display About Section Title
*/
function feminine_lifestyle_blog_get_author_title(){
    return esc_html( get_theme_mod( 'author_title', __( 'About Author', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_related_title' ) ) :
/**
 * Display related post title
*/
function feminine_lifestyle_blog_get_related_title(){
    return esc_html( get_theme_mod( 'related_post_title', __( 'Recommended Articles', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_banner_title' ) ) :
/**
 * Display Banner Title
*/
function feminine_lifestyle_blog_get_banner_title(){
    return esc_html( get_theme_mod( 'banner_title', __( 'Explore the world around you', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_banner_sub_title' ) ) :
/**
 * Display Banner SubTitle
*/
function feminine_lifestyle_blog_get_banner_sub_title(){
    return wpautop( wp_kses_post( get_theme_mod( 'banner_subtitle', __( 'Plan, create and start your own adventure just the way you like!', 'feminine-lifestyle-blog' ) ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_banner_button' ) ) :
/**
 * Display Banner Button Label
*/
function feminine_lifestyle_blog_get_banner_button(){
    return esc_html( get_theme_mod( 'banner_button', __( 'Read More', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_about_title' ) ) :
/**
 * Display About Section Title
*/
function feminine_lifestyle_blog_get_about_title(){
    return esc_html( get_theme_mod( 'about_title', __( 'About Me', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_about_content' ) ) :
/**
 * Display About Section Content
*/
function feminine_lifestyle_blog_get_about_content(){
    return wp_kses_post( get_theme_mod( 'about_content' ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_about_btn_label' ) ) :
/**
 * Display About Button Label
*/
function feminine_lifestyle_blog_get_about_btn_label(){
    return esc_html( get_theme_mod( 'about_btn_label' ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_instagram_title' ) ) :
/**
 * Display Instagram Section Title
*/
function feminine_lifestyle_blog_get_instagram_title(){
    return esc_html( get_theme_mod( 'instagram_title', __( 'Instagram', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_footer_copyright' ) ) :
/**
 * Footer Copyright
*/
function feminine_lifestyle_blog_get_footer_copyright(){
    $copyright = get_theme_mod( 'footer_copyright' );

    if( $copyright ){
        echo wp_kses_post( $copyright );
    }else{
        esc_html_e( '&copy; Copyright', 'feminine-lifestyle-blog' );
        echo date_i18n( esc_html__( ' Y', 'feminine-lifestyle-blog' ) );
        echo ' <a href="' . esc_url( home_url( '/' ) ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</a>. ';
        esc_html_e( 'All Rights Reserved. ', 'feminine-lifestyle-blog' );
    }
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_ed_author_link' ) ) :
/**
 * Show Author link in footer
*/
function feminine_lifestyle_blog_ed_author_link(){
   
    echo '<span class="author-link">'; 
    esc_html_e( ' Feminine Lifestyle Blog | Developed By ', 'feminine-lifestyle-blog' );
    echo '<a href="' . esc_url( 'https://himalayanthemes.com/' ) .'" rel="nofollow" target="_blank">' . esc_html__( 'Himalayan Themes', 'feminine-lifestyle-blog' ) . '</a></span>. ';
    
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_ed_wp_link' ) ) :
/**
 * Show WordPress link in footer
*/
function feminine_lifestyle_blog_ed_wp_link(){
    printf( esc_html__( '%1$s Powered by %2$s%3$s.', 'feminine-lifestyle-blog' ), '<span class="wp-link">', '<a href="'. esc_url( 'https://wordpress.org/', 'feminine-lifestyle-blog' ) .'" target="_blank" rel="nofollow">WordPress</a>', '</span>' );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_newsletter_title' ) ) :
/**
 * Display Newsletter Section Title
*/
function feminine_lifestyle_blog_get_newsletter_title(){
    return esc_html( get_theme_mod( 'newsletter_title', __( 'Sign up now!', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_newsletter_content' ) ) :
/**
 * Display Newsletter Section Content
*/
function feminine_lifestyle_blog_get_newsletter_content(){
    return wp_kses_post( get_theme_mod( 'newsletter_content' ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_search_title' ) ) :
/**
 * Display Search Page title
*/
function feminine_lifestyle_blog_get_search_title(){
    return esc_html( get_theme_mod( 'search_title', __( 'Search Result For', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_cta_title' ) ) :
/**
 * Display CTA Section Title
*/
function feminine_lifestyle_blog_get_cta_title(){
    return esc_html( get_theme_mod( 'cta_title', __( 'Ready to explore exciting adventures?', 'feminine-lifestyle-blog' ) ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_cta_content' ) ) :
/**
 * Display CTA Section Content
*/
function feminine_lifestyle_blog_get_cta_content(){
    return wp_kses_post( get_theme_mod( 'cta_content' ) );
}
endif;

if( ! function_exists( 'feminine_lifestyle_blog_get_cta_btn_label' ) ) :
/**
 * Display CTA Button Label
*/
function feminine_lifestyle_blog_get_cta_btn_label(){
    return esc_html( get_theme_mod( 'cta_btn_label' ) );
}
endif;