/**
* 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();
Agency away from Experts Points (VA) loans are an attractive home loan investment choice for qualifying home buyers. When you’re an energetic-obligations military user, an experienced or a thriving partner, you can enjoy all the way down financial prices, limited closing costs and you will little to no downpayment. Virtual assistant fund as well as don’t feature home loan insurance rates (as you will be required to invest the newest Virtual assistant money payment).
However, Va money are stricter than other sort of lenders whenever you are looking at occupancy standards. Instance, below most issues, you must move into the new home inside two months out-of closure. While the Va has no a certain guideline based on how a lot of time you need to live-in your residence, very Virtual assistant lenders want to work with the home once the much of your residence for at least one year.
When you find yourself curious whether or not you can use your own Virtual assistant loan to help you pick an investment property, the fresh Va occupancy requirements will surely expose a barrier to those agreements. However, it might remain you can easily to produce leasing money otherwise score a return on your investment when you fund having an effective Va home loan.

As the Virtual assistant loan program also provides more relaxed borrowing from the bank certificates than simply traditional money, Va loan occupancy conditions establish you need to utilize the family otherwise possessions you happen to be to find since your primary residence. As such, you might not be able to use your Va mortgage to get accommodations assets, trips house and other capital no less than in a roundabout way.
When you are unable to get property with the goal of leasing the house or property, you actually have specific options for utilizing your primary quarters to generate local rental earnings.
Proceed with the steps and you can tips below to really get your no. 1 house move double-duty given that an investment assets.

The initial step you’ll want to just take before you apply to have a great Va loan is always to be sure to satisfy a minumum of one of your pursuing the Va qualification conditions:
For people who satisfy any of the significantly more than standards or you are a surviving mate exactly who don’t re also you should be entitled to apply and you may qualify for the Certification away from Qualification (COE), which will prove your entitled to an effective Virtual assistant mortgage.
While your residence have to serve as your primary household, you happen to be permitted to rent no less than one bed room on your own single-house. Thus, should you want to finance that have a Virtual assistant home loan and you will create certain leasing money, think to order a home with more bed room or space.
You’ll be able to get a property having a detached flat on lot or a garage which was converted https://elitecashadvance.com/payday-loans-ga/jacksonville/ into an income room if you would like a great deal more breakup out of your potential tenants.
The fresh new Va enables you to purchase good multifamily property from right up so you can cuatro units, for example a great duplex, triplex or fourplex called an excellent quadplex.
One to device will have to act as the majority of your residence, so you would be expected to go on new properties. Nevertheless you’ll build a lot more earnings by the renting out one systems you’re not consuming
Rather than old-fashioned financing constraints, this new Agencies out of Experts Activities spends Virtual assistant loan entitlements to choose the most they pay-off the home loan company for individuals who standard on the mortgage.
Which have limited entitlement, you happen to be in a position to buy one minute house or apartment with no currency off, but you will you desire adequate entitlements remaining to fund twenty-five% of your own the fresh new real estate loan. If not, your own Virtual assistant financial might require that make a downpayment to purchase variation.
]]>