esc_html__( 'Main menu', 'beauty-spa-elementor' ), )); add_theme_support( 'responsive-embeds' ); add_theme_support( 'woocommerce' ); add_theme_support( 'align-wide' ); add_theme_support('title-tag'); add_theme_support('automatic-feed-links'); add_theme_support( 'wp-block-styles' ); add_theme_support('post-thumbnails'); add_theme_support( 'custom-background', array( 'default-color' => 'f3f3f3' )); add_theme_support( 'custom-logo', array( 'height' => 70, 'width' => 70, ) ); add_theme_support( 'custom-header', array( 'default-image' => get_parent_theme_file_uri( '/assets/images/default-header-image.png' ), 'width' => 1920, 'flex-width' => true, 'height' => 550, 'flex-height' => true, 'header-text' => false, )); register_default_headers( array( 'default-image' => array( 'url' => '%s/assets/images/default-header-image.png', 'thumbnail_url' => '%s/assets/images/default-header-image.png', 'description' => __( 'Default Header Image', 'beauty-spa-elementor' ), ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_editor_style( array( '/assets/css/editor-style.css' ) ); global $pagenow; if (is_admin() && ('themes.php' == $pagenow) && isset( $_GET['activated'] )) { add_action('admin_notices', 'beauty_spa_elementor_activation_notice'); } } add_action( 'after_setup_theme', 'beauty_spa_elementor_after_setup_theme', 999 ); } function beauty_spa_elementor_activation_notice() { echo '
'; echo '

'. esc_html__( 'Welcome To Beauty Spa Elementor Theme', 'beauty-spa-elementor' ) .'

'; echo '

'. esc_html__( 'Much thanks to you for picking Beauty Spa Elementor. For the home page setup click on the below button.', 'beauty-spa-elementor' ) .'

'; echo '

'. esc_html__( 'More Info', 'beauty-spa-elementor' ) .'

'; echo '
'; } require get_template_directory() .'/includes/tgm/tgm.php'; require get_template_directory() . '/includes/customizer.php'; load_template( trailingslashit( get_template_directory() ) . '/includes/go-pro/class-upgrade-pro.php' ); /* Get post comments */ if (!function_exists('beauty_spa_elementor_comment')) : /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. */ function beauty_spa_elementor_comment($comment, $args, $depth){ if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) : ?>
  • >
    ', ''); ?>
  • >
    %s', get_comment_author_link() ); ?>
    ', '' ); ?>
    comment_approved) : ?>

    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '
    ', 'after' => '
    ' ) ) ); ?>
    esc_html__('Sidebar','beauty-spa-elementor'), 'id' => 'beauty-spa-elementor-sidebar', 'description' => esc_html__('This sidebar will be shown next to the content.', 'beauty-spa-elementor'), 'before_widget' => '', 'before_title' => '

    ', 'after_title' => '

    ' )); register_sidebar(array( 'name' => esc_html__('Footer sidebar','beauty-spa-elementor'), 'id' => 'beauty-spa-elementor-footer-sidebar', 'description' => esc_html__('This sidebar will be shown next at the bottom of your content.', 'beauty-spa-elementor'), 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ' )); } add_action( 'widgets_init', 'beauty_spa_elementor_widgets_init' ); } function beauty_spa_elementor_the_breadcrumb() { if (!is_home()) { echo ''; bloginfo('name'); echo " >> "; if (is_category() || is_single()) { the_category(' , '); if (is_single()) { echo " >> "; the_title(); } } elseif (is_page()) { echo the_title(); } } } /** * Change number or products per row to 3 */ add_filter('loop_shop_columns', 'beauty_spa_elementor_loop_columns', 999); if (!function_exists('beauty_spa_elementor_loop_columns')) { function beauty_spa_elementor_loop_columns() { return 3; // 3 products per row } } function beauty_spa_elementor_max_title_length( $title ) { $max = 20; if( strlen( $title ) > $max ) { return substr( $title, 0, $max ). " …"; } else { return $title; } } add_filter( 'the_title', 'beauty_spa_elementor_max_title_length'); define('BEAUTY_SPA_ELEMENTOR_SUPPORT',__('https://wordpress.org/support/theme/beauty-spa-elementor/','beauty-spa-elementor')); define('BEAUTY_SPA_ELEMENTOR_REVIEW',__('https://wordpress.org/support/theme/beauty-spa-elementor/reviews/','beauty-spa-elementor')); define('BEAUTY_SPA_ELEMENTOR_BUY_NOW',__('https://www.wpelemento.com/elementor/spa-wordpress-theme/','beauty-spa-elementor')); define('BEAUTY_SPA_ELEMENTOR_LIVE_DEMO',__('https://www.wpelemento.com/demo/beauty-spa-elementor/','beauty-spa-elementor')); define('BEAUTY_SPA_ELEMENTOR_PRO_DOC',__('https://www.wpelemento.com/theme-documentation/beauty-spa-elementor-pro/','beauty-spa-elementor')); /* Implement the About theme page */ require get_template_directory() . '/includes/getstart/getstart.php'; if ( ! defined( 'BEAUTY_SPA_ELEMENTOR_CHANGELOG_THEME_URL' ) ) { define( 'BEAUTY_SPA_ELEMENTOR_CHANGELOG_THEME_URL', get_template_directory() . '/changelog.txt' ); }