From 9d4123cee1867ee7199b06bdc92d40611f547ecc Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 14:54:07 -0500 Subject: Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/. --- .../astra-pro/class-astra-pro-customizer.php | 79 ++++++++++++++++++++++ .../class-astra-pro-upgrade-link-configs.php | 57 ++++++++++++++++ inc/customizer/astra-pro/index.php | 9 +++ 3 files changed, 145 insertions(+) create mode 100644 inc/customizer/astra-pro/class-astra-pro-customizer.php create mode 100644 inc/customizer/astra-pro/class-astra-pro-upgrade-link-configs.php create mode 100644 inc/customizer/astra-pro/index.php (limited to 'inc/customizer/astra-pro') diff --git a/inc/customizer/astra-pro/class-astra-pro-customizer.php b/inc/customizer/astra-pro/class-astra-pro-customizer.php new file mode 100644 index 0000000..a9a8f4c --- /dev/null +++ b/inc/customizer/astra-pro/class-astra-pro-customizer.php @@ -0,0 +1,79 @@ +pro_url ); + return $json; + } + + /** + * Outputs the Underscore.js template. + * + * @since 1.0.10 + * @access public + * @return void + */ + protected function render_template() { + ?> +
  • +

    + <# if ( data.title && data.pro_url ) { #> + {{ data.title }} + <# } #> +

    +
  • + 'astra-pro', + 'type' => 'section', + 'ast_type' => 'astra-pro', + 'title' => esc_html__( 'More Options Available in Astra Pro!', 'astra' ), + 'pro_url' => htmlspecialchars_decode( astra_get_pro_url( 'https://wpastra.com/pricing/', 'customizer', 'upgrade-link', 'upgrade-to-pro' ) ), + 'priority' => 1, + 'section_callback' => 'Astra_Pro_Customizer', + ), + + array( + 'name' => ASTRA_THEME_SETTINGS . '[astra-pro-section-notice]', + 'type' => 'control', + 'transport' => 'postMessage', + 'control' => 'ast-hidden', + 'section' => 'astra-pro', + 'priority' => 0, + ), + + ); + + return array_merge( $configurations, $_configs ); + + } + } +} + +new Astra_Pro_Upgrade_Link_Configs(); diff --git a/inc/customizer/astra-pro/index.php b/inc/customizer/astra-pro/index.php new file mode 100644 index 0000000..8b96815 --- /dev/null +++ b/inc/customizer/astra-pro/index.php @@ -0,0 +1,9 @@ +