White Label CMS - Version 2.2.1

Version Description

  • Refactoring / Security fixes reported by @twd
  • Fixed override footer action reported by @simebern
  • Custom Welcome Dashboard fixes

=

Download this release

Release Info

Developer VideoUserManuals
Plugin Icon 128x128 White Label CMS
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 2.1.3 =
4
  * Added compatibility with WordPress 5.4
5
 
1
  == Changelog ==
2
 
3
+ = 2.2 =
4
+ * Custom Welcome Dashboard fixes
5
+
6
  = 2.1.3 =
7
  * Added compatibility with WordPress 5.4
8
 
includes/Functions.php CHANGED
@@ -228,12 +228,12 @@ if (!function_exists('wlcms_form_upload_field')) {
228
 
229
  $key_setting = wlcms_field_setting($key);
230
  if ($key_setting) {
231
- $html .= '<img src="' . $key_setting . '" alt="" /><span class="dashicons dashicons-dismiss wlcms-remove-img"></span>';
232
  }
233
 
234
  $html .= '</div>
235
  <div class="wlcms-input">
236
- <input type="text" name="' . $key . '" class="wlcms-upload-input" value="' . $key_setting . '" />
237
  <a href="#" class="wlcms_upload">Upload</a>
238
  </div>
239
  <div class="wlcms-help">' . $help . '</div>';
228
 
229
  $key_setting = wlcms_field_setting($key);
230
  if ($key_setting) {
231
+ $html .= '<img src="' . esc_url($key_setting) . '" alt="" /><span class="dashicons dashicons-dismiss wlcms-remove-img"></span>';
232
  }
233
 
234
  $html .= '</div>
235
  <div class="wlcms-input">
236
+ <input type="text" name="' . $key . '" class="wlcms-upload-input" value="' . esc_url($key_setting) . '" />
237
  <a href="#" class="wlcms_upload">Upload</a>
238
  </div>
239
  <div class="wlcms-help">' . $help . '</div>';
includes/classes/Admin_Dashboard.php CHANGED
@@ -27,7 +27,6 @@ class WLCMS_Admin_Dashboard extends WLCMS_Previewable
27
  $this->dashboard_title();
28
  $this->set_welcome_metabox();
29
 
30
-
31
  //Old version setting 2.0.2
32
  if (!wlcms_field_setting('dashboard_role_stat')) {
33
  if (is_wlcms_admin()) return;
@@ -46,28 +45,59 @@ class WLCMS_Admin_Dashboard extends WLCMS_Previewable
46
  private function reset_dashboard_style() {
47
 
48
  wlcms_set_css(
49
- '.wlcms-welcome-panel-content .elementor p,
50
- .wlcms-welcome-panel-content .elementor div,
51
- .wlcms-welcome-panel-content .elementor h1,
52
- .wlcms-welcome-panel-content .elementor h2,
53
- .wlcms-welcome-panel-content .elementor h3
54
- .wlcms-welcome-panel-content .elementor h4
55
- .wlcms-welcome-panel-content .elementor h5
56
- .wlcms-welcome-panel-content .fl-builder-content p',
57
  array(
58
  'border' => '0',
59
  'font-size' => '100%',
60
  'font' => 'inherit',
61
  'line-height' => 'inherit',
62
  'vertical-align' => 'baseline',
63
- 'color' => 'inherit'
64
  )
65
  );
66
 
67
  wlcms_set_css( '.wlcms-welcome-panel .welcome-panel-content > h2',
68
  array(
69
  'width' => '95%',
70
- 'padding-bottom' => '21px'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  )
72
  );
73
  }
@@ -303,7 +333,7 @@ class WLCMS_Admin_Dashboard extends WLCMS_Previewable
303
  $this->get_settings('rss_title');
304
 
305
  if ($logo = $this->get_settings('rss_logo')) {
306
- $title .= '<img src="' . $logo . '" height="16" width="16" alt="Logo" style="padding-right:5px;vertical-align:bottom;"/> ';
307
  }
308
 
309
  if ($rss_title = $this->get_settings('rss_title')) {
27
  $this->dashboard_title();
28
  $this->set_welcome_metabox();
29
 
 
30
  //Old version setting 2.0.2
31
  if (!wlcms_field_setting('dashboard_role_stat')) {
32
  if (is_wlcms_admin()) return;
45
  private function reset_dashboard_style() {
46
 
47
  wlcms_set_css(
48
+ '.wlcms-welcome-panel .elementor div,
49
+ .wlcms-welcome-panel .elementor h1,
50
+ .wlcms-welcome-panel .elementor h2,
51
+ .wlcms-welcome-panel .elementor h3,
52
+ .wlcms-welcome-panel .elementor h4,
53
+ .wlcms-welcome-panel .elementor h5,
54
+ .wlcms-welcome-panel .fl-builder-content p,
55
+ .wlcms-welcome-panel p',
56
  array(
57
  'border' => '0',
58
  'font-size' => '100%',
59
  'font' => 'inherit',
60
  'line-height' => 'inherit',
61
  'vertical-align' => 'baseline',
62
+ 'color' => 'unset'
63
  )
64
  );
65
 
66
  wlcms_set_css( '.wlcms-welcome-panel .welcome-panel-content > h2',
67
  array(
68
  'width' => '95%',
69
+ 'padding' => '21px'
70
+ )
71
+ );
72
+ wlcms_set_css( '.wlcms-welcome-panel .wlcms-welcome-content',
73
+ array(
74
+ 'padding' => '20px'
75
+ )
76
+ );
77
+ wlcms_set_css( '.wlcms-welcome-panel .welcome-panel-content',
78
+ array(
79
+ 'max-width' => 'none!important',
80
+ 'margin-left' => '0!important'
81
+ )
82
+ );
83
+
84
+ wlcms_set_css( '.wlcms-welcome-panel .elementor-section-full_width',
85
+ array(
86
+ 'width' => '100%!important',
87
+ 'left' => '0!important'
88
+ )
89
+ );
90
+
91
+ wlcms_set_css( '.wlcms-welcome-panel, .wlcms-welcome-panel .welcome-panel-content', array(
92
+ 'padding' => '0!important',
93
+ ));
94
+ wlcms_set_css( '.wlcms-welcome-panel .welcome-panel-close',
95
+ array(
96
+ 'top' => '0!important',
97
+ 'right' => '0!important',
98
+ 'background' => 'white!important',
99
+ 'z-index' => '1000',
100
+
101
  )
102
  );
103
  }
333
  $this->get_settings('rss_title');
334
 
335
  if ($logo = $this->get_settings('rss_logo')) {
336
+ $title .= '<img src="' . esc_url($logo) . '" height="16" width="16" alt="Logo" style="padding-right:5px;vertical-align:bottom;"/> ';
337
  }
338
 
339
  if ($rss_title = $this->get_settings('rss_title')) {
includes/classes/Admin_Dashboard_Welcome_Message.php CHANGED
@@ -23,7 +23,6 @@ class Admin_Dashboard_Welcome_Message
23
  $template = new Welcome_Messages_Elementor();
24
  }elseif( $type == 'Beaver Builder' ){
25
  $template = new Welcome_Messages_Beaver_Builder();
26
-
27
  }else {
28
  $template = new Welcome_Messages_Html();
29
  }
23
  $template = new Welcome_Messages_Elementor();
24
  }elseif( $type == 'Beaver Builder' ){
25
  $template = new Welcome_Messages_Beaver_Builder();
 
26
  }else {
27
  $template = new Welcome_Messages_Html();
28
  }
includes/classes/Admin_Script.php CHANGED
@@ -28,13 +28,22 @@ class WLCMS_Admin_Script
28
 
29
  $scripts = "<!-- WLCMS Style-->\n";
30
  if (count($this->css) || count($this->hidded_elements) || count($this->bulk_css) || !empty($this->admin_css) ) {
31
- $scripts .= sprintf('<style type="text/css">%s %s %s</style>', $this->admin_css, $this->compileCss(), $this->additional_css);
32
  }
 
33
  $scripts .= "\n<!-- WLCMS End Style-->";
34
  echo $scripts;
35
 
36
  }
37
 
 
 
 
 
 
 
 
 
38
  public function footer_script()
39
  {
40
  $scripts = '';
28
 
29
  $scripts = "<!-- WLCMS Style-->\n";
30
  if (count($this->css) || count($this->hidded_elements) || count($this->bulk_css) || !empty($this->admin_css) ) {
31
+ $scripts .= sprintf('<style type="text/css">%s</style>', $this->compiled_header_css());
32
  }
33
+
34
  $scripts .= "\n<!-- WLCMS End Style-->";
35
  echo $scripts;
36
 
37
  }
38
 
39
+ private function compiled_header_css()
40
+ {
41
+ $content = $this->admin_css . $this->compileCss(). $this->additional_css;
42
+ $content = wp_kses( $content, array( '\'', '\"' ) );
43
+ $content = str_replace( '&gt;', '>', $content );
44
+ return $content;
45
+ }
46
+
47
  public function footer_script()
48
  {
49
  $scripts = '';
includes/classes/Branding.php CHANGED
@@ -12,7 +12,7 @@ class WLCMS_Branding extends WLCMS_Previewable
12
  add_filter('admin_title', array($this, 'admin_title'), 10, 2);
13
  add_action('admin_bar_menu', array($this, 'admin_bar_logo'));
14
  add_action('admin_bar_menu', array($this, 'admin_bar_howdy_text'));
15
- add_filter('admin_footer_text', array($this, 'admin_footer'));
16
  add_action('admin_menu', array($this, 'admin_menu'), 0);
17
  add_filter('admin_body_class', array($this, 'admin_body_class'), 12);
18
  }
12
  add_filter('admin_title', array($this, 'admin_title'), 10, 2);
13
  add_action('admin_bar_menu', array($this, 'admin_bar_logo'));
14
  add_action('admin_bar_menu', array($this, 'admin_bar_howdy_text'));
15
+ add_filter('admin_footer_text', array($this, 'admin_footer'), 2000);
16
  add_action('admin_menu', array($this, 'admin_menu'), 0);
17
  add_filter('admin_body_class', array($this, 'admin_body_class'), 12);
18
  }
includes/classes/Login.php CHANGED
@@ -51,14 +51,23 @@ class WLCMS_Login extends WLCMS_Previewable
51
  echo '});';
52
  echo '</script>';
53
  echo '<style type="text/css">';
54
- echo $this->set_custom_css();
55
- echo $this->set_background_css();
56
- echo $this->set_logo_css();
57
- echo $this->set_form_css();
58
- echo $this->set_links_css();
59
  echo '</style>';
60
  }
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  private function get_js()
63
  {
64
  $js = 'jQuery("#login").wrap("<div id=\'wlcms-login-wrapper\'></div>");';
@@ -233,14 +242,9 @@ class WLCMS_Login extends WLCMS_Previewable
233
  return $form_css;
234
  }
235
 
236
- private function set_custom_css()
237
- {
238
- return $this->get_settings('login_custom_css');
239
- }
240
-
241
  private function set_custom_login_js()
242
  {
243
- return $this->get_settings('login_custom_js');
244
  }
245
  public function settings()
246
  {
51
  echo '});';
52
  echo '</script>';
53
  echo '<style type="text/css">';
54
+ echo $this->compiled_login_css();
 
 
 
 
55
  echo '</style>';
56
  }
57
 
58
+ private function compiled_login_css()
59
+ {
60
+ $content = $this->get_settings('login_custom_css');
61
+ $content .= $this->set_background_css();
62
+ $content .= $this->set_logo_css();
63
+ $content .= $this->set_form_css();
64
+ $content .= $this->set_links_css();
65
+
66
+ $content = wp_kses( $content, array( '\'', '\"' ) );
67
+ $content = str_replace( '&gt;', '>', $content );
68
+ return $content;
69
+ }
70
+
71
  private function get_js()
72
  {
73
  $js = 'jQuery("#login").wrap("<div id=\'wlcms-login-wrapper\'></div>");';
242
  return $form_css;
243
  }
244
 
 
 
 
 
 
245
  private function set_custom_login_js()
246
  {
247
+ return wlcms_esc_html_e($this->get_settings('login_custom_js'));
248
  }
249
  public function settings()
250
  {
includes/classes/Settings.php CHANGED
@@ -14,7 +14,6 @@ class WLCMS_Settings
14
 
15
  public function init()
16
  {
17
-
18
  // check or initiate import
19
  $this->import();
20
 
@@ -243,7 +242,7 @@ class WLCMS_Settings
243
 
244
 
245
  delete_option("wlcms_options");
246
- $wpdb->get_results("DELETE FROM $wpdb->options WHERE option_name LIKE 'wlcms_o_%'");
247
 
248
  $site_url = get_bloginfo('url');
249
 
@@ -260,7 +259,7 @@ class WLCMS_Settings
260
  }
261
  }
262
 
263
- WLCMS_Queue('Your Import has been completed.');
264
  wp_redirect(wlcms()->admin_url());
265
  exit;
266
  }
@@ -294,7 +293,7 @@ class WLCMS_Settings
294
  }
295
 
296
  delete_option("wlcms_options");
297
- $wpdb->get_results("DELETE FROM $wpdb->options WHERE option_name LIKE 'wlcms_o_%'");
298
 
299
  WLCMS_Queue('Settings reset.');
300
  wp_redirect(wlcms()->admin_url());
@@ -379,6 +378,5 @@ class WLCMS_Settings
379
  'settings_custom_css_url' => ''
380
  );
381
  return apply_filters('wlcms_setting_fields', $settings);
382
-
383
  }
384
  }
14
 
15
  public function init()
16
  {
 
17
  // check or initiate import
18
  $this->import();
19
 
242
 
243
 
244
  delete_option("wlcms_options");
245
+ $wpdb->get_results($wpdb->prepare("DELETE FROM $wpdb->options WHERE option_name LIKE %s", 'wlcms_o_%'));
246
 
247
  $site_url = get_bloginfo('url');
248
 
259
  }
260
  }
261
 
262
+ WLCMS_Queue('Your import has been completed.');
263
  wp_redirect(wlcms()->admin_url());
264
  exit;
265
  }
293
  }
294
 
295
  delete_option("wlcms_options");
296
+ $wpdb->get_results($wpdb->prepare("DELETE FROM $wpdb->options WHERE option_name LIKE %s", 'wlcms_o_%'));
297
 
298
  WLCMS_Queue('Settings reset.');
299
  wp_redirect(wlcms()->admin_url());
378
  'settings_custom_css_url' => ''
379
  );
380
  return apply_filters('wlcms_setting_fields', $settings);
 
381
  }
382
  }
includes/classes/Upgrade.php CHANGED
@@ -31,7 +31,7 @@ class WLCMS_Upgrades
31
  return;
32
  }
33
 
34
- $newdbsetting = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->options WHERE option_name = 'wlcms_options'");
35
 
36
  if ($legacy_version && $newdbsetting) {
37
  return;
@@ -51,7 +51,7 @@ class WLCMS_Upgrades
51
  global $wpdb;
52
 
53
  // Get all WLCMS vals from options table
54
- $results = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE 'wlcms_o_%'");
55
 
56
  // Are there any options to grab?
57
  if (!$results) return;
@@ -317,7 +317,7 @@ class WLCMS_Upgrades
317
  global $wpdb;
318
 
319
  delete_option('wlcms_o_ver');
320
- $wpdb->get_results("DELETE FROM $wpdb->options WHERE option_name = 'wlcms_o_ver'");
321
  }
322
 
323
  private function legacy_settings()
31
  return;
32
  }
33
 
34
+ $newdbsetting = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $wpdb->options WHERE option_name = %s", 'wlcms_options'));
35
 
36
  if ($legacy_version && $newdbsetting) {
37
  return;
51
  global $wpdb;
52
 
53
  // Get all WLCMS vals from options table
54
+ $results = $wpdb->get_results($wpdb->prepare("SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE %s", 'wlcms_o_%'));
55
 
56
  // Are there any options to grab?
57
  if (!$results) return;
317
  global $wpdb;
318
 
319
  delete_option('wlcms_o_ver');
320
+ $wpdb->get_results($wpdb->prepare("DELETE FROM $wpdb->options WHERE option_name = %s", 'wlcms_o_ver'));
321
  }
322
 
323
  private function legacy_settings()
includes/classes/Welcome_Messages/Welcome_Messages_Beaver_Builder.php CHANGED
@@ -11,7 +11,7 @@ class Welcome_Messages_Beaver_Builder
11
  $this->key = $key;
12
  $this->settings = $settings;
13
  $this->template = $settings['page_id_beaver'];
14
- add_action( 'admin_notices', array( $this, 'welcome_panel' ) );
15
  add_action('admin_enqueue_scripts', 'FLBuilder::register_layout_styles_scripts');
16
  }
17
 
@@ -36,12 +36,11 @@ class Welcome_Messages_Beaver_Builder
36
  ?><a class="welcome-panel-close" href="#" aria-label="Dismiss the welcome panel">Dismiss</a>
37
  <?php endif?>
38
  <div class="welcome-panel-content welcome-panel-content<?php echo $this->key?>">
39
- <h2>
40
  <?php if( isset($this->settings['page_id_beaver']) && isset($this->settings['show_title']) ):?>
 
41
  <?php echo get_the_title($this->settings['page_id_beaver'])?>
42
- <?php endif;?>
43
- &nbsp;
44
  </h2>
 
45
  <?php $this->template(); ?>
46
  </div>
47
  </div>
11
  $this->key = $key;
12
  $this->settings = $settings;
13
  $this->template = $settings['page_id_beaver'];
14
+ add_action( 'in_admin_header', array( $this, 'welcome_panel' ) );
15
  add_action('admin_enqueue_scripts', 'FLBuilder::register_layout_styles_scripts');
16
  }
17
 
36
  ?><a class="welcome-panel-close" href="#" aria-label="Dismiss the welcome panel">Dismiss</a>
37
  <?php endif?>
38
  <div class="welcome-panel-content welcome-panel-content<?php echo $this->key?>">
 
39
  <?php if( isset($this->settings['page_id_beaver']) && isset($this->settings['show_title']) ):?>
40
+ <h2>
41
  <?php echo get_the_title($this->settings['page_id_beaver'])?>
 
 
42
  </h2>
43
+ <?php endif;?>
44
  <?php $this->template(); ?>
45
  </div>
46
  </div>
includes/classes/Welcome_Messages/Welcome_Messages_Elementor.php CHANGED
@@ -10,24 +10,27 @@ class Welcome_Messages_Elementor
10
 
11
  $this->key = $key;
12
  $this->settings = $settings;
13
- add_action( 'admin_notices', array( $this, 'welcome_panel' ) );
14
  }
15
 
16
  public function welcome_panel()
17
  {
 
 
18
  ?>
19
  <div id="welcome-panel<?php echo $this->key?>" data-welcome_key="<?php echo $this->key?>" class="welcome-panel wlcms-welcome-panel" style="display:none">
20
  <?php
21
- if(isset($this->settings['dismissible'])):
22
  ?><a class="welcome-panel-close" href="#" aria-label="Dismiss the welcome panel">Dismiss</a>
23
  <?php endif?>
24
  <div class="welcome-panel-content welcome-panel-content<?php echo $this->key?>">
 
 
25
  <h2>
26
- <?php if( isset($this->settings['page_id_elementor']) && isset($this->settings['show_title']) ):?>
27
  <?php echo get_the_title($this->settings['page_id_elementor'])?>
28
- <?php endif;?>
29
- &nbsp;
30
  </h2>
 
 
31
  <?php $this->template(); ?>
32
  </div>
33
  </div>
10
 
11
  $this->key = $key;
12
  $this->settings = $settings;
13
+ add_action( 'in_admin_header', array( $this, 'welcome_panel' ) );
14
  }
15
 
16
  public function welcome_panel()
17
  {
18
+ $has_dismissable = isset($this->settings['dismissible']);
19
+ $is_show_title = isset($this->settings['page_id_elementor']) && isset($this->settings['show_title']);
20
  ?>
21
  <div id="welcome-panel<?php echo $this->key?>" data-welcome_key="<?php echo $this->key?>" class="welcome-panel wlcms-welcome-panel" style="display:none">
22
  <?php
23
+ if($has_dismissable):
24
  ?><a class="welcome-panel-close" href="#" aria-label="Dismiss the welcome panel">Dismiss</a>
25
  <?php endif?>
26
  <div class="welcome-panel-content welcome-panel-content<?php echo $this->key?>">
27
+ <?php if( $has_dismissable || $is_show_title ):?>
28
+ <?php if( $is_show_title ):?>
29
  <h2>
 
30
  <?php echo get_the_title($this->settings['page_id_elementor'])?>
 
 
31
  </h2>
32
+ <?php endif;?>
33
+ <?php endif;?>
34
  <?php $this->template(); ?>
35
  </div>
36
  </div>
includes/classes/Welcome_Messages/Welcome_Messages_Html.php CHANGED
@@ -7,16 +7,10 @@ class Welcome_Messages_Html
7
  {
8
  $this->key = $key;
9
  $this->settings = $settings;
10
- //var_dump($this->settings);
11
- //exit;
12
 
13
  if( isset( $this->settings['is_fullwidth']) && $this->settings['is_fullwidth'] == 1 )
14
  {
15
- remove_action( 'welcome_panel', 'wp_welcome_panel' );
16
- add_action( 'welcome_panel', array( $this, 'welcome_panel' ) );
17
- if ( ! current_user_can( 'edit_theme_options' ) ) {
18
- add_action( 'admin_notices', array( $this, 'welcome_panel' ) );
19
- }
20
  return;
21
  }
22
 
@@ -45,7 +39,9 @@ class Welcome_Messages_Html
45
  <?php if(isset( $this->settings['title'] )):?>
46
  <h2><?php echo $this->settings['title']?></h2>
47
  <?php endif;?>
 
48
  <?php echo $this->template(); ?>
 
49
  </div>
50
  </div>
51
  <?php
7
  {
8
  $this->key = $key;
9
  $this->settings = $settings;
 
 
10
 
11
  if( isset( $this->settings['is_fullwidth']) && $this->settings['is_fullwidth'] == 1 )
12
  {
13
+ add_action( 'in_admin_header', array( $this, 'welcome_panel' ) );
 
 
 
 
14
  return;
15
  }
16
 
39
  <?php if(isset( $this->settings['title'] )):?>
40
  <h2><?php echo $this->settings['title']?></h2>
41
  <?php endif;?>
42
+ <div class="wlcms-welcome-content">
43
  <?php echo $this->template(); ?>
44
+ </div>
45
  </div>
46
  </div>
47
  <?php
readme.txt CHANGED
@@ -8,8 +8,8 @@ Author URI: http://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugi
8
  Author: Video User Manuals
9
  Requires at least: 3.3
10
  Requires PHP: 5.4
11
- Tested up to: 5.4
12
- Stable tag: 2.2
13
 
14
  Customise dashboard panels and branding, hide menus plus lots more.
15
 
@@ -17,6 +17,7 @@ Customise dashboard panels and branding, hide menus plus lots more.
17
  The White Label CMS plugin is for developers who want to give their clients a more personalised and less confusing content management system.
18
 
19
  For a overview of the changes in 2.0 version of the plugin please visit the Video User Manuals website.
 
20
 
21
  = Features =
22
  - Customize the login page
@@ -66,7 +67,9 @@ There is so much that you can do with White Label CMS, but we want the experienc
66
 
67
  == Changelog ==
68
 
69
- = 2.2 =
 
 
70
  * Custom Welcome Dashboard fixes
71
 
72
  == Frequently Asked Questions ==
8
  Author: Video User Manuals
9
  Requires at least: 3.3
10
  Requires PHP: 5.4
11
+ Tested up to: 5.4.2
12
+ Stable tag: 2.2.1
13
 
14
  Customise dashboard panels and branding, hide menus plus lots more.
15
 
17
  The White Label CMS plugin is for developers who want to give their clients a more personalised and less confusing content management system.
18
 
19
  For a overview of the changes in 2.0 version of the plugin please visit the Video User Manuals website.
20
+ [](http://coderisk.com/wp/plugin/white-label-cms/RIPS-2du_LffR85)
21
 
22
  = Features =
23
  - Customize the login page
67
 
68
  == Changelog ==
69
 
70
+ = 2.2.1 =
71
+ * Refactoring / Security fixes reported by @twd
72
+ * Fixed override footer action reported by @simebern
73
  * Custom Welcome Dashboard fixes
74
 
75
  == Frequently Asked Questions ==
view/admin/parts/branding-admin-bar.php CHANGED
@@ -6,7 +6,7 @@
6
  <div class="wlcms-input-group">
7
  <label><?php _e('Admin Bar Alt Text', 'white-label-cms') ?></label>
8
  <div class="wlcms-input">
9
- <input type="text" name="admin_bar_alt_text" value="<?php echo wlcms_field_setting('admin_bar_alt_text') ?>" />
10
  </div>
11
  <div class="wlcms-help">
12
  <?php _e('Replace the "WordPress" Alt text.', 'white-label-cms') ?>
@@ -16,7 +16,7 @@
16
  <div class="wlcms-input-group">
17
  <label><?php _e('Replace Howdy Text', 'white-label-cms') ?></label>
18
  <div class="wlcms-input">
19
- <input type="text" name="admin_bar_howdy_text" value="<?php echo wlcms_field_setting('admin_bar_howdy_text') ?>" />
20
  </div>
21
  <div class="wlcms-help">
22
  <?php _e('Add a space to completely remove it from the admin bar. Or replace it with something like: "Hi,"', 'white-label-cms') ?>
@@ -26,7 +26,7 @@
26
  <div class="wlcms-input-group">
27
  <label><?php _e('Admin Bar URL', 'white-label-cms') ?></label>
28
  <div class="wlcms-input">
29
- <input type="url" name="admin_bar_url" value="<?php echo wlcms_field_setting('admin_bar_url') ?>" />
30
  </div>
31
  <div class="wlcms-help">
32
  <?php _e('Replace the link to WordPress.org.', 'white-label-cms') ?>
6
  <div class="wlcms-input-group">
7
  <label><?php _e('Admin Bar Alt Text', 'white-label-cms') ?></label>
8
  <div class="wlcms-input">
9
+ <input type="text" name="admin_bar_alt_text" value="<?php echo esc_attr(wlcms_field_setting('admin_bar_alt_text')) ?>" />
10
  </div>
11
  <div class="wlcms-help">
12
  <?php _e('Replace the "WordPress" Alt text.', 'white-label-cms') ?>
16
  <div class="wlcms-input-group">
17
  <label><?php _e('Replace Howdy Text', 'white-label-cms') ?></label>
18
  <div class="wlcms-input">
19
+ <input type="text" name="admin_bar_howdy_text" value="<?php echo esc_attr(wlcms_field_setting('admin_bar_howdy_text')) ?>" />
20
  </div>
21
  <div class="wlcms-help">
22
  <?php _e('Add a space to completely remove it from the admin bar. Or replace it with something like: "Hi,"', 'white-label-cms') ?>
26
  <div class="wlcms-input-group">
27
  <label><?php _e('Admin Bar URL', 'white-label-cms') ?></label>
28
  <div class="wlcms-input">
29
+ <input type="url" name="admin_bar_url" value="<?php echo esc_url(wlcms_field_setting('admin_bar_url')) ?>" />
30
  </div>
31
  <div class="wlcms-help">
32
  <?php _e('Replace the link to WordPress.org.', 'white-label-cms') ?>
view/admin/parts/branding-developer.php CHANGED
@@ -2,7 +2,7 @@
2
  <div class="wlcms-input-group">
3
  <label><?php _e('Developer Name', 'white-label-cms') ?></label>
4
  <div class="wlcms-input">
5
- <input type="text" name="developer_name" value="<?php echo wlcms_field_setting('developer_name') ?>" />
6
  </div>
7
  <div class="wlcms-help">
8
  <?php _e('For use in footer and ALT text\'s.', 'white-label-cms') ?>
@@ -12,7 +12,7 @@
12
  <div class="wlcms-input-group">
13
  <label><?php _e('Developer URL', 'white-label-cms') ?></label>
14
  <div class="wlcms-input">
15
- <input type="url" name="developer_url" value="<?php echo wlcms_field_setting('developer_url') ?>" />
16
  </div>
17
  <div class="wlcms-help">
18
  <?php _e('For use in footer and admin bar.', 'white-label-cms') ?>
2
  <div class="wlcms-input-group">
3
  <label><?php _e('Developer Name', 'white-label-cms') ?></label>
4
  <div class="wlcms-input">
5
+ <input type="text" name="developer_name" value="<?php echo esc_attr(wlcms_field_setting('developer_name')) ?>" />
6
  </div>
7
  <div class="wlcms-help">
8
  <?php _e('For use in footer and ALT text\'s.', 'white-label-cms') ?>
12
  <div class="wlcms-input-group">
13
  <label><?php _e('Developer URL', 'white-label-cms') ?></label>
14
  <div class="wlcms-input">
15
+ <input type="url" name="developer_url" value="<?php echo esc_url(wlcms_field_setting('developer_url')) ?>" />
16
  </div>
17
  <div class="wlcms-help">
18
  <?php _e('For use in footer and admin bar.', 'white-label-cms') ?>
view/admin/parts/branding-footer.php CHANGED
@@ -5,7 +5,7 @@
5
  <div class="wlcms-input-group">
6
  <label><?php _e('Footer Text', 'white-label-cms') ?></label>
7
  <div class="wlcms-input">
8
- <input type="text" name="footer_text" value="<?php echo wlcms_field_setting('footer_text') ?>" />
9
  </div>
10
  <div class="wlcms-help">
11
  <?php _e('Text which will appear to the right of the Footer Image.', 'white-label-cms') ?>
@@ -15,7 +15,7 @@
15
  <div class="wlcms-input-group">
16
  <label><?php _e('Footer URL', 'white-label-cms') ?></label>
17
  <div class="wlcms-input">
18
- <input type="url" name="footer_url" value="<?php echo wlcms_field_setting('footer_url') ?>" />
19
  </div>
20
  <div class="wlcms-help">
21
  <?php _e('Replace WordPress in the page titles.', 'white-label-cms') ?>
@@ -25,7 +25,7 @@
25
  <div class="wlcms-input-group">
26
  <label><?php _e('or use HTML', 'white-label-cms') ?></label>
27
  <div class="wlcms-input">
28
- <textarea name="footer_html" class="textarea-full" id="footer_html"><?php echo wlcms_field_setting('footer_html') ?></textarea>
29
  </div>
30
  <div class="wlcms-help">
31
  <?php _e('If you would like more control over what appears in the footer, add your own HTML.<br/>
5
  <div class="wlcms-input-group">
6
  <label><?php _e('Footer Text', 'white-label-cms') ?></label>
7
  <div class="wlcms-input">
8
+ <input type="text" name="footer_text" value="<?php echo esc_attr(wlcms_field_setting('footer_text')) ?>" />
9
  </div>
10
  <div class="wlcms-help">
11
  <?php _e('Text which will appear to the right of the Footer Image.', 'white-label-cms') ?>
15
  <div class="wlcms-input-group">
16
  <label><?php _e('Footer URL', 'white-label-cms') ?></label>
17
  <div class="wlcms-input">
18
+ <input type="url" name="footer_url" value="<?php echo esc_url(wlcms_field_setting('footer_url')) ?>" />
19
  </div>
20
  <div class="wlcms-help">
21
  <?php _e('Replace WordPress in the page titles.', 'white-label-cms') ?>
25
  <div class="wlcms-input-group">
26
  <label><?php _e('or use HTML', 'white-label-cms') ?></label>
27
  <div class="wlcms-input">
28
+ <textarea name="footer_html" class="textarea-full" id="footer_html"><?php echo esc_html(wlcms_field_setting('footer_html')) ?></textarea>
29
  </div>
30
  <div class="wlcms-help">
31
  <?php _e('If you would like more control over what appears in the footer, add your own HTML.<br/>
view/admin/parts/branding-side-menu.php CHANGED
@@ -8,7 +8,7 @@
8
  <div class="wlcms-input-group">
9
  <label><?php _e('Side Menu Link URL', 'white-label-cms') ?></label>
10
  <div class="wlcms-input">
11
- <input type="url" name="side_menu_link_url" value="<?php echo wlcms_field_setting('side_menu_link_url') ?>" />
12
  </div>
13
  <div class="wlcms-help">
14
  <?php _e('URL the Side Menu Image will link to.', 'white-label-cms') ?>
@@ -17,7 +17,7 @@
17
  <div class="wlcms-input-group">
18
  <label><?php _e('Side Menu Alt Text', 'white-label-cms') ?></label>
19
  <div class="wlcms-input">
20
- <input type="text" name="side_menu_alt_text" value="<?php echo wlcms_field_setting('side_menu_alt_text') ?>" />
21
  </div>
22
  <div class="wlcms-help">
23
  <?php _e('Alt text for the Side Menu Image link.', 'white-label-cms') ?>
8
  <div class="wlcms-input-group">
9
  <label><?php _e('Side Menu Link URL', 'white-label-cms') ?></label>
10
  <div class="wlcms-input">
11
+ <input type="url" name="side_menu_link_url" value="<?php echo esc_url(wlcms_field_setting('side_menu_link_url')) ?>" />
12
  </div>
13
  <div class="wlcms-help">
14
  <?php _e('URL the Side Menu Image will link to.', 'white-label-cms') ?>
17
  <div class="wlcms-input-group">
18
  <label><?php _e('Side Menu Alt Text', 'white-label-cms') ?></label>
19
  <div class="wlcms-input">
20
+ <input type="text" name="side_menu_alt_text" value="<?php echo esc_attr(wlcms_field_setting('side_menu_alt_text')) ?>" />
21
  </div>
22
  <div class="wlcms-help">
23
  <?php _e('Alt text for the Side Menu Image link.', 'white-label-cms') ?>
view/admin/parts/branding-wordpress.php CHANGED
@@ -22,7 +22,7 @@
22
  <div class="wlcms-input-group">
23
  <label><?php _e('Custom Page Titles', 'white-label-cms') ?></label>
24
  <div class="wlcms-input">
25
- <input type="text" name="custom_page_title" value="<?php echo wlcms_field_setting('custom_page_title') ?>" />
26
  </div>
27
  <div class="wlcms-help">
28
  <?php _e('Replace WordPress in the page titles.', 'white-label-cms') ?>
22
  <div class="wlcms-input-group">
23
  <label><?php _e('Custom Page Titles', 'white-label-cms') ?></label>
24
  <div class="wlcms-input">
25
+ <input type="text" name="custom_page_title" value="<?php echo esc_attr(wlcms_field_setting('custom_page_title')) ?>" />
26
  </div>
27
  <div class="wlcms-help">
28
  <?php _e('Replace WordPress in the page titles.', 'white-label-cms') ?>
view/admin/parts/dashboard-custom-welcome-dashboard-panel.php CHANGED
@@ -71,7 +71,7 @@ $welcome_panel_is_active = wlcms_welcome_value(0, 'is_active');
71
  <div class="welcome-basicHtml1">
72
  <label><?php _e('Title of Welcome Panel', 'white-label-cms') ?></label>
73
  <div class="wlcms-input">
74
- <input type="text" name="welcome_panel[0][title]" value="<?php echo wlcms_welcome_value(0, 'title') ?>" />
75
  </div>
76
  <div class="wlcms-help">
77
  <?php _e('Title of the Welcome Panel', 'white-label-cms') ?>
@@ -81,7 +81,7 @@ $welcome_panel_is_active = wlcms_welcome_value(0, 'is_active');
81
  <div class="welcome-basicHtml1">
82
  <label><?php _e('Welcome Panel Description HTML', 'white-label-cms') ?></label>
83
  <div class="wlcms-input">
84
- <textarea class="textarea-full" name="welcome_panel[0][description]"><?php echo wlcms_welcome_value(0, 'description') ?></textarea>
85
  </div>
86
  <div class="wlcms-help"><?php _e('You can add any HTML to the welcome panel.', 'white-label-cms') ?></div>
87
  </div>
@@ -169,7 +169,7 @@ $welcome_panel_is_active = wlcms_welcome_value(1, 'is_active');
169
  <div class="welcome-basicHtml2">
170
  <label><?php _e('Title of Second Panel', 'white-label-cms') ?></label>
171
  <div class="wlcms-input">
172
- <input type="text" name="welcome_panel[1][title]" value="<?php echo wlcms_welcome_value(1, 'title') ?>" />
173
  </div>
174
  <div class="wlcms-help">
175
  <?php _e('Title of the Second Panel', 'white-label-cms') ?>
@@ -179,7 +179,7 @@ $welcome_panel_is_active = wlcms_welcome_value(1, 'is_active');
179
  <div class="welcome-basicHtml2">
180
  <label><?php _e('Second Panel Description (HTML)', 'white-label-cms') ?></label>
181
  <div class="wlcms-input">
182
- <textarea class="textarea-full" name="welcome_panel[1][description]"><?php echo wlcms_welcome_value(1, 'description') ?></textarea>
183
  </div>
184
  <div class="wlcms-help"><?php _e('You can add any HTML to the second panel.', 'white-label-cms') ?></div>
185
  </div>
71
  <div class="welcome-basicHtml1">
72
  <label><?php _e('Title of Welcome Panel', 'white-label-cms') ?></label>
73
  <div class="wlcms-input">
74
+ <input type="text" name="welcome_panel[0][title]" value="<?php echo esc_attr(wlcms_welcome_value(0, 'title')) ?>" />
75
  </div>
76
  <div class="wlcms-help">
77
  <?php _e('Title of the Welcome Panel', 'white-label-cms') ?>
81
  <div class="welcome-basicHtml1">
82
  <label><?php _e('Welcome Panel Description HTML', 'white-label-cms') ?></label>
83
  <div class="wlcms-input">
84
+ <textarea class="textarea-full" name="welcome_panel[0][description]"><?php echo esc_html(wlcms_welcome_value(0, 'description')) ?></textarea>
85
  </div>
86
  <div class="wlcms-help"><?php _e('You can add any HTML to the welcome panel.', 'white-label-cms') ?></div>
87
  </div>
169
  <div class="welcome-basicHtml2">
170
  <label><?php _e('Title of Second Panel', 'white-label-cms') ?></label>
171
  <div class="wlcms-input">
172
+ <input type="text" name="welcome_panel[1][title]" value="<?php echo esc_attr(wlcms_welcome_value(1, 'title')) ?>" />
173
  </div>
174
  <div class="wlcms-help">
175
  <?php _e('Title of the Second Panel', 'white-label-cms') ?>
179
  <div class="welcome-basicHtml2">
180
  <label><?php _e('Second Panel Description (HTML)', 'white-label-cms') ?></label>
181
  <div class="wlcms-input">
182
+ <textarea class="textarea-full" name="welcome_panel[1][description]"><?php echo esc_html(wlcms_welcome_value(1, 'description')) ?></textarea>
183
  </div>
184
  <div class="wlcms-help"><?php _e('You can add any HTML to the second panel.', 'white-label-cms') ?></div>
185
  </div>
view/admin/parts/dashboard-default-panels.php CHANGED
@@ -13,7 +13,7 @@ if( ! $dashboard_role_stat) {
13
  <div class="wlcms-input-group">
14
  <label><?php _e('Dashboard Title', 'white-label-cms') ?></label>
15
  <div class="wlcms-input">
16
- <input type="text" name="dashboard_title" value="<?php echo wlcms_field_setting('dashboard_title') ?>" />
17
  </div>
18
  <div class="wlcms-help">
19
  <?php _e('Change the heading for the Dashboard', 'white-label-cms') ?>
13
  <div class="wlcms-input-group">
14
  <label><?php _e('Dashboard Title', 'white-label-cms') ?></label>
15
  <div class="wlcms-input">
16
+ <input type="text" name="dashboard_title" value="<?php echo esc_attr(wlcms_field_setting('dashboard_title')) ?>" />
17
  </div>
18
  <div class="wlcms-help">
19
  <?php _e('Change the heading for the Dashboard', 'white-label-cms') ?>
view/admin/parts/dashboard-rss-dashboard-panel.php CHANGED
@@ -12,7 +12,7 @@
12
  <div class="wlcms-input-group">
13
  <label><?php _e('RSS Title', 'white-label-cms') ?></label>
14
  <div class="wlcms-input">
15
- <input type="text" name="rss_title" value="<?php echo wlcms_field_setting('rss_title') ?>" />
16
  </div>
17
  <div class="wlcms-help">
18
  <?php _e('The title of the RSS Panel', 'white-label-cms') ?>
@@ -26,7 +26,7 @@
26
  <div class="wlcms-input-group">
27
  <label><?php _e('RSS Feed', 'white-label-cms') ?></label>
28
  <div class="wlcms-input">
29
- <input type="text" id="rss_feed_address" name="rss_feed_address" value="<?php echo wlcms_field_setting('rss_feed_address') ?>" />
30
  </div>
31
  <div class="wlcms-help">
32
  <?php _e('The RSS feed address. For example feed://' . wlcms_site_domain() . '/feed/', 'white-label-cms') ?>
@@ -40,7 +40,7 @@
40
  <?php
41
  $item_setting = wlcms_field_setting('rss_feed_number_of_item');
42
  for($item = 1; $item <= 10; $item++) {?>
43
- <option value="<?php echo $item?>" <?php echo ($item == $item_setting) ? ' selected="selected"' : '' ?>><?php echo $item?></option>
44
  <?php }?>
45
  </select>
46
  </div>
@@ -61,7 +61,7 @@
61
  <div class="wlcms-input-group">
62
  <label><?php _e('Introduction HTML', 'white-label-cms') ?></label>
63
  <div class="wlcms-input">
64
- <textarea class="textarea-full" name="rss_introduction"><?php echo wlcms_field_setting('rss_introduction') ?></textarea>
65
  </div>
66
  <div class="wlcms-help">
67
  <?php _e('Add introduction text to appear above the RSS items. You can use HTML.', 'white-label-cms') ?>
12
  <div class="wlcms-input-group">
13
  <label><?php _e('RSS Title', 'white-label-cms') ?></label>
14
  <div class="wlcms-input">
15
+ <input type="text" name="rss_title" value="<?php echo esc_attr(wlcms_field_setting('rss_title')) ?>" />
16
  </div>
17
  <div class="wlcms-help">
18
  <?php _e('The title of the RSS Panel', 'white-label-cms') ?>
26
  <div class="wlcms-input-group">
27
  <label><?php _e('RSS Feed', 'white-label-cms') ?></label>
28
  <div class="wlcms-input">
29
+ <input type="text" id="rss_feed_address" name="rss_feed_address" value="<?php echo esc_url(wlcms_field_setting('rss_feed_address')) ?>" />
30
  </div>
31
  <div class="wlcms-help">
32
  <?php _e('The RSS feed address. For example feed://' . wlcms_site_domain() . '/feed/', 'white-label-cms') ?>
40
  <?php
41
  $item_setting = wlcms_field_setting('rss_feed_number_of_item');
42
  for($item = 1; $item <= 10; $item++) {?>
43
+ <option value="<?php echo esc_attr($item)?>" <?php echo ($item == $item_setting) ? ' selected="selected"' : '' ?>><?php echo esc_attr($item)?></option>
44
  <?php }?>
45
  </select>
46
  </div>
61
  <div class="wlcms-input-group">
62
  <label><?php _e('Introduction HTML', 'white-label-cms') ?></label>
63
  <div class="wlcms-input">
64
+ <textarea class="textarea-full" name="rss_introduction"><?php echo wlcms_esc_html_e(wlcms_field_setting('rss_introduction')) ?></textarea>
65
  </div>
66
  <div class="wlcms-help">
67
  <?php _e('Add introduction text to appear above the RSS items. You can use HTML.', 'white-label-cms') ?>
view/admin/parts/login-advanced.php CHANGED
@@ -21,7 +21,7 @@
21
  <div class="wlcms-input-group">
22
  <label><?php _e('Form Background Color', 'white-label-cms') ?></label>
23
  <div class="wlcms-input">
24
- <input type="text" name="form_background_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('form_background_color') ?>" />
25
  </div>
26
  <div class="wlcms-help">
27
  <?php _e('Background color of the login form', 'white-label-cms') ?>
@@ -31,7 +31,7 @@
31
  <div class="wlcms-input-group">
32
  <label><?php _e('Form Label Color', 'white-label-cms') ?></label>
33
  <div class="wlcms-input">
34
- <input type="text" name="form_label_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('form_label_color') ?>" />
35
  </div>
36
  <div class="wlcms-help">
37
  <?php _e('Color of the labels on the login form', 'white-label-cms') ?>
@@ -41,7 +41,7 @@
41
  <div class="wlcms-input-group">
42
  <label><?php _e('Form Button Color', 'white-label-cms') ?></label>
43
  <div class="wlcms-input">
44
- <input type="text" name="form_button_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('form_button_color') ?>" />
45
  </div>
46
  <div class="wlcms-help">
47
  <?php _e('Color of the button on the login form', 'white-label-cms') ?>
@@ -51,7 +51,7 @@
51
  <div class="wlcms-input-group">
52
  <label><?php _e('Form Button Hover Color', 'white-label-cms') ?></label>
53
  <div class="wlcms-input">
54
- <input type="text" name="form_button_hover_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('form_button_hover_color') ?>" />
55
  </div>
56
  <div class="wlcms-help">
57
  <?php _e('Hover color of the button on the login form', 'white-label-cms') ?>
@@ -61,7 +61,7 @@
61
  <div class="wlcms-input-group">
62
  <label><?php _e('Form Button Text Color', 'white-label-cms') ?></label>
63
  <div class="wlcms-input">
64
- <input type="text" name="form_button_text_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('form_button_text_color') ?>" />
65
  </div>
66
  <div class="wlcms-help">
67
  <?php _e('Color of the text on the button on the login form', 'white-label-cms') ?>
@@ -71,7 +71,7 @@
71
  <div class="wlcms-input-group">
72
  <label><?php _e('Form Button Text Hover Color', 'white-label-cms') ?></label>
73
  <div class="wlcms-input">
74
- <input type="text" name="form_button_text_hover_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('form_button_text_hover_color') ?>" />
75
  </div>
76
  <div class="wlcms-help">
77
  <?php _e('Hover color of the text on the button on the login form', 'white-label-cms') ?>
@@ -81,7 +81,7 @@
81
  <div class="wlcms-input-group">
82
  <label><?php _e('Back to / Register Link Color', 'white-label-cms') ?></label>
83
  <div class="wlcms-input">
84
- <input type="text" name="back_to_register_link_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('back_to_register_link_color') ?>" />
85
  </div>
86
  <div class="wlcms-help">
87
  <?php _e('Color of the link text of Back to / Register', 'white-label-cms') ?>
@@ -91,7 +91,7 @@
91
  <div class="wlcms-input-group">
92
  <label><?php _e('Back to / Register Link Hover Color', 'white-label-cms') ?></label>
93
  <div class="wlcms-input">
94
- <input type="text" name="back_to_register_link_hover_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('back_to_register_link_hover_color') ?>" />
95
  </div>
96
  <div class="wlcms-help">
97
  <?php _e('Hover color of the link text of Back to / Register', 'white-label-cms') ?>
@@ -101,7 +101,7 @@
101
  <div class="wlcms-input-group">
102
  <label><?php _e('Privacy Policy Link Color', 'white-label-cms') ?></label>
103
  <div class="wlcms-input">
104
- <input type="text" name="privacy_policy_link_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('privacy_policy_link_color') ?>" />
105
  </div>
106
  <div class="wlcms-help">
107
  <?php _e('Color of the link text of Privacy Policy', 'white-label-cms') ?>
@@ -111,7 +111,7 @@
111
  <div class="wlcms-input-group">
112
  <label><?php _e('Privacy Policy Link Hover Color', 'white-label-cms') ?></label>
113
  <div class="wlcms-input">
114
- <input type="text" name="privacy_policy_link_hover_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('privacy_policy_link_hover_color') ?>" />
115
  </div>
116
  <div class="wlcms-help">
117
  <?php _e('Hover color of the link text of Privacy Policy', 'white-label-cms') ?>
21
  <div class="wlcms-input-group">
22
  <label><?php _e('Form Background Color', 'white-label-cms') ?></label>
23
  <div class="wlcms-input">
24
+ <input type="text" name="form_background_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('form_background_color')) ?>" />
25
  </div>
26
  <div class="wlcms-help">
27
  <?php _e('Background color of the login form', 'white-label-cms') ?>
31
  <div class="wlcms-input-group">
32
  <label><?php _e('Form Label Color', 'white-label-cms') ?></label>
33
  <div class="wlcms-input">
34
+ <input type="text" name="form_label_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('form_label_color')) ?>" />
35
  </div>
36
  <div class="wlcms-help">
37
  <?php _e('Color of the labels on the login form', 'white-label-cms') ?>
41
  <div class="wlcms-input-group">
42
  <label><?php _e('Form Button Color', 'white-label-cms') ?></label>
43
  <div class="wlcms-input">
44
+ <input type="text" name="form_button_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('form_button_color')) ?>" />
45
  </div>
46
  <div class="wlcms-help">
47
  <?php _e('Color of the button on the login form', 'white-label-cms') ?>
51
  <div class="wlcms-input-group">
52
  <label><?php _e('Form Button Hover Color', 'white-label-cms') ?></label>
53
  <div class="wlcms-input">
54
+ <input type="text" name="form_button_hover_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('form_button_hover_color')) ?>" />
55
  </div>
56
  <div class="wlcms-help">
57
  <?php _e('Hover color of the button on the login form', 'white-label-cms') ?>
61
  <div class="wlcms-input-group">
62
  <label><?php _e('Form Button Text Color', 'white-label-cms') ?></label>
63
  <div class="wlcms-input">
64
+ <input type="text" name="form_button_text_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('form_button_text_color')) ?>" />
65
  </div>
66
  <div class="wlcms-help">
67
  <?php _e('Color of the text on the button on the login form', 'white-label-cms') ?>
71
  <div class="wlcms-input-group">
72
  <label><?php _e('Form Button Text Hover Color', 'white-label-cms') ?></label>
73
  <div class="wlcms-input">
74
+ <input type="text" name="form_button_text_hover_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('form_button_text_hover_color')) ?>" />
75
  </div>
76
  <div class="wlcms-help">
77
  <?php _e('Hover color of the text on the button on the login form', 'white-label-cms') ?>
81
  <div class="wlcms-input-group">
82
  <label><?php _e('Back to / Register Link Color', 'white-label-cms') ?></label>
83
  <div class="wlcms-input">
84
+ <input type="text" name="back_to_register_link_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('back_to_register_link_color')) ?>" />
85
  </div>
86
  <div class="wlcms-help">
87
  <?php _e('Color of the link text of Back to / Register', 'white-label-cms') ?>
91
  <div class="wlcms-input-group">
92
  <label><?php _e('Back to / Register Link Hover Color', 'white-label-cms') ?></label>
93
  <div class="wlcms-input">
94
+ <input type="text" name="back_to_register_link_hover_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('back_to_register_link_hover_color')) ?>" />
95
  </div>
96
  <div class="wlcms-help">
97
  <?php _e('Hover color of the link text of Back to / Register', 'white-label-cms') ?>
101
  <div class="wlcms-input-group">
102
  <label><?php _e('Privacy Policy Link Color', 'white-label-cms') ?></label>
103
  <div class="wlcms-input">
104
+ <input type="text" name="privacy_policy_link_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('privacy_policy_link_color')) ?>" />
105
  </div>
106
  <div class="wlcms-help">
107
  <?php _e('Color of the link text of Privacy Policy', 'white-label-cms') ?>
111
  <div class="wlcms-input-group">
112
  <label><?php _e('Privacy Policy Link Hover Color', 'white-label-cms') ?></label>
113
  <div class="wlcms-input">
114
+ <input type="text" name="privacy_policy_link_hover_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('privacy_policy_link_hover_color')) ?>" />
115
  </div>
116
  <div class="wlcms-help">
117
  <?php _e('Hover color of the link text of Privacy Policy', 'white-label-cms') ?>
view/admin/parts/login-custom-css.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="wlcms-input-group">
2
  <div class="wlcms-input">
3
- <textarea class="textarea-full wlcms-css" name="login_custom_css"><?php echo esc_textarea(wlcms_field_setting('login_custom_css')) ?></textarea>
4
  </div>
5
  <div class="wlcms-help">
6
  <p><?php _e('Completely customise the login page by entering your own CSS.', 'white-label-cms') ?></p>
1
  <div class="wlcms-input-group">
2
  <div class="wlcms-input">
3
+ <textarea class="textarea-full wlcms-css" name="login_custom_css"><?php echo esc_html(wlcms_field_setting('login_custom_css')) ?></textarea>
4
  </div>
5
  <div class="wlcms-help">
6
  <p><?php _e('Completely customise the login page by entering your own CSS.', 'white-label-cms') ?></p>
view/admin/parts/login-custom-js.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="wlcms-input-group">
2
  <div class="wlcms-input">
3
- <textarea class="textarea-full wlcms-css" name="login_custom_js"><?php echo esc_textarea(wlcms_field_setting('login_custom_js')) ?></textarea>
4
  </div>
5
  <div class="wlcms-help">
6
  <p><?php _e('Completely customise the login page by entering your own Javascript code.', 'white-label-cms') ?></p>
1
  <div class="wlcms-input-group">
2
  <div class="wlcms-input">
3
+ <textarea class="textarea-full wlcms-css" name="login_custom_js"><?php echo esc_html(wlcms_field_setting('login_custom_js')) ?></textarea>
4
  </div>
5
  <div class="wlcms-help">
6
  <p><?php _e('Completely customise the login page by entering your own Javascript code.', 'white-label-cms') ?></p>
view/admin/parts/login-logo-and-background.php CHANGED
@@ -9,7 +9,7 @@
9
  <div class="wlcms-input-group">
10
  <label><?php _e('Logo Width', 'white-label-cms') ?></label>
11
  <div class="wlcms-input">
12
- <input type="number" name="logo_width" class="wlcms-upload-input" value="<?php echo wlcms_field_setting('logo_width', '') ?>" />px
13
  </div>
14
  <div class="wlcms-help">
15
  <?php _e('Add a width to your Login Logo. Max width 320px', 'white-label-cms') ?>
@@ -18,7 +18,7 @@
18
  <div class="wlcms-input-group">
19
  <label><?php _e('Logo Height', 'white-label-cms') ?></label>
20
  <div class="wlcms-input">
21
- <input type="number" name="logo_height" class="wlcms-upload-input" value="<?php echo wlcms_field_setting('logo_height', '') ?>" />px
22
  </div>
23
  <div class="wlcms-help">
24
  <?php _e('Add a height to your Login Logo.', 'white-label-cms') ?>
@@ -28,7 +28,7 @@
28
  <div class="wlcms-input-group">
29
  <label><?php _e('Logo Bottom Margin', 'white-label-cms') ?></label>
30
  <div class="wlcms-input">
31
- <input type="number" name="logo_bottom_margin" class="wlcms-upload-input" value="<?php echo wlcms_field_setting('logo_bottom_margin') ?>" />px
32
  </div>
33
  <div class="wlcms-help">
34
  <?php _e('Add a bottom margin to your Login Logo.', 'white-label-cms') ?>
@@ -38,7 +38,7 @@
38
  <div class="wlcms-input-group">
39
  <label><?php _e('Background Color', 'white-label-cms') ?></label>
40
  <div class="wlcms-input">
41
- <input type="text" name="background_color" class="wlcms-color-field" value="<?php echo wlcms_field_setting('background_color') ?>" />
42
  </div>
43
  <div class="wlcms-help">
44
  <?php _e('Background color for the login page. Changing to White will help your logo standout.', 'white-label-cms') ?>
9
  <div class="wlcms-input-group">
10
  <label><?php _e('Logo Width', 'white-label-cms') ?></label>
11
  <div class="wlcms-input">
12
+ <input type="number" name="logo_width" class="wlcms-upload-input" value="<?php echo esc_attr(wlcms_field_setting('logo_width', '')) ?>" />px
13
  </div>
14
  <div class="wlcms-help">
15
  <?php _e('Add a width to your Login Logo. Max width 320px', 'white-label-cms') ?>
18
  <div class="wlcms-input-group">
19
  <label><?php _e('Logo Height', 'white-label-cms') ?></label>
20
  <div class="wlcms-input">
21
+ <input type="number" name="logo_height" class="wlcms-upload-input" value="<?php echo esc_attr(wlcms_field_setting('logo_height', '')) ?>" />px
22
  </div>
23
  <div class="wlcms-help">
24
  <?php _e('Add a height to your Login Logo.', 'white-label-cms') ?>
28
  <div class="wlcms-input-group">
29
  <label><?php _e('Logo Bottom Margin', 'white-label-cms') ?></label>
30
  <div class="wlcms-input">
31
+ <input type="number" name="logo_bottom_margin" class="wlcms-upload-input" value="<?php echo esc_attr(wlcms_field_setting('logo_bottom_margin')) ?>" />px
32
  </div>
33
  <div class="wlcms-help">
34
  <?php _e('Add a bottom margin to your Login Logo.', 'white-label-cms') ?>
38
  <div class="wlcms-input-group">
39
  <label><?php _e('Background Color', 'white-label-cms') ?></label>
40
  <div class="wlcms-input">
41
+ <input type="text" name="background_color" class="wlcms-color-field" value="<?php echo esc_attr(wlcms_field_setting('background_color')) ?>" />
42
  </div>
43
  <div class="wlcms-help">
44
  <?php _e('Background color for the login page. Changing to White will help your logo standout.', 'white-label-cms') ?>
view/admin/parts/settings-custom-css-for-admin.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="wlcms-input-group">
2
  <div class="wlcms-input">
3
- <textarea class="textarea-full" name="settings_custom_css_admin"><?php echo wlcms_field_setting('settings_custom_css_admin') ?></textarea>
4
  </div>
5
  <div class="wlcms-help"><?php _e('Override or add to any of the styles in the WordPress admin enter your own custom css here', 'white-label-cms') ?></div>
6
  </div>
1
  <div class="wlcms-input-group">
2
  <div class="wlcms-input">
3
+ <textarea class="textarea-full" name="settings_custom_css_admin"><?php echo esc_html(wlcms_field_setting('settings_custom_css_admin')) ?></textarea>
4
  </div>
5
  <div class="wlcms-help"><?php _e('Override or add to any of the styles in the WordPress admin enter your own custom css here', 'white-label-cms') ?></div>
6
  </div>
view/admin/parts/settings-custom-editor-stylesheet.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="wlcms-input-group">
2
  <label><?php _e('Custom Stylesheet URL', 'white-label-cms') ?></label>
3
  <div class="wlcms-input">
4
- <input type="text" name="settings_custom_css_url" value="<?php echo wlcms_field_setting('settings_custom_css_url') ?>" />
5
  </div>
6
  <div class="wlcms-help">
7
  <?php _e('Create and upload a custom stylesheet with all style rules prefixed with .mceContentBody to your themes directory and enter the filename', 'white-label-cms') ?>
1
  <div class="wlcms-input-group">
2
  <label><?php _e('Custom Stylesheet URL', 'white-label-cms') ?></label>
3
  <div class="wlcms-input">
4
+ <input type="text" name="settings_custom_css_url" value="<?php echo esc_url(wlcms_field_setting('settings_custom_css_url')) ?>" />
5
  </div>
6
  <div class="wlcms-help">
7
  <?php _e('Create and upload a custom stylesheet with all style rules prefixed with .mceContentBody to your themes directory and enter the filename', 'white-label-cms') ?>
view/admin/parts/wizard-step-1.php CHANGED
@@ -18,7 +18,7 @@
18
  <div class="wlcms-input-group">
19
  <label><?php _e('Developer Name', 'white-label-cms') ?></label>
20
  <div class="wlcms-input">
21
- <input type="text" name="wizard_developer_name" value="<?php echo wlcms_field_setting('developer_name') ?>" />
22
  </div>
23
  <div class="wlcms-help">
24
  <?php _e('For use in footer and ALT text\'s.', 'white-label-cms') ?>
@@ -28,7 +28,7 @@
28
  <div class="wlcms-input-group">
29
  <label><?php _e('Developer URL', 'white-label-cms') ?></label>
30
  <div class="wlcms-input">
31
- <input type="url" name="wizard_developer_url" value="<?php echo wlcms_field_setting('developer_url') ?>" />
32
  </div>
33
  <div class="wlcms-help">
34
  <?php _e('For use in footer and admin bar.', 'white-label-cms') ?>
@@ -38,7 +38,7 @@
38
  <div class="wlcms-input-group">
39
  <label><?php _e('Footer Text', 'white-label-cms') ?></label>
40
  <div class="wlcms-input">
41
- <input type="text" name="footer_text" value="<?php echo wlcms_field_setting('footer_text') ?>" />
42
  </div>
43
  <div class="wlcms-help">
44
  <?php _e('Text which will appear to the right of the Footer Image.', 'white-label-cms') ?>
@@ -48,7 +48,7 @@
48
  <div class="wlcms-input-group">
49
  <label><?php _e('RSS Feed', 'white-label-cms') ?></label>
50
  <div class="wlcms-input">
51
- <input type="url" name="rss_feed_address" value="<?php echo wlcms_field_setting('rss_feed_address') ?>" />
52
  </div>
53
  <div class="wlcms-help">
54
  <?php _e('The RSS feed address. For example http://' . wlcms_site_domain() . '/feed/', 'white-label-cms') ?>
18
  <div class="wlcms-input-group">
19
  <label><?php _e('Developer Name', 'white-label-cms') ?></label>
20
  <div class="wlcms-input">
21
+ <input type="text" name="wizard_developer_name" value="<?php echo esc_attr(wlcms_field_setting('developer_name')) ?>" />
22
  </div>
23
  <div class="wlcms-help">
24
  <?php _e('For use in footer and ALT text\'s.', 'white-label-cms') ?>
28
  <div class="wlcms-input-group">
29
  <label><?php _e('Developer URL', 'white-label-cms') ?></label>
30
  <div class="wlcms-input">
31
+ <input type="url" name="wizard_developer_url" value="<?php echo esc_url(wlcms_field_setting('developer_url')) ?>" />
32
  </div>
33
  <div class="wlcms-help">
34
  <?php _e('For use in footer and admin bar.', 'white-label-cms') ?>
38
  <div class="wlcms-input-group">
39
  <label><?php _e('Footer Text', 'white-label-cms') ?></label>
40
  <div class="wlcms-input">
41
+ <input type="text" name="footer_text" value="<?php echo esc_attr(wlcms_field_setting('footer_text')) ?>" />
42
  </div>
43
  <div class="wlcms-help">
44
  <?php _e('Text which will appear to the right of the Footer Image.', 'white-label-cms') ?>
48
  <div class="wlcms-input-group">
49
  <label><?php _e('RSS Feed', 'white-label-cms') ?></label>
50
  <div class="wlcms-input">
51
+ <input type="url" name="rss_feed_address" value="<?php echo esc_url(wlcms_field_setting('rss_feed_address')) ?>" />
52
  </div>
53
  <div class="wlcms-help">
54
  <?php _e('The RSS feed address. For example http://' . wlcms_site_domain() . '/feed/', 'white-label-cms') ?>
view/admin/parts/wizard-step-2.php CHANGED
@@ -8,7 +8,7 @@
8
  <div class="wlcms-input-group">
9
  <label><?php _e('Clients Business Name', 'white-label-cms') ?></label>
10
  <div class="wlcms-input">
11
- <input type="text" name="client_business_name" value="<?php echo wlcms_field_setting('client_business_name') ?>" />
12
  </div>
13
  <div class="wlcms-help">
14
  <?php _e('For use in Admin Page Title and Dashboard Title.', 'white-label-cms') ?>
8
  <div class="wlcms-input-group">
9
  <label><?php _e('Clients Business Name', 'white-label-cms') ?></label>
10
  <div class="wlcms-input">
11
+ <input type="text" name="client_business_name" value="<?php echo esc_attr(wlcms_field_setting('client_business_name')) ?>" />
12
  </div>
13
  <div class="wlcms-help">
14
  <?php _e('For use in Admin Page Title and Dashboard Title.', 'white-label-cms') ?>
wlcms-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: White Label CMS
4
  Plugin URI: http://www.videousermanuals.com/white-label-cms/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
5
  Description: A plugin that allows you to brand WordPress CMS as your own
6
- Version: 2.2
7
  Author: www.videousermanuals.com
8
  Author URI: http://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
9
  Text Domain: white-label-cms
@@ -13,7 +13,7 @@ Domain Path: /languages
13
 
14
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
15
 
16
- define('WLCMS_VERSION', '2.2');
17
  define("WLCMS_DIR", plugin_dir_path(__FILE__));
18
  define("WLCMS_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
19
  define("WLCMS_BASENAME", plugin_basename(__FILE__));
3
  Plugin Name: White Label CMS
4
  Plugin URI: http://www.videousermanuals.com/white-label-cms/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
5
  Description: A plugin that allows you to brand WordPress CMS as your own
6
+ Version: 2.2.1
7
  Author: www.videousermanuals.com
8
  Author URI: http://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
9
  Text Domain: white-label-cms
13
 
14
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
15
 
16
+ define('WLCMS_VERSION', '2.2.1');
17
  define("WLCMS_DIR", plugin_dir_path(__FILE__));
18
  define("WLCMS_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
19
  define("WLCMS_BASENAME", plugin_basename(__FILE__));