Astra_Admin_Settings::astra_upgrade_pro_postbox()

Astra upgrade to pro postbox.


Description


Source

File: inc/core/class-astra-admin-settings.php

		public static function astra_upgrade_pro_postbox() {

			if ( defined( 'ASTRA_EXT_VER' ) ) {
				return;
			}

			$status = astra_get_option( 'ast-disable-upgrade-notices', true );

			?>
			<div class="postbox">
				<h2 class="hndle ast-normal-cursor">
					<span><?php echo esc_html( apply_filters( 'astra_upgrade_pro_postbox', __( 'Build Better Websites with Astra Pro', 'astra' ) ) ); ?></span>
				</h2>
				<div class="inside">
					</p>
						<?php echo esc_html__( 'Access powerful features for painless WordPress design without the high costs.', 'astra' ); ?>
					<p>
					</p>
						<?php echo esc_html__( 'Powerful tools, premium support, limitless opportunity with Astra Pro!', 'astra' ); ?>
					<p>
					</p>
						<?php echo esc_html__( 'Toggle upgrade notices on or off ', 'astra' ); ?>
						<a href="#" class="ast-disable-notices" data-value="<?php echo $status ? 0 : 1; ?>" target="_blank" rel="noopener">
							<?php echo __( 'here.', 'astra' ); ?>
						</a>
					<p>
					<label for="astra_upgrade_pro_postbox">
						<a class="button button-primary" href="<?php echo esc_url( ASTRA_PRO_UPGRADE_URL ); ?>" target="_blank" rel="noopener">
							<?php echo esc_html__( 'Upgrade to Astra Pro!', 'astra' ); ?>
						</a>
					</label>
				</div>
			</div>
			<?php
		}

Changelog

Changelog
Version Description
3.9.4 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.