reSmush.it Image Optimizer - Version 0.1.3

Version Description

  • Translation correction
  • News feed images correction
Download this release

Release Info

Developer maecia
Plugin Icon 128x128 reSmush.it Image Optimizer
Version 0.1.3
Comparing to
See all releases

Code changes from version 0.1.2 to 0.1.3

classes/resmushit.class.php CHANGED
@@ -44,7 +44,7 @@ Class reSmushit {
44
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
45
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, RESMUSHIT_TIMEOUT);
46
  curl_setopt($ch, CURLOPT_POST, true);
47
- curl_setopt($ch, CURLOPT_USERAGENT, "Wordpress $wp_version/Resmush.it " . RESMUSHIT_VERSION );
48
 
49
  if (!class_exists('CURLFile')) {
50
  $arg = array('files' => '@' . $file_path);
44
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
45
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, RESMUSHIT_TIMEOUT);
46
  curl_setopt($ch, CURLOPT_POST, true);
47
+ curl_setopt($ch, CURLOPT_USERAGENT, "Wordpress $wp_version/Resmush.it " . RESMUSHIT_VERSION . ' - ' . get_bloginfo('wpurl') );
48
 
49
  if (!class_exists('CURLFile')) {
50
  $arg = array('files' => '@' . $file_path);
classes/resmushitUI.class.php CHANGED
@@ -193,16 +193,18 @@ Class reSmushitUI {
193
  $data = json_decode($data_raw);
194
  if($data):
195
  foreach($data as $i=>$news):
196
- if($i > 1)
197
  break;
198
  ?>
199
  <div class="news-item">
200
  <span class="news-date"><?php echo date('d/m/Y', $news->date) ?></span>
 
201
  <div class="news-img">
202
  <a href="<?php echo $news->link ?>" target="_blank">
203
  <img src="<?php echo $news->picture ?>" />
204
  </a>
205
  </div>
 
206
  <h3><a href="<?php echo $news->link ?>" target="_blank"><?php echo $news->title ?></a></h3>
207
  <div class="news-content">
208
  <?php echo $news->content ?>
193
  $data = json_decode($data_raw);
194
  if($data):
195
  foreach($data as $i=>$news):
196
+ if($i > 2)
197
  break;
198
  ?>
199
  <div class="news-item">
200
  <span class="news-date"><?php echo date('d/m/Y', $news->date) ?></span>
201
+ <?php if($news->picture): ?>
202
  <div class="news-img">
203
  <a href="<?php echo $news->link ?>" target="_blank">
204
  <img src="<?php echo $news->picture ?>" />
205
  </a>
206
  </div>
207
+ <?php endif; ?>
208
  <h3><a href="<?php echo $news->link ?>" target="_blank"><?php echo $news->title ?></a></h3>
209
  <div class="news-content">
210
  <?php echo $news->content ?>
languages/resmushit-fr_FR.mo CHANGED
Binary file
languages/resmushit-fr_FR.po CHANGED
@@ -8,7 +8,7 @@ msgstr ""
8
  "Project-Id-Version: \n"
9
  "Report-Msgid-Bugs-To: \n"
10
  "POT-Creation-Date: 2016-08-08 16:29+0200\n"
11
- "PO-Revision-Date: 2016-08-08 17:00+0200\n"
12
  "Language-Team: \n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -28,7 +28,7 @@ msgstr "Statut de reSmush.it"
28
 
29
  #: classes/resmushitUI.class.php:90
30
  msgid "Settings"
31
- msgstr "Paramêtres"
32
 
33
  #: classes/resmushitUI.class.php:97
34
  msgid "Image quality"
8
  "Project-Id-Version: \n"
9
  "Report-Msgid-Bugs-To: \n"
10
  "POT-Creation-Date: 2016-08-08 16:29+0200\n"
11
+ "PO-Revision-Date: 2016-08-09 12:31+0200\n"
12
  "Language-Team: \n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
28
 
29
  #: classes/resmushitUI.class.php:90
30
  msgid "Settings"
31
+ msgstr "Paramètres"
32
 
33
  #: classes/resmushitUI.class.php:97
34
  msgid "Image quality"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: maecia
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
  Tested up to: 4.6.0
6
- Stable tag: 0.1.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,25 +11,29 @@ Use reSmush.it Image Optimizer to optimize your pictures file sizes. Improve you
11
 
12
  == Description ==
13
 
14
- reSmush.it Image Optimizer allow to use **free Image optimization** based on [reSmush.it API](http://www.reesmush.it/ "Image Optimization API, developped by Charles Bourgeaux"). reSmush.it provides image size reduction based on several advanced algorithms. The API accept JPG, PNG and GIF files up to **2MB**.
15
 
16
  This plugin includes a bulk operation to optimize all your pictures in 2 clicks ! Change your image optimization level to fit your needs !
17
  This service is used by **thousands** of websites on different CMS (Drupal, Joomla, Prestashop...).
18
 
 
 
 
 
19
  This plugin has been developped by [Maecia Agency](http://www.maecia.com/ "Maecia Drupal & Wordpress Agency"), Paris.
20
 
21
  == Installation ==
22
 
23
  1. Upload `resmushit-image-optimizer` to the `/wp-content/plugins/` directory.
24
  2. Activate the plugin through the 'Plugins' menu in WordPress.
25
- 3. All your news pictures will be automatically optimized !
26
 
27
 
28
  == Frequently Asked Questions ==
29
 
30
  = Is it free ? =
31
 
32
- Yes ! Absolutely free, the only restriction is to send images below 2MB.
33
 
34
  == Screenshots ==
35
 
@@ -37,6 +41,10 @@ Yes ! Absolutely free, the only restriction is to send images below 2MB.
37
 
38
  == Changelog ==
39
 
 
 
 
 
40
  = 0.1.2 =
41
  * Delete also original file when deleting an attachment
42
  * Exclusion of an attachment of the reSmush.it optimization (checkboxes)
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
  Tested up to: 4.6.0
6
+ Stable tag: 0.1.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
11
 
12
  == Description ==
13
 
14
+ reSmush.it Image Optimizer allow to use **free Image optimization** based on [reSmush.it API](http://www.reesmush.it/ "Image Optimization API, developped by Charles Bourgeaux"). reSmush.it provides image size reduction based on several advanced algorithms. The API accept JPG, PNG and GIF files up to **5MB**.
15
 
16
  This plugin includes a bulk operation to optimize all your pictures in 2 clicks ! Change your image optimization level to fit your needs !
17
  This service is used by **thousands** of websites on different CMS (Drupal, Joomla, Prestashop...).
18
 
19
+ The plugin includes an option to exclude some pictures of the optimizer.
20
+
21
+ Since Aug. 2016, reSmush.it allows to optimize pictures up to 5MB, for free !
22
+
23
  This plugin has been developped by [Maecia Agency](http://www.maecia.com/ "Maecia Drupal & Wordpress Agency"), Paris.
24
 
25
  == Installation ==
26
 
27
  1. Upload `resmushit-image-optimizer` to the `/wp-content/plugins/` directory.
28
  2. Activate the plugin through the 'Plugins' menu in WordPress.
29
+ 3. All your new pictures will be automatically optimized !
30
 
31
 
32
  == Frequently Asked Questions ==
33
 
34
  = Is it free ? =
35
 
36
+ Yes ! Absolutely free, the only restriction is to send images below 5MB.
37
 
38
  == Screenshots ==
39
 
41
 
42
  == Changelog ==
43
 
44
+ = 0.1.3 =
45
+ * Translation correction
46
+ * News feed images correction
47
+
48
  = 0.1.2 =
49
  * Delete also original file when deleting an attachment
50
  * Exclusion of an attachment of the reSmush.it optimization (checkboxes)
resmushit.php CHANGED
@@ -11,8 +11,8 @@
11
  * Plugin Name: reSmush.it Image Optimizer
12
  * Plugin URI: http://www.resmush.it
13
  * Description: Image Optimization API. Provides image size optimization
14
- * Version: 0.1.2
15
- * Timestamp: 2016.08.08
16
  * Author: Maecia
17
  * Author URI: https://www.maecia.com
18
  * Author: Charles Bourgeaux
11
  * Plugin Name: reSmush.it Image Optimizer
12
  * Plugin URI: http://www.resmush.it
13
  * Description: Image Optimization API. Provides image size optimization
14
+ * Version: 0.1.3
15
+ * Timestamp: 2016.08.09
16
  * Author: Maecia
17
  * Author URI: https://www.maecia.com
18
  * Author: Charles Bourgeaux
resmushit.settings.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
 
4
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
5
- define('RESMUSHIT_VERSION', '0.1.2');
6
  define('RESMUSHIT_DEFAULT_QLTY', '92');
7
  define('RESMUSHIT_TIMEOUT', '5');
8
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');
2
 
3
 
4
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
5
+ define('RESMUSHIT_VERSION', '0.1.3');
6
  define('RESMUSHIT_DEFAULT_QLTY', '92');
7
  define('RESMUSHIT_TIMEOUT', '5');
8
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');