summaryrefslogtreecommitdiff
path: root/inc/compatibility/lifterlms/customizer
diff options
context:
space:
mode:
Diffstat (limited to 'inc/compatibility/lifterlms/customizer')
-rw-r--r--inc/compatibility/lifterlms/customizer/class-astra-liferlms-section-configs.php120
-rw-r--r--inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-container-configs.php132
-rw-r--r--inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-sidebar-configs.php160
-rw-r--r--inc/compatibility/lifterlms/customizer/sections/layout/class-astra-lifter-general-configs.php208
4 files changed, 310 insertions, 310 deletions
diff --git a/inc/compatibility/lifterlms/customizer/class-astra-liferlms-section-configs.php b/inc/compatibility/lifterlms/customizer/class-astra-liferlms-section-configs.php
index e6e6956..54356c7 100644
--- a/inc/compatibility/lifterlms/customizer/class-astra-liferlms-section-configs.php
+++ b/inc/compatibility/lifterlms/customizer/class-astra-liferlms-section-configs.php
@@ -1,60 +1,60 @@
-<?php
-/**
- * Register customizer panels & sections.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since Astra 1.2.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
-}
-
-if ( ! class_exists( 'Astra_Liferlms_Section_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Liferlms_Section_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register LearnDash Container settings.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- array(
- 'name' => 'section-lifterlms',
- 'type' => 'section',
- 'priority' => 65,
- 'title' => __( 'LifterLMS', 'astra' ),
- ),
-
- /**
- * General Section
- */
- array(
- 'name' => 'section-lifterlms-general',
- 'type' => 'section',
- 'title' => __( 'General', 'astra' ),
- 'section' => 'section-lifterlms',
- 'priority' => 0,
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Liferlms_Section_Configs();
+<?php
+/**
+ * Register customizer panels & sections.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since Astra 1.2.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+if ( ! class_exists( 'Astra_Liferlms_Section_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Liferlms_Section_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register LearnDash Container settings.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ array(
+ 'name' => 'section-lifterlms',
+ 'type' => 'section',
+ 'priority' => 65,
+ 'title' => __( 'LifterLMS', 'astra' ),
+ ),
+
+ /**
+ * General Section
+ */
+ array(
+ 'name' => 'section-lifterlms-general',
+ 'type' => 'section',
+ 'title' => __( 'General', 'astra' ),
+ 'section' => 'section-lifterlms',
+ 'priority' => 0,
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Liferlms_Section_Configs();
diff --git a/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-container-configs.php b/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-container-configs.php
index c74af6f..f74a380 100644
--- a/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-container-configs.php
+++ b/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-container-configs.php
@@ -1,66 +1,66 @@
-<?php
-/**
- * Container Options for Astra theme.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since 1.4.3
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Lifter_Container_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- *
- * @since 1.4.3
- */
- class Astra_Lifter_Container_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register LifterLMS Container Settings.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Shop Page
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-content-layout]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'section' => 'section-container-layout',
- 'default' => astra_get_option( 'lifterlms-content-layout' ),
- 'priority' => 66,
- 'title' => __( 'LifterLMS Layout', 'astra' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'boxed-container' => __( 'Boxed', 'astra' ),
- 'content-boxed-container' => __( 'Content Boxed', 'astra' ),
- 'plain-container' => __( 'Full Width / Contained', 'astra' ),
- 'page-builder' => __( 'Full Width / Stretched', 'astra' ),
- ),
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Lifter_Container_Configs();
-
-
+<?php
+/**
+ * Container Options for Astra theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since 1.4.3
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Lifter_Container_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ *
+ * @since 1.4.3
+ */
+ class Astra_Lifter_Container_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register LifterLMS Container Settings.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Shop Page
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-content-layout]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'section' => 'section-container-layout',
+ 'default' => astra_get_option( 'lifterlms-content-layout' ),
+ 'priority' => 66,
+ 'title' => __( 'LifterLMS Layout', 'astra' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'boxed-container' => __( 'Boxed', 'astra' ),
+ 'content-boxed-container' => __( 'Content Boxed', 'astra' ),
+ 'plain-container' => __( 'Full Width / Contained', 'astra' ),
+ 'page-builder' => __( 'Full Width / Stretched', 'astra' ),
+ ),
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Lifter_Container_Configs();
+
+
diff --git a/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-sidebar-configs.php b/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-sidebar-configs.php
index 787d385..fc6a696 100644
--- a/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-sidebar-configs.php
+++ b/inc/compatibility/lifterlms/customizer/sections/class-astra-lifter-sidebar-configs.php
@@ -1,80 +1,80 @@
-<?php
-/**
- * Content Spacing Options for our theme.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since Astra 1.2.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Lifter_Sidebar_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Lifter_Sidebar_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-LifterLMS Sidebar Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Shop Page
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-sidebar-layout]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'section' => 'section-sidebars',
- 'priority' => 5,
- 'default' => astra_get_option( 'lifterlms-sidebar-layout' ),
- 'title' => __( 'LifterLMS', 'astra' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'no-sidebar' => __( 'No Sidebar', 'astra' ),
- 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
- 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
- ),
- ),
-
- /**
- * Option: LifterLMS Course/Lesson
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-course-lesson-sidebar-layout]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'section' => 'section-sidebars',
- 'default' => astra_get_option( 'lifterlms-course-lesson-sidebar-layout' ),
- 'priority' => 5,
- 'title' => __( 'LifterLMS Course/Lesson', 'astra' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'no-sidebar' => __( 'No Sidebar', 'astra' ),
- 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
- 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
- ),
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Lifter_Sidebar_Configs();
+<?php
+/**
+ * Content Spacing Options for our theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since Astra 1.2.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Lifter_Sidebar_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Lifter_Sidebar_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-LifterLMS Sidebar Customizer Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Shop Page
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-sidebar-layout]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'section' => 'section-sidebars',
+ 'priority' => 5,
+ 'default' => astra_get_option( 'lifterlms-sidebar-layout' ),
+ 'title' => __( 'LifterLMS', 'astra' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'no-sidebar' => __( 'No Sidebar', 'astra' ),
+ 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
+ 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
+ ),
+ ),
+
+ /**
+ * Option: LifterLMS Course/Lesson
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-course-lesson-sidebar-layout]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'section' => 'section-sidebars',
+ 'default' => astra_get_option( 'lifterlms-course-lesson-sidebar-layout' ),
+ 'priority' => 5,
+ 'title' => __( 'LifterLMS Course/Lesson', 'astra' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'no-sidebar' => __( 'No Sidebar', 'astra' ),
+ 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
+ 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
+ ),
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Lifter_Sidebar_Configs();
diff --git a/inc/compatibility/lifterlms/customizer/sections/layout/class-astra-lifter-general-configs.php b/inc/compatibility/lifterlms/customizer/sections/layout/class-astra-lifter-general-configs.php
index 392e28b..f203b10 100644
--- a/inc/compatibility/lifterlms/customizer/sections/layout/class-astra-lifter-general-configs.php
+++ b/inc/compatibility/lifterlms/customizer/sections/layout/class-astra-lifter-general-configs.php
@@ -1,104 +1,104 @@
-<?php
-/**
- * LifterLMS General Options for our theme.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since 1.4.3
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Lifter_General_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Lifter_General_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-LifterLMS General Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'lifterlms' ) ) {
- $divider_array = array( 'ast_class' => 'ast-bottom-divider' );
- $section = 'section-lifterlms-general';
- } else {
- $divider_array = array();
- $section = 'section-lifterlms';
- }
-
- $_configs = array(
-
- /**
- * Option: Course Columns
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[llms-course-grid]',
- 'type' => 'control',
- 'control' => 'ast-responsive-slider',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
- 'section' => $section,
- 'default' => astra_get_option(
- 'llms-course-grid',
- array(
- 'desktop' => 3,
- 'tablet' => 2,
- 'mobile' => 1,
- )
- ),
- 'title' => __( 'Course Columns', 'astra' ),
- 'priority' => 0,
- 'input_attrs' => array(
- 'step' => 1,
- 'min' => 1,
- 'max' => 6,
- ),
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- ),
-
- /**
- * Option: Membership Columns
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[llms-membership-grid]',
- 'type' => 'control',
- 'control' => 'ast-responsive-slider',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
- 'section' => $section,
- 'default' => astra_get_option(
- 'llms-membership-grid',
- array(
- 'desktop' => 3,
- 'tablet' => 2,
- 'mobile' => 1,
- )
- ),
- 'title' => __( 'Membership Columns', 'astra' ),
- 'priority' => 0,
- 'input_attrs' => array(
- 'step' => 1,
- 'min' => 1,
- 'max' => 6,
- ),
- 'divider' => $divider_array,
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Lifter_General_Configs();
+<?php
+/**
+ * LifterLMS General Options for our theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since 1.4.3
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Lifter_General_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Lifter_General_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-LifterLMS General Customizer Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'lifterlms' ) ) {
+ $divider_array = array( 'ast_class' => 'ast-bottom-divider' );
+ $section = 'section-lifterlms-general';
+ } else {
+ $divider_array = array();
+ $section = 'section-lifterlms';
+ }
+
+ $_configs = array(
+
+ /**
+ * Option: Course Columns
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[llms-course-grid]',
+ 'type' => 'control',
+ 'control' => 'ast-responsive-slider',
+ 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
+ 'section' => $section,
+ 'default' => astra_get_option(
+ 'llms-course-grid',
+ array(
+ 'desktop' => 3,
+ 'tablet' => 2,
+ 'mobile' => 1,
+ )
+ ),
+ 'title' => __( 'Course Columns', 'astra' ),
+ 'priority' => 0,
+ 'input_attrs' => array(
+ 'step' => 1,
+ 'min' => 1,
+ 'max' => 6,
+ ),
+ 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
+ ),
+
+ /**
+ * Option: Membership Columns
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[llms-membership-grid]',
+ 'type' => 'control',
+ 'control' => 'ast-responsive-slider',
+ 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
+ 'section' => $section,
+ 'default' => astra_get_option(
+ 'llms-membership-grid',
+ array(
+ 'desktop' => 3,
+ 'tablet' => 2,
+ 'mobile' => 1,
+ )
+ ),
+ 'title' => __( 'Membership Columns', 'astra' ),
+ 'priority' => 0,
+ 'input_attrs' => array(
+ 'step' => 1,
+ 'min' => 1,
+ 'max' => 6,
+ ),
+ 'divider' => $divider_array,
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Lifter_General_Configs();