/**
* Sticky Header - Customizer.
*
* @package Astra Addon
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( ! class_exists( 'Astra_Ext_Transparent_Header_Loader' ) ) {
/**
* Customizer Initialization
*
* @since 1.0.0
*/
class Astra_Ext_Transparent_Header_Loader {
/**
* Member Variable
*
* @var instance
*/
private static $instance;
/**
* Initiator
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Constructor
*/
public function __construct() {
add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) );
add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) );
add_action( 'customize_register', array( $this, 'customize_register' ), 2 );
}
/**
* Set Options Default Values
*
* @param array $defaults Astra options default value array.
* @return array
*/
public function theme_defaults( $defaults ) {
// Header - Transparent.
$defaults['transparent-header-logo'] = '';
$defaults['transparent-header-retina-logo'] = '';
$defaults['different-transparent-logo'] = 0;
$defaults['different-transparent-retina-logo'] = 0;
$defaults['transparent-header-logo-width'] = array(
'desktop' => 150,
'tablet' => 120,
'mobile' => 100,
);
$defaults['transparent-header-enable'] = 0;
$defaults['transparent-header-disable-archive'] = 1;
$defaults['transparent-header-disable-latest-posts-index'] = 1;
$defaults['transparent-header-on-devices'] = 'both';
$defaults['transparent-header-main-sep'] = '';
$defaults['transparent-header-main-sep-color'] = '';
/**
* Transparent Header
*/
$defaults['transparent-header-bg-color'] = '';
$defaults['transparent-header-color-site-title'] = '';
$defaults['transparent-header-color-h-site-title'] = '';
$defaults['transparent-menu-bg-color'] = '';
$defaults['transparent-menu-color'] = '';
$defaults['transparent-menu-h-color'] = '';
$defaults['transparent-submenu-bg-color'] = '';
$defaults['transparent-submenu-color'] = '';
$defaults['transparent-submenu-h-color'] = '';
/**
* Transparent Header Responsive Colors
*/
$defaults['transparent-header-bg-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-header-color-site-title-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-header-color-h-site-title-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-menu-bg-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-menu-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-menu-h-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-submenu-bg-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-submenu-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-submenu-h-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-content-section-text-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-content-section-link-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
$defaults['transparent-content-section-link-h-color-responsive'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
);
return $defaults;
}
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
public function customize_register( $wp_customize ) {
// @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
/**
* Register Panel & Sections
*/
require_once ASTRA_THEME_TRANSPARENT_HEADER_DIR . 'classes/class-astra-transparent-header-panels-and-sections.php';
/**
* Sections
*/
require_once ASTRA_THEME_TRANSPARENT_HEADER_DIR . 'classes/sections/class-astra-customizer-colors-transparent-header-configs.php';
// Check Transparent Header is activated.
require_once ASTRA_THEME_TRANSPARENT_HEADER_DIR . 'classes/sections/class-astra-customizer-transparent-header-configs.php';
// @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
}
/**
* Customizer Preview
*/
public function preview_scripts() {
/**
* Load unminified if SCRIPT_DEBUG is true.
*/
/* Directory and Extension */
$dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified';
$file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min';
wp_enqueue_script( 'astra-transparent-header-customizer-preview-js', ASTRA_THEME_TRANSPARENT_HEADER_URI . 'assets/js/' . $dir_name . '/customizer-preview' . $file_prefix . '.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_THEME_VERSION, true );
// Localize variables for further JS.
wp_localize_script(
'astra-transparent-header-customizer-preview-js',
'AstraBuilderTransparentData',
array(
'is_astra_hf_builder_active' => Astra_Builder_Helper::$is_header_footer_builder_active,
'is_flex_based_css' => Astra_Builder_Helper::apply_flex_based_css(),
)
);
}
}
}
/**
* Kicking this off by calling 'get_instance()' method
*/
Astra_Ext_Transparent_Header_Loader::get_instance();
Lenders test your loans-to-money proportion, credit rating, and capacity to pay-off the mortgage to find out if your qualify to possess a mortgage. How you can know if your be considered should be to connect which have a home loan company and have now pre-accepted.

Yes, our very own necessary income calculator spends a top and you will reduced for your debt-to-income proportion in order to a concept of whatever you decide and pay for and you will expect when you look at the a monthly mortgage repayment.
Determining value is essential regarding homebuying techniques. You could potentially gauge how much cash of a mortgage it’s also possible to https://paydayloansconnecticut.com/west-simsbury/ be eligible for considering your revenue with this Home loan Expected Income Calculator. Attempt to work backwards of the modifying the borrowed funds rates and you may supplying specifics of the almost every other economic duties. This new calculator will likely then answer with a living worth that you compare your income.
An effective $900,100000 household, with a good 5% interest to possess 30 years and you can $45,one hundred thousand (5%) off needs an annual earnings away from $218,403.
That it guess is actually for a single versus other expenses, plus disease can vary. Have fun with all of our calculator over to tailor brand new estimate of your money might requirement for a great $900,000 domestic.

A good $750,one hundred thousand domestic, that have a good 5% interest rate getting 30 years and you can $35,000 (5%) off will demand a yearly money regarding $183,694.
We are really not and additionally more liabilities in quoting the cash you desire getting a beneficial $750,100 house. Use our required income calculator a lot more than to help you customize your unique monetary condition.
A good $five hundred,000 household, which have good 5% interest rate getting 30 years and you may $twenty-five,100000 (5%) off will require an annual income out of $124,192.
We are not and additionally one expenditures into the quoting the income you desire getting an effective $500,100000 household. Have fun with our called for income calculator significantly more than in order to modify your specific economic situation.
A beneficial $400,one hundred thousand domestic, that have a great 5% rate of interest to have three decades and $20,100000 (5%) down will need a yearly money out of $one hundred,639.
We’re not and additionally one expenditures inside estimating the amount of money you desire getting a great $400,100000 family. Explore all of our expected earnings calculator significantly more than to help you assess far more differences.
A beneficial $325,100000 house, having a great 5% rate of interest for three decades and you can $16,250 (5%) down will need a yearly earnings from $82,975.
We are really not and additionally monthly obligations within the quoting the cash you want getting an excellent $325,one hundred thousand domestic. To include obligations and watch what you can manage, utilize the calculator above.
A great $300,one hundred thousand family, that have a great 5% interest having 3 decades and you may $fifteen,000 (5%) down requires a yearly money regarding $77,087.
So it formula is for just one with no expenditures. Make use of the calculator significantly more than to determine the money you really need to purchase an excellent $three hundred,100 house.
A beneficial $250,one hundred thousand house, having a great 5% rate of interest to have three decades and you can $several,five hundred (5%) down requires a yearly money off $65,310.
We are really not as well as any expenses in quoting money you desire to own a $250,000 domestic. Use the required money calculator more than to help you customize your specific financial situation.
You have got a home or a price range in mind. Do you believe you really can afford it, however, commonly a home loan company agree? The calculator facilitate take some of your guesswork away from choosing a reasonable monthly mortgage repayment for the financial predicament.
]]>