/**
* 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();
Other times, local finance companies enjoys clearly been prepared to give money so you’re able to rural colleges, nonetheless would have been difficult-pushed to create the bucks easily. Emory & Henry College or university inside the southwest Virginia secured $51 mil inside the money courtesy USDA Outlying Growth in 2016 — $46 billion when you look at the a primary mortgage and you will $5 billion within the that loan by way of a district financial the USDA guaranteed.

The school looked to USDA investment immediately following two national banking institutions, Bank out of America and you may BB&T, entitled their fund. Emory & Henry got paying timely, although national finance companies just weren’t seeking dealing with they after that, said new college’s president, Jake B. Schrum.
One day, they simply returned touch with the help of our master financial officer and you may generally said, We’re contacting their fund,’ Schrum told you. It think all of our rates were not once the healthy as they desired these to end up being.
One kept Emory & Henry seeking refinance between $thirty five mil and you can $39 million inside the enough time-title debt. Bankers looked at piecing together a beneficial consortium who does allow Emory & Henry in order to refinance, but then the school discovered this may re-finance to the USDA.
Doing so required the college as developing another venture, Schrum told you. It actually was given strengthening an seven-residence-hallway, 206-sleep venture one provided half a dozen apartment-layout townhomes and a community center. Brand new architectural arrangements had actually started written.
Emory & Henry did the offer on the USDA, securing all in all, $51 billion in direct and you may guaranteed USDA credit. New college’s interest are dos.375 https://paydayloanalabama.com/toxey/ percent, and it is repaired over 40 years.
After the loan, we actually had a reduced fee than just we had before, Schrum told you. We had a number of older housing devices into the campus, this most upgraded the fresh place to have houses.
While many of the universities and colleges researching head funds under town Organization program used the money to build new houses, spend money on established institution otherwise purchase buildings that they failed to individual, eg action cannot always take place.
Alderson Broaddus College in Western Virginia used a beneficial $twenty-seven.7 million mortgage in order to coast upwards its financial evidence for the a beneficial complex transaction you to definitely with it the fresh university’s endowment company. New endowment firm utilized the mortgage to track down components of the university’s university, being being rented back into the brand new university.
The fresh USDA loan permits the brand new reallocation away from additional tips to cover performing expenditures within Abdominal, with regards to the university’s official announcement of your own deal. Brand new quick effect on brand new budget will also cause increased quantity on university’s Composite Financial List (CFI), a key indication employed by the greater Discovering Fee within the deciding financial viability.
Alderson Broaddus are from really the only place to utilize an excellent USDA mortgage so you’re able to facilitate such a-sale-leaseback agreement which have a connected organization. It will be the means Iowa Wesleyan made use of if this first safeguarded the USDA funding — $21.4 million directly in credit and an excellent $5 billion guaranteed financing — in 2016. A review of Neighborhood Business finance produced in 2018 shows it to-be a fairly popular part of mortgage deals. Usually, the new deals additionally include intends to purchase the fresh new institution, generate them or pick homes a college failed to in past times own — but not usually.
Town Business program has infused more than $step one.7 million into the colleges and universities within the last three financial many years as a consequence of head funds, secured financing and you can has. USDA data dont fall apart brand new totals, however, a glance at provides and money made in the fresh new 2018 fiscal season implies finance are likely a huge part of the fresh new complete. Financing tended to end up being counted on the hundreds of thousands otherwise tens from vast amounts, when you find yourself grants was indeed usually regarding the hundreds of thousands of dollars.
]]>