esc_html__( 'Main menu', 'elemento-business' ), )); 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-image.png' ), 'width' => 1920, 'flex-width' => true, 'height' => 550, 'flex-height' => true )); register_default_headers( array( 'default-image' => array( 'url' => '%s/assets/images/default-image.png', 'thumbnail_url' => '%s/assets/images/default-image.png', 'description' => __( 'Default Header Image', 'elemento-business' ), ), ) ); 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', 'elemento_business_activation_notice'); } } add_action( 'after_setup_theme', 'elemento_business_after_setup_theme', 999 ); } function elemento_business_activation_notice() { echo '
'; echo '

'. esc_html__( 'Welcome To Elemento Business Theme', 'elemento-business' ) .'

'; echo '

'. esc_html__( 'Much thanks to you for picking Elemento Business. For the home page setup click on the below button.', 'elemento-business' ) .'

'; echo '

'. esc_html__( 'Documentation', 'elemento-business' ) .'

'; 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' ); require get_parent_theme_file_path( '/includes/about-theme/about-theme.php' ); /* Get post comments */ if (!function_exists('elemento_business_comment')) : /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. */ function elemento_business_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','elemento-business'), 'id' => 'elemento-business-sidebar', 'description' => esc_html__('This sidebar will be shown next to the content.', 'elemento-business'), 'before_widget' => '', 'before_title' => '

    ', 'after_title' => '

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

    ', 'after_title' => '

    ' )); } add_action( 'widgets_init', 'elemento_business_widgets_init' ); } function elemento_business_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', 'elemento_business_loop_columns', 999); if (!function_exists('elemento_business_loop_columns')) { function elemento_business_loop_columns() { return 3; // 3 products per row } } function elemento_business_remove_sections( $wp_customize ) { $wp_customize->remove_control('display_header_text'); $wp_customize->remove_setting('display_header_text'); $wp_customize->remove_control('header_textcolor'); $wp_customize->remove_setting('header_textcolor'); } add_action( 'customize_register', 'elemento_business_remove_sections'); add_action( 'wp_enqueue_scripts', 'elemento_business_load_dashicons_front_end' ); function elemento_business_load_dashicons_front_end() { wp_enqueue_style( 'dashicons' ); } function elemento_business_sanitize_phone_number( $phone ) { return preg_replace( '/[^\d+]/', '', $phone ); } ?>