Version Description
Made the plugin translate ready
Download this release
Release Info
Developer | turcuciprian |
Plugin | reGenerate Thumbnails Advanced |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- rest.php → inc/rest.php +0 -0
- readme.txt +23 -4
- regenerate-thumbnails-advanced.php +24 -24
- style.css +1 -0
rest.php → inc/rest.php
RENAMED
File without changes
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== reGenerate Thumbnails Advanced ===
|
2 |
Contributors: turcuciprian
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MU4RJNNF74QKY
|
4 |
-
Tags: thumbnail, thumbnails, regenerate , easy, day, week, month, advanced
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,7 +18,8 @@ https://www.youtube.com/watch?v=a5F5OsWZC28
|
|
18 |
|
19 |
A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
20 |
If you install a new theme, it might have different image sizes it wants to use. those image sizes are cropped and resized into thumbnails only when you upload new images. So what happens with your old images?
|
21 |
-
the ones you already uploaded? They need to be regenerated, this is what this plugin does. It takes each image and generates the thumbnails for each and every one of them.
|
|
|
22 |
|
23 |
|
24 |
Features:
|
@@ -26,7 +27,9 @@ Features:
|
|
26 |
* You can select a period in time for the images to be regenerated from
|
27 |
* The period is last day, last week, last month or all
|
28 |
* Clean simple interface where you have a progress bar showing you the percentage of images regenerated
|
29 |
-
* You get to see the total number of images affected by your period, as well as the images
|
|
|
|
|
30 |
|
31 |
== Installation ==
|
32 |
|
@@ -139,8 +142,21 @@ Added tutorial on generate page.
|
|
139 |
= 1.4.2 =
|
140 |
Updated some tags, no functionality changed
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
== Upgrade Notice ==
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
= 0.7 =
|
145 |
No issues have been detected since this is the first version that's out there. Please report any issues
|
146 |
|
@@ -228,3 +244,6 @@ Added functionality
|
|
228 |
|
229 |
= 1.3.3 =
|
230 |
Requests are being done trough REST API's now
|
|
|
|
|
|
1 |
=== reGenerate Thumbnails Advanced ===
|
2 |
Contributors: turcuciprian
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MU4RJNNF74QKY
|
4 |
+
Tags: thumbnail, thumbnails, regenerate , easy, day, week, month, advanced, easy, intuitive, media, oneclick, singleclick, image, images, pdf
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.4.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
|
19 |
A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
20 |
If you install a new theme, it might have different image sizes it wants to use. those image sizes are cropped and resized into thumbnails only when you upload new images. So what happens with your old images?
|
21 |
+
the ones you already uploaded? They need to be regenerated, this is what this plugin does. It takes each image and generates the thumbnails for each and every one of them.You have the ability to regenerate thumbnails for a aspecific image
|
22 |
+
by cicking a added button on the media page. You will not be redirected to another page, everything happens on that page with REST api and ajax.
|
23 |
|
24 |
|
25 |
Features:
|
27 |
* You can select a period in time for the images to be regenerated from
|
28 |
* The period is last day, last week, last month or all
|
29 |
* Clean simple interface where you have a progress bar showing you the percentage of images regenerated
|
30 |
+
* You get to see the total number of images affected by your period, as well as the images affected so far when processing
|
31 |
+
* You can regenerate individual image withouth navigating away from the page, everything happening on the media page with 1 click of the image you want to modify
|
32 |
+
* plugin is available for translation in any language with the rta text domain.
|
33 |
|
34 |
== Installation ==
|
35 |
|
142 |
= 1.4.2 =
|
143 |
Updated some tags, no functionality changed
|
144 |
|
145 |
+
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
== Upgrade Notice ==
|
153 |
|
154 |
+
= 1.4.2.1 =
|
155 |
+
Changed tags again, testing.
|
156 |
+
|
157 |
+
= 1.4.3 =
|
158 |
+
Made the plugin translate ready
|
159 |
+
|
160 |
= 0.7 =
|
161 |
No issues have been detected since this is the first version that's out there. Please report any issues
|
162 |
|
244 |
|
245 |
= 1.3.3 =
|
246 |
Requests are being done trough REST API's now
|
247 |
+
|
248 |
+
= 1.4.3 =
|
249 |
+
Does not impact functionality
|
regenerate-thumbnails-advanced.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: reGenerate Thumbnails - advanced
|
4 |
Plugin URI: http://ciprianturcu.com
|
5 |
Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
6 |
-
Version: 1.4.
|
7 |
Author: turcuciprian
|
8 |
Author URI: http://ciprianturcu.com
|
9 |
License: GPLv2 or later
|
@@ -11,8 +11,9 @@
|
|
11 |
*/
|
12 |
|
13 |
//Global variables for arguments
|
14 |
-
require_once("rest.php");
|
15 |
require_once("mediaRows.php");
|
|
|
16 |
class cc {
|
17 |
|
18 |
// create basic page in the admin panel, with menu settings too
|
@@ -34,7 +35,7 @@ class cc {
|
|
34 |
global $cc_args;
|
35 |
$args = $cc_args;
|
36 |
// Add a new submenu under Tools:
|
37 |
-
add_options_page(__('reGenerate Thumbnails Advanced', '
|
38 |
return true;
|
39 |
}
|
40 |
|
@@ -60,54 +61,53 @@ class cc {
|
|
60 |
?>
|
61 |
<!--GTA wrap START -->
|
62 |
<div id="rta">
|
63 |
-
<div id="no-js">
|
64 |
-
<h1
|
65 |
-
<p
|
66 |
</div>
|
67 |
<div id="js-works" class="hidden">
|
68 |
-
<h2
|
69 |
<!--Progress bar-->
|
70 |
<div id="progressbar">
|
71 |
<div class="progress-label">0%</div>
|
72 |
</div>
|
73 |
<!--Information section-->
|
74 |
<div class="info">
|
75 |
-
Total number of images: <span class="total">0</span><br/>
|
76 |
-
Images processed:
|
77 |
<!--Could not process: <span class="errors">0</span> Images<br/>-->
|
78 |
</div>
|
79 |
<!--Dropdown-->
|
80 |
<h3>Select a period</h3>
|
81 |
<select name="period" id="rta_period">
|
82 |
<!--get all the images in the database-->
|
83 |
-
<option value="0"
|
84 |
-
<option value="1"
|
85 |
-
<option value="2"
|
86 |
-
<option value="3"
|
87 |
-
<option value="4"
|
88 |
</select>
|
89 |
<div class="fromTo hidden">
|
90 |
-
<p><span
|
91 |
-
<p><span
|
92 |
</div>
|
93 |
<p class="submit">
|
94 |
-
<button class="button button-primary RTA"
|
95 |
<div class="wrap">
|
96 |
-
<h3
|
97 |
<div class="logstatus ui-widget-content">
|
98 |
-
Nothing processed yet
|
99 |
</div>
|
100 |
</div><!--where the errors show -->
|
101 |
<div class="wrap">
|
102 |
-
<h3
|
103 |
<div class="errors ui-widget-content">
|
104 |
-
No errors to display yet
|
105 |
</div><!-- where the errors show -->
|
106 |
</p>
|
107 |
</div>
|
108 |
<div class="tutorial">
|
109 |
-
<
|
110 |
-
<iframe width="560" height="315" src="https://www.youtube.com/embed/a5F5OsWZC28" frameborder="0" allowfullscreen></iframe>
|
111 |
</div>
|
112 |
|
113 |
</div>
|
@@ -121,7 +121,7 @@ class cc {
|
|
121 |
|
122 |
public function add_settings_link($links) {
|
123 |
$mylinks = array(
|
124 |
-
'<a href="' . admin_url('options-general.php?page=regenerate_thumbnails_advanced') . '">Settings</a>',
|
125 |
);
|
126 |
return array_merge($links, $mylinks);
|
127 |
}
|
3 |
Plugin Name: reGenerate Thumbnails - advanced
|
4 |
Plugin URI: http://ciprianturcu.com
|
5 |
Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
6 |
+
Version: 1.4.3
|
7 |
Author: turcuciprian
|
8 |
Author URI: http://ciprianturcu.com
|
9 |
License: GPLv2 or later
|
11 |
*/
|
12 |
|
13 |
//Global variables for arguments
|
14 |
+
require_once("inc/rest.php");
|
15 |
require_once("mediaRows.php");
|
16 |
+
|
17 |
class cc {
|
18 |
|
19 |
// create basic page in the admin panel, with menu settings too
|
35 |
global $cc_args;
|
36 |
$args = $cc_args;
|
37 |
// Add a new submenu under Tools:
|
38 |
+
add_options_page(__('reGenerate Thumbnails Advanced', 'rta'), __('Regenerate Thumbnails', 'rta'), 'administrator', 'regenerate_thumbnails_advanced', array($this, 'create_page_callback'));
|
39 |
return true;
|
40 |
}
|
41 |
|
61 |
?>
|
62 |
<!--GTA wrap START -->
|
63 |
<div id="rta">
|
64 |
+
<div id="no-js">
|
65 |
+
<h1><?php echo __('Javascript is not enabled or it has a error!','rta'); ?></h1>
|
66 |
+
<p><?php echo __('If there is a error in the page (most likely caused by another plugin or even the theme, the regenerate thumbnails advanced plugin will not work properly. Please fix this issue and come back here. YOU WILL NOT SEE THIS WARNING IF EVERYTHING IS WORKING FINE','rta');?></p>
|
67 |
</div>
|
68 |
<div id="js-works" class="hidden">
|
69 |
+
<h2><?php echo __('reGenerate Thumbnails Advanced','rta');?></h2>
|
70 |
<!--Progress bar-->
|
71 |
<div id="progressbar">
|
72 |
<div class="progress-label">0%</div>
|
73 |
</div>
|
74 |
<!--Information section-->
|
75 |
<div class="info">
|
76 |
+
<?php echo __('Total number of images:','rta');?> <span class="total">0</span><br/>
|
77 |
+
<?php echo __('Images processed:','rta');?><span class="processed">0</span><br/>
|
78 |
<!--Could not process: <span class="errors">0</span> Images<br/>-->
|
79 |
</div>
|
80 |
<!--Dropdown-->
|
81 |
<h3>Select a period</h3>
|
82 |
<select name="period" id="rta_period">
|
83 |
<!--get all the images in the database-->
|
84 |
+
<option value="0"><?php echo __('All','rta');?></option>
|
85 |
+
<option value="1"><?php echo __('Past Day','rta');?></option>
|
86 |
+
<option value="2"><?php echo __('Past Week','rta');?></option>
|
87 |
+
<option value="3"><?php echo __('Past Month','rta');?></option>
|
88 |
+
<option value="4"><?php echo __('Between Dates','rta');?></option>
|
89 |
</select>
|
90 |
<div class="fromTo hidden">
|
91 |
+
<p><span><?php echo __('Start Date(including):','rta');?><br/><input type="text" class="datepicker start" readonly /></span></p>
|
92 |
+
<p><span><?php echo __('End Date(including):','rta');?><br/><input type="text" class="datepicker end" readonly /></span></p>
|
93 |
</div>
|
94 |
<p class="submit">
|
95 |
+
<button class="button button-primary RTA"><?php echo __('Regenerate Thumbnails','rta');?></button>
|
96 |
<div class="wrap">
|
97 |
+
<h3><?php echo __('Progress','rta');?></h3>
|
98 |
<div class="logstatus ui-widget-content">
|
99 |
+
<?php echo __('Nothing processed yet','r ta');?>
|
100 |
</div>
|
101 |
</div><!--where the errors show -->
|
102 |
<div class="wrap">
|
103 |
+
<h3><?php echo __('Errors','rta');?></h3>
|
104 |
<div class="errors ui-widget-content">
|
105 |
+
<?php echo __('No errors to display yet','rta');?>
|
106 |
</div><!-- where the errors show -->
|
107 |
</p>
|
108 |
</div>
|
109 |
<div class="tutorial">
|
110 |
+
<h2><a href="https://youtu.be/a5F5OsWZC28" target="_blank"><?php echo __('- Tutorial -','rta');?></a></h2>
|
|
|
111 |
</div>
|
112 |
|
113 |
</div>
|
121 |
|
122 |
public function add_settings_link($links) {
|
123 |
$mylinks = array(
|
124 |
+
'<a href="' . admin_url('options-general.php?page=regenerate_thumbnails_advanced') . '">'.__('Settings','rta').'</a>',
|
125 |
);
|
126 |
return array_merge($links, $mylinks);
|
127 |
}
|
style.css
CHANGED
@@ -116,4 +116,5 @@ body #rta .ui-progressbar .ui-progressbar-value.ui-widget-header {
|
|
116 |
#rta .tutorial{
|
117 |
margin:20px 0 0 0;
|
118 |
float:left;
|
|
|
119 |
}
|
116 |
#rta .tutorial{
|
117 |
margin:20px 0 0 0;
|
118 |
float:left;
|
119 |
+
width:100%;
|
120 |
}
|