Version Description
Cette version est stable / This version is stable
=
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.5
- jquery.sortable.js +3 -0
- readme.txt +5 -2
- wp-maintenance-admin.php +12 -18
- wp-maintenance.php +3 -2
jquery.sortable.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/* HTML5 Sortable (http://farhadi.ir/projects/html5sortable)
|
2 |
+
* Released under the MIT license.
|
3 |
+
*/(function(a){var b,c=a();a.fn.sortable=function(d){var e=String(d);return d=a.extend({connectWith:!1},d),this.each(function(){if(/^enable|disable|destroy$/.test(e)){var f=a(this).children(a(this).data("items")).attr("draggable",e=="enable");e=="destroy"&&f.add(this).removeData("connectWith items").off("dragstart.h5s dragend.h5s selectstart.h5s dragover.h5s dragenter.h5s drop.h5s");return}var g,h,f=a(this).children(d.items),i=a("<"+(/^ul|ol$/i.test(this.tagName)?"li":"div")+' class="sortable-placeholder">');f.find(d.handle).mousedown(function(){g=!0}).mouseup(function(){g=!1}),a(this).data("items",d.items),c=c.add(i),d.connectWith&&a(d.connectWith).add(this).data("connectWith",d.connectWith),f.attr("draggable","true").on("dragstart.h5s",function(c){if(d.handle&&!g)return!1;g=!1;var e=c.originalEvent.dataTransfer;e.effectAllowed="move",e.setData("Text","dummy"),h=(b=a(this)).addClass("sortable-dragging").index()}).on("dragend.h5s",function(){b.removeClass("sortable-dragging").show(),c.detach(),h!=b.index()&&f.parent().trigger("sortupdate",{item:b}),b=null}).not("a[href], img").on("selectstart.h5s",function(){return this.dragDrop&&this.dragDrop(),!1}).end().add([this,i]).on("dragover.h5s dragenter.h5s drop.h5s",function(e){return!f.is(b)&&d.connectWith!==a(b).parent().data("connectWith")?!0:e.type=="drop"?(e.stopPropagation(),c.filter(":visible").after(b),!1):(e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="move",f.is(this)?(d.forcePlaceholderSize&&i.height(b.outerHeight()),b.hide(),a(this)[i.index()<a(this).index()?"after":"before"](i),c.not(i).detach()):!c.is(this)&&!a(this).children(d.items).length&&(c.detach(),a(this).append(i)),!1)})})}})(jQuery);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: wordpress maintenance plugin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -65,12 +65,15 @@ Oui mais merci de me soumettre les modifications souhaitées afin de mettre à j
|
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
68 |
-
= 1.
|
69 |
Cette version est stable / This version is stable
|
70 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
74 |
= 1.4 =
|
75 |
* Correction bug maintenance.php / Resolved bug maintenance.php file
|
76 |
|
4 |
Tags: wordpress maintenance plugin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
68 |
+
= 1.5 =
|
69 |
Cette version est stable / This version is stable
|
70 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 1.5 =
|
75 |
+
* Correction bug drag&drop Réseaux Sociaux / Resolved drag&drop social networks bug
|
76 |
+
|
77 |
= 1.4 =
|
78 |
* Correction bug maintenance.php / Resolved bug maintenance.php file
|
79 |
|
wp-maintenance-admin.php
CHANGED
@@ -198,23 +198,15 @@ if($_POST['wpm_initcss']==1) {
|
|
198 |
}
|
199 |
|
200 |
?>
|
201 |
-
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
|
202 |
-
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
|
203 |
<style>
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
#pattern { text-align: left; margin: 5px 0; word-spacing: -1em;list-style-type: none; }
|
209 |
#pattern li { display: inline-block; list-style: none;margin-right:15px;text-align:center; }
|
210 |
#pattern li.current { background: #66CC00; color: #fff; }
|
211 |
</style>
|
212 |
-
<script>
|
213 |
-
$(function() {
|
214 |
-
$( "#sortable" ).sortable();
|
215 |
-
$( "#sortable" ).disableSelection();
|
216 |
-
});
|
217 |
-
</script>
|
218 |
<style type="text/css">.postbox h3 { cursor:pointer; }</style>
|
219 |
<div class="wrap">
|
220 |
|
@@ -271,24 +263,26 @@ if($_POST['wpm_initcss']==1) {
|
|
271 |
<input type="text" name="wp_maintenance_social_options[texte]" value="<?php if($paramSocialOption['texte']=='') { _e('Follow me on', 'wp-maintenance'); } else { echo stripslashes(trim($paramSocialOption['texte'])); } ?>" /><br /><br />
|
272 |
<!-- Liste des réseaux sociaux -->
|
273 |
<?php _e('Drad and drop the lines to put in the order you want:', 'wp-maintenance'); ?><br /><br />
|
|
|
274 |
<?php
|
275 |
if($paramSocial) {
|
276 |
-
?>
|
277 |
-
<ul id="sortable">
|
278 |
-
<?php
|
279 |
foreach($paramSocial as $socialName=>$socialUrl) {
|
280 |
?>
|
281 |
-
<li
|
282 |
<?php } ?>
|
283 |
-
</ul>
|
284 |
<?php
|
285 |
} else {
|
286 |
$arr = array('facebook', 'twitter', 'linkedin', 'flickr', 'youtube', 'pinterest', 'vimeo', 'instagram', 'google_plus', 'about_me');
|
287 |
foreach ($arr as &$value) {
|
288 |
-
echo '<li
|
289 |
}
|
290 |
}
|
291 |
?>
|
|
|
|
|
|
|
|
|
|
|
292 |
<br />
|
293 |
<?php _e('Choose icons size:', 'wp-maintenance'); ?>
|
294 |
<select name="wp_maintenance_social_options[size]">
|
198 |
}
|
199 |
|
200 |
?>
|
|
|
|
|
201 |
<style>
|
202 |
+
.sortable { list-style-type: none; margin: 0; padding: 0; width: 35%; }
|
203 |
+
.sortable li { padding: 0.4em; padding-left: 1.5em; height: 30px;cursor: pointer; cursor: move; }
|
204 |
+
.sortable li span { font-size: 15px;margin-right: 0.8em;cursor: move; }
|
205 |
+
.sortable li:hover { background-color: #d2d2d2; }
|
206 |
#pattern { text-align: left; margin: 5px 0; word-spacing: -1em;list-style-type: none; }
|
207 |
#pattern li { display: inline-block; list-style: none;margin-right:15px;text-align:center; }
|
208 |
#pattern li.current { background: #66CC00; color: #fff; }
|
209 |
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
<style type="text/css">.postbox h3 { cursor:pointer; }</style>
|
211 |
<div class="wrap">
|
212 |
|
263 |
<input type="text" name="wp_maintenance_social_options[texte]" value="<?php if($paramSocialOption['texte']=='') { _e('Follow me on', 'wp-maintenance'); } else { echo stripslashes(trim($paramSocialOption['texte'])); } ?>" /><br /><br />
|
264 |
<!-- Liste des réseaux sociaux -->
|
265 |
<?php _e('Drad and drop the lines to put in the order you want:', 'wp-maintenance'); ?><br /><br />
|
266 |
+
<ul class="sortable">
|
267 |
<?php
|
268 |
if($paramSocial) {
|
|
|
|
|
|
|
269 |
foreach($paramSocial as $socialName=>$socialUrl) {
|
270 |
?>
|
271 |
+
<li><span>::</span><img src="<?php echo WPM_ICONS_URL; ?>24x24/<?php echo $socialName; ?>.png" hspace="3" valign="middle" /><?php echo ucfirst($socialName); ?> <input type= "text" name="wp_maintenance_social[<?php echo $socialName; ?>]" value="<?php echo $socialUrl; ?>" onclick="select()" /></li>
|
272 |
<?php } ?>
|
|
|
273 |
<?php
|
274 |
} else {
|
275 |
$arr = array('facebook', 'twitter', 'linkedin', 'flickr', 'youtube', 'pinterest', 'vimeo', 'instagram', 'google_plus', 'about_me');
|
276 |
foreach ($arr as &$value) {
|
277 |
+
echo '<li><span>::</span><img src="'.WPM_ICONS_URL.'24x24/'.$value.'.png" valign="middle" hspace="3"/>'.ucfirst($value).' <input type= "text" name="wp_maintenance_social['.$value.']" value="'.$paramSocial[$value].'" onclick="select()" ><br />';
|
278 |
}
|
279 |
}
|
280 |
?>
|
281 |
+
</ul>
|
282 |
+
<script src="<?php echo WPM_PLUGIN_URL; ?>jquery.sortable.js"></script>
|
283 |
+
<script>
|
284 |
+
jQuery('.sortable').sortable();
|
285 |
+
</script>
|
286 |
<br />
|
287 |
<?php _e('Choose icons size:', 'wp-maintenance'); ?>
|
288 |
<select name="wp_maintenance_social_options[size]">
|
wp-maintenance.php
CHANGED
@@ -6,12 +6,13 @@ Plugin URI: http://wordpress.org/extend/plugins/wp-maintenance/
|
|
6 |
Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours / 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 and countdown.
|
7 |
Author: Florent Maillefaud
|
8 |
Author URI: http://www.restezconnectes.fr/
|
9 |
-
Version: 1.
|
10 |
*/
|
11 |
|
12 |
|
13 |
/*
|
14 |
Change Log
|
|
|
15 |
01/05/2014 - Modifs countdown et icones réseaux sociaux..
|
16 |
30/04/2014 - Ajout code analytics, icones réseaux sociaux, newletter, image de fond...
|
17 |
31/12/2013 - Ajout des couleurs des liens et d'options supplémentaires
|
@@ -55,7 +56,7 @@ function wpm_make_multilang() {
|
|
55 |
}
|
56 |
|
57 |
/* Ajoute la version dans les options */
|
58 |
-
define('WPM_VERSION', '1.
|
59 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
60 |
if( !get_option('wp_maintenance_version') ) {
|
61 |
add_option('wp_maintenance_version', $option);
|
6 |
Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours / 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 and countdown.
|
7 |
Author: Florent Maillefaud
|
8 |
Author URI: http://www.restezconnectes.fr/
|
9 |
+
Version: 1.5
|
10 |
*/
|
11 |
|
12 |
|
13 |
/*
|
14 |
Change Log
|
15 |
+
03/05/2014 - Correction bug drag&drop Réseaux Sociaux
|
16 |
01/05/2014 - Modifs countdown et icones réseaux sociaux..
|
17 |
30/04/2014 - Ajout code analytics, icones réseaux sociaux, newletter, image de fond...
|
18 |
31/12/2013 - Ajout des couleurs des liens et d'options supplémentaires
|
56 |
}
|
57 |
|
58 |
/* Ajoute la version dans les options */
|
59 |
+
define('WPM_VERSION', '1.5');
|
60 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
61 |
if( !get_option('wp_maintenance_version') ) {
|
62 |
add_option('wp_maintenance_version', $option);
|