/**
* 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();
This new CARES Operate, plus after that amendments, earmarked over $600 billion through the Paycheck Shelter System (PPP), given from the Small company Management (SBA), to have probably forgivable loans to help with eligible small enterprises impacted by COVID-19. The fresh funds, with a two- or five-year name (depending upon once they was basically given) and bear attention at the 1%, are offered as a result of SBA-acknowledged lenders to an eligible organization. The new PPP is finalized to even more small company applicants for the .
A corporate you to definitely gotten a good PPP financing would be to take time to file their foundation for both certifying the necessity for the mortgage as well as for determining that it keeps sufficient being qualified expenditures so you can request forgiveness, as well as the accounting regulations related to the borrowed funds.

Simultaneously, a debtor is needed to approve that the latest financial uncertainty helps make that it mortgage request must secure the lingering surgery of your own Candidate.
To assert the necessity of a PPP loan www.elitecashadvance.com/loans/300-dollar-payday-loan/, just like the listed during the Issues 31 and you will 37 of your own SBA’s PPP Faq’s, an organization must take under consideration being able to availability other resources of exchangeability sufficient to support its lingering procedures inside the a beneficial style that isn’t significantly detrimental to their team. This new Faqs keep in mind that a public organization which have substantial market price and you can use of capital avenues, including a private organization which have adequate types of liquidity, commonly impractical be able to make the called for certification inside a trust.
As the listed into the FAQ 46, a debtor (and people associates) one to get an effective PPP mortgage from below $dos billion would-be deemed to have made the necessary certification in the good faith. In addition, the PPP loans in excess of $2 billion will be susceptible to remark by SBA to own conformity that have PPP standards, such as the applicant’s initially qualifications. But not, brand new SBA retains the legal right to feedback the newest qualifications of any debtor, regardless of the sized the borrowed funds.

An element of the borrower’s PPP financing (and related attention) might possibly be forgiven, equal to eligible costs, plus payroll will cost you, desire money into the mortgage loans, and you will lease and you will power payments, made for the loan’s qualifying several months, so long as the brand new borrower matches every loan’s employee-storage criteria.
According to SBA’s signal out-of lender and you can SBA commitments, a debtor, to help you discover forgiveness on a beneficial PPP loan, need to submit an application for forgiveness on creditor. The creditor, therefore, things a recommendation for the SBA in this 60 days towards whether this new borrower is permitted full, limited, or no forgiveness of PPP mortgage, and demands payment from the SBA equivalent to the quantity having that it recommends forgiveness (together with accrued attention). Brand new SBA following keeps ninety days to examine the brand new obtain commission throughout the creditor. In the event the SBA concurs for the creditor’s recommendation, this new SBA will pay the latest creditor towards count forgiven, and any interest that accrues from big date out-of payment. New borrower need to after that remit people count not forgiven by SBA into creditor in accordance with the regards to this new PPP loan. If for example the SBA after that decides your debtor are ineligible to possess the fresh PPP loan, the latest debtor need to immediately repay the mortgage into the creditor.
]]>