Version Description
- 2021/07/23
- bug fix for Weglot
Download this release
Release Info
| Developer | WebFactory |
| Plugin | |
| Version | 3.89 |
| Comparing to | |
| See all releases | |
Code changes from version 3.88 to 3.89
- readme.txt +5 -1
- under-construction.php +4 -4
- wf-flyout/wf-flyout.php +13 -14
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: coming soon page, under construction mode, under construction, under const
|
|
| 4 |
Requires at least: 4.0
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 5.8
|
| 7 |
-
Stable tag: 3.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -134,6 +134,10 @@ Or if needed, upload manually;
|
|
| 134 |
|
| 135 |
== Changelog ==
|
| 136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
= 3.88 =
|
| 138 |
* 2021/02/20
|
| 139 |
* 500,000 installations hit on 2021/01/31
|
| 4 |
Requires at least: 4.0
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 5.8
|
| 7 |
+
Stable tag: 3.89
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 134 |
|
| 135 |
== Changelog ==
|
| 136 |
|
| 137 |
+
= 3.89 =
|
| 138 |
+
* 2021/07/23
|
| 139 |
+
* bug fix for Weglot
|
| 140 |
+
|
| 141 |
= 3.88 =
|
| 142 |
* 2021/02/20
|
| 143 |
* 500,000 installations hit on 2021/01/31
|
under-construction.php
CHANGED
|
@@ -4,10 +4,10 @@
|
|
| 4 |
Plugin URI: https://underconstructionpage.com/
|
| 5 |
Description: Put your site behind a great looking under construction, coming soon, maintenance mode or landing page.
|
| 6 |
Author: WebFactory Ltd
|
| 7 |
-
Version: 3.
|
| 8 |
Requires at least: 4.0
|
| 9 |
Requires PHP: 5.2
|
| 10 |
-
Tested up to: 5.
|
| 11 |
Author URI: https://www.webfactoryltd.com/
|
| 12 |
Text Domain: under-construction-page
|
| 13 |
|
|
@@ -1445,7 +1445,7 @@ class UCP {
|
|
| 1445 |
|
| 1446 |
if (self::is_weglot_setup()) {
|
| 1447 |
$tmp = '';
|
| 1448 |
-
$active_languages =
|
| 1449 |
$languages = weglot_get_languages_available();
|
| 1450 |
$original_language = weglot_get_original_language();
|
| 1451 |
|
|
@@ -2362,7 +2362,7 @@ class UCP {
|
|
| 2362 |
return false;
|
| 2363 |
}
|
| 2364 |
|
| 2365 |
-
$active_languages =
|
| 2366 |
if (!empty($active_languages)) {
|
| 2367 |
return true;
|
| 2368 |
} else {
|
| 4 |
Plugin URI: https://underconstructionpage.com/
|
| 5 |
Description: Put your site behind a great looking under construction, coming soon, maintenance mode or landing page.
|
| 6 |
Author: WebFactory Ltd
|
| 7 |
+
Version: 3.89
|
| 8 |
Requires at least: 4.0
|
| 9 |
Requires PHP: 5.2
|
| 10 |
+
Tested up to: 5.8
|
| 11 |
Author URI: https://www.webfactoryltd.com/
|
| 12 |
Text Domain: under-construction-page
|
| 13 |
|
| 1445 |
|
| 1446 |
if (self::is_weglot_setup()) {
|
| 1447 |
$tmp = '';
|
| 1448 |
+
$active_languages = weglot_get_destination_languages();
|
| 1449 |
$languages = weglot_get_languages_available();
|
| 1450 |
$original_language = weglot_get_original_language();
|
| 1451 |
|
| 2362 |
return false;
|
| 2363 |
}
|
| 2364 |
|
| 2365 |
+
$active_languages = weglot_get_destination_languages();
|
| 2366 |
if (!empty($active_languages)) {
|
| 2367 |
return true;
|
| 2368 |
} else {
|
wf-flyout/wf-flyout.php
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
/**
|
| 4 |
* Universal fly-out menu for WebFactory plugins
|
| 5 |
* (c) WebFactory Ltd, 2021
|
|
@@ -95,21 +94,21 @@ if (false == class_exists('wf_flyout')) {
|
|
| 95 |
|
| 96 |
$out = '<style type="text/css">';
|
| 97 |
$out .= '#wf-flyout {
|
| 98 |
-
right: ' .
|
| 99 |
-
bottom: ' .
|
| 100 |
}';
|
| 101 |
$out .= '#wf-flyout #wff-image-wrapper {
|
| 102 |
-
border: ' .
|
| 103 |
}';
|
| 104 |
$out .= '#wf-flyout #wff-button img {
|
| 105 |
-
padding: ' .
|
| 106 |
-
width: ' .
|
| 107 |
-
height: ' .
|
| 108 |
}';
|
| 109 |
$out .= '#wf-flyout .wff-menu-item.accent {
|
| 110 |
-
background: ' .
|
| 111 |
}';
|
| 112 |
-
$out .=
|
| 113 |
$out .= '</style>';
|
| 114 |
|
| 115 |
echo $out;
|
|
@@ -133,7 +132,7 @@ if (false == class_exists('wf_flyout')) {
|
|
| 133 |
$out .= '<a href="#" id="wff-button">';
|
| 134 |
$out .= '<span class="wff-label">Open Quick Links</span>';
|
| 135 |
$out .= '<span id="wff-image-wrapper">';
|
| 136 |
-
$out .= '<img src="' . $icons_url . $this->config['icon_image'] . '" alt="Open Quick Links" title="Open Quick Links">';
|
| 137 |
$out .= '</span>';
|
| 138 |
$out .= '</a>';
|
| 139 |
|
|
@@ -148,12 +147,12 @@ if (false == class_exists('wf_flyout')) {
|
|
| 148 |
$item['class'] = trim($item['class']);
|
| 149 |
}
|
| 150 |
|
| 151 |
-
$out .= '<a
|
| 152 |
-
$out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
|
| 153 |
if (substr($item['icon'], 0, 9) == 'dashicons') {
|
| 154 |
-
$out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
|
| 155 |
} elseif (!empty($item['icon'])) {
|
| 156 |
-
$out .= '<span class="wff-icon"><img src="' . $icons_url . $item['icon'] . '"></span>';
|
| 157 |
}
|
| 158 |
$out .= '</a>';
|
| 159 |
} // foreach
|
| 1 |
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Universal fly-out menu for WebFactory plugins
|
| 4 |
* (c) WebFactory Ltd, 2021
|
| 94 |
|
| 95 |
$out = '<style type="text/css">';
|
| 96 |
$out .= '#wf-flyout {
|
| 97 |
+
right: ' . sanitize_text_field($this->config['icon_right']) . ';
|
| 98 |
+
bottom: ' . sanitize_text_field($this->config['icon_bottom']) . ';
|
| 99 |
}';
|
| 100 |
$out .= '#wf-flyout #wff-image-wrapper {
|
| 101 |
+
border: ' . sanitize_text_field($this->config['icon_border']) . ';
|
| 102 |
}';
|
| 103 |
$out .= '#wf-flyout #wff-button img {
|
| 104 |
+
padding: ' . sanitize_text_field($this->config['icon_padding']) . ';
|
| 105 |
+
width: ' . sanitize_text_field($this->config['icon_size']) . ';
|
| 106 |
+
height: ' . sanitize_text_field($this->config['icon_size']) . ';
|
| 107 |
}';
|
| 108 |
$out .= '#wf-flyout .wff-menu-item.accent {
|
| 109 |
+
background: ' . sanitize_text_field($this->config['menu_accent_color']) . ';
|
| 110 |
}';
|
| 111 |
+
$out .= sanitize_text_field($this->config['custom_css']);
|
| 112 |
$out .= '</style>';
|
| 113 |
|
| 114 |
echo $out;
|
| 132 |
$out .= '<a href="#" id="wff-button">';
|
| 133 |
$out .= '<span class="wff-label">Open Quick Links</span>';
|
| 134 |
$out .= '<span id="wff-image-wrapper">';
|
| 135 |
+
$out .= '<img src="' . esc_url($icons_url . $this->config['icon_image']) . '" alt="Open Quick Links" title="Open Quick Links">';
|
| 136 |
$out .= '</span>';
|
| 137 |
$out .= '</a>';
|
| 138 |
|
| 147 |
$item['class'] = trim($item['class']);
|
| 148 |
}
|
| 149 |
|
| 150 |
+
$out .= '<a href="' . esc_url($item['href']) . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . esc_attr($item['class']) . '" target="_blank">';
|
| 151 |
+
$out .= '<span class="wff-label visible">' . esc_html($item['label']) . '</span>';
|
| 152 |
if (substr($item['icon'], 0, 9) == 'dashicons') {
|
| 153 |
+
$out .= '<span class="dashicons ' . sanitize_text_field($item['icon']) . '"></span>';
|
| 154 |
} elseif (!empty($item['icon'])) {
|
| 155 |
+
$out .= '<span class="wff-icon"><img src="' . esc_url($icons_url . $item['icon']) . '"></span>';
|
| 156 |
}
|
| 157 |
$out .= '</a>';
|
| 158 |
} // foreach
|
