__( 'Main Menu', 'alpha-store' ), 'top_menu' => __( 'Top Menu', 'alpha-store' ), ) ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 300, 300, true ); add_image_size( 'alpha-store-single', 688, 325, true ); add_image_size( 'alpha-store-carousel', 270, absint( get_theme_mod( 'carousel-height', 423 ) ), true ); add_image_size( 'alpha-store-category', 600, 600, true ); add_image_size( 'alpha-store-widget', 60, 60, true ); // Add Custom logo Support add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, ) ); // Add Custom Background Support $args = array( 'default-color' => 'ffffff', ); add_theme_support( 'custom-background', $args ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'woocommerce' ); if ( get_theme_mod( 'woo_gallery_zoom', 0 ) == 1 ) { add_theme_support( 'wc-product-gallery-zoom' ); } if ( get_theme_mod( 'woo_gallery_lightbox', 1 ) == 1 ) { add_theme_support( 'wc-product-gallery-lightbox' ); } if ( get_theme_mod( 'woo_gallery_slider', 0 ) == 1 ) { add_theme_support( 'wc-product-gallery-slider' ); } } endif; //////////////////////////////////////////////////////////////////// // Display a admin notices //////////////////////////////////////////////////////////////////// add_action( 'admin_notices', 'alpha_store_admin_notice' ); function alpha_store_admin_notice() { global $current_user; $user_id = $current_user->ID; /* Check that the user hasn't already clicked to ignore the message */ if ( !get_user_meta( $user_id, 'alpha_store_ignore_notice' ) ) { echo '
'; printf( __( 'Like Alpha Store theme? You will LOVE Alpha Store PRO! ', 'alpha-store' ) . '' . __( 'Click here for all the exciting features.', 'alpha-store' ) . '', '?alpha_store_notice_ignore=0' ); echo "