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