Version Description
- Fixed: Dismissible CTAs.
Download this release
Release Info
Developer | 10web |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.8.4 |
Comparing to | |
See all releases |
Code changes from version 1.8.3 to 1.8.4
- booster/AdminBar.php +21 -8
- booster/Elementor.php +1 -0
- booster/List.php +2 -2
- booster/TWBLibrary.php +11 -0
- booster/assets/css/global.css +90 -1
- booster/assets/images/closed_eye.svg +13 -0
- booster/assets/js/global.js +9 -1
- booster/assets/js/gutenberg.js +11 -1
- booster/assets/js/gutenberg/gutenberg-compiled.asset.php +1 -1
- booster/assets/js/gutenberg/gutenberg-compiled.js +12 -1
- booster/assets/js/gutenberg/gutenberg-compiled.js.map +1 -1
- booster/controller.php +3 -0
- booster/view.php +27 -24
- photo-gallery.php +3 -3
- readme.txt +4 -1
booster/AdminBar.php
CHANGED
@@ -64,13 +64,15 @@ class TWBAdminBar
|
|
64 |
public function get_page_speed_status() {
|
65 |
global $post;
|
66 |
if ( empty($post) ) {
|
67 |
-
return
|
68 |
}
|
69 |
|
70 |
$post_id = $post->ID;
|
71 |
$page_score = get_post_meta( $post_id, 'two_page_speed' );
|
|
|
|
|
|
|
72 |
$page_score = end($page_score);
|
73 |
-
|
74 |
if ( isset($page_score['previous_score']) ) {
|
75 |
if ( isset( $page_score['previous_score']['error'] ) && $page_score['previous_score']['error'] == "1" ) {
|
76 |
return 'error';
|
@@ -168,9 +170,14 @@ class TWBAdminBar
|
|
168 |
<div class="twb_admin_bar_menu_content twb-notoptimized twb_not_optimized_content">
|
169 |
<p class="twb_status_title"><?php echo __('Check the PageSpeed score', 'tenweb-booster'); ?></p>
|
170 |
<p class="twb_status_description"><?php _e('PageSpeed score is an essential attribute to your website’s performance. It affects both the user experience and SEO rankings.', 'tenweb-booster') ?></p>
|
171 |
-
<
|
172 |
-
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
174 |
</div>
|
175 |
<?php
|
176 |
$this->twb_front_score_in_progress_content();
|
@@ -231,7 +238,9 @@ class TWBAdminBar
|
|
231 |
<div class="twb_admin_bar_menu_content twb-optimized twb_counted <?php echo $this->page_speed_status != 'completed' ? 'twb-hidden' : ''; ?>">
|
232 |
<?php
|
233 |
$title = sprintf(__('%s page', 'tenweb-booster'), $page_title);
|
234 |
-
TWBLibrary::score( $score, $url, $post_id, $title, 0 )
|
|
|
|
|
235 |
</div>
|
236 |
<?php
|
237 |
}
|
@@ -254,7 +263,9 @@ class TWBAdminBar
|
|
254 |
<div class="twb_admin_bar_menu_content twb-optimized twb_counted <?php echo $this->page_speed_status != 'error' ? 'twb-hidden' : ''; ?>">
|
255 |
<?php
|
256 |
$title = sprintf(__('%s page', 'tenweb-booster'), $page_title);
|
257 |
-
TWBLibrary::score( $score, $url, $post_id, $title, 0 );
|
|
|
|
|
258 |
</div>
|
259 |
<?php
|
260 |
}
|
@@ -320,7 +331,9 @@ class TWBAdminBar
|
|
320 |
<div class="twb_score_block_container">
|
321 |
<?php
|
322 |
$title = sprintf( __('%s page', 'tenweb-booster'), esc_html($score['post_title']) );
|
323 |
-
TWBLibrary::score( $score, $url, $score['post_id'], $title, 0 )
|
|
|
|
|
324 |
</div>
|
325 |
</div>
|
326 |
<?php
|
64 |
public function get_page_speed_status() {
|
65 |
global $post;
|
66 |
if ( empty($post) ) {
|
67 |
+
return FALSE;
|
68 |
}
|
69 |
|
70 |
$post_id = $post->ID;
|
71 |
$page_score = get_post_meta( $post_id, 'two_page_speed' );
|
72 |
+
if ( empty($page_score) ) {
|
73 |
+
return 'notstarted';
|
74 |
+
}
|
75 |
$page_score = end($page_score);
|
|
|
76 |
if ( isset($page_score['previous_score']) ) {
|
77 |
if ( isset( $page_score['previous_score']['error'] ) && $page_score['previous_score']['error'] == "1" ) {
|
78 |
return 'error';
|
170 |
<div class="twb_admin_bar_menu_content twb-notoptimized twb_not_optimized_content">
|
171 |
<p class="twb_status_title"><?php echo __('Check the PageSpeed score', 'tenweb-booster'); ?></p>
|
172 |
<p class="twb_status_description"><?php _e('PageSpeed score is an essential attribute to your website’s performance. It affects both the user experience and SEO rankings.', 'tenweb-booster') ?></p>
|
173 |
+
<div class="twb_check_score_button_cont">
|
174 |
+
<a data-post_id="<?php echo esc_attr($post_id); ?>"
|
175 |
+
data-initiator="admin-bar" target="_blank"
|
176 |
+
class="twb_check_score_button"><?php _e('Check PageSpeed Score', 'tenweb-booster') ?></a>
|
177 |
+
</div>
|
178 |
+
<?php
|
179 |
+
echo TWBLibrary::dismiss_info_content( $this->booster );
|
180 |
+
?>
|
181 |
</div>
|
182 |
<?php
|
183 |
$this->twb_front_score_in_progress_content();
|
238 |
<div class="twb_admin_bar_menu_content twb-optimized twb_counted <?php echo $this->page_speed_status != 'completed' ? 'twb-hidden' : ''; ?>">
|
239 |
<?php
|
240 |
$title = sprintf(__('%s page', 'tenweb-booster'), $page_title);
|
241 |
+
TWBLibrary::score( $score, $url, $post_id, $title, 0 );
|
242 |
+
echo TWBLibrary::dismiss_info_content( $this->booster );
|
243 |
+
?>
|
244 |
</div>
|
245 |
<?php
|
246 |
}
|
263 |
<div class="twb_admin_bar_menu_content twb-optimized twb_counted <?php echo $this->page_speed_status != 'error' ? 'twb-hidden' : ''; ?>">
|
264 |
<?php
|
265 |
$title = sprintf(__('%s page', 'tenweb-booster'), $page_title);
|
266 |
+
TWBLibrary::score( $score, $url, $post_id, $title, 0 );
|
267 |
+
echo TWBLibrary::dismiss_info_content( $this->booster );
|
268 |
+
?>
|
269 |
</div>
|
270 |
<?php
|
271 |
}
|
331 |
<div class="twb_score_block_container">
|
332 |
<?php
|
333 |
$title = sprintf( __('%s page', 'tenweb-booster'), esc_html($score['post_title']) );
|
334 |
+
TWBLibrary::score( $score, $url, $score['post_id'], $title, 0 );
|
335 |
+
echo TWBLibrary::dismiss_info_content( $this->booster );
|
336 |
+
?>
|
337 |
</div>
|
338 |
</div>
|
339 |
<?php
|
booster/Elementor.php
CHANGED
@@ -52,6 +52,7 @@ class TWBElementor {
|
|
52 |
);
|
53 |
|
54 |
$content = TWBLibrary::twb_button_template( $this->booster );
|
|
|
55 |
$classname = 'twb_elementor_settings_content twb_optimized';
|
56 |
$label_html = '';
|
57 |
if ( $section_label != '' ) {
|
52 |
);
|
53 |
|
54 |
$content = TWBLibrary::twb_button_template( $this->booster );
|
55 |
+
$content .= TWBLibrary::dismiss_info_content( $this->booster );
|
56 |
$classname = 'twb_elementor_settings_content twb_optimized';
|
57 |
$label_html = '';
|
58 |
if ( $section_label != '' ) {
|
booster/List.php
CHANGED
@@ -36,7 +36,7 @@ class TWBList {
|
|
36 |
public function add_column( $columns ) {
|
37 |
$offset = array_search('author', array_keys($columns));
|
38 |
|
39 |
-
return array_merge(array_slice($columns, 0, $offset), [ 'twb-speed-' . $this->booster->submenu['parent_slug'] => __('PageSpeed score', 'tenweb-booster') ], array_slice($columns, $offset, NULL));
|
40 |
}
|
41 |
|
42 |
public function manage_column( $column_key, $post_id ) {
|
@@ -61,7 +61,7 @@ class TWBList {
|
|
61 |
<a class="twb-see-score" target="_balnk" href="<?php echo esc_url($this->booster->submenu_url); ?>"><?php _e('Optimize images and speed', 'tenweb-booster'); ?></a>
|
62 |
</span>
|
63 |
<span data-status="<?php echo $status; ?>" class="twb-page-speed twb-notoptimized <?php echo $status == 'notstarted' ? '' : 'twb-hidden'; ?>">
|
64 |
-
<a data-post_id="<?php echo esc_attr($post_id); ?>"><?php _e('Check score', 'tenweb-booster'); ?></a>
|
65 |
</span>
|
66 |
<span class="twb-page-speed twb-optimizing <?php echo $status == 'inprogress' ? '' : 'twb-hidden'; ?>">
|
67 |
<?php _e('Checking...', 'tenweb-booster'); ?>
|
36 |
public function add_column( $columns ) {
|
37 |
$offset = array_search('author', array_keys($columns));
|
38 |
|
39 |
+
return array_merge(array_slice($columns, 0, $offset), [ 'twb-speed-' . $this->booster->submenu['parent_slug'] => __('PageSpeed score', 'tenweb-booster') . TWBLibrary::dismiss_info_content( $this->booster, TRUE ) ], array_slice($columns, $offset, NULL));
|
40 |
}
|
41 |
|
42 |
public function manage_column( $column_key, $post_id ) {
|
61 |
<a class="twb-see-score" target="_balnk" href="<?php echo esc_url($this->booster->submenu_url); ?>"><?php _e('Optimize images and speed', 'tenweb-booster'); ?></a>
|
62 |
</span>
|
63 |
<span data-status="<?php echo $status; ?>" class="twb-page-speed twb-notoptimized <?php echo $status == 'notstarted' ? '' : 'twb-hidden'; ?>">
|
64 |
+
<a class="twb_check_score_button" data-post_id="<?php echo esc_attr($post_id); ?>"><?php _e('Check score', 'tenweb-booster'); ?></a>
|
65 |
</span>
|
66 |
<span class="twb-page-speed twb-optimizing <?php echo $status == 'inprogress' ? '' : 'twb-hidden'; ?>">
|
67 |
<?php _e('Checking...', 'tenweb-booster'); ?>
|
booster/TWBLibrary.php
CHANGED
@@ -235,4 +235,15 @@ class TWBLibrary {
|
|
235 |
</div>
|
236 |
<?php
|
237 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
}
|
235 |
</div>
|
236 |
<?php
|
237 |
}
|
238 |
+
|
239 |
+
public static function dismiss_info_content( $booster, $hidden = FALSE ) {
|
240 |
+
$link = add_query_arg(array('twb_dismiss' => 1), $booster->submenu_url);
|
241 |
+
ob_start();
|
242 |
+
?>
|
243 |
+
<div class="<?php echo ($hidden ? 'twb-dismiss-container twb-hidden' : 'twb-dismiss-info'); ?>">
|
244 |
+
<p><?php echo sprintf(__("You can hide this element from the %s", "tenweb-booster"), "<a href='" . esc_url($link) . "' target='_blank'>" . __('settings', "tenweb-booster") . "</a>"); ?></p>
|
245 |
+
</div>
|
246 |
+
<?php
|
247 |
+
return ob_get_clean();
|
248 |
+
}
|
249 |
}
|
booster/assets/css/global.css
CHANGED
@@ -1,3 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
a.twb-custom-button,
|
2 |
a.twb-custom-button:hover,
|
3 |
.elementor-control a.twb-custom-button,
|
@@ -59,7 +75,7 @@ a.twb-custom-button:hover,
|
|
59 |
.elementor-control a.twb-custom-button,
|
60 |
.elementor-control a.twb-custom-button:hover {
|
61 |
display: inline-block;
|
62 |
-
margin: 10px 0
|
63 |
}
|
64 |
|
65 |
.elementor-control-twb_optimize_section .elementor-panel-heading {
|
@@ -105,7 +121,13 @@ a.twb-custom-button:hover,
|
|
105 |
background-size: 26px;
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
108 |
.twb-hidden,
|
|
|
109 |
.twb-score-container.twb-hidden,
|
110 |
.twb-score-overlay.twb-hidden,
|
111 |
.twb-score-disabled-container.twb-hidden {
|
@@ -117,6 +139,7 @@ a.twb-custom-button:hover,
|
|
117 |
position: relative;
|
118 |
padding-left: 30px;
|
119 |
font-weight: 600;
|
|
|
120 |
}
|
121 |
#twb-speed-galleries_bwg:before,
|
122 |
#twb-speed-manage_fm:before {
|
@@ -135,6 +158,21 @@ a.twb-custom-button:hover,
|
|
135 |
background: transparent url(../images/fm.svg) 0% 0% no-repeat padding-box;
|
136 |
}
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
.twb-page-speed {
|
139 |
position: relative;
|
140 |
padding-left: 20px;
|
@@ -186,6 +224,7 @@ a.twb-see-score {
|
|
186 |
}
|
187 |
|
188 |
.twb-score-container,
|
|
|
189 |
.twb-score-disabled-container {
|
190 |
display: flex;
|
191 |
flex-direction: column;
|
@@ -199,6 +238,49 @@ a.twb-see-score {
|
|
199 |
margin-top: -2px;
|
200 |
width: 350px;
|
201 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
#wpadminbar .twb-score-overlay,
|
203 |
.twb-score-overlay {
|
204 |
height: 32px;
|
@@ -260,6 +342,7 @@ a.twb-see-score {
|
|
260 |
color: #22B339;
|
261 |
font-weight: 400;
|
262 |
cursor: pointer;
|
|
|
263 |
}
|
264 |
|
265 |
#wpadminbar .twb-score-mobile,
|
@@ -538,6 +621,12 @@ a.twb-see-score {
|
|
538 |
font: italic normal bold 12px/18px Open Sans;
|
539 |
}
|
540 |
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
#wpadminbar .twb_admin_bar_menu_content .twb_check_score_button {
|
542 |
width: 180px;
|
543 |
height: 30px;
|
1 |
+
.twb-cont {
|
2 |
+
display: flex;
|
3 |
+
flex-direction: column;
|
4 |
+
margin: 10px 10px 0 0 !important;
|
5 |
+
align-items: flex-end;
|
6 |
+
}
|
7 |
+
|
8 |
+
.twb-cont p,
|
9 |
+
.twb-cont p>a {
|
10 |
+
font: normal normal 600 12px/18px Open Sans;
|
11 |
+
letter-spacing: 0.1px;
|
12 |
+
color: #323A45;
|
13 |
+
opacity: 0.7;
|
14 |
+
padding-top: 10px;
|
15 |
+
}
|
16 |
+
|
17 |
a.twb-custom-button,
|
18 |
a.twb-custom-button:hover,
|
19 |
.elementor-control a.twb-custom-button,
|
75 |
.elementor-control a.twb-custom-button,
|
76 |
.elementor-control a.twb-custom-button:hover {
|
77 |
display: inline-block;
|
78 |
+
margin: 10px 0 10px 0!important;
|
79 |
}
|
80 |
|
81 |
.elementor-control-twb_optimize_section .elementor-panel-heading {
|
121 |
background-size: 26px;
|
122 |
}
|
123 |
|
124 |
+
.elementor-panel .twb-dismiss-info {
|
125 |
+
justify-content: left;
|
126 |
+
opacity: 0.7;
|
127 |
+
}
|
128 |
+
|
129 |
.twb-hidden,
|
130 |
+
.twb-dismiss-container.twb-hidden,
|
131 |
.twb-score-container.twb-hidden,
|
132 |
.twb-score-overlay.twb-hidden,
|
133 |
.twb-score-disabled-container.twb-hidden {
|
139 |
position: relative;
|
140 |
padding-left: 30px;
|
141 |
font-weight: 600;
|
142 |
+
width: 180px;
|
143 |
}
|
144 |
#twb-speed-galleries_bwg:before,
|
145 |
#twb-speed-manage_fm:before {
|
158 |
background: transparent url(../images/fm.svg) 0% 0% no-repeat padding-box;
|
159 |
}
|
160 |
|
161 |
+
th[id^='twb-speed-']:after {
|
162 |
+
content: '';
|
163 |
+
position: absolute;
|
164 |
+
top: 18px;
|
165 |
+
right: 60px;
|
166 |
+
transform: translateY(-50%);
|
167 |
+
width: 15px;
|
168 |
+
height: 15px;
|
169 |
+
cursor: pointer;
|
170 |
+
}
|
171 |
+
|
172 |
+
th[id^='twb-speed-']:after {
|
173 |
+
background: transparent url(../images/closed_eye.svg) 0% 0% no-repeat padding-box;
|
174 |
+
}
|
175 |
+
|
176 |
.twb-page-speed {
|
177 |
position: relative;
|
178 |
padding-left: 20px;
|
224 |
}
|
225 |
|
226 |
.twb-score-container,
|
227 |
+
.twb-dismiss-container,
|
228 |
.twb-score-disabled-container {
|
229 |
display: flex;
|
230 |
flex-direction: column;
|
238 |
margin-top: -2px;
|
239 |
width: 350px;
|
240 |
}
|
241 |
+
|
242 |
+
#wpadminbar .twb-dismiss-info p,
|
243 |
+
.twb-dismiss-info {
|
244 |
+
display: flex;
|
245 |
+
margin: 0;
|
246 |
+
justify-content: right;
|
247 |
+
}
|
248 |
+
|
249 |
+
.twb-dismiss-container {
|
250 |
+
flex-direction: row;
|
251 |
+
width: 250px;
|
252 |
+
}
|
253 |
+
|
254 |
+
#wpadminbar .twb-dismiss-info p,
|
255 |
+
#wpadminbar .twb-dismiss-info a,
|
256 |
+
.twb-dismiss-container p,
|
257 |
+
.twb-dismiss-container a {
|
258 |
+
font: normal normal normal 12px/18px Open Sans;
|
259 |
+
letter-spacing: 0.1px;
|
260 |
+
color: #FFFFFFCC;
|
261 |
+
margin: 0;
|
262 |
+
}
|
263 |
+
|
264 |
+
.elementor-panel .twb-dismiss-info p,
|
265 |
+
.elementor-panel .twb-dismiss-info a {
|
266 |
+
font: normal normal 600 12px/18px Open Sans;
|
267 |
+
letter-spacing: 0.1px;
|
268 |
+
color: #323A45;
|
269 |
+
border: none;
|
270 |
+
}
|
271 |
+
|
272 |
+
|
273 |
+
#wpadminbar .twb-dismiss-info a,
|
274 |
+
.elementor-panel .twb-dismiss-info a,
|
275 |
+
.twb-dismiss-container a {
|
276 |
+
text-decoration: underline;
|
277 |
+
}
|
278 |
+
|
279 |
+
#wpadminbar .twb-dismiss-info a {
|
280 |
+
padding: 0 0 0 3px;
|
281 |
+
height: auto;
|
282 |
+
}
|
283 |
+
|
284 |
#wpadminbar .twb-score-overlay,
|
285 |
.twb-score-overlay {
|
286 |
height: 32px;
|
342 |
color: #22B339;
|
343 |
font-weight: 400;
|
344 |
cursor: pointer;
|
345 |
+
padding: 0px;
|
346 |
}
|
347 |
|
348 |
#wpadminbar .twb-score-mobile,
|
621 |
font: italic normal bold 12px/18px Open Sans;
|
622 |
}
|
623 |
|
624 |
+
#wpadminbar .twb_admin_bar_menu_content .twb_check_score_button_cont {
|
625 |
+
display: flex;
|
626 |
+
justify-content: right;
|
627 |
+
margin-bottom: 15px;
|
628 |
+
}
|
629 |
+
|
630 |
#wpadminbar .twb_admin_bar_menu_content .twb_check_score_button {
|
631 |
width: 180px;
|
632 |
height: 30px;
|
booster/assets/images/closed_eye.svg
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Opened_Eye_Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18" viewBox="0 0 18 18">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_47767" data-name="Rectangle 47767" width="18" height="18" transform="translate(0)" fill="#323a45"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Opened_Eye_Icon-2" data-name="Opened_Eye_Icon" transform="translate(0)" clip-path="url(#clip-path)">
|
8 |
+
<g id="design_system_icons-52" data-name="design system icons-52" transform="translate(2 3.5)">
|
9 |
+
<path id="Path_169339" data-name="Path 169339" d="M13.064,26.833a2.93,2.93,0,0,1-2.921-2.921,3.184,3.184,0,0,1,.088-.76L8.478,21.4c-.088.088-.2.146-.292.234s-.175.146-.263.234c-.117.088-.2.2-.321.292-.088.088-.2.175-.292.263-.2.2-.409.409-.613.643-.088.088-.175.2-.263.292-.088.117-.2.234-.292.351a.307.307,0,0,0,0,.38c2.22,2.658,4.5,4.031,6.865,4.031h.467c.117,0,.263-.029.38-.029.058,0,.146-.029.2-.029a.422.422,0,0,0,.2-.058.422.422,0,0,0,.2-.058c.146-.029.292-.088.438-.117l-1.11-1.11A1.918,1.918,0,0,1,13.064,26.833Z" transform="translate(-6.075 -18.42)" fill="#323a45"/>
|
10 |
+
<path id="Path_169340" data-name="Path 169340" d="M23.615,16.487c-2.775-3.155-5.463-4.411-8.092-3.914a.422.422,0,0,0-.2.058.688.688,0,0,0-.234.058l-.263.088c-.058.029-.117.029-.146.058a1.424,1.424,0,0,0-.2.088c-.058.029-.117.029-.146.058-.117.058-.234.088-.38.146l-1.84-1.84a.282.282,0,0,0-.409,0l-.409.409a.282.282,0,0,0,0,.409l1.607,1.607,1.4,1.4.292.292.643.643a1.733,1.733,0,0,0-.146.672,1.633,1.633,0,0,0,1.636,1.636,1.733,1.733,0,0,0,.672-.146l.643.643.292.292,1.139,1.139,1.87,1.87a.282.282,0,0,0,.409,0l.409-.409a.282.282,0,0,0,0-.409L20.49,19.672a5.7,5.7,0,0,0,.73-.526c.38-.292.789-.643,1.2-1.022l.292-.292.234-.234c.234-.234.438-.467.672-.73A.249.249,0,0,0,23.615,16.487Zm-4.762,1.519-.643-.643c.029-.058.029-.088.058-.146s.029-.117.058-.175c0-.029.029-.088.029-.117,0-.088.029-.146.029-.234v-.2a.176.176,0,0,0-.029-.117v-.029c0-.058-.029-.088-.029-.146h0a.029.029,0,0,0-.029-.029c0-.058-.029-.088-.058-.146v-.029c-.029-.058-.058-.088-.088-.146v-.029c-.029-.029-.058-.088-.088-.117,0-.029-.029-.058-.058-.088a1.763,1.763,0,0,0-.234-.234c-.029-.029-.058-.029-.088-.058a.4.4,0,0,0-.117-.088h-.029c-.058-.029-.088-.058-.146-.058l-.029-.029c-.029-.029-.088-.029-.146-.058a.029.029,0,0,1-.029-.029h0c-.058,0-.088-.029-.146-.029h-.029A.176.176,0,0,1,16.9,15h-.2a.643.643,0,0,0-.234.029c-.058,0-.088,0-.117.029a1.046,1.046,0,0,0-.321.117l-.643-.643a2.554,2.554,0,0,1,1.315-.38,2.562,2.562,0,0,1,2.162,3.856Z" transform="translate(-9.703 -11.2)" fill="#323a45"/>
|
11 |
+
</g>
|
12 |
+
</g>
|
13 |
+
</svg>
|
booster/assets/js/global.js
CHANGED
@@ -24,7 +24,7 @@ jQuery(function () {
|
|
24 |
|
25 |
/* Add check score action to the button in page/posts list,
|
26 |
if there is no inprogress action.*/
|
27 |
-
jQuery(".twb-notoptimized
|
28 |
if (!twb_inprogress) {
|
29 |
twb_check_score(this);
|
30 |
}
|
@@ -34,6 +34,14 @@ jQuery(function () {
|
|
34 |
twb_check_score(this);
|
35 |
});
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/* Add a hover action to show page score.*/
|
38 |
jQuery(".twb-see-score").hover(function () {
|
39 |
jQuery(this).parent().parent().find(".twb-score-container").removeClass("twb-hidden");
|
24 |
|
25 |
/* Add check score action to the button in page/posts list,
|
26 |
if there is no inprogress action.*/
|
27 |
+
jQuery(".twb-notoptimized .twb_check_score_button").on("click", function () {
|
28 |
if (!twb_inprogress) {
|
29 |
twb_check_score(this);
|
30 |
}
|
34 |
twb_check_score(this);
|
35 |
});
|
36 |
|
37 |
+
/* Add a hover action to show dismiss tooltip.*/
|
38 |
+
jQuery("th[id^='twb-speed-']").hover(function () {
|
39 |
+
jQuery(this).find(".twb-dismiss-container").removeClass("twb-hidden");
|
40 |
+
},
|
41 |
+
function () {
|
42 |
+
jQuery(this).find(".twb-dismiss-container").addClass("twb-hidden");
|
43 |
+
});
|
44 |
+
|
45 |
/* Add a hover action to show page score.*/
|
46 |
jQuery(".twb-see-score").hover(function () {
|
47 |
jQuery(this).parent().parent().find(".twb-score-container").removeClass("twb-hidden");
|
booster/assets/js/gutenberg.js
CHANGED
@@ -31,8 +31,9 @@ const BoosterSettingPanel = () => {
|
|
31 |
|
32 |
const BoosterPanelRow = () => {
|
33 |
return (
|
34 |
-
<PanelRow>
|
35 |
<OptimizeButton />
|
|
|
36 |
</PanelRow>);
|
37 |
}
|
38 |
|
@@ -44,6 +45,15 @@ const OptimizeButton = () => {
|
|
44 |
);
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
registerPlugin('booster-sidebar-panel', {
|
48 |
render: BoosterSidebarPanel,
|
49 |
icon: <svg class="twb-speed-icon" xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26">
|
31 |
|
32 |
const BoosterPanelRow = () => {
|
33 |
return (
|
34 |
+
<PanelRow className="twb-cont">
|
35 |
<OptimizeButton />
|
36 |
+
<Dismiss />
|
37 |
</PanelRow>);
|
38 |
}
|
39 |
|
45 |
);
|
46 |
}
|
47 |
|
48 |
+
const Dismiss = () => {
|
49 |
+
return (
|
50 |
+
<div className="twb-dismiss-info">
|
51 |
+
<p>{__("You can hide this element from the ", "tenweb-booster")}
|
52 |
+
<a href={twb.href + "&twb_dismiss=1"} target="_blank">{__('settings', "tenweb-booster")}</a></p>
|
53 |
+
</div>
|
54 |
+
);
|
55 |
+
}
|
56 |
+
|
57 |
registerPlugin('booster-sidebar-panel', {
|
58 |
render: BoosterSidebarPanel,
|
59 |
icon: <svg class="twb-speed-icon" xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26">
|
booster/assets/js/gutenberg/gutenberg-compiled.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-element'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-element'), 'version' => 'daa06008b8e18dd41da8');
|
booster/assets/js/gutenberg/gutenberg-compiled.js
CHANGED
@@ -132,7 +132,9 @@ const BoosterSettingPanel = () => {
|
|
132 |
};
|
133 |
|
134 |
const BoosterPanelRow = () => {
|
135 |
-
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(PanelRow,
|
|
|
|
|
136 |
};
|
137 |
|
138 |
const OptimizeButton = () => {
|
@@ -143,6 +145,15 @@ const OptimizeButton = () => {
|
|
143 |
}, twb.cta_button.label);
|
144 |
};
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
registerPlugin('booster-sidebar-panel', {
|
147 |
render: BoosterSidebarPanel,
|
148 |
icon: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
|
132 |
};
|
133 |
|
134 |
const BoosterPanelRow = () => {
|
135 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(PanelRow, {
|
136 |
+
className: "twb-cont"
|
137 |
+
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(OptimizeButton, null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Dismiss, null));
|
138 |
};
|
139 |
|
140 |
const OptimizeButton = () => {
|
145 |
}, twb.cta_button.label);
|
146 |
};
|
147 |
|
148 |
+
const Dismiss = () => {
|
149 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
150 |
+
className: "twb-dismiss-info"
|
151 |
+
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, __("You can hide this element from the ", "tenweb-booster"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
|
152 |
+
href: twb.href + "&twb_dismiss=1",
|
153 |
+
target: "_blank"
|
154 |
+
}, __('settings', "tenweb-booster"))));
|
155 |
+
};
|
156 |
+
|
157 |
registerPlugin('booster-sidebar-panel', {
|
158 |
render: BoosterSidebarPanel,
|
159 |
icon: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
|
booster/assets/js/gutenberg/gutenberg-compiled.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"gutenberg-compiled.js","mappings":";;;;;;;;;;AAAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNA,MAAM;EAAEA;AAAF,IAAqBC,EAAE,CAACC,OAA9B;AACA,MAAM;EAAEC;AAAF,IAASF,EAAE,CAACG,IAAlB;AACA,MAAM;EAAEC,0BAAF;EAA8BC,yBAA9B;EAAyDC;AAAzD,IAA2EN,EAAE,CAACO,QAApF;AACA,MAAM;EAAEC,SAAF;EAAaC,QAAb;EAAuBC;AAAvB,IAAgCV,EAAE,CAACW,UAAzC;AACA,MAAM;EAAEC;AAAF,IAAcZ,EAAE,CAACY,OAAvB;AACA,MAAM;EAAEC,UAAF;EAAcC;AAAd,IAA+Bd,EAAE,CAACe,IAAxC;AACA,MAAM;EAAEC,QAAF;EAAYC,QAAZ;EAAsBC;AAAtB,IAAoClB,EAAE,CAACmB,OAA7C;;AAEA,MAAMC,mBAAmB,GAAG,MAAM;EAChC,OACE,kEAAC,QAAD,QACE,kEAAC,yBAAD,QAA4BC,GAAG,CAACC,UAAJ,CAAeC,aAA3C,CADF,EAEE,kEAAC,aAAD;IACE,KAAK,EAAEF,GAAG,CAACC,UAAJ,CAAeC;EADxB,GAEE,kEAAC,eAAD,OAFF,CAFF,CADF;AASD,CAVD;;AAYA,MAAMC,mBAAmB,GAAG,MAAM;EAChC,OACE,kEAAC,QAAD,QACE,kEAAC,0BAAD;IACE,KAAK,EAAEH,GAAG,CAACC,UAAJ,CAAeC;EADxB,GAEE,kEAAC,eAAD,OAFF,CADF,CADF;AAQD,CATD;;AAWA,MAAME,eAAe,GAAG,MAAM;EAC5B,OACE,kEAAC,QAAD,
|
1 |
+
{"version":3,"file":"gutenberg-compiled.js","mappings":"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","sources":["webpack:///external window [\"wp\",\"element\"]","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///../assets/js/gutenberg.js"],"sourcesContent":["module.exports = window[\"wp\"][\"element\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const { registerPlugin } = wp.plugins;\r\nconst { __ } = wp.i18n;\r\nconst { PluginDocumentSettingPanel, PluginSidebarMoreMenuItem, PluginSidebar } = wp.editPost;\r\nconst { PanelBody, PanelRow, Icon } = wp.components;\r\nconst { compose } = wp.compose;\r\nconst { withSelect, withDispatch } = wp.data;\r\nconst { useState, Fragment, useEffect } = wp.element;\r\n\r\nconst BoosterSidebarPanel = () => {\r\n return(\r\n <Fragment>\r\n <PluginSidebarMoreMenuItem>{twb.cta_button.section_label}</PluginSidebarMoreMenuItem>\r\n <PluginSidebar\r\n title={twb.cta_button.section_label}>\r\n <BoosterPanelRow/>\r\n </PluginSidebar>\r\n </Fragment>\r\n );\r\n}\r\n\r\nconst BoosterSettingPanel = () => {\r\n return(\r\n <Fragment>\r\n <PluginDocumentSettingPanel\r\n title={twb.cta_button.section_label}>\r\n <BoosterPanelRow />\r\n </PluginDocumentSettingPanel>\r\n </Fragment>\r\n );\r\n}\r\n\r\nconst BoosterPanelRow = () => {\r\n return (\r\n <PanelRow className=\"twb-cont\">\r\n <OptimizeButton />\r\n <Dismiss />\r\n </PanelRow>);\r\n}\r\n\r\nconst OptimizeButton = () => {\r\n return (\r\n <a href={twb.href}\r\n target=\"_blank\"\r\n className={twb.cta_button.class + \" twb-custom-button\"}>{twb.cta_button.label}</a>\r\n );\r\n}\r\n\r\nconst Dismiss = () => {\r\n return (\r\n <div className=\"twb-dismiss-info\">\r\n <p>{__(\"You can hide this element from the \", \"tenweb-booster\")}\r\n <a href={twb.href + \"&twb_dismiss=1\"} target=\"_blank\">{__('settings', \"tenweb-booster\")}</a></p>\r\n </div>\r\n );\r\n}\r\n\r\nregisterPlugin('booster-sidebar-panel', {\r\n render: BoosterSidebarPanel,\r\n icon: <svg class=\"twb-speed-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\">\r\n <g id=\"Group_103139\" data-name=\"Group 103139\" transform=\"translate(0 -0.391)\">\r\n <path id=\"Path_171039\" data-name=\"Path 171039\"\r\n d=\"M.441,38.127h0a1.445,1.445,0,0,0,2.065-.037l7.924-6.038a.131.131,0,0,0,.033-.18.126.126,0,0,0-.158-.045l-9.409,4a1.426,1.426,0,0,0-.52,2.23Z\"\r\n transform=\"translate(-0.028 -23.443)\" fill=\"#fff\"/>\r\n <path id=\"Path_171040\" data-name=\"Path 171040\"\r\n d=\"M5.434,48.088a1.443,1.443,0,0,1-2.063.039l0,0L.462,45.274l-.034-.029-.06-.063a1.427,1.427,0,0,1,.12-1.992,1.393,1.393,0,0,1,.4-.252L4.295,41.49,3.723,42a1.571,1.571,0,0,0-.163,2.191q.045.054.095.1l1.74,1.7a1.5,1.5,0,0,1,.039,2.1\"\r\n transform=\"translate(-0.014 -30.56)\" fill=\"#9ea3a8\"/>\r\n <path id=\"Path_171041\" data-name=\"Path 171041\"\r\n d=\"M69.869,43.142h0a1.445,1.445,0,0,0-2.065.037l-7.911,6.038a.131.131,0,0,0-.033.18.126.126,0,0,0,.158.045l9.4-4a1.426,1.426,0,0,0,.52-2.23Z\"\r\n transform=\"translate(-44.277 -31.469)\" fill=\"#fff\"/>\r\n <path id=\"Path_171042\" data-name=\"Path 171042\"\r\n d=\"M78,32.276a1.443,1.443,0,0,1,2.063-.039l0,0,2.907,2.851L83,35.12l.06.063a1.427,1.427,0,0,1-.12,1.992,1.393,1.393,0,0,1-.4.252l-3.407,1.448.572-.507a1.571,1.571,0,0,0,.163-2.191q-.045-.054-.095-.1l-1.742-1.7a1.5,1.5,0,0,1-.036-2.1\"\r\n transform=\"translate(-57.411 -23.446)\" fill=\"#9ea3a8\"/>\r\n <path id=\"Path_171043\" data-name=\"Path 171043\"\r\n d=\"M31.607,23.5l5.172-7.19a.126.126,0,0,0,0-.176.121.121,0,0,0-.173,0l-13.2,10.025a.131.131,0,0,0-.03.18.127.127,0,0,0,.106.055h4.143a.136.136,0,0,1,.134.139.138.138,0,0,1-.025.078L22.56,33.8a.126.126,0,0,0,0,.176.121.121,0,0,0,.173,0l13.2-10.025a.131.131,0,0,0,.03-.18.127.127,0,0,0-.106-.055H31.717a.136.136,0,0,1-.134-.139.138.138,0,0,1,.025-.078\"\r\n transform=\"translate(-16.668 -11.879)\" fill=\"#9ea3a8\"/>\r\n </g>\r\n </svg>\r\n});\r\nregisterPlugin('booster-settings-panel', {\r\n render: BoosterSettingPanel,\r\n icon: ''\r\n});"],"names":["registerPlugin","wp","plugins","__","i18n","PluginDocumentSettingPanel","PluginSidebarMoreMenuItem","PluginSidebar","editPost","PanelBody","PanelRow","Icon","components","compose","withSelect","withDispatch","data","useState","Fragment","useEffect","element","BoosterSidebarPanel","twb","cta_button","section_label","BoosterSettingPanel","BoosterPanelRow","OptimizeButton","href","class","label","Dismiss","render","icon"],"sourceRoot":""}
|
booster/controller.php
CHANGED
@@ -48,6 +48,7 @@ class BoosterController {
|
|
48 |
*/
|
49 |
public function display() {
|
50 |
$params = array();
|
|
|
51 |
$params['submenu_section_optimize_images'] = $this->booster->page['section_optimize_images'];
|
52 |
$params['section_booster_title'] = $this->booster->page['section_booster_title'];
|
53 |
$params['section_booster_desc'] = $this->booster->page['section_booster_desc'];
|
@@ -106,6 +107,8 @@ class BoosterController {
|
|
106 |
|
107 |
$params['pages_compressed'] = $this->get_pages_compressed($params);
|
108 |
|
|
|
|
|
109 |
$this->view->display($params);
|
110 |
}
|
111 |
|
48 |
*/
|
49 |
public function display() {
|
50 |
$params = array();
|
51 |
+
$params['twb_dismiss'] = isset($_GET['twb_dismiss']) ? intval($_GET['twb_dismiss']) : 0;
|
52 |
$params['submenu_section_optimize_images'] = $this->booster->page['section_optimize_images'];
|
53 |
$params['section_booster_title'] = $this->booster->page['section_booster_title'];
|
54 |
$params['section_booster_desc'] = $this->booster->page['section_booster_desc'];
|
107 |
|
108 |
$params['pages_compressed'] = $this->get_pages_compressed($params);
|
109 |
|
110 |
+
$params['twb_dismiss'] = (isset($_GET['twb_dismiss']) && $_GET['twb_dismiss'] == 1) ? $_GET['twb_dismiss'] : 0;
|
111 |
+
|
112 |
$this->view->display($params);
|
113 |
}
|
114 |
|
booster/view.php
CHANGED
@@ -19,37 +19,40 @@ class BoosterView {
|
|
19 |
?>
|
20 |
<div class="wrap">
|
21 |
<?php //echo $this->popup(); ?>
|
22 |
-
<div class="twb-speed-header">
|
23 |
-
<?php
|
24 |
-
$this->header( $params );
|
25 |
-
?>
|
26 |
-
</div>
|
27 |
<?php
|
28 |
-
if (
|
29 |
?>
|
30 |
-
|
31 |
-
<div class="twb-speed-body-container">
|
32 |
<?php
|
33 |
-
|
34 |
-
if ( $params['booster_is_connected'] && !$params['tenweb_is_paid'] ) {
|
35 |
-
$this->optimizer_on_free_connected($params);
|
36 |
-
}
|
37 |
-
elseif ( $params['booster_is_connected'] && $params['tenweb_is_paid'] ) {
|
38 |
-
$this->optimizer_on_pro($params);
|
39 |
-
}
|
40 |
-
else {
|
41 |
-
$this->optimizer_on_free_not_connected($params);
|
42 |
-
}
|
43 |
-
}
|
44 |
-
if ( $params['submenu_section_analyze'] ) {
|
45 |
-
$this->analyzer($params);
|
46 |
-
}
|
47 |
?>
|
48 |
</div>
|
49 |
-
</div>
|
50 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
-
|
53 |
// If CTAs disable option is enabled.
|
54 |
if ( $params['show_cta_option']) {
|
55 |
?>
|
19 |
?>
|
20 |
<div class="wrap">
|
21 |
<?php //echo $this->popup(); ?>
|
|
|
|
|
|
|
|
|
|
|
22 |
<?php
|
23 |
+
if ( !$params['twb_dismiss'] ) {
|
24 |
?>
|
25 |
+
<div class="twb-speed-header">
|
|
|
26 |
<?php
|
27 |
+
$this->header( $params );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
?>
|
29 |
</div>
|
|
|
30 |
<?php
|
31 |
+
if ( $params['submenu_section_optimize_images'] || $params['submenu_section_analyze'] ) {
|
32 |
+
?>
|
33 |
+
<div class="twb-speed-body">
|
34 |
+
<div class="twb-speed-body-container">
|
35 |
+
<?php
|
36 |
+
if ( $params['submenu_section_optimize_images'] ) {
|
37 |
+
if ( $params['booster_is_connected'] && !$params['tenweb_is_paid'] ) {
|
38 |
+
$this->optimizer_on_free_connected($params);
|
39 |
+
}
|
40 |
+
elseif ( $params['booster_is_connected'] && $params['tenweb_is_paid'] ) {
|
41 |
+
$this->optimizer_on_pro($params);
|
42 |
+
}
|
43 |
+
else {
|
44 |
+
$this->optimizer_on_free_not_connected($params);
|
45 |
+
}
|
46 |
+
}
|
47 |
+
if ( $params['submenu_section_analyze'] ) {
|
48 |
+
$this->analyzer($params);
|
49 |
+
}
|
50 |
+
?>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<?php
|
54 |
+
}
|
55 |
}
|
|
|
56 |
// If CTAs disable option is enabled.
|
57 |
if ( $params['show_cta_option']) {
|
58 |
?>
|
photo-gallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
|
5 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
|
9 |
* Text Domain: photo-gallery
|
@@ -107,8 +107,8 @@ final class BWG {
|
|
107 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
108 |
$this->front_url = $this->plugin_url;
|
109 |
$this->main_file = plugin_basename(__FILE__);
|
110 |
-
$this->plugin_version = '1.8.
|
111 |
-
$this->db_version = '1.8.
|
112 |
$this->prefix = 'bwg';
|
113 |
$this->nicename = __('Photo Gallery', 'photo-gallery');
|
114 |
require_once($this->plugin_dir . '/framework/WDWLibrary.php');
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
|
5 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
6 |
+
* Version: 1.8.4
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
|
9 |
* Text Domain: photo-gallery
|
107 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
108 |
$this->front_url = $this->plugin_url;
|
109 |
$this->main_file = plugin_basename(__FILE__);
|
110 |
+
$this->plugin_version = '1.8.4';
|
111 |
+
$this->db_version = '1.8.4';
|
112 |
$this->prefix = 'bwg';
|
113 |
$this->nicename = __('Photo Gallery', 'photo-gallery');
|
114 |
require_once($this->plugin_dir . '/framework/WDWLibrary.php');
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
|
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
-
Stable tag: 1.8.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -273,6 +273,9 @@ Choose whether to display random or the first/last specific number of images.
|
|
273 |
|
274 |
== Changelog ==
|
275 |
|
|
|
|
|
|
|
276 |
= 1.8.3 =
|
277 |
* Fixed: Security issue.
|
278 |
* Fixed: Open Redirect vulnerability.
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
+
Stable tag: 1.8.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
273 |
|
274 |
== Changelog ==
|
275 |
|
276 |
+
= 1.8.4 =
|
277 |
+
* Fixed: Dismissible CTAs.
|
278 |
+
|
279 |
= 1.8.3 =
|
280 |
* Fixed: Security issue.
|
281 |
* Fixed: Open Redirect vulnerability.
|