Version Description
- Cross-Site Scripting (XSS) vulnerability fixed
- Bug fixed Social Icons
- Bugs minors resolved
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 6.0.6 |
Comparing to | |
See all releases |
Code changes from version 6.0.5 to 6.0.6
- classes/wp-maintenance.php +11 -6
- includes/shortcodes.php +2 -39
- readme.txt +6 -1
- socialicons/style5/128/{social-036-round_android.png → android.png} +0 -0
- socialicons/style5/128/{social-016-round_apple.png → apple.png} +0 -0
- socialicons/style5/128/{social-037-round_behance.png → behance.png} +0 -0
- socialicons/style5/128/{social-025-round_blogger.png → blogger.png} +0 -0
- socialicons/style5/128/{social-022-round_deviantart.png → deviantart.png} +0 -0
- socialicons/style5/128/{social-002-round_dribbble.png → dribbble.png} +0 -0
- socialicons/style5/128/{social-050-round_evernote.png → evernote.png} +0 -0
- socialicons/style5/128/{social-006-round_facebook.png → facebook.png} +0 -0
- socialicons/style5/128/{social-004-round_flickr.png → flickr.png} +0 -0
- socialicons/style5/128/{social-009-round_google.png → google.png} +0 -0
- socialicons/style5/128/{social-040-round_google_plus.png → google_plus.png} +0 -0
- socialicons/style5/128/{social-038-round_instagram.png → instagram.png} +0 -0
- socialicons/style5/128/{social-011-round_linkedin.png → linkedin.png} +0 -0
- socialicons/style5/128/{social-029-round_paypal.png → paypal.png} +0 -0
- socialicons/style5/128/{social-033-round_pinterest.png → pinterest.png} +0 -0
- socialicons/style5/128/{social-007-round_skype.png → skype.png} +0 -0
- socialicons/style5/128/social-005-round_twitter.png +0 -0
- socialicons/style5/128/{social-034-round_soundcloud.png → soundcloud.png} +0 -0
- socialicons/style5/128/{social-015-round_tumblr.png → tumblr.png} +0 -0
- socialicons/style5/128/{social-003-round_twitter.png → twitter.png} +0 -0
- socialicons/style5/128/{social-013-round_vimeo.png → vimeo.png} +0 -0
- socialicons/style5/128/{social-032-round_windows8.png → windows8.png} +0 -0
- socialicons/style5/128/{social-026-round_wordpress.png → wordpress.png} +0 -0
- socialicons/style5/128/{social-018-round_youtube.png → youtube.png} +0 -0
- socialicons/style5/256/{social-036-round_android.png → android.png} +0 -0
- socialicons/style5/256/{social-016-round_apple.png → apple.png} +0 -0
- socialicons/style5/256/{social-037-round_behance.png → behance.png} +0 -0
- socialicons/style5/256/{social-025-round_blogger.png → blogger.png} +0 -0
- socialicons/style5/256/{social-022_deviantart.png → deviantart.png} +0 -0
- socialicons/style5/256/{social-022-round_deviantart.png → deviantart2.png} +0 -0
- socialicons/style5/256/{social-002-round_dribbble.png → dribbble.png} +0 -0
- socialicons/style5/256/{social-050-round_evernote.png → evernote.png} +0 -0
- socialicons/style5/256/{social-006-round_facebook.png → facebook.png} +0 -0
- socialicons/style5/256/{social-004-round_flickr.png → flickr.png} +0 -0
- socialicons/style5/256/{social-040-round_google_plus.png → google_plus.png} +0 -0
- socialicons/style5/256/{social-038-round_instagram.png → instagram.png} +0 -0
- socialicons/style5/256/{social-011-round_linkedin.png → linkedin.png} +0 -0
- socialicons/style5/256/{social-029-round_paypal.png → paypal.png} +0 -0
- socialicons/style5/256/{social-033-round_pinterest.png → pinterest.png} +0 -0
- socialicons/style5/256/{social-007-round_skype.png → skype.png} +0 -0
- socialicons/style5/256/social-005-round_twitter.png +0 -0
- socialicons/style5/256/{social-034-round_soundcloud.png → soundcloud.png} +0 -0
- socialicons/style5/256/{social-015-round_tumblr.png → tumblr.png} +0 -0
- socialicons/style5/256/{social-003-round_twitter.png → twitter.png} +0 -0
- socialicons/style5/256/{social-013-round_vimeo.png → vimeo.png} +0 -0
- socialicons/style5/256/{social-032_windows8.png → windows8.png} +0 -0
- socialicons/style5/256/{social-026-round_wordpress.png → wordpress.png} +0 -0
- socialicons/style5/256/{social-018-round_youtube.png → youtube.png} +0 -0
- socialicons/style5/32/{social-036-round_android.png → android.png} +0 -0
- socialicons/style5/32/{social-016-round_apple.png → apple.png} +0 -0
- socialicons/style5/32/{social-037-round_behance.png → behance.png} +0 -0
- socialicons/style5/32/{social-025-round_blogger.png → blogger.png} +0 -0
- socialicons/style5/32/{social-022-round_deviantart.png → deviantart.png} +0 -0
- socialicons/style5/32/{social-002-round_dribbble.png → dribbble.png} +0 -0
- socialicons/style5/32/{social-050-round_evernote.png → evernote.png} +0 -0
- socialicons/style5/32/{social-006-round_facebook.png → facebook.png} +0 -0
- socialicons/style5/32/{social-004-round_flickr.png → flickr.png} +0 -0
- socialicons/style5/32/{social-009-round_google.png → google.png} +0 -0
- socialicons/style5/32/{social-040-round_google_plus.png → google_plus.png} +0 -0
- socialicons/style5/32/{social-038-round_instagram.png → instagram.png} +0 -0
- socialicons/style5/32/{social-011-round_linkedin.png → linkedin.png} +0 -0
- socialicons/style5/32/{social-029-round_paypal.png → paypal.png} +0 -0
- socialicons/style5/32/{social-033-round_pinterest.png → pinterest.png} +0 -0
- socialicons/style5/32/{social-007-round_skype.png → skype.png} +0 -0
- socialicons/style5/32/social-005-round_twitter.png +0 -0
- socialicons/style5/32/{social-034-round_soundcloud.png → soundcloud.png} +0 -0
- socialicons/style5/32/{social-015-round_tumblr.png → tumblr.png} +0 -0
- socialicons/style5/32/{social-003-round_twitter.png → twitter.png} +0 -0
- socialicons/style5/32/{social-013-round_vimeo.png → vimeo.png} +0 -0
- socialicons/style5/32/{social-032-round_windows8.png → windows8.png} +0 -0
- socialicons/style5/32/{social-026-round_wordpress.png → wordpress.png} +0 -0
- socialicons/style5/32/{social-018-round_youtube.png → youtube.png} +0 -0
- themes/default/index.php +0 -1
- themes/default/index2.php +0 -1
- views/wp-maintenance-picture.php +1 -1
- views/wp-maintenance-seo.php +1 -13
- views/wp-maintenance-settings.php +1 -1
- views/wp-maintenance-socialnetworks.php +24 -6
- wp-maintenance.php +4 -3
classes/wp-maintenance.php
CHANGED
@@ -28,7 +28,7 @@ class WP_maintenance {
|
|
28 |
|
29 |
if( is_admin() ) {
|
30 |
add_action( 'admin_menu', array( &$this, 'wpm_add_admin') );
|
31 |
-
add_filter( '
|
32 |
add_action( 'admin_head', array( &$this, 'wpm_admin_head') );
|
33 |
add_action( 'init', array( &$this, 'wpm_date_picker') );
|
34 |
add_action( 'admin_bar_menu', array( &$this, 'wpm_add_menu_admin_bar'), 999 );
|
@@ -37,8 +37,7 @@ class WP_maintenance {
|
|
37 |
add_action( 'admin_init', array( &$this, 'wpm_process_settings_export') );
|
38 |
add_action( 'after_setup_theme', array( &$this, 'wpm_theme_add_editor_styles') );
|
39 |
}
|
40 |
-
|
41 |
-
|
42 |
}
|
43 |
|
44 |
function wpm_theme_add_editor_styles() {
|
@@ -192,6 +191,15 @@ class WP_maintenance {
|
|
192 |
}
|
193 |
|
194 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
// Add "Réglages" link on plugins page
|
196 |
function wpm_plugin_actions( $links, $file ) {
|
197 |
|
@@ -767,7 +775,6 @@ class WP_maintenance {
|
|
767 |
"{Text}" => wpm_text(),
|
768 |
"{Favicon}" => wpm_favicon(),
|
769 |
"{CustomCSS}" => wpm_customcss(),
|
770 |
-
"{Analytics}" => wpm_analytics(),
|
771 |
"{TopSocialIcon}" => wpm_social_position("top"),
|
772 |
"{BottomSocialIcon}" => wpm_social_position("bottom"),
|
773 |
"{FooterText}" => wpm_footer_text(),
|
@@ -781,8 +788,6 @@ class WP_maintenance {
|
|
781 |
"{SlideshowBL}" => WPM_Slider::slidershow('belowlogo'),
|
782 |
"{SlideshowBT}" => WPM_Slider::slidershow('belowtext'),
|
783 |
"{Url}" => WPM_PLUGIN_URL
|
784 |
-
|
785 |
-
|
786 |
);
|
787 |
|
788 |
echo strtr($template, $template_tags);
|
28 |
|
29 |
if( is_admin() ) {
|
30 |
add_action( 'admin_menu', array( &$this, 'wpm_add_admin') );
|
31 |
+
add_filter( 'plugin_action_links_wp-maintenance/wp-maintenance.php', array( &$this, 'wpm_plugin_action_links'), 10, 3 );
|
32 |
add_action( 'admin_head', array( &$this, 'wpm_admin_head') );
|
33 |
add_action( 'init', array( &$this, 'wpm_date_picker') );
|
34 |
add_action( 'admin_bar_menu', array( &$this, 'wpm_add_menu_admin_bar'), 999 );
|
37 |
add_action( 'admin_init', array( &$this, 'wpm_process_settings_export') );
|
38 |
add_action( 'after_setup_theme', array( &$this, 'wpm_theme_add_editor_styles') );
|
39 |
}
|
40 |
+
|
|
|
41 |
}
|
42 |
|
43 |
function wpm_theme_add_editor_styles() {
|
191 |
}
|
192 |
|
193 |
|
194 |
+
function wpm_plugin_action_links($actions, $file, $plugin_data) {
|
195 |
+
$new_actions = array();
|
196 |
+
$new_actions[] = sprintf( '<a href="'.WPM_ADMIN_URL.'">%s</a>', __('Settings', 'wp-maintenance') );
|
197 |
+
$new_actions = array_merge($new_actions, $actions);
|
198 |
+
$uninstall_url = WPM_ADMIN_URL.'&action=uninstall&_wpnonce='.wp_create_nonce('wpm_uninstall_'.get_current_user_id().'_wpnonce');
|
199 |
+
$new_actions[] = '<span class="delete"><a href="'.$uninstall_url.'" class="delete">'.__('Uninstall','=wp-maintenance').'</a></span>';
|
200 |
+
return $new_actions;
|
201 |
+
}
|
202 |
+
|
203 |
// Add "Réglages" link on plugins page
|
204 |
function wpm_plugin_actions( $links, $file ) {
|
205 |
|
775 |
"{Text}" => wpm_text(),
|
776 |
"{Favicon}" => wpm_favicon(),
|
777 |
"{CustomCSS}" => wpm_customcss(),
|
|
|
778 |
"{TopSocialIcon}" => wpm_social_position("top"),
|
779 |
"{BottomSocialIcon}" => wpm_social_position("bottom"),
|
780 |
"{FooterText}" => wpm_footer_text(),
|
788 |
"{SlideshowBL}" => WPM_Slider::slidershow('belowlogo'),
|
789 |
"{SlideshowBT}" => WPM_Slider::slidershow('belowtext'),
|
790 |
"{Url}" => WPM_PLUGIN_URL
|
|
|
|
|
791 |
);
|
792 |
|
793 |
echo strtr($template, $template_tags);
|
includes/shortcodes.php
CHANGED
@@ -3,43 +3,6 @@
|
|
3 |
defined( 'ABSPATH' )
|
4 |
or die( 'No direct load ! ' );
|
5 |
|
6 |
-
function wpm_analytics_shortcode( $atts ) {
|
7 |
-
|
8 |
-
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
9 |
-
$paramMMode = get_option('wp_maintenance_settings');
|
10 |
-
|
11 |
-
$nameServer = '';
|
12 |
-
if( isset($_SERVER['SERVER_NAME']) ) {
|
13 |
-
$nameServer = $_SERVER['SERVER_NAME'];
|
14 |
-
}
|
15 |
-
|
16 |
-
// Attributes
|
17 |
-
extract( shortcode_atts(
|
18 |
-
array(
|
19 |
-
'enable' => 0,
|
20 |
-
'code' => $paramMMode['code_analytics'],
|
21 |
-
'domain' => ''.$nameServer.''
|
22 |
-
), $atts )
|
23 |
-
);
|
24 |
-
|
25 |
-
if( isset($code) && $code!='') {
|
26 |
-
return "
|
27 |
-
<!-- Global site tag (gtag.js) - Google Analytics -->
|
28 |
-
<script async src=\"https://www.googletagmanager.com/gtag/js?id=".$code."\"></script>
|
29 |
-
<script>
|
30 |
-
window.dataLayer = window.dataLayer || [];
|
31 |
-
function gtag(){dataLayer.push(arguments)};
|
32 |
-
gtag('js', new Date());
|
33 |
-
|
34 |
-
gtag('config', ".$code.");
|
35 |
-
</script>";
|
36 |
-
} else {
|
37 |
-
// Code
|
38 |
-
return '<!-- no analytics -->';
|
39 |
-
}
|
40 |
-
}
|
41 |
-
add_shortcode( 'wpm_analytics', 'wpm_analytics_shortcode' );
|
42 |
-
|
43 |
function wpm_social_shortcode( $atts ) {
|
44 |
|
45 |
if(get_option('wp_maintenance_social')) { extract(get_option('wp_maintenance_social')); }
|
@@ -60,7 +23,7 @@ function wpm_social_shortcode( $atts ) {
|
|
60 |
), $atts )
|
61 |
);
|
62 |
if($paramSocialOption['theme']!='') {
|
63 |
-
$srcIcon = get_stylesheet_directory_uri().'/'
|
64 |
$iconSize = 'width='.$paramSocialOption['size'];
|
65 |
} else {
|
66 |
$srcIcon = WP_CONTENT_URL.'/plugins/wp-maintenance/socialicons/'.$paramSocialOption['style'].'/'.$paramSocialOption['size'].'/';
|
@@ -70,7 +33,7 @@ function wpm_social_shortcode( $atts ) {
|
|
70 |
$contentSocial .= '<div id="wpm-social-footer" class="wpm_social"><ul class="wpm_horizontal">';
|
71 |
foreach($paramSocial as $socialName=>$socialUrl) {
|
72 |
if($socialUrl!='') {
|
73 |
-
$contentSocial .= '<li><a href="'
|
74 |
}
|
75 |
}
|
76 |
$contentSocial .='</ul></div>';
|
3 |
defined( 'ABSPATH' )
|
4 |
or die( 'No direct load ! ' );
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
function wpm_social_shortcode( $atts ) {
|
7 |
|
8 |
if(get_option('wp_maintenance_social')) { extract(get_option('wp_maintenance_social')); }
|
23 |
), $atts )
|
24 |
);
|
25 |
if($paramSocialOption['theme']!='') {
|
26 |
+
$srcIcon = get_stylesheet_directory_uri().'/'.esc_html($paramSocialOption['theme']).'/';
|
27 |
$iconSize = 'width='.$paramSocialOption['size'];
|
28 |
} else {
|
29 |
$srcIcon = WP_CONTENT_URL.'/plugins/wp-maintenance/socialicons/'.$paramSocialOption['style'].'/'.$paramSocialOption['size'].'/';
|
33 |
$contentSocial .= '<div id="wpm-social-footer" class="wpm_social"><ul class="wpm_horizontal">';
|
34 |
foreach($paramSocial as $socialName=>$socialUrl) {
|
35 |
if($socialUrl!='') {
|
36 |
+
$contentSocial .= '<li><a href="'.esc_url($socialUrl).'" target="_blank"><img src="'.esc_url($srcIcon.$socialName).'.png" alt="'.esc_html($paramSocialOption['texte']).' '.ucfirst(esc_html($socialName)).'" '.$iconSize.' title="'.esc_html($paramSocialOption['texte']).' '.ucfirst(esc_html($socialName)).'" /></a></li>';
|
37 |
}
|
38 |
}
|
39 |
$contentSocial .='</ul></div>';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://paypal.me/restezconnectes/20/
|
|
4 |
Tags: Maintenance, Construction, Launch, Coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.9
|
7 |
-
Stable tag: 6.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -71,6 +71,11 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
|
|
74 |
= 6.0.5 =
|
75 |
* Changing theme
|
76 |
* Using native CodeMirror
|
4 |
Tags: Maintenance, Construction, Launch, Coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.9
|
7 |
+
Stable tag: 6.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 6.0.6 =
|
75 |
+
* Cross-Site Scripting (XSS) vulnerability fixed
|
76 |
+
* Bug fixed Social Icons
|
77 |
+
* Bugs minors resolved
|
78 |
+
|
79 |
= 6.0.5 =
|
80 |
* Changing theme
|
81 |
* Using native CodeMirror
|
socialicons/style5/128/{social-036-round_android.png → android.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-016-round_apple.png → apple.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-037-round_behance.png → behance.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-025-round_blogger.png → blogger.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-022-round_deviantart.png → deviantart.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-002-round_dribbble.png → dribbble.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-050-round_evernote.png → evernote.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-006-round_facebook.png → facebook.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-004-round_flickr.png → flickr.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-009-round_google.png → google.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-040-round_google_plus.png → google_plus.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-038-round_instagram.png → instagram.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-011-round_linkedin.png → linkedin.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-029-round_paypal.png → paypal.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-033-round_pinterest.png → pinterest.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-007-round_skype.png → skype.png}
RENAMED
File without changes
|
socialicons/style5/128/social-005-round_twitter.png
DELETED
Binary file
|
socialicons/style5/128/{social-034-round_soundcloud.png → soundcloud.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-015-round_tumblr.png → tumblr.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-003-round_twitter.png → twitter.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-013-round_vimeo.png → vimeo.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-032-round_windows8.png → windows8.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-026-round_wordpress.png → wordpress.png}
RENAMED
File without changes
|
socialicons/style5/128/{social-018-round_youtube.png → youtube.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-036-round_android.png → android.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-016-round_apple.png → apple.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-037-round_behance.png → behance.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-025-round_blogger.png → blogger.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-022_deviantart.png → deviantart.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-022-round_deviantart.png → deviantart2.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-002-round_dribbble.png → dribbble.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-050-round_evernote.png → evernote.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-006-round_facebook.png → facebook.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-004-round_flickr.png → flickr.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-040-round_google_plus.png → google_plus.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-038-round_instagram.png → instagram.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-011-round_linkedin.png → linkedin.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-029-round_paypal.png → paypal.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-033-round_pinterest.png → pinterest.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-007-round_skype.png → skype.png}
RENAMED
File without changes
|
socialicons/style5/256/social-005-round_twitter.png
DELETED
Binary file
|
socialicons/style5/256/{social-034-round_soundcloud.png → soundcloud.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-015-round_tumblr.png → tumblr.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-003-round_twitter.png → twitter.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-013-round_vimeo.png → vimeo.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-032_windows8.png → windows8.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-026-round_wordpress.png → wordpress.png}
RENAMED
File without changes
|
socialicons/style5/256/{social-018-round_youtube.png → youtube.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-036-round_android.png → android.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-016-round_apple.png → apple.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-037-round_behance.png → behance.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-025-round_blogger.png → blogger.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-022-round_deviantart.png → deviantart.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-002-round_dribbble.png → dribbble.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-050-round_evernote.png → evernote.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-006-round_facebook.png → facebook.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-004-round_flickr.png → flickr.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-009-round_google.png → google.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-040-round_google_plus.png → google_plus.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-038-round_instagram.png → instagram.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-011-round_linkedin.png → linkedin.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-029-round_paypal.png → paypal.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-033-round_pinterest.png → pinterest.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-007-round_skype.png → skype.png}
RENAMED
File without changes
|
socialicons/style5/32/social-005-round_twitter.png
DELETED
Binary file
|
socialicons/style5/32/{social-034-round_soundcloud.png → soundcloud.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-015-round_tumblr.png → tumblr.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-003-round_twitter.png → twitter.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-013-round_vimeo.png → vimeo.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-032-round_windows8.png → windows8.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-026-round_wordpress.png → wordpress.png}
RENAMED
File without changes
|
socialicons/style5/32/{social-018-round_youtube.png → youtube.png}
RENAMED
File without changes
|
themes/default/index.php
CHANGED
@@ -33,7 +33,6 @@
|
|
33 |
div.conteneur > span { zoom:1; /* layout */ }
|
34 |
</style>
|
35 |
<![endif]-->
|
36 |
-
{Analytics}
|
37 |
{HeaderCode}
|
38 |
{SliderCSS}
|
39 |
{ScriptSlider}
|
33 |
div.conteneur > span { zoom:1; /* layout */ }
|
34 |
</style>
|
35 |
<![endif]-->
|
|
|
36 |
{HeaderCode}
|
37 |
{SliderCSS}
|
38 |
{ScriptSlider}
|
themes/default/index2.php
CHANGED
@@ -12,7 +12,6 @@
|
|
12 |
<link rel="stylesheet" href="{Url}themes/default/css/styles.css" media="all">
|
13 |
{CustomCSS}
|
14 |
{AddStyleWysija}
|
15 |
-
{Analytics}
|
16 |
{HeaderCode}
|
17 |
{SliderCSS}
|
18 |
{ScriptSlider}
|
12 |
<link rel="stylesheet" href="{Url}themes/default/css/styles.css" media="all">
|
13 |
{CustomCSS}
|
14 |
{AddStyleWysija}
|
|
|
15 |
{HeaderCode}
|
16 |
{SliderCSS}
|
17 |
{ScriptSlider}
|
views/wp-maintenance-picture.php
CHANGED
@@ -228,7 +228,7 @@ function toggleTable(texte) {
|
|
228 |
<label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Slider options', 'wp-maintenance'); ?></label>
|
229 |
<?php
|
230 |
|
231 |
-
if( $paramSlider!==
|
232 |
|
233 |
if( $paramSlider['slider_image'] ) {
|
234 |
$lastKeySlide = key($paramSlider['slider_image']);
|
228 |
<label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Slider options', 'wp-maintenance'); ?></label>
|
229 |
<?php
|
230 |
|
231 |
+
if( isset($paramSlider) && $paramSlider!==false ) {
|
232 |
|
233 |
if( $paramSlider['slider_image'] ) {
|
234 |
$lastKeySlide = key($paramSlider['slider_image']);
|
views/wp-maintenance-seo.php
CHANGED
@@ -78,23 +78,11 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
78 |
<?php if( isset($paramMMode['favicon']) && $paramMMode['favicon']!='' ) { ?>
|
79 |
<div class="wp-maintenance-encadre">
|
80 |
<?php _e('You use this favicon:', 'wp-maintenance'); ?><br />
|
81 |
-
<img src="<?php echo $paramMMode['favicon']; ?>" width="100" /><br />
|
82 |
</div>
|
83 |
<?php } ?>
|
84 |
</div>
|
85 |
<p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
|
86 |
-
</div>
|
87 |
-
|
88 |
-
<!-- GOOGLE ANALYTICS -->
|
89 |
-
<div class="wp-maintenance-module-options-block">
|
90 |
-
|
91 |
-
<div class="wp-maintenance-settings-section-header"><h3 class="wp-maintenance-settings-section-title" id="module-import_export"><?php _e('Analytics Code', 'wp-maintenance'); ?></h3></div>
|
92 |
-
<div class="wp-maintenance-setting-row">
|
93 |
-
<label for="wp_maintenance_settings[codeanalytics]" class="wp-maintenance-setting-row-title"><?php _e('Enter your analytics tracking code here:', 'wp-maintenance'); ?></label>
|
94 |
-
<textarea name="wp_maintenance_settings[codeanalytics]" wrap="off" class="wp-maintenance-input" rows="5%" cols="80%"><?php if( isset($paramMMode['codeanalytics']) && $paramMMode['codeanalytics']!='' ) { echo esc_html($paramMMode['codeanalytics']); } ?></textarea>
|
95 |
-
</div>
|
96 |
-
<p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
|
97 |
-
|
98 |
</div>
|
99 |
</form>
|
100 |
</div>
|
78 |
<?php if( isset($paramMMode['favicon']) && $paramMMode['favicon']!='' ) { ?>
|
79 |
<div class="wp-maintenance-encadre">
|
80 |
<?php _e('You use this favicon:', 'wp-maintenance'); ?><br />
|
81 |
+
<img src="<?php echo esc_url($paramMMode['favicon']); ?>" width="100" /><br />
|
82 |
</div>
|
83 |
<?php } ?>
|
84 |
</div>
|
85 |
<p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
</div>
|
87 |
</form>
|
88 |
</div>
|
views/wp-maintenance-settings.php
CHANGED
@@ -79,7 +79,7 @@ jQuery(document).ready(function() {
|
|
79 |
|
80 |
</p>
|
81 |
<div class="wp-maintenance-setting-row">
|
82 |
-
<?php _e('You can use this shortcode to include
|
83 |
</div>
|
84 |
|
85 |
<!-- DELETE OPTION IF DEACTIVATED -->
|
79 |
|
80 |
</p>
|
81 |
<div class="wp-maintenance-setting-row">
|
82 |
+
<?php _e('You can use this shortcode to include Social Networks icons:', 'wp-maintenance'); ?> <input type="text" value="do_shortcode('[wpm_social]');" onclick="select()" style="width:250px;" />
|
83 |
</div>
|
84 |
|
85 |
<!-- DELETE OPTION IF DEACTIVATED -->
|
views/wp-maintenance-socialnetworks.php
CHANGED
@@ -3,8 +3,9 @@
|
|
3 |
defined( 'ABSPATH' ) or die( 'Not allowed' );
|
4 |
|
5 |
$messageUpdate = 0;
|
|
|
6 |
/* Update des paramètres */
|
7 |
-
if( isset($_POST['action']) && $_POST['action'] == 'update_footer' && wp_verify_nonce($_POST['security-
|
8 |
|
9 |
if( isset($_POST["wp_maintenance_social_options"]['reset']) && $_POST["wp_maintenance_social_options"]['reset'] ==1 ) {
|
10 |
unset($_POST["wp_maintenance_social"]);
|
@@ -12,7 +13,19 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_footer' && wp_verify_
|
|
12 |
}
|
13 |
if( empty($_POST["wp_maintenance_social_options"]["enable"]) ) { $_POST["wp_maintenance_social_options"]["enable"] = 0; }
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
update_option('wp_maintenance_social_options', $_POST["wp_maintenance_social_options"]);
|
17 |
|
18 |
$messageUpdate = 1;
|
@@ -45,7 +58,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
45 |
|
46 |
<form method="post" action="" id="valide_settings" name="valide_settings">
|
47 |
<input type="hidden" name="action" value="update_footer" />
|
48 |
-
<?php wp_nonce_field('valid-
|
49 |
|
50 |
<!-- LINK TO LOGIN -->
|
51 |
<div class="wp-maintenance-module-options-block">
|
@@ -94,7 +107,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
94 |
|
95 |
$entryValue = '';
|
96 |
if( isset($paramSocial[$iconSocial]) ) { $entryValue = $paramSocial[$iconSocial]; }
|
97 |
-
echo '<li><span>::</span><img src="'.$linkIcon.'" valign="middle" hspace="3"/>'.ucfirst($iconSocial).' <input type="text" size="50" name="wp_maintenance_social['.$iconSocial.']" value="'.esc_url($entryValue).'" onclick="select()" ><br />';
|
98 |
}
|
99 |
|
100 |
?>
|
@@ -155,7 +168,12 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
155 |
|
156 |
<div class="wp-maintenance-setting-row">
|
157 |
<label for="wp_maintenance_social_options[theme]" class="wp-maintenance-setting-row-title"><?php _e('You have your own icons? Enter the folder name of your theme here', 'wp-maintenance'); ?></label>
|
158 |
-
<strong><?php echo get_stylesheet_directory_uri(); ?>/</strong><input type="text" value="<?php if( isset($paramSocialOption['theme']) && $paramSocialOption['theme']!='' ) { echo
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
160 |
|
161 |
<p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
|
@@ -167,7 +185,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
167 |
</div>
|
168 |
<p>
|
169 |
<label class="wp-maintenance-container"><span class="wp-maintenance-label-text"><?php _e('Yes, reset Social Networks Icons?', 'wp-maintenance'); ?></span>
|
170 |
-
<input type="checkbox" name="wp_maintenance_social_options[reset]" value="1"
|
171 |
<span class="wp-maintenance-checkmark"></span>
|
172 |
</label>
|
173 |
</p>
|
3 |
defined( 'ABSPATH' ) or die( 'Not allowed' );
|
4 |
|
5 |
$messageUpdate = 0;
|
6 |
+
|
7 |
/* Update des paramètres */
|
8 |
+
if( isset($_POST['action']) && $_POST['action'] == 'update_footer' && wp_verify_nonce($_POST['security-socialn'], 'valid-socialn') ) {
|
9 |
|
10 |
if( isset($_POST["wp_maintenance_social_options"]['reset']) && $_POST["wp_maintenance_social_options"]['reset'] ==1 ) {
|
11 |
unset($_POST["wp_maintenance_social"]);
|
13 |
}
|
14 |
if( empty($_POST["wp_maintenance_social_options"]["enable"]) ) { $_POST["wp_maintenance_social_options"]["enable"] = 0; }
|
15 |
|
16 |
+
//var_dump($_POST["wp_maintenance_social"]);
|
17 |
+
$listSocial = $_POST["wp_maintenance_social"];
|
18 |
+
$listInsertSocial = array();
|
19 |
+
foreach($listSocial as $title => $value ) {
|
20 |
+
$find_social_url = strpos($value, $title);
|
21 |
+
if ($find_social_url === false) {
|
22 |
+
|
23 |
+
} else {
|
24 |
+
$listInsertSocial[$title] = strip_tags( stripslashes( filter_var($value, FILTER_VALIDATE_URL) ) );
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
+
update_option('wp_maintenance_social', $listInsertSocial);
|
29 |
update_option('wp_maintenance_social_options', $_POST["wp_maintenance_social_options"]);
|
30 |
|
31 |
$messageUpdate = 1;
|
58 |
|
59 |
<form method="post" action="" id="valide_settings" name="valide_settings">
|
60 |
<input type="hidden" name="action" value="update_footer" />
|
61 |
+
<?php wp_nonce_field('valid-socialn', 'security-socialn'); ?>
|
62 |
|
63 |
<!-- LINK TO LOGIN -->
|
64 |
<div class="wp-maintenance-module-options-block">
|
107 |
|
108 |
$entryValue = '';
|
109 |
if( isset($paramSocial[$iconSocial]) ) { $entryValue = $paramSocial[$iconSocial]; }
|
110 |
+
echo '<li><span>::</span><img src="'.$linkIcon.'" valign="middle" hspace="3" name="'.$iconSocial.'.png" title="'.$iconSocial.'.png"/>'.ucfirst($iconSocial).' <input type="text" size="50" name="wp_maintenance_social['.$iconSocial.']" value="'.esc_url($entryValue).'" onclick="select()" ><br />';
|
111 |
}
|
112 |
|
113 |
?>
|
168 |
|
169 |
<div class="wp-maintenance-setting-row">
|
170 |
<label for="wp_maintenance_social_options[theme]" class="wp-maintenance-setting-row-title"><?php _e('You have your own icons? Enter the folder name of your theme here', 'wp-maintenance'); ?></label>
|
171 |
+
<strong><?php echo get_stylesheet_directory_uri(); ?>/</strong><input type="text" value="<?php if( isset($paramSocialOption['theme']) && $paramSocialOption['theme']!='' ) { echo esc_html($paramSocialOption['theme']); } ?>" name="wp_maintenance_social_options[theme]" /><strong>/facebook.png</strong><br />
|
172 |
+
<p><i><?php _e("In your icon's folder child theme, you must have the same names like mine, let's mouse over list icons for display picture's name. For example: ", 'wp-maintenance'); ?>'facebook.png'.</i></p><br />
|
173 |
+
<?php if( isset($paramSocialOption['theme']) && $paramSocialOption['theme']!='' ) { ?>
|
174 |
+
<label for="wp_maintenance_social_options[position]" class="wp-maintenance-setting-row-title"><?php _e('You use this picture:', 'wp-maintenance'); ?></label><br />
|
175 |
+
<img src=" <?php echo esc_url(get_stylesheet_directory_uri().'/'.$paramSocialOption['theme'].'/facebook.png'); ?>" width="64"/>
|
176 |
+
<?php } ?>
|
177 |
</div>
|
178 |
|
179 |
<p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
|
185 |
</div>
|
186 |
<p>
|
187 |
<label class="wp-maintenance-container"><span class="wp-maintenance-label-text"><?php _e('Yes, reset Social Networks Icons?', 'wp-maintenance'); ?></span>
|
188 |
+
<input type="checkbox" name="wp_maintenance_social_options[reset]" value="1">
|
189 |
<span class="wp-maintenance-checkmark"></span>
|
190 |
</label>
|
191 |
</p>
|
wp-maintenance.php
CHANGED
@@ -5,12 +5,12 @@
|
|
5 |
* Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
|
6 |
* Author: Florent Maillefaud
|
7 |
* Author URI: https://madeby.restezconnectes.fr
|
8 |
-
* Version: 6.0.
|
9 |
* Text Domain: wp-maintenance
|
10 |
* Domain Path: /languages/
|
11 |
*/
|
12 |
|
13 |
-
/* Copyright 2007-
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
@@ -35,8 +35,9 @@ define( 'WPM_URL', plugin_dir_url( __FILE__ ) );
|
|
35 |
define( 'WPM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
36 |
define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
|
37 |
define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
|
|
|
38 |
|
39 |
-
if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '6.0.
|
40 |
|
41 |
require WPM_DIR . 'classes/wp-maintenance.php';
|
42 |
require WPM_DIR . 'classes/slider.php';
|
5 |
* Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
|
6 |
* Author: Florent Maillefaud
|
7 |
* Author URI: https://madeby.restezconnectes.fr
|
8 |
+
* Version: 6.0.6
|
9 |
* Text Domain: wp-maintenance
|
10 |
* Domain Path: /languages/
|
11 |
*/
|
12 |
|
13 |
+
/* Copyright 2007-2022 Florent Maillefaud (email: contact at restezconnectes.fr)
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
35 |
define( 'WPM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
36 |
define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
|
37 |
define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
|
38 |
+
define( 'WPM_ADMIN_URL', admin_url().'admin.php?page=wp-maintenance'); //we assume the admin url is absolute with at least one querystring
|
39 |
|
40 |
+
if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '6.0.6' ); }
|
41 |
|
42 |
require WPM_DIR . 'classes/wp-maintenance.php';
|
43 |
require WPM_DIR . 'classes/slider.php';
|