Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/uploads/flags/views.tar
Назад
sidebar.php 0000644 00000005203 14720501100 0006654 0 ustar 00 <?php /** * Sidebar * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; ?> <div id="sidebar" class="wrapper-cell"> <div class="sidebar_box info_box"> <h3><?php esc_html_e( 'Plugin Info', 'wp-maintenance-mode' ); ?></h3> <div class="inside"> <?php $plugin_data = wpmm_plugin_info( $this->plugin_slug ); ?> <ul> <li><?php esc_html_e( 'Name', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['Name'] ) ? esc_html( $plugin_data['Name'] ) : ''; echo ! empty( $plugin_data['Version'] ) ? esc_html( ' v' . $plugin_data['Version'] ) : ''; ?> </li> <li><?php esc_html_e( 'Author', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['AuthorName'] ) ? esc_html( $plugin_data['AuthorName'] ) : ''; ?></li> <li><?php esc_html_e( 'Website', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['AuthorURI'] ) ? '<a href="' . esc_url( wpmm_get_utmized_url( $plugin_data['AuthorURI'], array( 'campaign' => 'plugininfo' ) ) ) . '" target="_blank">' . esc_html( $plugin_data['AuthorName'] ) . $this->get_external_link_icon() . '</a>' : ''; ?></li> <li><?php esc_html_e( 'Twitter', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['Twitter'] ) ? '<a href="' . esc_url( 'https://twitter.com/' . $plugin_data['Twitter'] ) . '" target="_blank">@' . esc_html( $plugin_data['Twitter'] ) . $this->get_external_link_icon() . '</a>' : ''; ?></li> <li><?php esc_html_e( 'GitHub', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['GitHub Plugin URI'] ) ? '<a href="' . esc_url( wpmm_get_utmized_url( $plugin_data['GitHub Plugin URI'], array( 'campaign' => 'plugininfo' ) ) ) . '" target="_blank">' . esc_html( basename( $plugin_data['GitHub Plugin URI'] ) ) . $this->get_external_link_icon() . '</a>' : ''; ?></li> </ul> </div> </div> <?php $banners = wpmm_get_banners(); if ( ! empty( $banners ) ) { ?> <div class="sidebar_box themes_box"> <h3><?php esc_html_e( 'Recommended', 'wp-maintenance-mode' ); ?></h3> <div class="inside"> <ul> <?php foreach ( $banners as $item ) { $item['image'] = wpmm_get_banner_url( $item['image'] ); if ( $item['utm'] ) { $item['link'] = wpmm_get_utmized_url( $item['link'], array( 'campaign' => 'recommended', 'content' => sanitize_key( $item['title'] ), ) ); } printf( '<li><a href="%s" target="_blank" title="%s"><img src="%s" alt="%s" width="280" height="160" /></a></li>', esc_url( $item['link'] ), esc_attr( $item['title'] ), esc_url( $item['image'] ), esc_attr( $item['title'] ) ); } ?> </ul> </div> </div> <?php } ?> </div> wpmm-page-template.php 0000644 00000002733 14720501100 0010753 0 ustar 00 <?php /** * Template Name: Full Width for Maintenance Page */ defined( 'ABSPATH' ) || exit; $overrideable_template = wpmm_get_template_path( 'maintenance.php', true ); if ( ( defined( 'IS_MAINTENANCE' ) && IS_MAINTENANCE ) && WPMM_VIEWS_PATH . 'maintenance.php' !== $overrideable_template ) { exit(); } else { $settings = WP_Maintenance_Mode::get_instance()->get_plugin_settings(); ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php do_action( 'wpmm_head' ); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); while ( have_posts() ) { the_post(); the_content(); } if ( isset( $settings['bot']['status'] ) && $settings['bot']['status'] === 1 ) { ?> <div class="bot-container"> <div class="bot-avatar"><div class="avatar-notice"></div></div> <div class="bot-chat-wrapper" style="display: none"> <div class="chat-container cf"></div> <div class="input"></div> <div class="choices cf"></div> </div> </div> <div class="bot-error"><p></p></div> <div class="wrap under-bot"> <?php } ?> <script type='text/javascript'> var wpmmVars = {"ajaxURL": "<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>"}; </script> <?php wp_footer(); do_action( 'wpmm_footer' ); ?> </body> </html> <?php exit(); } settings.php 0000644 00000170232 14720501100 0007110 0 ustar 00 <?php /** * Settings * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; $is_old_version = version_compare( $GLOBALS['wp_version'], '5.8', '<' ); if ( ! isset( $this->plugin_settings['design']['page_id'] ) ) { $this->plugin_settings['design']['page_id'] = 0; } $is_otter_active = is_plugin_active( 'otter-blocks/otter-blocks.php' ) || defined( 'OTTER_BLOCKS_VERSION' ); $is_hyve_installed = file_exists( ABSPATH . 'wp-content/plugins/hyve-lite/hyve-lite.php' ) || defined( 'HYVE_LITE_VERSION' ); $is_min_php_8_1 = version_compare( PHP_VERSION, '8.1', '>=' ); $hyve_url = add_query_arg( array( 'tab' => 'plugin-information', 'plugin' => 'hyve-lite', 'TB_iframe' => true, 'width' => 800, 'height' => 800, ), network_admin_url( 'plugin-install.php' ) ); ?> <div class="wrap"> <h2 class="wpmm-title"><?php echo esc_html( get_admin_page_title() ); ?> <?php if ( get_option( 'wpmm_fresh_install', false ) ) { ?> <span id="wizard-exit"><img src="<?php echo esc_attr( WPMM_IMAGES_URL . 'exit.svg' ); ?>" alt="exit"></span><?php } ?> </h2> <div class="wpmm-wrapper"> <?php if ( get_option( 'wpmm_fresh_install', false ) ) { include 'wizard.php'; } else { ?> <div id="content" class="wrapper-cell"> <div class="nav-tab-wrapper"> <a class="nav-tab nav-tab-active" href="#general"> <svg class="nav-tab-icon h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" /> </svg> <?php esc_html_e( 'General', 'wp-maintenance-mode' ); ?> </a> <a class="nav-tab" href="#design"> <svg class="nav-tab-icon h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" /> </svg> <?php esc_html_e( 'Design', 'wp-maintenance-mode' ); ?></a> <a class="nav-tab" href="#modules"> <svg class="nav-tab-icon h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z" /> </svg> <?php esc_html_e( 'Modules', 'wp-maintenance-mode' ); ?> </a> <a class="nav-tab" href="#bot"> <svg class="nav-tab-icon h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z" /> </svg> <?php esc_html_e( 'Manage Bot', 'wp-maintenance-mode' ); ?> </a> <?php if ( ! get_option( 'wpmm_new_look' ) ) { ?> <a class="nav-tab" href="#gdpr"> <svg class="nav-tab-icon h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" /> </svg> <?php esc_html_e( 'GDPR', 'wp-maintenance-mode' ); ?> </a> <?php } ?> </div> <div class="tabs-content"> <div id="tab-general" class=""> <form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post"> <table class="form-table"> <tbody> <tr valign="top" class="<?php echo ! empty( $this->plugin_settings['general']['network_mode'] ) ? 'wpmm_status_disable' : ''; ?>"> <th scope="row"> <label for="options[general][status]"><?php esc_html_e( 'Status', 'wp-maintenance-mode' ); ?></label> </th> <td> <label><input type="radio" value="1" name="options[general][status]"<?php checked( $this->plugin_settings['general']['status'], 1 ); ?> /> <?php esc_html_e( 'Activated', 'wp-maintenance-mode' ); ?></label> <br /> <label><input type="radio" value="0" name="options[general][status]"<?php checked( $this->plugin_settings['general']['status'], 0 ); ?> /> <?php esc_html_e( 'Deactivated', 'wp-maintenance-mode' ); ?></label> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][bypass_bots]"><?php esc_html_e( 'Bypass for Search Bots', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[general][bypass_bots]"> <option value="1"<?php selected( $this->plugin_settings['general']['bypass_bots'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['general']['bypass_bots'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> <p class="description"><?php esc_html_e( 'Allow Search Bots to bypass maintenance mode?', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][backend_role][]"><?php esc_html_e( 'Backend Role', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[general][backend_role][]" multiple="multiple" class="chosen-select" data-placeholder="<?php esc_attr_e( 'Select role(s)', 'wp-maintenance-mode' ); ?>"> <?php foreach ( wpmm_get_user_roles() as $role_key => $role_name ) { ?> <option value="<?php echo esc_attr( $role_key ); ?>"<?php echo wpmm_multiselect( (array) $this->plugin_settings['general']['backend_role'], $role_key ); ?>><?php echo esc_html( $role_name ); ?></option> <?php } ?> </select> <p class="description"><?php esc_html_e( 'Which user role is allowed to access the backend of the website? Administrators will always have access.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][frontend_role][]"><?php esc_html_e( 'Frontend Role', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[general][frontend_role][]" multiple="multiple" class="chosen-select" data-placeholder="<?php esc_attr_e( 'Select role(s)', 'wp-maintenance-mode' ); ?>"> <?php foreach ( wpmm_get_user_roles() as $role_key => $role_name ) { ?> <option value="<?php echo esc_attr( $role_key ); ?>"<?php echo wpmm_multiselect( (array) $this->plugin_settings['general']['frontend_role'], $role_key ); ?>><?php echo esc_html( $role_name ); ?></option> <?php } ?> </select> <p class="description"><?php esc_html_e( 'Which user role is allowed to access the frontend of the website? Administrators will always have access.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][meta_robots]"><?php esc_html_e( 'Robots Meta Tag', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[general][meta_robots]"> <option value="1"<?php selected( $this->plugin_settings['general']['meta_robots'], 1 ); ?>>noindex, nofollow</option> <option value="0"<?php selected( $this->plugin_settings['general']['meta_robots'], 0 ); ?>>index, follow</option> </select> <p class="description"><?php esc_html_e( 'The robots meta tag lets you use a granular, page-specific approach to control how an individual page should be indexed and served to users in search results.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][redirection]"><?php esc_html_e( 'Redirection', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_url( $this->plugin_settings['general']['redirection'] ); ?>" name="options[general][redirection]" /> <p class="description"><?php esc_html_e( 'If you want to redirect a user (with no access to Dashboard/Backend) to a URL (different from WordPress Dashboard URL) after login, then define a URL (incl. https://)', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][exclude]"><?php esc_html_e( 'Exclude', 'wp-maintenance-mode' ); ?></label> </th> <td> <?php $exclude_list = ! empty( $this->plugin_settings['general']['exclude'] ) && is_array( $this->plugin_settings['general']['exclude'] ) ? $this->plugin_settings['general']['exclude'] : array(); ?> <textarea rows="7" name="options[general][exclude]" style="width: 625px;"><?php echo esc_textarea( implode( "\n", $exclude_list ) ); ?></textarea> <p class="description"><?php esc_html_e( 'Exclude feed, pages, archives or IPs from maintenance mode. Add one slug / IP per line! Comments start with # and can be appended at the end of a line.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[general][notice]"><?php esc_html_e( 'Notice', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[general][notice]"> <option value="1"<?php selected( $this->plugin_settings['general']['notice'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['general']['notice'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> <p class="description"><?php esc_html_e( 'Do you want to see notices when maintenance mode is activated?', 'wp-maintenance-mode' ); ?></p> </td> </tr> <?php if ( ! get_option( 'wpmm_new_look' ) ) { ?> <tr valign="top"> <th scope="row"> <label for="options[general][admin_link]"><?php esc_html_e( 'Dashboard link', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[general][admin_link]"> <option value="1"<?php selected( $this->plugin_settings['general']['admin_link'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['general']['admin_link'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> <p class="description"><?php esc_html_e( 'Do you want to add a link to the dashboard on your maintenance mode page?', 'wp-maintenance-mode' ); ?></p> </td> </tr> <?php } ?> </tbody> </table> <?php wpmm_form_hidden_fields( 'general' ); ?> <input type="submit" value="<?php esc_attr_e( 'Save settings', 'wp-maintenance-mode' ); ?>" class="button button-primary" name="submit" /> <input type="button" value="<?php esc_attr_e( 'Reset settings', 'wp-maintenance-mode' ); ?>" class="button button-secondary reset_settings" data-tab="general" name="submit" /> </form> </div> <div id="tab-design" class="hidden"> <form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post"> <?php if ( get_option( 'wpmm_new_look' ) ) { $overrideable_template = wpmm_get_template_path( 'maintenance.php', true ); if ( WPMM_VIEWS_PATH . 'maintenance.php' !== $overrideable_template ) { ?> <p class="notice notice-info"><?php esc_html_e( 'You are using a custom template from your theme/child theme folder.', 'wp-maintenance-mode' ); ?></p> <?php } elseif ( ( ! get_post( $this->plugin_settings['design']['page_id'] ) || get_post_status( $this->plugin_settings['design']['page_id'] ) === 'trash' ) && $this->plugin_settings['general']['status'] === 1 ) { ?> <p class="notice notice-error"><?php esc_html_e( 'You don\'t have a maintenance page or your Maintenance Page has been deleted. Please select another one from the dropdown below or import a template and a new one will be created.', 'wp-maintenance-mode' ); ?></p><?php } ?> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="design_page_id"><?php esc_html_e( 'Select page', 'wp-maintenance-mode' ); ?></label> </th> <td> <?php wp_dropdown_pages( array( 'selected' => isset( $this->plugin_settings['design']['page_id'] ) ? $this->plugin_settings['design']['page_id'] : 0, 'name' => 'options[design][page_id]', 'id' => 'design_page_id', 'option_none_value' => '', 'show_option_no_change' => __( 'Select page', 'wp-maintenance-mode' ), 'post_status' => array( 'publish', 'private' ), ) ); $page_status = get_post_status( isset( $this->plugin_settings['design']['page_id'] ) ? $this->plugin_settings['design']['page_id'] : 0 ); if ( $page_status && $page_status !== 'trash' ) { ?> <a href="<?php echo get_edit_post_link( $this->plugin_settings['design']['page_id'] ); ?>"><?php esc_html_e( 'Edit page', 'wp-maintenance-mode' ); ?></a> <?php } ?> </td> </tr> </tbody> </table> <table> <tbody><tr valign="top"> <p class="description"><?php esc_html_e( 'Select the page that will be used as the Maintenance, Coming Soon or Landing page.', 'wp-maintenance-mode' ); ?></p> </tr></tbody> </table> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="dashboard-template" class="wpmm-templates-gallery__label"><?php esc_html_e( 'Pick a template', 'wp-maintenance-mode' ); ?></label> </th> <td class="category-select-wrap"> <select name="options[design][template_category]" id="template-category"> <option value="all"<?php selected( $this->plugin_settings['design']['template_category'], 'all' ); ?>><?php esc_html_e( 'All Templates', 'wp-maintenance-mode' ); ?></option> <?php $categories = WP_Maintenance_Mode::get_page_categories(); foreach ( $categories as $category => $label ) { ?> <option value="<?php echo esc_attr( $category ); ?>"<?php selected( $this->plugin_settings['design']['template_category'], $category ); ?>><?php echo esc_html( $label ); ?></option> <?php } ?> </select> </td> </tr> </tbody> </table> <?php if ( $is_old_version ) { ?> <p class="description"><i><?php echo __( '<b>Note</b>: You need at least WP 5.8 to use new generation maintenance pages.', 'wp-maintenance-mode' ); ?></i></p> <?php } else { ?> <p class="wpmm-templates-gallery__description"> <?php esc_html_e( 'Pick one of our starter templates for your maintenance or coming soon page. You can always customize them based on your needs.', 'wp-maintenance-mode' ); ?> <br/> <?php esc_html_e( 'Stay in the loop for more templates!', 'wp-maintenance-mode' ); ?> </p> <?php if ( ! $is_otter_active ) { echo $this->get_otter_notice( 'settings' ); } ?> <?php } ?> <div class="wpmm-templates"> <?php if ( ! isset( $this->plugin_settings['design']['template_category'] ) ) { $this->plugin_settings['design']['template_category'] = 'all'; update_option( 'wpmm_settings', $this->plugin_settings ); } $selected_category = $this->plugin_settings['design']['template_category']; $categories = WP_Maintenance_Mode::get_page_categories(); if ( $selected_category !== 'all' ) { $categories = array( $selected_category => array( $selected_category ) ); } $will_replace = isset( $this->plugin_settings['design']['page_id'] ) && ! ( ! get_post( $this->plugin_settings['design']['page_id'] ) || empty( trim( get_post( $this->plugin_settings['design']['page_id'] )->post_content ) ) || get_post( $this->plugin_settings['design']['page_id'] )->post_status === 'trash' ); foreach ( $categories as $category => $label ) { $templates = list_files( WPMM_TEMPLATES_PATH . $category . '/', 1 ); natsort( $templates ); foreach ( $templates as $template ) { $name = basename( $template ); $thumbnail = WPMM_TEMPLATES_URL . $category . '/' . $name . '/screenshot.png'; $content = WPMM_TEMPLATES_PATH . $category . '/' . $name . '/blocks-export.json'; $template_label = json_decode( file_get_contents( $content ) )->label; ?> <div class="wpmm-template-wrap"> <div class="wpmm-template-image-wrap <?php echo $is_old_version ? '' : 'can-import'; ?>"> <img src="<?php echo $thumbnail; ?>" alt="<?php echo $name; ?>"/> <?php if ( ! $is_old_version ) { ?> <button type="button" class="button button-primary button-import" data-tab="design" data-slug="<?php echo esc_attr( $name ); ?>" data-category="<?php echo esc_attr( $category ); ?>" data-replace="<?php echo (int) $will_replace; ?>"><?php esc_html_e( 'Import template', 'wp-maintenance-mode' ); ?></button> <?php } ?> </div> <p class="description"><?php echo $template_label; ?></p> </div> <?php } } ?> </div> <?php } else { /* legacy code */ ?> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[design][title]"><?php esc_html_e( 'Title (HTML tag)', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['design']['title'] ); ?>" name="options[design][title]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[design][heading]"><?php esc_html_e( 'Heading', 'wp-maintenance-mode' ); ?></label> </th> <td class="has-inline-color-picker"> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['design']['heading'] ); ?>" name="options[design][heading]" /> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['design']['heading_color'] ); ?>" name="options[design][heading_color]" class="color_picker_trigger" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[design][text]"><?php esc_html_e( 'Text', 'wp-maintenance-mode' ); ?></label> </th> <td> <?php wp_editor( wp_kses_post( $this->plugin_settings['design']['text'] ), 'options_design_text', array( 'textarea_name' => 'options[design][text]', 'textarea_rows' => 8, 'editor_class' => 'large-text', 'media_buttons' => true, 'wpautop' => false, 'default_editor' => 'tinymce', 'teeny' => true, ) ); ?> <div class="shortcodes-list-wrapper"> <?php $hide_shortcodes_text = __( 'Hide available shortcodes', 'wp-maintenance-mode' ); $show_shortcodes_text = __( 'See available shortcodes', 'wp-maintenance-mode' ); ?> <a href="javascript:void(0);" class="button button-small toggle-shortcodes-list" data-hide="<?php echo esc_attr( $hide_shortcodes_text ); ?>" data-show="<?php echo esc_attr( $show_shortcodes_text ); ?>" ><?php echo esc_html( $show_shortcodes_text ); ?></a> <ul class="shortcodes-list"> <li> <?php /* translators: shortcode tag */ printf( esc_html__( '%s - display a login form', 'wp-maintenance-mode' ), '[loginform]' ); ?> </li> <li> <?php /* translators: 1: shortcode tag, 2: list of compatible services, 3: shortcode example */ printf( esc_html__( '%1$s - responsive video embed. Compatible with %2$s. Example: %3$s', 'wp-maintenance-mode' ), '[embed]', 'YouTube, Vimeo, DailyMotion', '<span>[embed]https://www.youtube.com/watch?v=HCfPhZQz2CE[/embed]</span>' ); ?> </li> </ul> </div> <p class="description"><?php esc_html_e( 'This text will not be shown when the bot feature is enabled.', 'wp-maintenance-mode' ); ?></p> <br /> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['design']['text_color'] ); ?>" name="options[design][text_color]" class="color_picker_trigger" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[design][footer_links_color]"><?php esc_html_e( 'Footer links', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['design']['footer_links_color'] ); ?>" name="options[design][footer_links_color]" class="color_picker_trigger" /> <p class="description"><?php esc_html_e( '"Dashboard" and "Privacy Policy" links.', 'wp-maintenance-mode' ); ?></p> </td> </tr> </tbody> </table> <h3>» <?php esc_html_e( 'Background', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[design][bg_type]"><?php esc_html_e( 'Choose type', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[design][bg_type]" id="design_bg_type"> <option value="color"<?php selected( $this->plugin_settings['design']['bg_type'], 'color' ); ?>><?php esc_html_e( 'Custom color', 'wp-maintenance-mode' ); ?></option> <option value="custom"<?php selected( $this->plugin_settings['design']['bg_type'], 'custom' ); ?>><?php esc_html_e( 'Uploaded background', 'wp-maintenance-mode' ); ?></option> <option value="predefined"<?php selected( $this->plugin_settings['design']['bg_type'], 'predefined' ); ?>><?php esc_html_e( 'Predefined background', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> <tr valign="top" class="design_bg_types <?php echo $this->plugin_settings['design']['bg_type'] !== 'color' ? 'hidden' : ''; ?>" id="show_color"> <th scope="row"> <label for="options[design][bg_color]"><?php esc_html_e( 'Choose color', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['design']['bg_color'] ); ?>" name="options[design][bg_color]" class="color_picker_trigger" /> </td> </tr> <tr valign="top" class="design_bg_types <?php echo $this->plugin_settings['design']['bg_type'] !== 'custom' ? 'hidden' : ''; ?>" id="show_custom"> <th scope="row"> <label for="options[design][bg_custom]"><?php esc_html_e( 'Upload background', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_url( $this->plugin_settings['design']['bg_custom'] ); ?>" name="options[design][bg_custom]" class="background_url" /> <input type="button" value="<?php echo esc_attr_x( 'Upload', 'upload background button', 'wp-maintenance-mode' ); ?>" class="button image_uploader_trigger" data-name="background" data-title="<?php esc_attr_e( 'Upload Background', 'wp-maintenance-mode' ); ?>" data-button-text="<?php esc_attr_e( 'Choose Background', 'wp-maintenance-mode' ); ?>" data-to-selector=".background_url" /> <p class="description"><?php esc_html_e( 'Backgrounds should have 1920x1280 px size.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top" class="design_bg_types <?php echo $this->plugin_settings['design']['bg_type'] !== 'predefined' ? 'hidden' : ''; ?>" id="show_predefined"> <th scope="row"> <label for="options[design][bg_predefined]"><?php esc_html_e( 'Choose background', 'wp-maintenance-mode' ); ?></label> <p class="description"> <?php printf( wp_kses( /* translators: free photos url */ __( '* source <a href="%s" target="_blank">Free Photos</a>', 'wp-maintenance-mode' ), wpmm_translated_string_allowed_html() ), esc_url( wpmm_get_utmized_url( 'https://themeisle.com/blog/wordpress-stock-photos/', array( 'campaign' => 'settings' ) ) ) ); ?> </p> </th> <td> <ul class="bg_list"> <?php foreach ( wpmm_get_backgrounds() as $filename ) { ?> <li class="<?php echo $this->plugin_settings['design']['bg_predefined'] === $filename['big'] ? 'active' : ''; ?>"> <label> <input type="radio" value="<?php echo esc_attr( $filename['big'] ); ?>" name="options[design][bg_predefined]"<?php checked( $this->plugin_settings['design']['bg_predefined'], $filename['big'] ); ?> /> <img src="<?php echo esc_url( WPMM_URL . 'assets/images/backgrounds/' . $filename['small'] ); ?>" width="200" height="150" /> </label> </li> <?php } ?> </ul> </td> </tr> </tbody> </table> <h3>» <?php esc_html_e( 'Other', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[design][other_custom_css]"><?php esc_html_e( 'Custom CSS', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea rows="10" name="options[design][other_custom_css]" style="width:625px;" id="other_custom_css"><?php echo esc_textarea( wp_strip_all_tags( $this->plugin_settings['design']['other_custom_css'] ) ); ?></textarea> <p class="description"><?php esc_html_e( 'Do not add <style> tags.', 'wp-maintenance-mode' ); ?></p> </td> </tr> </tbody> </table> <input type="submit" value="<?php esc_attr_e( 'Save settings', 'wp-maintenance-mode' ); ?>" class="button button-primary" name="submit" /> <input type="button" value="<?php esc_attr_e( 'Reset settings', 'wp-maintenance-mode' ); ?>" class="button button-secondary reset_settings" data-tab="design" name="submit" /> <?php } /* end of legacy code */ wpmm_form_hidden_fields( 'design' ); ?> </form> </div> <div id="tab-modules" class="hidden"> <form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post"> <?php if ( ! get_option( 'wpmm_new_look' ) ) { ?> <h3>» <?php esc_html_e( 'Countdown', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[modules][countdown_status]"><?php esc_html_e( 'Show countdown?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][countdown_status]"> <option value="1"<?php selected( $this->plugin_settings['modules']['countdown_status'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['countdown_status'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][countdown_start]"><?php esc_html_e( 'Start date', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['countdown_start'] ); ?>" name="options[modules][countdown_start]" class="countdown_start" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][countdown_details]"><?php esc_html_e( 'Countdown (remaining time)', 'wp-maintenance-mode' ); ?></label> </th> <td class="countdown_details"> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['countdown_details']['days'] ); ?>" name="options[modules][countdown_details][days]" /> <?php esc_html_e( 'Days', 'wp-maintenance-mode' ); ?> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['countdown_details']['hours'] ); ?>" name="options[modules][countdown_details][hours]" class="margin_left" /> <?php esc_html_e( 'Hours', 'wp-maintenance-mode' ); ?> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['countdown_details']['minutes'] ); ?>" name="options[modules][countdown_details][minutes]" class="margin_left" /> <?php esc_html_e( 'Minutes', 'wp-maintenance-mode' ); ?> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][countdown_color]"><?php esc_html_e( 'Color', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['countdown_color'] ); ?>" name="options[modules][countdown_color]" class="color_picker_trigger" /> </td> </tr> </tbody> </table> <h3>» <?php esc_html_e( 'Subscribe', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[modules][subscribe_status]"><?php esc_html_e( 'Show subscribe?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][subscribe_status]"> <option value="1"<?php selected( $this->plugin_settings['modules']['subscribe_status'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['subscribe_status'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][subscribe_text]"><?php esc_html_e( 'Text', 'wp-maintenance-mode' ); ?></label> </th> <td class="has-inline-color-picker"> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['subscribe_text'] ); ?>" name="options[modules][subscribe_text]" /> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['subscribe_text_color'] ); ?>" name="options[modules][subscribe_text_color]" class="color_picker_trigger" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][stats]"><?php esc_html_e( 'Stats', 'wp-maintenance-mode' ); ?></label> </th> <td id="subscribers_wrap"> <?php $subscribers_no = wpmm_get_subscribers_count(); /* translators: number of subscribers */ echo esc_html( sprintf( _nx( 'You have %d subscriber', 'You have %d subscribers', $subscribers_no, 'settings page', 'wp-maintenance-mode' ), $subscribers_no ) ); if ( current_user_can( wpmm_get_capability( 'subscribers' ) ) && $subscribers_no > 0 ) { ?> <div class="buttons"> <a class="button button-primary" id="subscribers-export" href="javascript:void(0);"><?php esc_html_e( 'Export as CSV', 'wp-maintenance-mode' ); ?></a> <a class="button button-secondary" id="subscribers-empty-list" href="javascript:void(0);"><?php esc_html_e( 'Empty subscribers list', 'wp-maintenance-mode' ); ?></a> </div> <?php } ?> </td> </tr> </tbody> </table> <h3>» <?php esc_html_e( 'Social Networks', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[modules][social_status]"><?php esc_html_e( 'Show social networks?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][social_status]"> <option value="1"<?php selected( $this->plugin_settings['modules']['social_status'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['social_status'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_target]"><?php esc_html_e( 'Links target?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][social_target]"> <option value="1"<?php selected( $this->plugin_settings['modules']['social_target'], 1 ); ?>><?php esc_html_e( 'New page', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['social_target'], 0 ); ?>><?php esc_html_e( 'Same page', 'wp-maintenance-mode' ); ?></option> </select> <p class="description"><?php esc_html_e( 'Choose how the links will open.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row" colspan="2" style="font-weight: normal;"> <?php echo wp_kses( __( 'You have to use full URLs. For example: if your Twitter username is <code>WordPress</code>, the URL should be <code>https://twitter.com/WordPress</code>.', 'wp-maintenance-mode' ), wpmm_translated_string_allowed_html() ); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_github]">Github</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_github'] ); ?>" name="options[modules][social_github]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_dribbble]">Dribbble</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_dribbble'] ); ?>" name="options[modules][social_dribbble]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_twitter]">Twitter</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_twitter'] ); ?>" name="options[modules][social_twitter]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_facebook]">Facebook</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_facebook'] ); ?>" name="options[modules][social_facebook]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_instagram]">Instagram</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_instagram'] ); ?>" name="options[modules][social_instagram]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_pinterest]">Pinterest</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_pinterest'] ); ?>" name="options[modules][social_pinterest]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_google+]">Google+</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_google+'] ); ?>" name="options[modules][social_google+]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][social_linkedin]">Linkedin</label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['social_linkedin'] ); ?>" name="options[modules][social_linkedin]" /> </td> </tr> </tbody> </table> <h3>» <?php esc_html_e( 'Contact', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[modules][contact_status]"><?php esc_html_e( 'Show contact?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][contact_status]"> <option value="1"<?php selected( $this->plugin_settings['modules']['contact_status'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['contact_status'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][contact_email]"><?php esc_html_e( 'Email address', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['contact_email'] ); ?>" name="options[modules][contact_email]" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][contact_effects]"><?php esc_html_e( 'Effects', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][contact_effects]"> <option value="move_top|move_bottom"<?php selected( $this->plugin_settings['modules']['contact_effects'], 'move_top|move_bottom' ); ?>><?php esc_html_e( 'Move top - Move bottom', 'wp-maintenance-mode' ); ?></option> <option value="zoom|zoomed"<?php selected( $this->plugin_settings['modules']['contact_effects'], 'zoom|zoomed' ); ?>><?php esc_html_e( 'Zoom - Zoomed', 'wp-maintenance-mode' ); ?></option> <option value="fold|unfold"<?php selected( $this->plugin_settings['modules']['contact_effects'], 'fold|unfold' ); ?>><?php esc_html_e( 'Fold - Unfold', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> </tbody> </table> <?php } ?> <?php if ( get_option( 'wpmm_new_look' ) ) { ?> <h3>» <?php esc_html_e( 'Subscribe', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[modules][stats]"><?php esc_html_e( 'Stats', 'wp-maintenance-mode' ); ?></label> </th> <td id="subscribers_wrap"> <?php $subscribers_no = wpmm_get_subscribers_count(); /* translators: number of subscribers */ echo esc_html( sprintf( _nx( 'You have %d subscriber', 'You have %d subscribers', $subscribers_no, 'settings page', 'wp-maintenance-mode' ), $subscribers_no ) ); if ( current_user_can( wpmm_get_capability( 'subscribers' ) ) && $subscribers_no > 0 ) { ?> <div class="buttons"> <a class="button button-primary" id="subscribers-export" href="javascript:void(0);"><?php esc_html_e( 'Export as CSV', 'wp-maintenance-mode' ); ?></a> <a class="button button-secondary" id="subscribers-empty-list" href="javascript:void(0);"><?php esc_html_e( 'Empty subscribers list', 'wp-maintenance-mode' ); ?></a> </div> <?php } ?> </td> </tr> </tbody> </table> <?php } ?> <h3>» <?php esc_html_e( 'Google Analytics', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[modules][ga_status]"><?php esc_html_e( 'Use Google Analytics?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][ga_status]"> <option value="1"<?php selected( $this->plugin_settings['modules']['ga_status'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['ga_status'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][ga_anonymize_ip]"><?php esc_html_e( 'Enable IP anonymization?', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[modules][ga_anonymize_ip]"> <option value="1"<?php selected( $this->plugin_settings['modules']['ga_anonymize_ip'], 1 ); ?>><?php esc_html_e( 'Yes', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['modules']['ga_anonymize_ip'], 0 ); ?>><?php esc_html_e( 'No', 'wp-maintenance-mode' ); ?></option> </select> <p class="description"> <?php printf( wp_kses( /* translators: Google Analytics documentation url */ __( 'Read about IP anonymization on <a href="%s" rel="noreferrer" target="_blank">Google Analytics</a> docs. It is always enabled on Google Analytics 4.', 'wp-maintenance-mode' ), wpmm_translated_string_allowed_html() ), esc_url( 'https://support.google.com/analytics/answer/2763052' ) ); ?> </p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[modules][ga_code]"><?php esc_html_e( 'Tracking code', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['modules']['ga_code'] ); ?>" name="options[modules][ga_code]" /> <p class="description"><?php esc_html_e( 'Allowed formats: UA-XXXXXXXX, UA-XXXXXXXX-XXXX, G-XXXXXXXX. Eg: UA-12345678-1 is valid', 'wp-maintenance-mode' ); ?></p> </td> </tr> </tbody> </table> <?php wpmm_form_hidden_fields( 'modules' ); ?> <input type="submit" value="<?php esc_attr_e( 'Save settings', 'wp-maintenance-mode' ); ?>" class="button button-primary" name="submit" /> <input type="button" value="<?php esc_attr_e( 'Reset settings', 'wp-maintenance-mode' ); ?>" class="button button-secondary reset_settings" data-tab="modules" name="submit" /> </form> </div> <div id="tab-bot" class="hidden"> <form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post"> <table class="form-table"> <tbody> <tr valign="top"> <td colspan="2"> <?php if ( ! $is_hyve_installed && $is_min_php_8_1 ) : ?> <div class="wpmm-notice"> <div class="wpmm-notice-content"> <h3><?php esc_html_e( 'Enhance Your WordPress Site with Hyve AI Chatbot', 'wp-maintenance-mode' ); ?></h3> <p><?php esc_html_e( 'Hyve is an AI chatbot plugin for WordPress, ideal for sites in maintenance mode. It enhances user experience by turning your content into interactive conversations, helping visitors access information while your site is under development.', 'wp-maintenance-mode' ); ?></p> </div> <a target="_black" href="<?php echo esc_url( $hyve_url ); ?>" class="button button-primary"><?php esc_html_e( 'Install Hyve', 'wp-maintenance-mode' ); ?></a> </div> <?php endif; ?> <h4><?php esc_html_e( 'Setup the conversation steps to capture more subscribers with this friendly way of asking email addresses.', 'wp-maintenance-mode' ); ?></h4> <p><?php esc_html_e( 'You may also want to use these wildcards: {bot_name} and {visitor_name} to make the conversation even more realistic.', 'wp-maintenance-mode' ); ?></p> <p><?php esc_html_e( 'It is also ok if you don\'t fill in all the conversation steps if you don\'t need to.', 'wp-maintenance-mode' ); ?></p> <p><?php esc_html_e( 'If you want to see the list of subscribers, go to Modules » Subscribe » Export as CSV.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][status]"><?php esc_html_e( 'Status', 'wp-maintenance-mode' ); ?></label> </th> <td> <label><input type="radio" value="1" name="options[bot][status]"<?php checked( $this->plugin_settings['bot']['status'], 1 ); ?> /> <?php esc_html_e( 'Activated', 'wp-maintenance-mode' ); ?></label> <br /> <label><input type="radio" value="0" name="options[bot][status]"<?php checked( $this->plugin_settings['bot']['status'], 0 ); ?> /> <?php esc_html_e( 'Deactivated', 'wp-maintenance-mode' ); ?></label> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][name]"><?php esc_html_e( 'Bot Name', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" name="options[bot][name]" id="options[bot][name]" value="<?php echo esc_attr( $this->plugin_settings['bot']['name'] ); ?>" /> <p class="description"><?php esc_html_e( 'This name will appear when the bot is typing.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][avatar]"><?php esc_html_e( 'Upload avatar', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_url( $this->plugin_settings['bot']['avatar'] ); ?>" name="options[bot][avatar]" id="options[bot][avatar]" class="avatar_url" /> <input type="button" value="<?php echo esc_attr_x( 'Upload', 'upload avatar button', 'wp-maintenance-mode' ); ?>" class="button image_uploader_trigger" data-name="avatar" data-title="<?php esc_attr_e( 'Upload Avatar', 'wp-maintenance-mode' ); ?>" data-button-text="<?php esc_attr_e( 'Choose picture', 'wp-maintenance-mode' ); ?>" data-to-selector=".avatar_url" /> <p class="description"><?php esc_html_e( 'A 512 x 512 px will work just fine.', 'wp-maintenance-mode' ); ?></p> </td> </tr> </tbody> </table> <h3>» <?php esc_html_e( 'Customize Messages', 'wp-maintenance-mode' ); ?></h3> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][01]"><?php esc_html_e( 'Message 1', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][01]" id="options[bot][messages][01]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['01'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][02]"><?php esc_html_e( 'Message 2', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][02]" id="options[bot][messages][02]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['02'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][03]"><?php esc_html_e( 'Message 3', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][03]" id="options[bot][messages][03]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['03'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][responses][01]"><?php esc_html_e( 'Response', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" name="options[bot][responses][01]" id="options[bot][responses][01]" value="<?php echo esc_attr( $this->plugin_settings['bot']['responses']['01'] ); ?>" /> <span class="bot-hint"><?php echo esc_html_x( 'Visitor\'s response will be here.', 'response for message 3', 'wp-maintenance-mode' ); ?></span> <p class="description"><?php esc_html_e( 'Edit the placeholder\'s text', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][04]"><?php esc_html_e( 'Message 4', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][04]" id="options[bot][messages][04]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['04'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][05]"><?php esc_html_e( 'Message 5', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][05]" id="options[bot][messages][05]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['05'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][06]"><?php esc_html_e( 'Message 6', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][06]" id="options[bot][messages][06]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['06'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][07]"><?php esc_html_e( 'Message 7', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[bot][messages][07]" id="options[bot][messages][07]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['07'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][responses][02_1]"><?php esc_html_e( 'Response', 'wp-maintenance-mode' ); ?></label> </th> <td> <div class="bot-button"> <input type="text" name="options[bot][responses][02_1]" id="options[bot][responses][02_1]" value="<?php echo esc_attr( $this->plugin_settings['bot']['responses']['02_1'] ); ?>" /> <p class="description"><?php esc_html_e( 'Edit button one', 'wp-maintenance-mode' ); ?></p> </div> <div class="bot-button"> <input type="text" name="options[bot][responses][02_2]" id="options[bot][responses][02_2]" value="<?php echo esc_attr( $this->plugin_settings['bot']['responses']['02_2'] ); ?>" /> <p class="description"><?php esc_html_e( 'Edit button two', 'wp-maintenance-mode' ); ?></p> </div> <span class="bot-hint"><?php echo esc_html_x( 'Visitor\'s response will be here.', 'response for message 7', 'wp-maintenance-mode' ); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][08_1]"><?php esc_html_e( 'Message 8', 'wp-maintenance-mode' ); ?><br><small><?php esc_html_e( '(click on button one)', 'wp-maintenance-mode' ); ?></small></label> </th> <td> <textarea name="options[bot][messages][08_1]" id="options[bot][messages][08_1]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['08_1'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][responses][03]"><?php esc_html_e( 'Response', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" name="options[bot][responses][03]" id="options[bot][responses][03]" value="<?php echo esc_attr( $this->plugin_settings['bot']['responses']['03'] ); ?>" /> <span class="bot-hint"><?php echo esc_html_x( 'Visitor\'s response will be here.', 'response for message 8 (click on button one)', 'wp-maintenance-mode' ); ?></span> <p class="description"><?php esc_html_e( 'Edit the placeholder\'s text', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][08_2]"><?php esc_html_e( 'Message 8', 'wp-maintenance-mode' ); ?><br><small><?php esc_html_e( '(click on button two)', 'wp-maintenance-mode' ); ?></small></label> </th> <td> <textarea name="options[bot][messages][08_2]" id="options[bot][messages][08_2]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['08_2'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][09]"><?php esc_html_e( 'Message 9', 'wp-maintenance-mode' ); ?><br><small><?php esc_html_e( '(click on button one)', 'wp-maintenance-mode' ); ?></small></label> </th> <td> <textarea name="options[bot][messages][09]" id="options[bot][messages][09]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['09'] ); ?></textarea> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[bot][messages][10]"><?php esc_html_e( 'Message 10', 'wp-maintenance-mode' ); ?><br><small><?php esc_html_e( '(click on button one)', 'wp-maintenance-mode' ); ?></small></label> </th> <td> <textarea name="options[bot][messages][10]" id="options[bot][messages][10]" rows="2" style="width: 625px;"><?php echo esc_textarea( $this->plugin_settings['bot']['messages']['10'] ); ?></textarea> </td> </tr> </tbody> </table> <?php wpmm_form_hidden_fields( 'bot' ); ?> <input type="submit" value="<?php esc_attr_e( 'Save settings', 'wp-maintenance-mode' ); ?>" class="button button-primary" name="submit" /> <input type="button" value="<?php esc_attr_e( 'Reset settings', 'wp-maintenance-mode' ); ?>" class="button button-secondary reset_settings" data-tab="bot" name="submit" /> </form> </div> <?php if ( ! get_option( 'wpmm_new_look' ) ) { ?> <div id="tab-gdpr" class="hidden"> <form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post"> <table class="form-table"> <tbody> <tr valign="top"> <td colspan="2"> <h4><?php esc_html_e( 'To make the plugin GDPR compliant, fill in the details and enable this section.', 'wp-maintenance-mode' ); ?></h4> <p><?php esc_html_e( 'Here we added some generic texts that you may want to review, change or remove.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[gdpr][status]"><?php esc_html_e( 'Status', 'wp-maintenance-mode' ); ?></label> </th> <td> <label><input type="radio" value="1" name="options[gdpr][status]"<?php checked( $this->plugin_settings['gdpr']['status'], 1 ); ?> /> <?php esc_html_e( 'Activated', 'wp-maintenance-mode' ); ?></label> <br /> <label><input type="radio" value="0" name="options[gdpr][status]"<?php checked( $this->plugin_settings['gdpr']['status'], 0 ); ?> /> <?php esc_html_e( 'Deactivated', 'wp-maintenance-mode' ); ?></label> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[gdpr][policy_page_label]"><?php esc_html_e( 'Link name', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_attr( $this->plugin_settings['gdpr']['policy_page_label'] ); ?>" name="options[gdpr][policy_page_label]" /> <p class="description"><?php esc_html_e( 'Label the link that will be shown on frontend footer', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[gdpr][policy_page_link]"><?php esc_html_e( 'P. Policy page link', 'wp-maintenance-mode' ); ?></label> </th> <td> <input type="text" value="<?php echo esc_url( $this->plugin_settings['gdpr']['policy_page_link'] ); ?>" name="options[gdpr][policy_page_link]" /> <p class="description"><?php echo wp_kses( $this->get_policy_link_message(), wpmm_translated_string_allowed_html() ); ?></p> <p class="description"><?php esc_html_e( 'REMEMBER: In order to make the privacy policy page accessible you need to add it in General -> Exclude.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[gdpr][policy_page_target]"><?php esc_html_e( 'P. Policy link target', 'wp-maintenance-mode' ); ?></label> </th> <td> <select name="options[gdpr][policy_page_target]"> <option value="1"<?php selected( $this->plugin_settings['gdpr']['policy_page_target'], 1 ); ?>><?php esc_html_e( 'New page', 'wp-maintenance-mode' ); ?></option> <option value="0"<?php selected( $this->plugin_settings['gdpr']['policy_page_target'], 0 ); ?>><?php esc_html_e( 'Same page', 'wp-maintenance-mode' ); ?></option> </select> <p class="description"><?php esc_html_e( 'Choose how the link will open.', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[gdpr][contact_form_tail]"><?php esc_html_e( 'Contact form \'tail\'', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[gdpr][contact_form_tail]" rows="3" style="width: 600px"><?php echo esc_textarea( wp_kses( $this->plugin_settings['gdpr']['contact_form_tail'], wpmm_gdpr_textarea_allowed_html() ) ); ?></textarea> <p class="description"><?php esc_html_e( 'This will be shown together with the acceptance checkbox below the form', 'wp-maintenance-mode' ); ?></p> </td> </tr> <tr valign="top"> <th scope="row"> <label for="options[gdpr][subscribe_form_tail]"><?php esc_html_e( 'Subscribe form \'tail\'', 'wp-maintenance-mode' ); ?></label> </th> <td> <textarea name="options[gdpr][subscribe_form_tail]" rows="3" style="width: 600px"><?php echo esc_textarea( wp_kses( $this->plugin_settings['gdpr']['subscribe_form_tail'], wpmm_gdpr_textarea_allowed_html() ) ); ?></textarea> <p class="description"><?php esc_html_e( 'This will be shown together with the acceptance checkbox below the form', 'wp-maintenance-mode' ); ?></p> </td> </tr> </tbody> </table> <?php wpmm_form_hidden_fields( 'gdpr' ); ?> <input type="submit" value="<?php esc_attr_e( 'Save settings', 'wp-maintenance-mode' ); ?>" class="button button-primary" name="submit" /> <input type="button" value="<?php esc_attr_e( 'Reset settings', 'wp-maintenance-mode' ); ?>" class="button button-secondary reset_settings" data-tab="gdpr" name="submit" /> </form> </div> <?php } ?> </div> </div> <?php require_once 'sidebar.php'; } ?> </div> </div> notices.php 0000644 00000000637 14720501100 0006715 0 ustar 00 <?php /** * Notices * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; foreach ( $notices as $key => $notice ) { if ( in_array( $key, $dismissed_notices, true ) ) { continue; } printf( '<div id="message" class="%s" data-key="%s" data-nonce="%s"><p>%s</p></div>', esc_attr( $notice['class'] ), esc_attr( $key ), esc_attr( wp_create_nonce( 'notice_nonce_' . $key ) ), wp_kses_post( $notice['msg'] ) ); } index.php 0000644 00000000034 14720501100 0006347 0 ustar 00 <?php // Silence is golden. wizard.php 0000644 00000016524 14720501100 0006553 0 ustar 00 <?php $default_templates = array( 'coming-soon' => array( 'slug' => 'coming-soon-1', 'thumbnail' => WPMM_TEMPLATES_URL . 'coming-soon/coming-soon-1/screenshot.png', ), 'maintenance' => array( 'slug' => 'maintenance-1', 'thumbnail' => WPMM_TEMPLATES_URL . 'maintenance/maintenance-1/screenshot.png', ), 'landing-page' => array( 'slug' => 'landing-page-1', 'thumbnail' => WPMM_TEMPLATES_URL . 'landing-page/landing-page-1/screenshot.png', ), ); $show_hyve_promo = version_compare( PHP_VERSION, '8.1', '>=' ) && ! is_plugin_active( 'hyve-lite/hyve-lite.php' ) && ! defined( 'HYVE_LITE_VERSION' ); ?> <div id="wpmm-wizard-wrapper"> <div class="slider-wrap"> <div class="step-wrap"> <div class="step import-step"> <h4 class="header"><?php esc_html_e( 'Select the type of page you want', 'wp-maintenance-mode' ); ?></h4> <p class="templates-description"> <?php printf( wp_kses( /* translators: Otter url */ __( 'Get started with custom templates, and build engaging pages using Contact forms, Popups and more, with <a href="%1$s" target="_blank">Otter%2$s</a>.', 'wp-maintenance-mode' ), wpmm_translated_string_allowed_html() ), tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/', $this->plugin_slug, 'wizard' ), $this->get_external_link_icon() ); ?> <br> <?php esc_html_e( 'Pick your template below, you can always customise it later.', 'wp-maintenance-mode' ); ?> </p> <div class="wpmm-templates-radio"> <form> <?php $categories = WP_Maintenance_Mode::get_page_categories(); foreach ( $categories as $category => $label ) { $slug = $default_templates[ $category ]['slug']; $thumbnail_url = $default_templates[ $category ]['thumbnail']; ?> <div class="templates-radio__item" > <h6 class="tag"><?php echo $label; ?></h6> <input id="<?php echo esc_attr( $slug ); ?>" type="radio" name="wizard-template" value="<?php echo esc_attr( $slug ); ?>" data-category="<?php echo esc_attr( $category ); ?>" <?php checked( $category, 'coming-soon' ); ?>> <label for="<?php echo esc_attr( $slug ); ?>" class="wpmm-template"> <img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="<?php echo esc_attr( $slug ); ?>"/> <span class="checked-icon"> <img src="<?php echo esc_url( WPMM_URL . 'assets/images/checked.svg' ); ?>" alt="<?php echo esc_attr( 'checked-icon' ); ?>"/> </span> </label> </div> <?php } ?> </form> </div> <?php if ( ! is_plugin_active( 'optimole-wp/optimole-wp.php' ) ) { ?> <div class="optimole-upsell"> <div class="optimole-upsell-container"> <span class="components-checkbox-control__input-container"> <input id="wizard-optimole-checkbox" type="checkbox" class="components-checkbox-control__input" checked> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="presentation" class="components-checkbox-control__checked" aria-hidden="true" focusable="false"><path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></svg> </span> <label for="wizard-optimole-checkbox"> <?php esc_html_e( 'Image and speed optimisation', 'wp-maintenance-mode' ); ?> </label> </div> <p class="description"> <?php printf( wp_kses( /* translators: Optimole url */ __( 'Templates would have pre-optimized images and all of your website\'s images would be delivered via Amazon Cloudfront CDN, resulting in an ≈ 80%% increase in speed, with <a href="%1$s" target="_blank">Optimole%2$s</a>.', 'wp-maintenance-mode' ), wpmm_translated_string_allowed_html() ), esc_url( 'https://wordpress.org/plugins/optimole-wp/' ), $this->get_external_link_icon() ); ?> </div> <?php } ?> <?php if ( $show_hyve_promo ) { ?> <div class="optimole-upsell"> <div class="optimole-upsell-container"> <span class="components-checkbox-control__input-container"> <input id="wizard-hyve-checkbox" type="checkbox" class="components-checkbox-control__input" checked> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="presentation" class="components-checkbox-control__checked" aria-hidden="true" focusable="false"><path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></svg> </span> <label for="wizard-hyve-checkbox"> <?php esc_html_e( 'Interactive Chatbot', 'wp-maintenance-mode' ); ?> </label> </div> <p class="description"> <?php printf( wp_kses( /* translators: Hyve Lite url */ __( '<a href="%1$s" target="_blank">Hyve%2$s</a> is an AI chatbot plugin for WordPress, ideal for sites in maintenance mode. It enhances user experience by turning your content into interactive conversations, helping visitors access information while your site is under development.', 'wp-maintenance-mode' ), wpmm_translated_string_allowed_html() ), esc_url( 'https://wordpress.org/plugins/hyve-lite/' ), $this->get_external_link_icon() ); ?> </div> <?php } ?> <div id="wizard-buttons" class="import-button"> <input type="button" class="button button-big button-primary disabled button-import" value="<?php esc_html_e( 'Continue', 'wp-maintenance-mode' ); ?>"/> <input type="button" class="button button-big button-secondary button-skip" value="<?php esc_html_e( 'I don’t want to use a template', 'wp-maintenance-mode' ); ?>"/> </div> </div> </div> <div class="step-wrap"> <div class="step subscribe-step" aria-hidden="true" style="display: none"> <img width="250px" src="<?php echo WPMM_IMAGES_URL . 'subscribe.svg'; ?>" alt="subscribe"/> <h4><?php esc_html_e( 'Stay in the loop!', 'wp-maintenance-mode' ); ?></h4> <p><?php esc_html_e( 'Keep up with feature announcements, promotions, tutorials, and new template releases.', 'wp-maintenance-mode' ); ?></p> <div id="email-input-wrap"> <input type="text" value="<?php echo esc_attr( get_bloginfo( 'admin_email' ) ); ?>" /> <input type="button" class="button button-primary button-big subscribe-button" value="<?php esc_attr_e( 'Sign me up', 'wp-maintenance-mode' ); ?>" /> </div> <input id="skip-subscribe" type="button" class="button button-link skip-link" value="<?php esc_attr_e( 'I\'ll skip for now, thanks!', 'wp-maintenance-mode' ); ?>" /> </div> </div> <div class="step-wrap"> <div class="step finish-step" aria-hidden="true" style="display: none"> <img width="250px" src="<?php echo WPMM_IMAGES_URL . 'finish-setup.svg'; ?>" alt="finish-setup"/> <h4 class="heading"><?php esc_html_e( 'Your page is ready!', 'wp-maintenance-mode' ); ?></h4> <p><?php esc_html_e( 'Head over to the settings page to activate your Coming soon page', 'wp-maintenance-mode' ); ?></p> <div class="buttons-wrap"> <input id="view-page-button" type="button" class="button-big button" value="<?php esc_attr_e( 'View page', 'wp-maintenance-mode' ); ?>"/> <input id="refresh-button" type="button" class="button-big button button-primary" value="<?php esc_attr_e( 'Go to settings', 'wp-maintenance-mode' ); ?>"/> </div> </div> </div> </div> </div> loginform.php 0000644 00000001114 14720501100 0007234 0 ustar 00 <?php /** * Login form * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; ?> <form name="loginform" class="login_form" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> <input type="text" placeholder="username" name="log" /> <input type="password" placeholder="password" name="pwd" /> <?php if ( ! empty( $atts['redirect'] ) ) { ?> <input type="hidden" name="redirect_to" value="<?php echo esc_url( $atts['redirect'] ); ?>" /> <?php } ?> <input type="submit" value="<?php esc_attr_e( 'Login', 'wp-maintenance-mode' ); ?>" /> </form> contact.php 0000644 00000010276 14720501100 0006704 0 ustar 00 <?php /** * Contact email * * This template can be overridden by copying it to one of these paths: * - /wp-content/themes/{your_child_theme}/wp-maintenance-mode/contact.php * - /wp-content/themes/{your_theme}/wp-maintenance-mode/contact.php * * It can also be overridden by changing the default path. See `wpmm_contact_template` hook: * https://github.com/WP-Maintenance-Mode/Snippet-Library/blob/master/change-template-path.php * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; ?> <!doctype html> <html> <head> <style> @media screen and (max-width: 500px) { #wrap { width: 100%; } } </style> </head> <body style="margin:0;padding:0;background:#efefef;"> <table align="center" cellpadding="0" cellspacing="0" width="500" id="wrap"> <tr> <td height="60"></td> </tr> <!-- Content --> <tr> <td> <table style="padding:0 25px;" cellspacing="0" cellspacing="0" style="border:1px solid #e3e5e5" bgcolor="#fff" width="100%"> <tr> <td height="60"></td> </tr> <tr> <td style="text-align:center;"> <img src="<?php echo esc_url( WPMM_IMAGES_URL . 'icon.svg' ); ?>" /> </td> </tr> <tr> <td height="40"></td> </tr> <tr> <td style="color:#747e7e;font-family:Lato, Helvetica, Arial, sans-serif;text-align:center;font-size:18px;font-weight:normal;"> <?php echo esc_html( sprintf( /* translators: name of the blog */ __( 'You have been contacted via %s.', 'wp-maintenance-mode' ), get_bloginfo( 'name' ) ) ); ?> </td> </tr> <tr> <td height="30"></td> </tr> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <?php do_action( 'wpmm_contact_template_start' ); ?> <tr> <td height="30"></td> <td height="30"></td> </tr> <tr> <td width="20%" style="border-bottom:1px solid #e3e5e5;padding:0 0 30px 20px;text-align:left;font-size:14px;font-family:Lato, Helvetica, Arial, sans-serif;color:#747e7e;font-weight:bold;"> <?php esc_html_e( 'Name:', 'wp-maintenance-mode' ); ?> </td> <td width="80%" style="border-bottom:1px solid #e3e5e5;padding:0 0 30px 20px;text-align:left;font-size:14px;font-family:Lato, Helvetica, Arial, sans-serif;color:#747e7e;"> <?php echo esc_html( $name ); ?> </td> </tr> <tr> <td height="30"></td> <td height="30"></td> </tr> <tr> <td width="20%" style="border-bottom:1px solid #e3e5e5;padding:0 0 30px 20px;text-align:left;font-size:14px;font-family:Lato, Helvetica, Arial, sans-serif;color:#747e7e;font-weight:bold;"> <?php esc_html_e( 'Email:', 'wp-maintenance-mode' ); ?> </td> <td width="80%" style="border-bottom:1px solid #e3e5e5;padding:0 0 30px 20px;text-align:left;font-size:14px;font-family:Lato, Helvetica, Arial, sans-serif;color:#747e7e;"> <?php echo esc_html( $email ); ?> </td> </tr> <?php do_action( 'wpmm_contact_template_before_message' ); ?> <tr> <td height="30"></td> <td height="30"></td> </tr> <tr> <td colspan="2" style="padding:0 0 30px 20px;text-align:left;font-size:14px;font-family:Lato, Helvetica, Arial, sans-serif;color:#747e7e;font-weight:bold;"> <?php esc_html_e( 'Content:', 'wp-maintenance-mode' ); ?> </td> </tr> <tr> <td colspan="2" style="padding:0 0 20px 20px;text-align:left;font-size:14px;font-family:Lato, Helvetica, Arial, sans-serif;color:#747e7e;"> <?php echo nl2br( esc_html( $content ) ); ?> </td> </tr> <?php do_action( 'wpmm_contact_template_after_message' ); ?> <?php do_action( 'wpmm_contact_template_end' ); ?> </tbody> </table> </td> </tr> <tr> <td height="60"></td> </tr> </table> </td> </tr> <tr> <td height="60"></td> </tr> <!-- End Content --> </table> </body> </html> google-analytics.php 0000644 00000001170 14720501100 0010503 0 ustar 00 <?php /** * Google Analytics code * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; ?> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo esc_attr( $ga_code ); ?>"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() {dataLayer.push(arguments);} gtag('js', new Date()); <?php if ( substr( $ga_code, 0, 2 ) === 'UA' ) { ?> gtag('config', '<?php echo esc_attr( $ga_code ); ?>', <?php echo wp_json_encode( $ga_options ); ?>); <?php } else { ?> gtag('config', '<?php echo esc_attr( $ga_code ); ?>'); <?php } ?> </script> network-settings.php 0000644 00000004172 14720501100 0010576 0 ustar 00 <?php /** * Settings * * @version 2.1.6 */ defined( 'ABSPATH' ) || exit; ?> <div class="wrap"> <h2 class="wpmm-title"><?php echo esc_html( get_admin_page_title() ); ?> <?php if ( get_option( 'wpmm_fresh_install', false ) ) { ?> <span id="wizard-exit"><img src="<?php echo esc_attr( WPMM_IMAGES_URL . 'external.svg' ); ?>" alt="exit"></span><?php } ?> </h2> <hr> <div class="wpmm-wrapper"> <form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post"> <input type="hidden" name="options[is_network_site]" value="<?php echo (bool) is_multisite() && is_network_admin(); ?>"> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label for="options[general][status]"><?php esc_html_e( 'Enable network mode', 'wp-maintenance-mode' ); ?></label> </th> <td> <label><input type="checkbox" class="wpmm_network_mode" value="1" name="options[general][network_mode]"<?php checked( $this->plugin_network_settings['general']['network_mode'], 1 ); ?> /></label> </td> </tr> <tr valign="top" class="wpmm_status <?php echo empty( $this->plugin_network_settings['general']['network_mode'] ) ? 'wpmm_status_disable' : ''; ?>"> <th scope="row"> <label for="options[general][status]"><?php esc_html_e( 'Status', 'wp-maintenance-mode' ); ?></label> </th> <td> <label><input type="radio" value="1" name="options[general][status]"<?php checked( $this->plugin_network_settings['general']['status'], 1 ); ?> /> <?php esc_html_e( 'Activated on all sites', 'wp-maintenance-mode' ); ?></label> <br /> <label><input type="radio" value="0" name="options[general][status]"<?php checked( $this->plugin_network_settings['general']['status'], 0 ); ?> /> <?php esc_html_e( 'Deactivated for all sites', 'wp-maintenance-mode' ); ?></label> </td> </tr> </tbody> </table> <?php wpmm_form_hidden_fields( 'general' ); ?> <input type="submit" value="<?php esc_attr_e( 'Save settings', 'wp-maintenance-mode' ); ?>" class="button button-primary" name="submit" /> </form> <?php require_once 'sidebar.php'; ?> </div> </div> maintenance.php 0000644 00000027471 14720501100 0007540 0 ustar 00 <?php /** * Maintenance mode page * * This template can be overridden by copying it to one of these paths: * - /wp-content/themes/{your_child_theme}/wp-maintenance-mode/maintenance.php * - /wp-content/themes/{your_theme}/wp-maintenance-mode/maintenance.php * - /wp-content/themes/{your_child_theme}/wp-maintenance-mode.php [deprecated] * - /wp-content/themes/{your_theme}/wp-maintenance-mode.php [deprecated] * - /wp-content/wp-maintenance-mode.php * * It can also be overridden by changing the default path. See `wpmm_maintenance_template` hook: * https://github.com/WP-Maintenance-Mode/Snippet-Library/blob/master/change-template-path.php * * @version 2.4.0 */ defined( 'ABSPATH' ) || exit; if ( isset( $this->plugin_settings['design']['page_id'] ) && get_option( 'wpmm_new_look' ) ) { if ( ! is_front_page() ) { wp_redirect( home_url() ); } } else { ?> <!DOCTYPE html> <html <?php language_attributes(); ?> > <head> <meta charset="UTF-8"> <title><?php echo esc_html( $title ); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="author" content="<?php echo esc_attr( $author ); ?>" /> <meta name="description" content="<?php echo esc_attr( $description ); ?>" /> <meta name="keywords" content="<?php echo esc_attr( $keywords ); ?>" /> <meta name="robots" content="<?php echo esc_attr( $robots ); ?>" /> <?php do_action( 'wm_head' ); // this hook will be removed in the next versions do_action( 'wpmm_head' ); ?> </head> <body class="<?php echo $body_classes ? esc_attr( $body_classes ) : ''; ?>"> <?php do_action( 'wpmm_after_body' ); ?> <div class="wrap" role="main"> <?php if ( ! empty( $heading ) ) { ?> <!-- Heading --> <h1><?php echo esc_html( $heading ); ?></h1> <?php } ?> <?php /** * We don't escape the $text, because wp_kses_post was applied before do_shortcode. So it's safe to output it. */ if ( ! empty( $text ) ) { $allowed_html = wp_kses_allowed_html( 'post' ); $allowed_html['form'] = array( 'id' => array(), 'class' => array(), 'action' => array(), 'method' => array(), ); $allowed_html['input'] = array( 'type' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'class' => array(), 'placeholder' => array(), ); $allowed_html['iframe'] = array( 'src' => array(), 'height' => array(), 'width' => array(), 'frameborder' => array(), 'allowfullscreen' => array(), 'data-*' => true, ); ?> <!-- Text --> <h2><?php echo wp_kses( $text, $allowed_html ); ?></h2> <?php } ?> <?php if ( ! empty( $this->plugin_settings['bot']['status'] ) && $this->plugin_settings['bot']['status'] === 1 ) { ?> </div><!-- .wrap --> <!-- Bot --> <div class="bot-container"> <div class="bot-avatar"><div class="avatar-notice"></div></div> <div class="bot-chat-wrapper" style="display: none"> <div class="chat-container cf"></div> <div class="input"></div> <div class="choices cf"></div> </div> </div> <div class="bot-error"><p></p></div> <div class="wrap under-bot"> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['countdown_status'] ) && $this->plugin_settings['modules']['countdown_status'] === 1 ) { ?> <!-- Countdown --> <div class="countdown" data-start="<?php echo esc_attr( date( 'F d, Y H:i:s', strtotime( $countdown_start ) ) ); ?>" data-end="<?php echo esc_attr( date( 'F d, Y H:i:s', $countdown_end ) ); ?>"></div> <?php } ?> <?php if ( ( ! empty( $this->plugin_settings['modules']['subscribe_status'] ) && $this->plugin_settings['modules']['subscribe_status'] === 1 ) ) { ?> <!-- Subscribe --> <?php if ( ! empty( $this->plugin_settings['modules']['subscribe_text'] ) ) { ?> <h3><?php echo esc_html( $this->plugin_settings['modules']['subscribe_text'] ); ?></h3> <?php } ?> <div class="subscribe_wrapper" style="min-height: 100px;"> <form class="subscribe_form"> <div class="subscribe_border"> <input type="text" placeholder="<?php esc_attr_e( 'your e-mail...', 'wp-maintenance-mode' ); ?>" name="email" class="email_input" data-rule-required="true" data-rule-email="true" data-rule-required="true" data-rule-email="true" /> <?php wp_nonce_field( 'wpmts_nonce_subscribe' ); ?> <input type="submit" value="<?php esc_attr_e( 'Subscribe', 'wp-maintenance-mode' ); ?>" /> </div> <?php if ( ! empty( $this->plugin_settings['gdpr']['status'] ) && $this->plugin_settings['gdpr']['status'] === 1 ) { ?> <div class="privacy_checkbox"> <label> <input type="checkbox" name="acceptance" value="YES" data-rule-required="true" data-msg-required="<?php esc_attr_e( 'This field is required.', 'wp-maintenance-mode' ); ?>" /> <?php echo esc_html_x( 'I\'ve read and agree with the site\'s privacy policy', 'subscribe form', 'wp-maintenance-mode' ); ?> </label> </div> <?php if ( ! empty( $this->plugin_settings['gdpr']['subscribe_form_tail'] ) ) { ?> <p class="privacy_tail"><?php echo wp_kses( $this->plugin_settings['gdpr']['subscribe_form_tail'], wpmm_gdpr_textarea_allowed_html() ); ?></p> <?php } ?> <?php } ?> </form> </div> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_status'] ) && $this->plugin_settings['modules']['social_status'] === 1 ) { ?> <!-- Social networks --> <div class="social" data-target="<?php echo ! empty( $this->plugin_settings['modules']['social_target'] ) ? 1 : 0; ?>"> <?php if ( ! empty( $this->plugin_settings['modules']['social_twitter'] ) ) { ?> <a class="tw" href="<?php echo esc_url( $this->plugin_settings['modules']['social_twitter'] ); ?>">twitter</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_facebook'] ) ) { ?> <a class="fb" href="<?php echo esc_url( $this->plugin_settings['modules']['social_facebook'] ); ?>">facebook</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_instagram'] ) ) { ?> <a class="instagram" href="<?php echo esc_url( $this->plugin_settings['modules']['social_instagram'] ); ?>">instagram</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_pinterest'] ) ) { ?> <a class="pin" href="<?php echo esc_url( $this->plugin_settings['modules']['social_pinterest'] ); ?>">pinterest</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_github'] ) ) { ?> <a class="git" href="<?php echo esc_url( $this->plugin_settings['modules']['social_github'] ); ?>">github</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_dribbble'] ) ) { ?> <a class="dribbble" href="<?php echo esc_url( $this->plugin_settings['modules']['social_dribbble'] ); ?>">dribbble</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_google+'] ) ) { ?> <a class="gplus" href="<?php echo esc_url( $this->plugin_settings['modules']['social_google+'] ); ?>">google plus</a> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['social_linkedin'] ) ) { ?> <a class="linkedin" href="<?php echo esc_url( $this->plugin_settings['modules']['social_linkedin'] ); ?>">linkedin</a> <?php } ?> </div> <?php } ?> <?php if ( ! empty( $this->plugin_settings['modules']['contact_status'] ) && $this->plugin_settings['modules']['contact_status'] === 1 ) { ?> <!-- Contact --> <div class="contact"> <?php list($open, $close) = ! empty( $this->plugin_settings['modules']['contact_effects'] ) && strstr( $this->plugin_settings['modules']['contact_effects'], '|' ) ? explode( '|', $this->plugin_settings['modules']['contact_effects'] ) : explode( '|', 'move_top|move_bottom' ); ?> <div class="form <?php echo esc_attr( $open ); ?>"> <span class="close-contact_form"> <img src="<?php echo esc_url( WPMM_URL . 'assets/images/close.svg' ); ?>" alt=""> </span> <form class="contact_form"> <?php do_action( 'wpmm_contact_form_start' ); ?> <p class="col"> <input type="text" placeholder="<?php esc_attr_e( 'Name', 'wp-maintenance-mode' ); ?>" data-rule-required="true" data-msg-required="<?php esc_attr_e( 'This field is required.', 'wp-maintenance-mode' ); ?>" name="name" class="name_input" /> </p> <p class="col last"> <input type="text" placeholder="<?php esc_attr_e( 'E-mail', 'wp-maintenance-mode' ); ?>" data-rule-required="true" data-rule-email="true" data-msg-required="<?php esc_attr_e( 'This field is required.', 'wp-maintenance-mode' ); ?>" data-msg-email="<?php esc_attr_e( 'Please enter a valid email address.', 'wp-maintenance-mode' ); ?>" name="email" class="email_input" /> </p> <?php wp_nonce_field( 'wpmts_nonce_contact' ); ?> <br clear="all" /> <?php do_action( 'wpmm_contact_form_before_message' ); ?> <p> <textarea placeholder="<?php esc_attr_e( 'Your message', 'wp-maintenance-mode' ); ?>" data-rule-required="true" data-msg-required="<?php esc_attr_e( 'This field is required.', 'wp-maintenance-mode' ); ?>" name="content" class="content_textarea"></textarea> </p> <?php do_action( 'wpmm_contact_form_after_message' ); ?> <?php if ( ! empty( $this->plugin_settings['gdpr']['status'] ) && $this->plugin_settings['gdpr']['status'] === 1 ) { ?> <div class="privacy_checkbox"> <label> <input type="checkbox" name="acceptance" value="YES" data-rule-required="true" data-msg-required="<?php esc_attr_e( 'This field is required.', 'wp-maintenance-mode' ); ?>" /> <?php echo esc_html_x( 'I\'ve read and agree with the site\'s privacy policy', 'contact form', 'wp-maintenance-mode' ); ?> </label> </div> <?php if ( ! empty( $this->plugin_settings['gdpr']['contact_form_tail'] ) ) { ?> <p class="privacy_tail"><?php echo wp_kses( $this->plugin_settings['gdpr']['contact_form_tail'], wpmm_gdpr_textarea_allowed_html() ); ?></p> <?php } ?> <?php } ?> <p class="submit"><input type="submit" value="<?php esc_attr_e( 'Send', 'wp-maintenance-mode' ); ?>" /></p> <?php do_action( 'wpmm_contact_form_end' ); ?> </form> </div> </div> <a class="contact_us" href="javascript:void(0);" data-open="<?php echo esc_attr( $open ); ?>" data-close="<?php echo esc_attr( $close ); ?>"><?php esc_html_e( 'Contact us', 'wp-maintenance-mode' ); ?></a> <?php } ?> <?php if ( ( ! empty( $this->plugin_settings['general']['admin_link'] ) && $this->plugin_settings['general']['admin_link'] === 1 ) || ( ! empty( $this->plugin_settings['gdpr']['status'] ) && $this->plugin_settings['gdpr']['status'] === 1 ) ) { ?> <!-- Footer links --> <div class="footer_links"> <?php if ( $this->plugin_settings['general']['admin_link'] === 1 ) { ?> <a href="<?php echo esc_url( admin_url() ); ?>"><?php esc_html_e( 'Dashboard', 'wp-maintenance-mode' ); ?></a> <?php } ?> <?php if ( $this->plugin_settings['gdpr']['status'] === 1 ) { ?> <a href="<?php echo esc_url( $this->plugin_settings['gdpr']['policy_page_link'] ); ?>" target="<?php echo ! empty( $this->plugin_settings['gdpr']['policy_page_target'] ) && $this->plugin_settings['gdpr']['policy_page_target'] === 1 ? '_blank' : '_self'; ?>"><?php echo esc_html( $this->plugin_settings['gdpr']['policy_page_label'] ); ?></a> <?php } ?> </div> <?php } ?> </div> <script type='text/javascript'> const wpmmVars = {"ajaxURL": "<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>"}; </script> <?php do_action( 'wm_footer' ); // this hook will be removed in the next versions do_action( 'wpmm_footer' ); ?> </body> </html> <?php exit(); } ?> admin/jetpack-plugin-portal-containers.php 0000644 00000000775 14722053105 0014734 0 ustar 00 <?php /** * Containers for Jetpack to portal React components in the WP Admin. * * @html-template Jetpack::load_view * @package automattic/jetpack */ ?> <div id="jetpack-plugin-portal-app"> <!-- React Managed The app that needs to make use of portals can render here. --> </div> <div id="jetpack-plugin-portal-sidecar"> <!-- React Managed Used by portal components that may not have an anchor elsewhere on the page and need to dynamically render This is especially useful for modals --> </div> admin/network-activated-notice.php 0000644 00000000700 14722053105 0013253 0 ustar 00 <?php /** * View template file for network activation notice. * * @html-template Jetpack::load_view * @package automattic/jetpack */ if ( isset( $_GET['jetpack-notice'] ) && 'dismiss' === $_GET['jetpack-notice'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <div id="message" class="error"> <p><?php esc_html_e( 'Jetpack is network activated and notices can not be dismissed.', 'jetpack' ); ?></p> </div> <?php } admin/network-admin-header.php 0000644 00000000354 14722053105 0012353 0 ustar 00 <?php /** * Loads view: admin/network-activated-notice.php * * @html-template Jetpack::load_view * @package automattic/jetpack */ Jetpack::init()->load_view( 'admin/network-activated-notice.php' ); do_action( 'jetpack_notices' ); admin/network-settings.php 0000644 00000005716 14722053105 0011704 0 ustar 00 <?php /** * Jetpack Network Settings view template. * * @html-template Jetpack::load_view * @package automattic/jetpack */ // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it. use Automattic\Jetpack\IP\Utils as IP_Utils; if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <div class="updated"><p><?php esc_html_e( 'Jetpack Network Settings Updated!', 'jetpack' ); ?></p></div> <?php endif; ?> <?php if ( isset( $_GET['error'] ) && 'jetpack_protect_whitelist' === $_GET['error'] ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <div class="error"><p><?php esc_html_e( 'One of your IP addresses was not valid.', 'jetpack' ); ?></p></div> <?php endif; ?> <div class="wrap"> <h2><?php esc_html_e( 'Network Settings', 'jetpack' ); ?></h2> <form action="edit.php?action=jetpack-network-settings" method="POST"> <h3><?php echo esc_html_x( 'Global', 'Affects all sites in a Multisite network.', 'jetpack' ); ?></h3> <p><?php esc_html_e( 'These settings affect all sites on the network.', 'jetpack' ); ?></p> <?php wp_nonce_field( 'jetpack-network-settings' ); ?> <table class="form-table"> <tr valign="top"> <th scope="row"><label for="sub-site-override"><?php esc_html_e( 'Sub-site override', 'jetpack' ); ?></label></th> <td> <input type="checkbox" name="sub-site-connection-override" id="sub-site-override" value="1" <?php checked( $data['options']['sub-site-connection-override'] ); ?> /> <label for="sub-site-override"><?php esc_html_e( 'Allow individual site administrators to manage their own connections (connect and disconnect) to WordPress.com', 'jetpack' ); ?></label> </td> </tr> <tr valign="top"> <th scope="row"><label for="sub-site-override"><?php esc_html_e( 'Protect IP allow list', 'jetpack' ); ?></label></th> <td> <p><strong> <?php $current_ip = IP_Utils::get_ip(); if ( ! empty( $current_ip ) ) { printf( /* Translators: placeholder is an IP address. */ esc_html__( 'Your current IP: %1$s', 'jetpack' ), esc_html( $current_ip ) ); } ?> </strong></p> <?php echo '<textarea name="global-allow-list" style="width: 100%;" rows="8">'; // echo to avoid tabs displayed in textarea. See https://github.com/Automattic/jetpack/pull/21151/files#r713922521. foreach ( $data['jetpack_protect_whitelist']['global'] as $ip ) { echo esc_html( $ip ) . "\n"; } ?> </textarea> <br /> <label for="global-allow-list"> <?php esc_html_e( 'IPv4 and IPv6 are acceptable. Enter multiple IPs on separate lines.', 'jetpack' ); ?> <br /> <?php esc_html_e( 'To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100', 'jetpack' ); ?> </label> </td> </tr> </table> <?php submit_button(); ?> </form> </div> admin/must-connect-main-blog.php 0000644 00000001663 14722053105 0012634 0 ustar 00 <?php /** * View template file for main network site connection prompt. * * @html-template Jetpack::load_view * @package automattic/jetpack */ // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it. ?> <div class="wrap"> <div class="jetpack-wrap-container dops-card"> <div class="jetpack-text-container"> <h1><?php esc_html_e( 'Get started with Jetpack Multisite', 'jetpack' ); ?></h1> <p> <?php esc_html_e( 'Get started managing your Multisite install of Jetpack by connecting.', 'jetpack' ); ?> </p> </div> <div class="jetpack-install-container"> <p class="submit"><a href="<?php echo esc_url( $data['url'] ); ?>" class="button-connector dops-button is-primary" id="wpcom-connect"><?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?></a></p> <p class="jetpack-install-blurb"> <?php jetpack_render_tos_blurb(); ?> </p> </div> </div> </div> cookie-law-info_popup_content.php 0000644 00000012521 14722250507 0013222 0 ustar 00 <?php $overview = get_option( 'cookielawinfo_privacy_overview_content_settings' ); $default_privacy_settings = Cookie_Law_Info_Admin::get_privacy_defaults(); $cli_always_enable_text = __( 'Always Enabled', 'cookie-law-info' ); $cli_enable_text = __( 'Enabled', 'cookie-law-info' ); $cli_disable_text = __( 'Disabled', 'cookie-law-info' ); $cli_privacy_readmore = '<a class="cli-privacy-readmore" aria-label="' . __( 'Show more', 'cookie-law-info' ) . '" tabindex="0" role="button" data-readmore-text="' . __( 'Show more', 'cookie-law-info' ) . '" data-readless-text="' . __( 'Show less', 'cookie-law-info' ) . '"></a>'; $overview_title = sanitize_text_field( stripslashes( isset( $overview['privacy_overview_title'] ) ? $overview['privacy_overview_title'] : $default_privacy_settings['privacy_overview_title'] ) ); $privacy_overview_content = wp_kses_post( isset( $overview['privacy_overview_content'] ) ? $overview['privacy_overview_content'] : $default_privacy_settings['privacy_overview_content'] ); $privacy_overview_content = nl2br( $privacy_overview_content ); $privacy_overview_content = do_shortcode( stripslashes( $privacy_overview_content ) ); $content_length = strlen( strip_tags( $privacy_overview_content ) ); $overview_title = trim( $overview_title ); // $cookie_categories = $this->get_cookie_categories_data(); // $cookie_filter_categories = ''; $cookie_categories = apply_filters( 'wt_cli_cookie_categories', array() ); $js_blocking_enabled = Cookie_Law_Info::wt_cli_is_js_blocking_active(); ?> <div class="cli-container-fluid cli-tab-container"> <div class="cli-row"> <div class="cli-col-12 cli-align-items-stretch cli-px-0"> <div class="cli-privacy-overview"> <?php if ( isset( $overview_title ) === true && $overview_title !== '' ) { if ( has_filter( 'wt_cli_change_privacy_overview_title_tag' ) ) { echo wp_kses_post( apply_filters( 'wt_cli_change_privacy_overview_title_tag', esc_html( $overview_title ), '<h4>', '</h4>' ) ); } else { echo '<h4>' . esc_html( $overview_title ) . '</h4>'; } } ?> <div class="cli-privacy-content"> <div class="cli-privacy-content-text"><?php echo wp_kses_post( $privacy_overview_content ); ?></div> </div> <?php echo wp_kses_post( $cli_privacy_readmore ); ?> </div> </div> <div class="cli-col-12 cli-align-items-stretch cli-px-0 cli-tab-section-container"> <?php foreach ( $cookie_categories as $key => $value ) { $category_enabled = isset( $value['status'] ) ? $value['status'] : false; $cookie_title = ( isset( $value['title'] ) ? $value['title'] : '' ); $category_description = ( isset( $value['description'] ) ? $value['description'] : '' ); $category_default_state = ( isset( $value['default_state'] ) ? $value['default_state'] : false ); $cookie_title = isset( $cookie_filter_categories[ $key ] ) ? $cookie_filter_categories[ $key ] : $cookie_title; $checked = false; if ( $js_blocking_enabled === true ) { if ( isset( $category_default_state ) && $category_default_state === true ) { $checked = true; } } else { if ( isset( $_COOKIE[ "cookielawinfo-checkbox-$key" ] ) && $_COOKIE[ "cookielawinfo-checkbox-$key" ] == 'yes' ) { $checked = true; } elseif ( ! isset( $_COOKIE[ "cookielawinfo-checkbox-$key" ] ) ) { $checked = true; if ( $category_default_state === false ) { $checked = false; } } } ?> <?php if ( $category_enabled === true ) : ?> <div class="cli-tab-section"> <div class="cli-tab-header"> <a role="button" tabindex="0" class="cli-nav-link cli-settings-mobile" data-target="<?php echo esc_attr( $key ); ?>" data-toggle="cli-toggle-tab"> <?php echo esc_html( $cookie_title ); ?> </a> <?php if ( 'necessary' === $key ) : ?> <div class="wt-cli-necessary-checkbox"> <input type="checkbox" class="cli-user-preference-checkbox" id="wt-cli-checkbox-<?php echo esc_attr( $key ); ?>" data-id="checkbox-<?php echo esc_attr( $key ); ?>" checked="checked" /> <label class="form-check-label" for="wt-cli-checkbox-<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $cookie_title ); ?></label> </div> <span class="cli-necessary-caption"><?php echo esc_html( $cli_always_enable_text ); ?></span> <?php else : ?> <div class="cli-switch"> <input type="checkbox" id="wt-cli-checkbox-<?php echo esc_attr( $key ); ?>" class="cli-user-preference-checkbox" data-id="checkbox-<?php echo esc_attr( $key ); ?>"<?php echo checked( $checked, true, false ); ?> /> <label for="wt-cli-checkbox-<?php echo esc_attr( $key ); ?>" class="cli-slider" data-cli-enable="<?php echo esc_attr( $cli_enable_text ); ?>" data-cli-disable="<?php echo esc_attr( $cli_disable_text ); ?>"><span class="wt-cli-sr-only"><?php echo esc_html( $cookie_title ); ?></span></label> </div> <?php endif; ?> </div> <div class="cli-tab-content"> <div class="cli-tab-pane cli-fade" data-id="<?php echo esc_attr( $key ); ?>"> <div class="wt-cli-cookie-description"> <?php echo do_shortcode( $category_description, 'cookielawinfo-category' ); ?> </div> </div> </div> </div> <?php endif; ?> <?php } ?> </div> </div> </div> <?php cookie-law-info_bar.php 0000644 00000005214 14722250507 0011072 0 ustar 00 <?php // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } // Disable indexing of CookieLawInfo Cookie data echo '<!--googleoff: all-->'; if ( $notify_html == '' ) { return; } //if filter is applied. echo wp_kses( trim( stripslashes( $notify_html ) ), array_merge( array( 'input' => array( 'type' => 'true', 'style' => true, 'id' => true, 'class' => true, ), ), wp_kses_allowed_html( 'post' ) ) ); $pop_content_html_file = CLI_PLUGIN_PATH . 'public/views/cookie-law-info_popup_content.php'; ?> <div class="cli-modal" data-nosnippet="true" id="cliSettingsPopup" tabindex="-1" role="dialog" aria-labelledby="cliSettingsPopup" aria-hidden="true"> <div class="cli-modal-dialog" role="document"> <div class="cli-modal-content cli-bar-popup"> <button type="button" class="cli-modal-close" id="cliModalClose"> <svg class="" viewBox="0 0 24 24"><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"></path><path d="M0 0h24v24h-24z" fill="none"></path></svg> <span class="wt-cli-sr-only"><?php echo esc_html__( 'Close', 'cookie-law-info' ); ?></span> </button> <div class="cli-modal-body"> <?php if ( file_exists( $pop_content_html_file ) ) { include $pop_content_html_file; } ?> </div> <div class="cli-modal-footer"> <div class="wt-cli-element cli-container-fluid cli-tab-container"> <div class="cli-row"> <div class="cli-col-12 cli-align-items-stretch cli-px-0"> <div class="cli-tab-footer wt-cli-privacy-overview-actions"> <?php if ( apply_filters( 'wt_cli_enable_settings_accept_btn', true ) === true ) : ?> <a id="wt-cli-privacy-save-btn" role="button" tabindex="0" data-cli-action="accept" class="wt-cli-privacy-btn cli_setting_save_button wt-cli-privacy-accept-btn cli-btn"><?php echo esc_html__( 'SAVE & ACCEPT', 'cookie-law-info' ); ?></a> <?php endif; ?> </div> <?php if ( apply_filters( 'wt_cli_enable_ckyes_branding', true ) === true ) : ?> <div class="wt-cli-ckyes-footer-section"> <div class="wt-cli-ckyes-brand-logo"><?php echo esc_html__( 'Powered by', 'cookie-law-info' ); ?> <a href="https://www.cookieyes.com/"><img src="<?php echo esc_url( CLI_PLUGIN_URL . 'public/images/logo-cookieyes.svg' ); ?>" alt="CookieYes Logo"></a></div> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> <div class="cli-modal-backdrop cli-fade cli-settings-overlay"></div> <div class="cli-modal-backdrop cli-fade cli-popupbar-overlay"></div> <?php // Re-enable indexing echo '<!--googleon: all-->'; trash-kit-confirmation.php 0000644 00000003157 14722463001 0011656 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * @var int $post_id * @var boolean $is_permanently_delete */ $config_url = add_query_arg( [ 'force_delete_kit' => '1' ], get_delete_post_link( $post_id, '', $is_permanently_delete ) ); ?> <h4> <?php echo esc_html__( 'Are you sure you want to delete your Site Settings?', 'elementor' ); ?> </h4> <p> <?php echo esc_html__( 'By removing this template you will delete your entire Site Settings. If this template is deleted, all associated settings: Global Colors & Fonts, Theme Style, Layout, Background, and Lightbox settings will be removed from your existing site. This action can not be undone.', 'elementor' ); ?> </p> <br/> <a class="btn btn-danger" href="<?php // PHPCS - the link is generated by WordPress. echo $config_url; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"> <?php echo esc_html__( 'Delete', 'elementor' ); ?> </a> <a class="btn btn-primary" href="javascript:history.back()"> <?php echo esc_html__( 'Keep my settings', 'elementor' ); ?> </a> <style> /* In WordPress "die" screen there is very basic style, so the current css is required for basic button styles. */ .btn { text-decoration: none; padding: 9px 20px; font-weight: 500; border-radius: 3px; } .btn-danger { display: inline-block; color: #a00; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active { color: #dc3232; } .btn-primary { color: #fff; background-color: #007cba; margin: 0 10px; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: #0071a1; color: #fff; } </style> panel.php 0000644 00000003213 14722463001 0006352 0 ustar 00 <script type="text/template" id="tmpl-elementor-kit-panel"> <main id="elementor-kit__panel-content__wrapper" class="elementor-panel-content-wrapper"></main> </script> <script type="text/template" id="tmpl-elementor-kit-panel-content"> <div id="elementor-kit-panel-content-controls"></div> <# const tabConfig = $e.components.get( 'panel/global' ).getActiveTabConfig(); if ( tabConfig.helpUrl ) { #> <div id="elementor-panel__editor__help"> <a id="elementor-panel__editor__help__link" href="{{ tabConfig.helpUrl }}" target="_blank"> <?php echo esc_html__( 'Need Help', 'elementor' ); ?> <i class="eicon-help-o"></i> </a> </div> <# } if ( tabConfig.additionalContent ) { #> {{{ tabConfig.additionalContent }}} <# } #> </script> <script type="text/template" id="tmpl-elementor-global-style-repeater-row"> <# let removeClass = 'remove', removeIcon = 'eicon-trash-o'; if ( ! itemActions.remove ) { removeClass += '--disabled'; removeIcon = 'eicon-disable-trash-o' } #> <# if ( itemActions.sort ) { #> <button class="elementor-repeater-row-tool elementor-repeater-row-tools elementor-repeater-tool-sort"> <i class="eicon-cursor-move" aria-hidden="true"></i> <span class="elementor-screen-only"><?php echo esc_html__( 'Reorder', 'elementor' ); ?></span> </button> <# } #> <button class="elementor-repeater-row-tool elementor-repeater-tool-{{{ removeClass }}}"> <i class="{{{ removeIcon }}}" aria-hidden="true"></i> <# if ( itemActions.remove ) { #> <span class="elementor-screen-only"><?php echo esc_html__( 'Remove', 'elementor' ); ?></span> <# } #> </button> <div class="elementor-repeater-row-controls"></div> </script> plugin-update-message-compatibility.php 0000644 00000004256 14722507712 0014342 0 ustar 00 <?php use Elementor\Core\Utils\Version; use Elementor\Core\Utils\Collection; use Elementor\Modules\CompatibilityTag\Base_Module; use Elementor\Modules\CompatibilityTag\Compatibility_Tag; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Those variables were declared in 'in_plugin_update_message' method that included the current view file. * * @var Base_Module $this * @var Version $new_version * @var Collection $plugins * @var array $plugins_compatibility */ ?> <hr class="e-major-update-warning__separator" /> <div class="e-major-update-warning"> <div class="e-major-update-warning__icon"> <i class="eicon-info-circle"></i> </div> <div> <div class="e-major-update-warning__message"> <strong> <?php echo esc_html__( 'Compatibility Alert', 'elementor' ); ?> </strong> - <?php echo sprintf( /* translators: 1: Plugin name, 2: Plugin version. */ esc_html__( 'Some of the plugins you’re using have not been tested with the latest version of %1$s (%2$s). To avoid issues, make sure they are all up to date and compatible before updating %1$s.', 'elementor' ), esc_html( $this->get_plugin_label() ), $new_version->__toString() // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); ?> </div> <br /> <table class="e-compatibility-update-table"> <tr> <th><?php echo esc_html__( 'Plugin', 'elementor' ); ?></th> <th><?php /* translators: %s: Elementor plugin name. */ echo sprintf( esc_html__( 'Tested up to %s version', 'elementor' ), esc_html( $this->get_plugin_label() ) ); ?></th> </tr> <?php foreach ( $plugins as $plugin_name => $plugin_data ) : ?> <?php if ( in_array( $plugins_compatibility[ $plugin_name ], [ Compatibility_Tag::PLUGIN_NOT_EXISTS, Compatibility_Tag::HEADER_NOT_EXISTS, Compatibility_Tag::INVALID_VERSION, ], true ) ) { $plugin_data[ $this->get_plugin_header() ] = esc_html__( 'Unknown', 'elementor' ); } ?> <tr> <td><?php echo esc_html( $plugin_data['Name'] ); ?></td> <td><?php echo esc_html( $plugin_data[ $this->get_plugin_header() ] ); ?></td> </tr> <?php endforeach ?> </table> </div> </div> options.php 0000755 00000021040 14722543677 0006771 0 ustar 00 <?php namespace Yoast\WP\Duplicate_Post\Admin\Views; if ( ! \defined( 'DUPLICATE_POST_CURRENT_VERSION' ) ) { \header( 'Status: 403 Forbidden' ); \header( 'HTTP/1.1 403 Forbidden' ); exit(); } ?> <div class="wrap"> <h1> <?php \esc_html_e( 'Duplicate Post Options', 'duplicate-post' ); ?> </h1> <form id="duplicate_post_settings_form" method="post" action="options.php" style="clear: both"> <?php \settings_fields( 'duplicate_post_group' ); ?> <header role="tablist" aria-label="<?php \esc_attr_e( 'Settings sections', 'duplicate-post' ); ?>" class="nav-tab-wrapper"> <button type="button" role="tab" class="nav-tab nav-tab-active" aria-selected="true" aria-controls="what-tab" id="what"><?php \esc_html_e( 'What to copy', 'duplicate-post' ); ?> </button> <button type="button" role="tab" class="nav-tab" aria-selected="false" aria-controls="who-tab" id="who" tabindex="-1"><?php \esc_html_e( 'Permissions', 'duplicate-post' ); ?> </button> <button type="button" role="tab" class="nav-tab" aria-selected="false" aria-controls="where-tab" id="where" tabindex="-1"><?php \esc_html_e( 'Display', 'duplicate-post' ); ?> </button> </header> <section tabindex="0" role="tabpanel" id="what-tab" aria-labelledby="what"> <h2 class="hide-if-js"><?php \esc_html_e( 'What to copy', 'duplicate-post' ); ?></h2> <table class="form-table" role="presentation"> <tr> <th scope="row"><?php \esc_html_e( 'Post/page elements to copy', 'duplicate-post' ); ?></th> <td> <fieldset> <legend class="screen-reader-text"><?php \esc_html_e( 'Post/page elements to copy', 'duplicate-post' ); ?></legend> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_tab_inputs( 'what-to-copy', 'elements-to-copy' ); ?> </fieldset> </td> </tr> <tr> <th scope="row"> <label for="duplicate-post-title-prefix"><?php \esc_html_e( 'Title prefix', 'duplicate-post' ); ?></label> </th> <td> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_title_prefix' ); ?> </td> </tr> <tr> <th scope="row"> <label for="duplicate-post-title-suffix"><?php \esc_html_e( 'Title suffix', 'duplicate-post' ); ?></label> </th> <td> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_title_suffix' ); ?> </td> </tr> <tr> <th scope="row"> <label for="duplicate-post-increase-menu-order-by"><?php \esc_html_e( 'Increase menu order by', 'duplicate-post' ); ?></label> </th> <td> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_increase_menu_order_by' ); ?> </td> </tr> <tr> <th scope="row"> <label for="duplicate-post-blacklist"><?php \esc_html_e( 'Do not copy these fields', 'duplicate-post' ); ?></label> </th> <td id="textfield"> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_blacklist' ); ?> </td> </tr> <tr> <th scope="row"> <?php \esc_html_e( 'Do not copy these taxonomies', 'duplicate-post' ); ?><br/> </th> <td> <fieldset> <legend class="screen-reader-text"><?php \esc_html_e( 'Do not copy these taxonomies', 'duplicate-post' ); ?></legend> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_taxonomies_blacklist' ); ?> <button type="button" class="button-link hide-if-no-js toggle-private-taxonomies" aria-expanded="false"> <?php \esc_html_e( 'Show/hide private taxonomies', 'duplicate-post' ); ?> </button> </fieldset> </td> </tr> </table> </section> <section tabindex="0" role="tabpanel" id="who-tab" aria-labelledby="who" hidden="hidden"> <h2 class="hide-if-js"><?php \esc_html_e( 'Permissions', 'duplicate-post' ); ?></h2> <table class="form-table" role="presentation"> <?php if ( \current_user_can( 'promote_users' ) ) { ?> <tr> <th scope="row"><?php \esc_html_e( 'Roles allowed to copy', 'duplicate-post' ); ?></th> <td> <fieldset> <legend class="screen-reader-text"><?php \esc_html_e( 'Roles allowed to copy', 'duplicate-post' ); ?></legend> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_roles' ); ?> <p> <?php \esc_html_e( 'Warning: users will be able to copy, rewrite and republish all posts, even those of other users.', 'duplicate-post' ); ?> <br/> <?php \esc_html_e( 'Passwords and contents of password-protected posts may become visible to undesired users and visitors.', 'duplicate-post' ); ?> </p> </fieldset> </td> </tr> <?php } ?> <tr> <th scope="row"><?php \esc_html_e( 'Enable for these post types', 'duplicate-post' ); ?> </th> <td> <fieldset> <legend class="screen-reader-text"><?php \esc_html_e( 'Enable for these post types', 'duplicate-post' ); ?></legend> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_types_enabled' ); ?> <p> <?php \esc_html_e( 'Select the post types you want the plugin to be enabled for.', 'duplicate-post' ); ?> <br/> <?php \esc_html_e( 'Whether the links are displayed for custom post types registered by themes or plugins depends on their use of standard WordPress UI elements.', 'duplicate-post' ); ?> </p> </fieldset> </td> </tr> </table> </section> <section tabindex="0" role="tabpanel" id="where-tab" aria-labelledby="where" hidden="hidden"> <h2 class="hide-if-js"><?php \esc_html_e( 'Display', 'duplicate-post' ); ?></h2> <table class="form-table" role="presentation"> <tr> <th scope="row"><?php \esc_html_e( 'Show these links', 'duplicate-post' ); ?></th> <td> <fieldset> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_tab_inputs( 'display', 'show-links' ); ?> </fieldset> </td> </tr> <tr> <th scope="row"><?php \esc_html_e( 'Show links in', 'duplicate-post' ); ?></th> <td> <fieldset> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_tab_inputs( 'display', 'show-links-in' ); ?> </fieldset> <p> <?php \esc_html_e( 'Whether the links are displayed for custom post types registered by themes or plugins depends on their use of standard WordPress UI elements.', 'duplicate-post' ); ?> <br/> <?php \printf( /* translators: 1: Code start tag, 2: Code closing tag, 3: Link start tag to the template tag documentation, 4: Link closing tag. */ \esc_html__( 'You can also use the template tag %1$sduplicate_post_clone_post_link( $link, $before, $after, $id )%2$s. %3$sMore info on the template tag%4$s.', 'duplicate-post' ), '<code>', '</code>', '<a href="' . \esc_url( 'https://developer.yoast.com/duplicate-post/functions-template-tags#duplicate_post_clone_post_link' ) . '">', '</a>' ); ?> </p> </td> </tr> <tr> <th scope="row"><?php \esc_html_e( 'Show original item:', 'duplicate-post' ); ?></th> <td> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_tab_inputs( 'display', 'show-original' ); ?> </td> </tr> <tr> <th scope="row"><?php \esc_html_e( 'Welcome notice', 'duplicate-post' ); ?></th> <td> <?php // phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly. echo $this->generate_input( 'duplicate_post_show_notice' ); ?> </td> </tr> </table> </section> <p class="submit"> <input type="submit" class="button button-primary" value="<?php \esc_html_e( 'Save changes', 'duplicate-post' ); ?>"/> </p> </form> </div> cta-template.php 0000644 00000010424 14722631114 0007637 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <script type="text/template" id="tmpl-loop-grid-cta"> <style> /* Hide empty view, until Shadow DOM stying has loaded. */ .e-loop-empty-view__box { opacity: 0; } </style> <div class="e-loop-empty-view__box e-loop-empty-view__box--active"> <div class="e-loop-empty-view__box-inner"> <img src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" /> <div class="e-loop-empty-view__box-title"> <?php echo esc_html__( 'Loop Grid starts with a template.', 'elementor-pro' ); ?> </div> <div class="e-loop-empty-view__box-description"> <?php echo esc_html__( 'Either choose an existing template or create a new one and use it as the main item for your loop.', 'elementor-pro' ); ?> </div> <a href="#" class="e-loop-empty-view__box-cta"> <?php echo esc_html__( 'Create a template', 'elementor-pro' ); ?> </a> </div> </div> <div class="e-loop-empty-view__box"> <div class="e-loop-empty-view__box-inner"></div> </div> <div class="e-loop-empty-view__box"> <div class="e-loop-empty-view__box-inner"></div> </div> </script> <script type="text/template" id="tmpl-loop-carousel-cta"> <style> /* Hide empty view, until Shadow DOM stying has loaded. */ .e-loop-empty-view__box, .elementor-swiper-button, .swiper-pagination { opacity: 0; } </style> <div class="e-loop-empty-view__box e-loop-empty-view__box--active"> <div class="e-loop-empty-view__box-inner"> <img src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" /> <div class="e-loop-empty-view__box-title"><?php echo esc_html__( 'Loop Carousel starts with a template.', 'elementor-pro' ); ?></div> <div class="e-loop-empty-view__box-description"><?php echo esc_html__( 'Either choose an existing template or create a new one and use it as the main item for your loop.', 'elementor-pro' ); ?></div> <a href="#" class="e-loop-empty-view__box-cta"><?php echo esc_html__( 'Create a template', 'elementor-pro' ); ?></a> </div> </div> <div class="e-loop-empty-view__box"> <div class="e-loop-empty-view__box-inner"></div> </div> <div class="e-loop-empty-view__box"> <div class="e-loop-empty-view__box-inner"></div> </div> <div class="elementor-swiper-button elementor-swiper-button-prev" tabindex="0" role="button"> <svg aria-hidden="true" class="e-font-icon-svg e-eicon-chevron-left" viewBox="0 0 1000 1000" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><path d="M646 125C629 125 613 133 604 142L308 442C296 454 292 471 292 487 292 504 296 521 308 533L604 854C617 867 629 875 646 875 663 875 679 871 692 858 704 846 713 829 713 812 713 796 708 779 692 767L438 487 692 225C700 217 708 204 708 187 708 171 704 154 692 142 675 129 663 125 646 125Z"></path></svg> <span class="elementor-screen-only"><?php echo esc_html__( 'Previous slide', 'elementor-pro' ); ?></span> </div> <div class="elementor-swiper-button elementor-swiper-button-next" tabindex="0" role="button"> <svg aria-hidden="true" class="e-font-icon-svg e-eicon-chevron-right" viewBox="0 0 1000 1000" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><path d="M696 533C708 521 713 504 713 487 713 471 708 454 696 446L400 146C388 133 375 125 354 125 338 125 325 129 313 142 300 154 292 171 292 187 292 204 296 221 308 233L563 492 304 771C292 783 288 800 288 817 288 833 296 850 308 863 321 871 338 875 354 875 371 875 388 867 400 854L696 533Z"></path></svg> <span class="elementor-screen-only"><?php echo esc_html__( 'Next slide', 'elementor-pro' ); ?></span> </div> <div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets"> <span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="<?php echo esc_attr__( 'Go to slide 1', 'elementor-pro' ); ?>"></span> <span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="<?php echo esc_attr__( 'Go to slide 2', 'elementor-pro' ); ?>"></span> <span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="<?php echo esc_attr__( 'Go to slide 3', 'elementor-pro' ); ?>"></span> </div> </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0.72 |
proxy
|
phpinfo
|
Настройка