/
home
/
cabinetdhs
/
www
/
wp-content
/
plugins
/
analogwp-templates
/
inc
/
settings
/
views
/
Upload File
HOME
<?php /** * Admin View: Settings * * @package Analog * @since 1.3.8 */ namespace Analog\Settings\views; use Analog\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; } $tab_exists = isset( $tabs[ $current_tab ] ) || has_action( 'ang_sections_' . $current_tab ) || has_action( 'ang_settings_' . $current_tab ) || has_action( 'ang_settings_tabs_' . $current_tab ); $current_tab_label = isset( $tabs[ $current_tab ] ) ? $tabs[ $current_tab ] : ''; global $current_user; if ( ! $tab_exists ) { wp_safe_redirect( admin_url( 'admin.php?page=ang-settings' ) ); exit; } ?> <div class="wrap ang <?php echo esc_attr( $current_tab ); ?>"> <h1 class="menu-title"><?php esc_html_e( 'Style Kits Settings', 'ang' ); ?></h1> <div class="ang-wrapper"> <form method="<?php echo esc_attr( apply_filters( 'ang_settings_form_method_tab_' . $current_tab, 'post' ) ); ?>" id="mainform" action="" enctype="multipart/form-data"> <nav class="nav-tab-wrapper ang-nav-tab-wrapper"> <?php foreach ( $tabs as $slug => $label ) { echo '<a href="' . esc_html( admin_url( 'admin.php?page=ang-settings&tab=' . esc_attr( $slug ) ) ) . '" class="nav-tab ' . ( $current_tab === $slug ? 'nav-tab-active' : '' ) . '">' . esc_html( $label ) . '</a>'; } do_action( 'ang_settings_tabs' ); ?> </nav> <div class="tab-content"> <h1 class="screen-reader-text"><?php echo esc_html( $current_tab_label ); ?></h1> <?php do_action( 'ang_sections_' . $current_tab ); self::show_messages(); do_action( 'ang_settings_' . $current_tab ); ?> <p class="submit"> <?php if ( empty( $GLOBALS['hide_save_button'] ) ) : ?> <button name="save" class="button-primary ang-save-button" type="submit" value="<?php esc_attr_e( 'Save changes', 'ang' ); ?>"><?php esc_html_e( 'Save changes', 'ang' ); ?></button> <?php endif; ?> <?php wp_nonce_field( 'ang-settings' ); ?> </p> </div> </form> <div class="sidebar"> <?php do_action( 'ang_sidebar_start' ); ?> <?php if ( ! class_exists( '\AnalogPro\Plugin' ) ) : ?> <div class="upgrade-box"> <h3><?php esc_html_e( 'Upgrade to Style Kits Pro with a 15% discount', 'ang' ); ?></h3> <ul> <li><?php esc_html_e( 'Unlimited access to Pro Template Kits, Blocks, and Theme Style presets', 'ang' ); ?></li> <li><?php esc_html_e( 'More Theme Style UI Controls', 'ang' ); ?></li> <li><?php esc_html_e( 'User Role management', 'ang' ); ?></li> <li><?php esc_html_e( 'Unsplash integration', 'ang' ); ?></li> <li><?php esc_html_e( 'Better color management', 'ang' ); ?></li> <li><?php esc_html_e( 'Smart layout tools', 'ang' ); ?></li> </ul> <p><a target="_blank" href="<?php echo esc_url( Utils::get_pro_link() ); ?>"><?php esc_html_e( 'Find out more', 'ang' ); ?></a></p> <form id="js-ang-request-discount" method="post"> <input required type="email" class="regular-text" name="email" value="<?php echo esc_attr( $current_user->user_email ); ?>" placeholder="<?php esc_attr_e( 'Your Email', 'ang' ); ?>"> <input required type="text" class="regular-text" name="first_name" value="<?php echo esc_attr( $current_user->first_name ); ?>" placeholder="<?php esc_attr_e( 'First Name', 'ang' ); ?>"> <input required type="text" class="regular-text" name="last_name" value="<?php echo esc_attr( $current_user->last_name ); ?>" placeholder="<?php esc_attr_e( 'Last Name', 'ang' ); ?>"> <input type="submit" class="button" style="width:100%" value="<?php esc_attr_e( 'Send me the coupon', 'ang' ); ?>"> </form> <p> <?php echo sprintf( /* translators: %s: Link to AnalogWP privacy policy. */ esc_html__( 'By submitting your details, you agree to our %s.', 'ang' ), '<a target="_blank" href="https://analogwp.com/privacy-policy/">' . esc_html__( 'privacy policy', 'ang' ) . '</a>' ); ?> </p> </div> <?php endif; ?> <div class="promo"> <div class="docs"> <h3><?php esc_html_e( 'Documentation', 'ang' ); ?></h3> <p> <?php esc_html_e( 'Need help with Style Kits?', 'ang' ); ?> <a href="<?php echo esc_url( 'https://docs.analogwp.com/' ); ?>" target="_blank"><?php esc_html_e( 'Visit the online docs', 'ang' ); ?></a> </p> </div> <div class="social-group"> <h3><?php esc_html_e( 'Join our Facebook group', 'ang' ); ?></h3> <p> <?php esc_html_e( 'Get insights, tips and updates in our facebook community.', 'ang' ); ?> <a href="<?php echo esc_url( 'https://www.facebook.com/groups/analogwp/' ); ?>" target="_blank"><?php esc_html_e( 'Join now', 'ang' ); ?></a> </p> </div> <div class="newsletter-list"> <h3><?php esc_html_e( 'Sign up for email updates', 'ang' ); ?></h3> <p><?php esc_html_e( 'Stay in the loop with Style Kits development by signing up to our newsletter.', 'ang' ); ?></p> <form id="ang-newsletter" action="" class="form-newsletter"> <input id="ang-newsletter-email" type="email" placeholder="Enter your email" value="<?php echo esc_attr( $current_user->user_email ); ?>"/> <button id="ang-newsletter-submit" class="ang-button button-primary" type="submit"><?php esc_html_e( 'Sign me up', 'ang' ); ?></button> </form> <p><?php esc_html_e( 'By signing up you agree to our', 'ang' ); ?> <a href="<?php echo esc_url( 'https://analogwp.com/privacy-policy/' ); ?>" target="_blank"><?php esc_html_e( 'privacy and terms', 'ang' ); ?></a></p> </div> <div class="social"> <a href="https://facebook.com/analogwp" target="_blank"><span class="dashicons dashicons-facebook-alt"></span></a> <a href="https://twitter.com/analogwp" target="_blank"><span class="dashicons dashicons-twitter"></span></a> <a href="https://instagram.com/analogwp" target="_blank"><span class="dashicons dashicons-instagram"></span></span></a> </div> </div> <?php do_action( 'ang_sidebar_end' ); ?> </div> </div> </div>