PUM_Admin_Tools::betas_display()
Display beta opt-ins
Description Description
Source Source
File: classes/Admin/Tools.php
public static function betas_display() { if ( ! current_user_can( 'manage_options' ) ) { return; } $has_beta = self::get_beta_enabled_extensions(); do_action( 'pum_tools_betas_before' ); ?> <div class="postbox pum-beta-support"> <h3><span><?php esc_html_e( 'Enable Beta Versions', 'popup-maker' ); ?></span></h3> <div class="inside"> <p><?php esc_html_e( 'Checking any of the below checkboxes will opt you in to receive pre-release update notifications. You can opt-out at any time. Pre-release updates do not install automatically, you will still have the opportunity to ignore update notifications.', 'popup-maker' ); ?></p> <table class="form-table pum-beta-support"> <tbody> <?php foreach ( $has_beta as $slug => $product ) : ?> <tr> <?php $checked = self::extension_has_beta_support( $slug ); ?> <th scope="row"><?php echo esc_html( $product ); ?></th> <td> <input type="checkbox" name="enabled_betas[<?php echo esc_attr( $slug ); ?>]" id="enabled_betas[<?php echo esc_attr( $slug ); ?>]"<?php echo checked( $checked, true, false ); ?> value="1" /> <label for="enabled_betas[<?php echo esc_attr( $slug ); ?>]"><?php printf( __( 'Get updates for pre-release versions of %s', 'popup-maker' ), $product ); ?></label> </td> </tr> <?php endforeach; ?> </tbody> </table> <input type="hidden" name="pum_action" value="save_enabled_betas" /> <?php wp_nonce_field( 'pum_save_betas_nonce', 'pum_save_betas_nonce' ); ?> <?php submit_button( __( 'Save', 'popup-maker' ), 'secondary', 'submit', false ); ?> </div> </div> <?php do_action( 'pum_tools_betas_after' ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.3 | Introduced. |