/**
* 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();
The new 80-10-10 piggyback financing is actually a method of using several mortgage loans and you can 10% down seriously to avoid private home loan insurance rates. Here is how it really works.
This is exactly why brand new 80-10-10 mortgage try gaining in the popularity. It gives an effective way to put 10% down, yet , prevent the extra cost out of PMI.

An enthusiastic 80-10-ten financing try a loan design in which you take out a keen 80% first financial, good ten% next financial, and put ten% down. While the no. 1 mortgage is 80% of your own purchase price, personal financial insurance is not needed.
Based on credit laws and regulations, you desire a beneficial 20% deposit to get rid of PMI. Using this design your financing half of the 20% downpayment.
It may sound strange that first mortgage lender would nevertheless count the 10% second mortgage as part of your deposit, but that is the legislation work. Since the an excellent homebuyer, you might also take advantage of it.
Regrettably, not many customers think a keen 80-10-ten within industry, however, that could be on account of not enough feel about the program. It can have specific considerable advantages, however drawbacks to be aware of also.

Cheaper, maybe: The most significant possible virtue is that it may be cheaper than acquiring one mortgage to own 90% of the residence’s rate. However,, bring it ‘pro’ having a grain out-of sodium because it is maybe not usually cheaper. Both its more affordable to locate an individual 90% financing that have PMI.
If you keeps 10% down, it makes sense to have the bank run one another conditions. It’s possible to be much better versus other depending on the credit score, long-term needs, or other things. We shall mention be more expensive later.
No PMI: Specific homeowners just don’t like the thought of paying PMI. That is readable. It’s a significant monthly fee that positives the financial, maybe not you.
If the anything happens therefore are unable to improve payments, PMI kicks in to pay back the lender one loss. You will still clean out the home, regardless of if.
Now, understand that personal mortgage insurance do help you by the allowing you to purchase a home instead of 20% off. Which is a large virtue. But really, particular homeowners will always be PMI-averse, which can be okay.
Would-be easier to get rid of monthly will set you back: That have a keen 80-10-ten, you could potentially pay-off their second mortgage and also gone you to definitely additional commission at any time. Not too which have PMI.
Certain financing servicers (the organization for which you upload your percentage) leave you wait a couple of years to help you terminate PMI, though you have repaid so you’re able to financing off otherwise the home’s really worth has gone upwards. You might have to invest hundreds of dollars to own a different appraisal otherwise thousands of dollars for the good refinance so you can terminate PMI.
And if you are delivering a huge extra of working, a heredity, cashing for the investment, or promoting a past family soon, you might need brand new 80-10-10 solution to pay the next loan and you can dispose of these commission, no inquiries requested.
You want good credit: The following mortgage normally need top credit than the first financial. So if your own borrowing from the bank has many blemishes, your I.
Be eligible for two mortgages: You need to be eligible for a few sets of loan recommendations, not one. Next financial always is inspired by a separate financial that could has other legislation because of its loan.
Adjustable rates second financial: The next mortgage are likely to incorporate a variable speed one to lies in the current primary rates. In an appearing speed environment instance the present, your next financial rates can get increase. Still, the fresh new fee will likely not be unmanageable since financing is actually for only ten% of the property rates. You can still get a predetermined-speed mortgage to your 80% section.
]]>