Astra_Theme_Extension::astra_beta_updates_form()
Include Welcome page right side Astra community content
Description
Source
File: classes/class-astra-theme-extension.php
public function astra_beta_updates_form() { $allow_beta = Astra_Admin_Helper::get_admin_settings_option( '_astra_beta_updates', true, 'disable' ); ?> <div class="postbox"> <h2 class="hndle ast-normal-cusror"> <span class="dashicons dashicons-update"></span> <span> <?php esc_html_e( 'Allow Beta updates', 'astra-addon' ); ?> </h2> <div class="inside"> <p> <?php esc_html_e( 'Enable this option to receive update notifications for beta versions.', 'astra-addon' ); ?> </p> <p> <?php $a_tag_open = '<a target="_blank" rel="noopener" href="' . esc_url( 'https://wpastra.com/docs/automatic-beta-updates-for-astra/?utm_source=astra-pro-dashboard&utm_medium=astra-menu-page&utm_campaign=astra-pro-plugin' ) . '">'; $a_tag_close = '</a>'; printf( /* translators: %1$s: a tag open. */ __( 'Please read %1$s this article %2$s to know more.', 'astra-addon' ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $a_tag_open, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $a_tag_close // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); ?> </p> <label for="astra_beta_updates"> <?php if ( 'disable' === $allow_beta ) { $beta_string = __( 'Enable Beta Updates', 'astra-addon' ); } else { $beta_string = __( 'Disable Beta Updates', 'astra-addon' ); } ?> <button class="button astra-beta-updates" id="astra_beta_updates" data-value="<?php echo esc_attr( $allow_beta ); ?>"> <?php echo esc_html( $beta_string ); ?> </button> </label> </div> </div> <?php }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.2.4 | Introduced. |