Server IP : 162.213.251.212 / Your IP : 18.188.113.19 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/bestvalleywater.com/wp-content/plugins/extendify/app/Library/ |
Upload File : |
<?php /** * Admin Welcome page. */ namespace Extendify\Library; defined('ABSPATH') || die('No direct access.'); use Extendify\Config; use Extendify\PartnerData; /** * This class handles the Welcome page on the admin panel. */ class AdminPage { /** * The admin page slug * * @var $string */ public $slug = 'extendify-welcome'; /** * Adds various actions to set up the page * * @return void */ public function __construct() { \add_action( 'in_admin_header', function () { // phpcs:ignore WordPress.Security.NonceVerification if (isset($_GET['page']) && $_GET['page'] === $this->slug) { \remove_all_actions('admin_notices'); \remove_all_actions('all_admin_notices'); } }, 1000 ); \add_action( 'admin_enqueue_scripts', function () { // phpcs:ignore WordPress.Security.NonceVerification if (isset($_GET['page']) && $_GET['page'] === $this->slug) { \wp_enqueue_style( 'extendify-welcome', EXTENDIFY_URL . 'public/admin-page/welcome.css', [], Config::$version ); } } ); } /** * Settings page output * * @since 1.0.0 * * @return void */ public function pageContent() { ?> <div class="extendify-outer-container"> <div class="wrap welcome-container"> <?php if (esc_attr(PartnerData::$id) !== 'no-partner') : ?> <ul class="extendify-welcome-tabs"> <li><a href="<?php echo \esc_url(\admin_url('admin.php?page=extendify-assist')); ?>">Assist</a></li> <li class="active"><a href="<?php echo \esc_url(\admin_url('admin.php?page=extendify-welcome')); ?>">Library</a></li> <li class="cta-button"><a href="<?php echo \esc_url_raw(\get_home_url()); ?>" target="_blank"><?php echo \esc_html(__('View Site', 'extendify-local')); ?></a></li> </ul> <?php endif; ?> <div class="welcome-header"> <img alt=" <?php echo \wp_sprintf( /* translators: %s: The name of the plugin, Extendify */ \esc_html__('%s Banner', 'extendify-local'), 'Extendify' ); ?> " src="<?php echo \esc_url(EXTENDIFY_URL . 'public/assets/welcome-banner.jpg'); ?>"> </div> <hr class="is-small"/> <div class="welcome-section"> <h2 class="aligncenter"> <?php echo \wp_sprintf( /* translators: %s: The name of the plugin, Extendify */ \esc_html__('Welcome to %s', 'extendify-local'), 'Extendify' ); ?> </h2> <p class="aligncenter is-subheading"> <?php echo \wp_sprintf( /* translators: %s: The name of the plugin, Extendify */ \esc_html__('%s is a massive library of drop-in block patterns easily customized to your liking. Each pattern is meticulously designed to work with your existing WordPress theme.', 'extendify-local'), 'Extendify' ); ?> </p> </div> <hr/> <div class="welcome-section has-2-columns has-gutters is-wider-right"> <div class="column is-edge-to-edge"> <h3> <?php echo \wp_sprintf( /* translators: %s: Extendify Library term */ \esc_html__('1. Open the %s', 'extendify-local'), 'Extendify Library' ); ?> </h3> <p> <?php echo \wp_sprintf( /* translators: %s: Extendify Library term */ \esc_html__("When editing a page or post within the block editor, you'll see the %s button within the editor's header", 'extendify-local'), 'Extendify Library' ); ?> </p> <p> <?php // translators: %1$s = URL. echo \wp_sprintf(\esc_html__('You may also add a new page with the library opened for you by %1$s.', 'extendify-local'), '<a href="' . \esc_url(\admin_url('post-new.php?post_type=page&ext-open')) . '">' . \esc_html__('clicking here', 'extendify-local') . '</a>'); ?> </p> </div> <div class="column welcome-image is-vertically-aligned-center is-edge-to-edge"> <img src="<?php echo \esc_url(EXTENDIFY_URL . 'public/assets/welcome-block-1.jpg'); ?>" alt=""/> </div> </div> <div class="welcome-section has-2-columns has-gutters is-wider-left"> <div class="column welcome-image is-vertically-aligned-center is-edge-to-edge"> <img src="<?php echo \esc_url(EXTENDIFY_URL . 'public/assets/welcome-block-2.jpg'); ?>" alt=""/> </div> <div class="column is-edge-to-edge"> <h3> <?php \esc_html_e('2. Choose a site industry', 'extendify-local'); ?> </h3> <p> <?php \esc_html_e('With the library open, you can set your site industry - or type - which will surface the perfect industry-specific patterns and full page layouts to drop onto your website.', 'extendify-local'); ?> </p> <p> <?php echo \wp_sprintf( /* translators: %s: The name of the plugin, Extendify */ \esc_html__('%s supports over sixty types with new industries added regularly.', 'extendify-local'), 'Extendify' ); ?> </p> </div> </div> <div class="welcome-section has-2-columns has-gutters is-wider-right"> <div class="column is-edge-to-edge"> <h3> <?php \esc_html_e('3. Browse Patterns & Layouts.', 'extendify-local'); ?> </h3> <p> <?php echo \wp_sprintf( /* translators: %s: The name of the plugin, Extendify */ \esc_html__('Search by industry, contents, and design attributes. %s has thousands of best-in-class block patterns. Find what you love and add it to the page - done!', 'extendify-local'), 'Extendify' ); ?> </p> <p> <?php \esc_html_e("You'll find beautiful high fidelity Gutenberg content to add to your pages in no time!", 'extendify-local'); ?> </p> </div> <div class="column welcome-image is-vertically-aligned-center is-edge-to-edge"> <img src="<?php echo \esc_url(EXTENDIFY_URL . 'public/assets/welcome-block-3.jpg'); ?>" alt=""/> </div> </div> </div> </div> <?php } }