WP Maintenance - Version 6.0.4

Version Description

  • Adding Width and Height for image
Download this release

Release Info

Developer Florent73
Plugin Icon 128x128 WP Maintenance
Version 6.0.4
Comparing to
See all releases

Code changes from version 6.0.3 to 6.0.4

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.8
7
- Stable tag: 6.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,9 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 6.0.3 =
75
  * Bug fixed Error Notice
76
  * Bugs minors resolved
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 5.8
7
+ Stable tag: 6.0.4
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.4 =
75
+ * Adding Width and Height for image
76
+
77
  = 6.0.3 =
78
  * Bug fixed Error Notice
79
  * Bugs minors resolved
themes/default/functions.php CHANGED
@@ -124,7 +124,7 @@ function wpm_logo() {
124
  if ( !empty( $o['image'] ) ) {
125
  if( empty($o['image_width']) ) { $o['image_width'] = 450; }
126
  if( empty($o['image_height']) ) { $o['image_height'] = 450; }
127
- $output .= "<div id='logo'><img id='wpm-image' src='".esc_url($o['image'])."' width='".$o['image_width']."' height='".$o['image_height']."' alt='".get_bloginfo( 'name', 'display' )." ".get_bloginfo( 'description', 'display' )."' title='".get_bloginfo( 'name', 'display' )." ".get_bloginfo( 'description', 'display' )."'></div>";
128
  }
129
 
130
  return $output;
124
  if ( !empty( $o['image'] ) ) {
125
  if( empty($o['image_width']) ) { $o['image_width'] = 450; }
126
  if( empty($o['image_height']) ) { $o['image_height'] = 450; }
127
+ $output .= "<div id='logo'><img id='wpm-image' src='".esc_url($o['image'])."' width='".$o['image_width']."px' height='".$o['image_height']."px' alt='".get_bloginfo( 'name', 'display' )." ".get_bloginfo( 'description', 'display' )."' title='".get_bloginfo( 'name', 'display' )." ".get_bloginfo( 'description', 'display' )."' style='width:".$o['image_width']."px!important;height:".$o['image_height']."px!important;'></div>";
128
  }
129
 
130
  return $output;
views/wp-maintenance-picture.php CHANGED
@@ -103,7 +103,9 @@ function toggleTable(texte) {
103
  <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Enter a URL or upload an image', 'wp-maintenance'); ?></label>
104
  <input id="settings_image"name="wp_maintenance_settings[image]" value="<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { echo esc_url($paramMMode['image']); } ?>" type="hidden" />
105
  <input id="upload_image" size="65%" name="upload_picture" value="" type="text" /> <a href="#" id="upload_image_button" class="wp-maintenance-button-primary" OnClick="this.blur();"><?php _e('Media Image Library', 'wp-maintenance'); ?></a><br />
106
- <span class="description"><?php _e( 'URL path to image to replace default picture. (You can upload your image with the WordPress media uploader)', 'wp-maintenance' ); ?></span>
 
 
107
  <div class="wp-maintenance-encadre">
108
  <?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
109
  <?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" /><br /><input type="checkbox" name="remove_image" value="1" /> <?php _e('Remove', 'wp-maintenance'); ?>
103
  <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Enter a URL or upload an image', 'wp-maintenance'); ?></label>
104
  <input id="settings_image"name="wp_maintenance_settings[image]" value="<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { echo esc_url($paramMMode['image']); } ?>" type="hidden" />
105
  <input id="upload_image" size="65%" name="upload_picture" value="" type="text" /> <a href="#" id="upload_image_button" class="wp-maintenance-button-primary" OnClick="this.blur();"><?php _e('Media Image Library', 'wp-maintenance'); ?></a><br />
106
+ <span class="description"><?php _e( 'URL path to image to replace default picture. (You can upload your image with the WordPress media uploader)', 'wp-maintenance' ); ?></span><br />
107
+ <label for="wp_maintenance_settings[image_width]" class="wp-maintenance-setting-row-title"><?php _e( 'Width:', 'wp-maintenance' ); ?></label> <input type="text" value="<?php if( isset($paramMMode['image_width']) && $paramMMode['image_width']!='' ) { echo esc_html($paramMMode['image_width']); } ?>" size="4" name="wp_maintenance_settings[image_width]" />px <br />
108
+ <label for="wp_maintenance_settings[image_height]" class="wp-maintenance-setting-row-title"><?php _e( 'Height:', 'wp-maintenance' ); ?></label> <input type="text" size="4" value="<?php if( isset($paramMMode['image_height']) && $paramMMode['image_height']!='' ) { echo esc_html($paramMMode['image_height']); } ?>" name="wp_maintenance_settings[image_height]" />px<br />
109
  <div class="wp-maintenance-encadre">
110
  <?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
111
  <?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" /><br /><input type="checkbox" name="remove_image" value="1" /> <?php _e('Remove', 'wp-maintenance'); ?>
wp-maintenance.php CHANGED
@@ -5,7 +5,7 @@
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.3
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
@@ -36,7 +36,7 @@ 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.3' ); }
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.4
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
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.4' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';