/**
* 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();
8 million civil penalty to settle allegations so it violated the brand new Federal Election Promotion Operate (“the Act”) and you may FEC regulations, and therefore prohibit agencies off and come up with or facilitating contributions. This new $3.8 million municipal penalty is the prominent civil penalty ever before gotten by the Percentage for the a municipal administration step.
“The results in this matter again reveals the new FEC””s relationship so you can vigorous administration regarding campaign loans laws” told you FEC Vice-chairman Robert Lenhard. “It directs a very clear code one to prohibitions to your entry to business otherwise union tips and then make otherwise helps benefits so you’re able to federal candidates are not just technicalities and that violations has actually real outcomes.
Anywhere between 2000 and you can 2003, Freddie Mac computer used corporate info so you can helps 85 fundraising occurrences that elevated everything $1.7 mil to have government candidates. Freddie Mac data, made by former Older Vice president from Regulators Interactions R. Mitchell Delk while some and you will directed so you’re able to Freddie Mac’s Panel of Administrators and you can President, discussed the fresh new fundraisers because “Governmental Risk Management” undertaken as Freddie Mac differed away from most top companies which have “a properly-funded PAC to help you buttress the lobbying factors.” The fundraisers was basically structured by Mr. Delk and you may previous Vice-President Clark Rv, and you can benefited members of the house Financial Features Panel or other members of Congress. Asking enterprises was in fact leased so you’re able to package and you may plan out the newest fundraising ingredients, some of which took place within Galileo Eatery inside Arizona. Freddie Mac reduced month-to-month retainers to those businesses that expanded in order to more than $25,100 per month towards the end out of 2002.
As well as conducting fundraising situations, Freddie Mac managers made use of corporate group and you will info so you can get and send contributions regarding team employees so you’re able to federal candidates. The FEC in addition to unearthed that Freddie Mac contributed $150,000 from inside the 2002 to the Republican Governors Relationship (“RGA”), a contribution the brand new RGA later came back.
As an excellent federally chartered agency, Freddie Mac computer try blocked out of and come up with efforts concerning the one election so you can governmental place of work and Fee laws and regulations prohibit a corporation (together with the officers, administrators otherwise agents) from facilitating or acting as a conduit to have benefits. dos U.S.C. 441b(a) and you will 11 CFR 114.2(f). An agency dishonestly facilitates the new and make away from contributions in the event it uses corporate resources or employees in order to plan and you may do fundraisers to own government candidates.
Freddie Mac computer does not competition, however, cannot concede, this broken brand new Work that with business information to make venture fundraising occurrences or gather and you can transmitted efforts out-of business managers in order to federal individuals. Although not, Freddie Mac acknowledges it broken this new Operate of the contributing $150,000 toward RGA in the , a contribution you to Freddie Mac computer argues try intended for the latest party building finance.
Considering Freddie Mac’s commission of a municipal penalty out of $step three.8 mil and you will agreement to get rid of and desist off violating the brand new laws, the fresh new Commission possess felt like, into the exercise of the prosecutorial discretion, to deliver admonishment characters and take not any longer step regarding former Freddie Mac computer Chairman and you can President Leland Brendsel, Mr. Rv, Mr. Delk or asking organizations leased from the Freddie Mac.
This new Commission calculated for taking no further step concerning Galileo Cafe, the Republican National Panel together with Republican Governors Connection. The fresh Fee and dismissed the newest allegation that Mr. Delk otherwise his partner exceeded the general calendar year share limits for people by making for the-kind benefits of the price of as well as drinks from the campaign fundraising situations held within Galileo. The final Payment choose to answer this dilemma is actually 5-1 https://availableloan.net/installment-loans-ny/long-beach/, which have President Michael Toner dissenting.
The finish of the circumstances represents other example of the brand new Commission’s achievement nowadays in using their enforcement tips efficiently. 2005 is new next consecutive season in which the FEC received more $2 million into the municipal charges. You will find a position from FEC administration circumstances of the proportions out-of municipal penalty within
]]>