/**
* 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();
I desired effectively choose the things i try perception and you may convinced in advance of I could see when it try a keen unhelpful or automatic envision.
It actually was along with helpful to glance at my Check-Basically, that has been a simple bar graph of the nervousness accounts We got logged over time. Yet not, MindShift CBT just preserves to two weeks off emotions in the a period of time. This really is frustrating if you need to monitor your mood over a longer time otherwise show your counselor your feeling journal instance I did so, but I do believe it is fundamentally a helpful tool.
Determining the fresh new emotions I became sense not only improved my notice-human anatomy feel, however, forced me to greatest learn my feelings on the twenty four hours-to-date basis.
I am able to pinpoint the newest feeling I became feeling and remember the cause behind you to feeling. On the other hand, new have a look at-inside passion invited me to pay attention to the feeling was showing in itself somatically, including a racing heart circulation in my own mouth area while the my personal anxiety expanded.
When i completed my look at-inside, I would personally browse right down to the tools. These are a fundamental element of just how CBT works to transform choices and you may believe patterns, including because of the doing the fresh coping and you may condition-resolving experience. The app’s tools provided “Compliment Thinking,” “Cool Region,” and you can “Taking action.”
The three teaching for fit thinking provided a concept log, dealing cards, and you will faith tests. I’m able to do as much training as i need during the an effective go out, that has been ideal for men and women a lot more anxiety-provoking months. Every one took me between one to and you will five minutes, depending on how much I authored otherwise just how long We took to believe through some thing.
Journaling are a properly-known dealing apparatus to possess be concerned, stress, and despair. The brand new app’s envision journal are divided into the three methods. Earliest, I’m able to build the thing that was alarming myself and just why. 2nd, I found myself motivated to recognize hence “thought trap” which care dropped around.
“Thinking trap” is an additional name with the intellectual distortions CBT will choose. They are is to statements (negative thoughts that cause otherwise aggravate worry and you can doubt), over-generalizing (going to overarching bad results you to definitely surpass the important points of your own situation), and you can catastrophizing (whenever brand new poor-circumstances circumstance).
Each considering trap is actually a period out of impractical convinced, such as for instance curious in the event that everyone dislikes your as you showed up towards fulfilling a short while late. I found myself given the solution to select from nine thinking traps, nevertheless the application has a supplementary “unsure” options if your other options do not use.
When i identifed a maximum of around three thought traps, MindShift CBT went me as a result of tips equilibrium, otherwise challenge, my care and attention having a positive reframe. New software guided me personally through this processes in line with the thought barriers I selected. Including, if i find the “catastrophizing,” this new application questioned me to think about about three issues: Is this a publicity or a nightmare? Have a tendency to this however number in annually? What’s the poor which will happens, and just how would We deal?
We liked that the consider journal entries was in fact stored in new software even after dark one or https://clickcashadvance.com/installment-loans-ms/austin/ two-few days draw of the see-in a nutshell. It actually was helpful in noticing trends in my thinking too just like the taking the way i increased my thought over the five days.
Within my stress, I overthink all you’ll outcome. I began to unlock the idea journal very first to help you head cure and you can obvious my attention just before continuing towards the other stuff. The new app lay construction and ingrained hope for me personally without having to sacrifice my personal ability to choose which things I wanted to-do a lot more off.
]]>