Astra_Admin_Settings::preview_custom_layout()

Showcase Custom Layout highlight.


Description


Source

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

		public static function preview_custom_layout() {
			$ast_icon           = apply_filters( 'astra_page_top_icon', true );
			$ast_visit_site_url = apply_filters( 'astra_site_url', 'https://wpastra.com/?utm_source=welcome_page&utm_medium=logo_link&utm_campaign=astra_theme' );
			$ast_wrapper_class  = apply_filters( 'astra_welcome_wrapper_class', array() );

			?>
				<div class="ast-menu-page-wrapper wrap ast-clear <?php echo esc_attr( implode( ' ', $ast_wrapper_class ) ); ?>">
					<div class="ast-theme-page-header">
						<div class="ast-container ast-flex">
							<div class="ast-theme-title">
								<a href="<?php echo esc_url( $ast_visit_site_url ); ?>" target="_blank" rel="noopener" >
								<?php if ( $ast_icon ) { ?>
									<img src="<?php echo esc_url( ASTRA_THEME_URI . 'inc/assets/images/astra.svg' ); ?>" class="ast-theme-icon" alt="<?php echo esc_attr( self::$page_title ); ?> " >
									<span class="astra-theme-version"><?php echo esc_html( ASTRA_THEME_VERSION ); ?></span>
								<?php } ?>
								<?php do_action( 'astra_welcome_page_header_title' ); ?>
								</a>
							</div>
							<?php do_action( 'astra_header_right_section' ); ?>
						</div>
					</div>
					<div class="ast-pro-posttype-preview-container">
						<img src="<?php echo esc_url( ASTRA_THEME_URI . 'inc/assets/images/custom-layout.svg' ); ?>"/>
					</div>
				</div>
				<div class="ast-pro-posttype-popup">
					<div class="ast-pro-posttype-popup-innerwrap">
						<img src="<?php echo esc_url( ASTRA_THEME_URI . 'inc/assets/images/astra-logo.svg' ); ?>"/>
						<p><span class="ast-posttype-title"> <?php echo __( 'Custom Layouts', 'astra' ); ?> </span></p>
						<p class="ast-posttype-description"> <?php echo __( 'Upgrade to Astra Pro for instant access to your website\'s full potential. Create unique layouts, headers and footers, custom pages and content areas with ease!', 'astra' ); ?> </p>
						<a href="<?php echo esc_url( ASTRA_PRO_UPGRADE_URL ); ?>" target="_blank" class="button button-primary button-hero ast-upgrade-cpt-link">
							<?php _e( 'Upgrade Now', 'astra' ); ?>
						</a>
					</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.