/**
* 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();

Past studies mean that individuals’ standard practices to your on line fellow-to-fellow (P2P) financing programs considerably influence other borrowers’ default intentions. However, the fresh process associated with the effect isnt obvious. Additionally find links, there’s scarce research concerning and this products influence the newest dating anywhere between a person’s standard decisions and you will an enthusiastic observer’s standard intention. These types of extremely important inquiries is yet , to get fixed; and therefore, we presented a few experiments making use of the circumstance-centered lookup means, targeting Chinese on the internet P2P lending systems. Our efficiency mean that one’s default behavior is also end up in an observer’s standard intent considering the imperfect punitive strategies while they already exists towards the Chinese on the web P2P credit platforms. The observer’s ethical disengagement height and you can pragmatic notice-activation peak serve as mediating parameters. In cases where an observer understands your default decisions, the amount of closeness between your defaulter and observer positively influences the partnership ranging from its standard decisions and you can purpose. Brand new intimacy peak and undoubtedly impacts the connection involving the individual’s default choices additionally the several mediator details. In line with the results, you can expect administration guidance relating to on line P2P credit. All of our analysis sets a charity to have coming browse to make use of most other remedies for continue the current search results for other countries and you can domains.
The latest subprime financial drama you to emerged from individuals regarding the You.S. defaulting to their home loans brought about the worldwide economic crisis. As a result, recently, this has been more challenging for people and you will smaller businesses so you can see finance regarding loan providers (Cao 2009). On the web fellow-to-fellow (P2P) credit have newly came up from inside the economic locations, delivering a handy means for some body and you can smaller businesses to access economic channels online. This specific form of financial sector allows for borrowers and loan providers to privately collaborate on line instead of finance companies, most other financial institutions, and/or collateral (Lin et al. 2009; Collier and you may Hampshire 2010). On line P2P credit programs support micro borrowing loan procedure along the business (anywhere between persons otherwise ranging from short companies and you may persons) (Feng ainsi que al. 2017). Deals instead of security and you will conventional financial intermediates separate online P2P financing networks off old-fashioned monetary borrowing ). However, it difference helps make the online P2P financing sector naturally risky due into the not enough repayment promises and you will a development asymmetry anywhere between individuals and you will loan providers (Wang ainsi que al. 2020). So it causes large standard rates on online P2P credit market in comparison to the conventional financial borrowing from the bank markets. Thus, it’s important to determine and this situations influence borrowers’ standard behaviors. Earlier in the day research has indicated that individuals’ default routines toward on the internet P2P credit networks considerably dictate other borrowers’ default purposes. Yet not, there’ve been a lack of research into underlying system of the effect.
On the web P2P credit platforms originated great britain. These are generally increasing in prominence since the an alternate economic route since the 2005, especially in the fresh U.S., France, Italy, Canada, China, India, and you may Turkey. The first Chinese P2P on the internet financing program- PPDai- came up into the 2007 inside the Shanghai. They spends web sites information technology provide on the web lending deals so you can mini consumers and you will lenders. PPDai is a respected online consumer money platform during the Asia, hooking up underserved individual individuals having loan providers. Many additional on the web P2P financing systems enjoys given that been composed (elizabeth.grams., Creditease, My089, and you may Edai365). These platforms is registered in the very first level cities (Beijing, Shanghai, and you will Guangzhou) on 2nd and you will 3rd tier metropolitan areas (inside Mainland China). The amount regarding on the internet financing purchases enhanced out-of millions of RMB to help you billion RMB in the 2019, and you may PPDai continues to grow during the a sudden pace. Within its first year and half, there had been more than 80,100000 entered PPDai pages. Of the 2012, new built-up on line change volume of PPDai is actually 344 billion RMB, with 195 million of your own total purchases taking place inside the 2012 (Ding 2012; Wu 2013).
]]>