setup-parts
5 months ago
templates
2 months ago
class-page-license.php
5 months ago
class-page-more-features.php
5 months ago
class-page-setup.php
5 months ago
class-pages-components.php
5 months ago
index.php
6 months ago
class-page-more-features.php
169 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WBCR\Factory_Templates_759\Pages; |
| 4 | |
| 5 | /** |
| 6 | * The page Settings. |
| 7 | * |
| 8 | * @since 1.0.1 |
| 9 | * @package clearfy |
| 10 | */ |
| 11 | |
| 12 | // Exit if accessed directly |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | |
| 18 | class MoreFeatures extends \WBCR\Factory_Templates_759\Impressive { |
| 19 | |
| 20 | /** |
| 21 | * {@inheritDoc} |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | public $id = 'more_features'; |
| 26 | |
| 27 | /** |
| 28 | * {@inheritDoc} |
| 29 | * |
| 30 | * @var string |
| 31 | */ |
| 32 | public $page_menu_dashicon = 'dashicons-star-filled wbcr-factory-orange-color'; |
| 33 | |
| 34 | /** |
| 35 | * {@inheritDoc} |
| 36 | * |
| 37 | * @var string |
| 38 | */ |
| 39 | public $page_menu_position = 5; |
| 40 | |
| 41 | /** |
| 42 | * {@inheritDoc} |
| 43 | * |
| 44 | * @var string |
| 45 | */ |
| 46 | public $type = 'page'; |
| 47 | |
| 48 | /** |
| 49 | * {@inheritDoc} |
| 50 | * |
| 51 | * @var bool |
| 52 | */ |
| 53 | public $available_for_multisite = true; |
| 54 | |
| 55 | /** |
| 56 | * {@inheritDoc} |
| 57 | * |
| 58 | * @since 2.0.6 - добавлен |
| 59 | * @var bool |
| 60 | */ |
| 61 | public $internal = true; |
| 62 | |
| 63 | public function __construct( \Wbcr_Factory600_Plugin $plugin ) { |
| 64 | $this->menu_title = __( 'More features', 'robin-image-optimizer' ) . ' (' . __( 'Free', 'robin-image-optimizer' ) . ')'; |
| 65 | |
| 66 | parent::__construct( $plugin ); |
| 67 | |
| 68 | $this->plugin = $plugin; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * {@inheritDoc} |
| 73 | * |
| 74 | * @return string |
| 75 | */ |
| 76 | public function getPageTitle() { |
| 77 | return __( 'More features', 'robin-image-optimizer' ); |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * {@inheritDoc} |
| 82 | * |
| 83 | * @return void |
| 84 | */ |
| 85 | public function showPageContent() { |
| 86 | ?> |
| 87 | <div class="row"> |
| 88 | <div class="col-sm-4"> |
| 89 | <div class="wbcr-factory-feature-box"> |
| 90 | <span class="dashicons dashicons-yes"></span> |
| 91 | <h3><?php _e( 'Code cleaning', 'robin-image-optimizer' ); ?></h3> |
| 92 | <p><?php _e( 'Clears the source code of the page from unused code.', 'robin-image-optimizer' ); ?></p> |
| 93 | </div> |
| 94 | </div> |
| 95 | <div class="col-sm-4"> |
| 96 | <div class="wbcr-factory-feature-box"> |
| 97 | <span class="dashicons dashicons-chart-bar"></span> |
| 98 | <h3><?php _e( 'Improve SEO', 'robin-image-optimizer' ); ?></h3> |
| 99 | <p><?php _e( 'Removes duplicate pages, closes external links, changes the headers of the server.', 'robin-image-optimizer' ); ?></p> |
| 100 | </div> |
| 101 | </div> |
| 102 | <div class="col-sm-4"> |
| 103 | <div class="wbcr-factory-feature-box"> |
| 104 | <span class="dashicons dashicons-shield-alt"></span> |
| 105 | <h3><?php _e( 'Site protection', 'robin-image-optimizer' ); ?></h3> |
| 106 | <p><?php _e( 'Enables and disables features that improve the protection of your site.', 'robin-image-optimizer' ); ?></p> |
| 107 | </div> |
| 108 | </div> |
| 109 | <div class="col-sm-4"> |
| 110 | <div class="wbcr-factory-feature-box"> |
| 111 | <span class="dashicons dashicons-welcome-comments"></span> |
| 112 | <h3><?php _e( 'Disable comments', 'robin-image-optimizer' ); ?></h3> |
| 113 | <p><?php _e( 'Disables comments on the entire site or on specific pages.', 'robin-image-optimizer' ); ?></p> |
| 114 | </div> |
| 115 | </div> |
| 116 | <div class="col-sm-4"> |
| 117 | <div class="wbcr-factory-feature-box"> |
| 118 | <span class="dashicons dashicons-update"></span> |
| 119 | <h3><?php _e( 'Manage updates', 'robin-image-optimizer' ); ?></h3> |
| 120 | <p><?php esc_html_e( 'Enables or disables automatically updates for plugins, themes and core. It is also possible to disable all updates.', 'robin-image-optimizer' ); ?></p> |
| 121 | </div> |
| 122 | </div> |
| 123 | <div class="col-sm-4"> |
| 124 | <div class="wbcr-factory-feature-box"> |
| 125 | <span class="dashicons dashicons-admin-plugins"></span> |
| 126 | <h3><?php _e( 'Manage widgets', 'robin-image-optimizer' ); ?></h3> |
| 127 | <p><?php _e( 'Allows you to remove unused widgets.', 'robin-image-optimizer' ); ?></p> |
| 128 | </div> |
| 129 | </div> |
| 130 | <div class="col-sm-4"> |
| 131 | <div class="wbcr-factory-feature-box"> |
| 132 | <span class="dashicons dashicons-dashboard"></span> |
| 133 | <h3><?php _e( 'Speed Optimization', 'robin-image-optimizer' ); ?></h3> |
| 134 | <p><?php _e( 'Increases performance by disabling unused functions and reducing the number of requests.', 'robin-image-optimizer' ); ?></p> |
| 135 | </div> |
| 136 | </div> |
| 137 | <div class="col-sm-4"> |
| 138 | <div class="wbcr-factory-feature-box"> |
| 139 | <span class="dashicons dashicons-visibility"></span> |
| 140 | <h3><?php _e( 'Site privacy', 'robin-image-optimizer' ); ?></h3> |
| 141 | <p><?php esc_html_e( 'Allows you to hide the version of the site and plugins. Allows you to hide your WordPress.', 'robin-image-optimizer' ); ?></p> |
| 142 | </div> |
| 143 | </div> |
| 144 | <div class="col-sm-4"> |
| 145 | <div class="wbcr-factory-feature-box"> |
| 146 | <span class="dashicons dashicons-admin-settings"></span> |
| 147 | <h3><?php _e( 'Easy setup', 'robin-image-optimizer' ); ?></h3> |
| 148 | <p><?php _e( 'In quick mode, you can easily configure the plugin according to your needs.', 'robin-image-optimizer' ); ?></p> |
| 149 | </div> |
| 150 | </div> |
| 151 | </div> |
| 152 | <div class="wbcr-factory-buttons-wrap"> |
| 153 | <?php |
| 154 | $url = 'https://clearfy.pro'; |
| 155 | |
| 156 | if ( get_locale() == 'ru_RU' ) { |
| 157 | $url = 'https://ru.clearfy.pro'; |
| 158 | } |
| 159 | $url .= '?utm_source=wordpress.org&utm_campaign=' . $this->plugin->getPluginName(); |
| 160 | ?> |
| 161 | <a href="<?php echo $url; ?>" class="wbcr-factory-premium-button" target="_blank"> |
| 162 | <?php _e( 'Get the ultimate plugin 100% FREE', 'robin-image-optimizer' ); ?> |
| 163 | </a> |
| 164 | </div> |
| 165 | <?php |
| 166 | } |
| 167 | } |
| 168 | |
| 169 |