Changeset 2961090
- Timestamp:
- 08/31/2023 10:52:19 AM (3 years ago)
- Location:
- lw-all-in-one/trunk
- Files:
-
- 10 edited
-
admin/class-lw-all-in-one-admin.php (modified) (7 diffs)
-
admin/class-lw-all-in-one-cf7.php (modified) (3 diffs)
-
admin/class-lw-all-in-one-ga-events.php (modified) (2 diffs)
-
admin/class-lw-all-in-one-privacy-policy-pages.php (modified) (1 diff)
-
admin/class-lw-all-in-one-wim.php (modified) (4 diffs)
-
includes/class-lw-all-in-one.php (modified) (3 diffs)
-
includes/helpers/lw-all-in-one-helper-functions.php (modified) (2 diffs)
-
lw-all-in-one.php (modified) (2 diffs)
-
public/class-lw-all-in-one-public.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lw-all-in-one/trunk/admin/class-lw-all-in-one-admin.php
r2960449 r2961090 25 25 * @var string $plugin_name The ID of this plugin. 26 26 */ 27 private string$plugin_name;27 private $plugin_name; 28 28 29 29 /** … … 33 33 * @var string $version The current version of this plugin. 34 34 */ 35 private string$version;35 private $version; 36 36 37 37 /** … … 41 41 * @param string $version The version of this plugin. 42 42 */ 43 public function __construct( string $plugin_name, string$version) {43 public function __construct( $plugin_name, $version) { 44 44 45 45 $this->plugin_name = $plugin_name; … … 48 48 } 49 49 50 public function enqueue_styles($hook) : void{50 public function enqueue_styles($hook){ 51 51 if (preg_match('/page_lw_all_in_one/', $hook)) { 52 52 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; … … 55 55 } 56 56 57 public function enqueue_scripts($hook) : void{57 public function enqueue_scripts($hook){ 58 58 // echo $hook; 59 59 // die(); … … 220 220 public function get_plugin_options($parent_key = false, $key = false) { 221 221 $options = get_option($this->plugin_name); 222 222 223 if ($parent_key !== false) { 223 return $options[ $parent_key ][ $key ] ?? ''; 224 if (isset($options[$parent_key]) && isset($options[$parent_key][$key])) { 225 return $options[$parent_key][$key]; 226 } else { 227 return false; 228 } 224 229 } else { 225 return $options[ $key ] ?? ''; 226 } 227 } 230 if (isset($options[$key])) { 231 return $options[$key]; 232 } else { 233 return false; 234 } 235 } 236 } 237 228 238 229 239 public function lw_all_in_one_header_scripts_from_tab() { … … 265 275 } 266 276 267 public function lw_all_in_one_is_base64($string) : bool{277 public function lw_all_in_one_is_base64($string) { 268 278 return (bool) preg_match('/^[a-zA-Z0-9\/\r\n+]*={0,2}$/', $string); 269 279 } -
lw-all-in-one/trunk/admin/class-lw-all-in-one-cf7.php
r2957218 r2961090 25 25 * @var string $plugin_name The ID of this plugin. 26 26 */ 27 private string$plugin_name;27 private $plugin_name; 28 28 29 29 /** … … 34 34 */ 35 35 private $version; 36 private string$lw_api_url = 'https://localwebapi.ids.al/contactFormWeb';36 private $lw_api_url = 'https://localwebapi.ids.al/contactFormWeb'; 37 37 38 38 /** … … 42 42 * @param string $version The version of this plugin. 43 43 */ 44 public function __construct( string $plugin_name, string$version) {44 public function __construct( $plugin_name, $version) { 45 45 46 46 $this->plugin_name = $plugin_name; -
lw-all-in-one/trunk/admin/class-lw-all-in-one-ga-events.php
r2957218 r2961090 25 25 * @var string $plugin_name The ID of this plugin. 26 26 */ 27 private string$plugin_name;27 private $plugin_name; 28 28 29 29 /** … … 41 41 * @param string $version The version of this plugin. 42 42 */ 43 public function __construct( string $plugin_name, string$version) {43 public function __construct( $plugin_name, $version) { 44 44 45 45 $this->plugin_name = $plugin_name; -
lw-all-in-one/trunk/admin/class-lw-all-in-one-privacy-policy-pages.php
r2957218 r2961090 25 25 * @var string $plugin_name The ID of this plugin. 26 26 */ 27 private string$plugin_name;27 private $plugin_name; 28 28 29 29 /** -
lw-all-in-one/trunk/admin/class-lw-all-in-one-wim.php
r2957218 r2961090 25 25 * @var string $plugin_name The ID of this plugin. 26 26 */ 27 private string$plugin_name;27 private $plugin_name; 28 28 29 29 /** … … 35 35 private $version; 36 36 37 private string$wim_veify_api_url = 'https://localweb.it/chat/api/cliente/verifica-plugin.php';37 private $wim_veify_api_url = 'https://localweb.it/chat/api/cliente/verifica-plugin.php'; 38 38 39 39 /** … … 43 43 * @param string $version The version of this plugin. 44 44 */ 45 public function __construct( string $plugin_name, string$version) {45 public function __construct( $plugin_name, $version) { 46 46 47 47 $this->plugin_name = $plugin_name; … … 142 142 } 143 143 144 public function lw_all_in_one_old_wim_is_active_deactivate() : void{144 public function lw_all_in_one_old_wim_is_active_deactivate(){ 145 145 if (is_plugin_active('web-instant-messenger/web-instant-messenger.php')) { 146 146 delete_option('wim_activation_status'); -
lw-all-in-one/trunk/includes/class-lw-all-in-one.php
r2957218 r2961090 41 41 * 42 42 * @access protected 43 * @var string$plugin_name The string used to uniquely identify this plugin.43 * @var $plugin_name The string used to uniquely identify this plugin. 44 44 */ 45 protected string$plugin_name;45 protected $plugin_name; 46 46 47 47 /** … … 49 49 * 50 50 * @access protected 51 * @var string$version The current version of the plugin.51 * @var $version The current version of the plugin. 52 52 */ 53 protected string$version;53 protected $version; 54 54 55 55 /** … … 351 351 public function check_plugin_options($parent_key = false, $key = false) { 352 352 $options = get_option($this->plugin_name); 353 353 354 if ($parent_key !== false) { 354 return $options[ $parent_key ][ $key ] ?? false; 355 } else { 356 return $options[ $key ] ?? false; 355 if (isset($options[$parent_key]) && isset($options[$parent_key][$key])) { 356 return $options[$parent_key][$key]; 357 } else { 358 return false; 359 } 360 } else { 361 if (isset($options[$key])) { 362 return $options[$key]; 363 } else { 364 return false; 365 } 357 366 } 358 367 } -
lw-all-in-one/trunk/includes/helpers/lw-all-in-one-helper-functions.php
r2957218 r2961090 2 2 3 3 if (!function_exists('clean_domain')) { 4 function clean_domain($domain) : string{4 function clean_domain($domain) { 5 5 $clean = preg_replace('#^http(s)?://#', '', $domain); 6 6 $clean = preg_replace('/^www\./', '', $clean); … … 18 18 19 19 if (!function_exists('lw_all_in_one_validate_tracking_id')) { 20 function lw_all_in_one_validate_tracking_id($str) : bool{20 function lw_all_in_one_validate_tracking_id($str) { 21 21 return (bool) preg_match('/^UA-\d+-\d+$|^G-[a-zA-Z0-9]+$|^GTM-[a-zA-Z0-9]+$|^AW-[a-zA-Z0-9]+$|^DC-[a-zA-Z0-9]+$/i', strval($str)); 22 22 } -
lw-all-in-one/trunk/lw-all-in-one.php
r2960450 r2961090 10 10 * Plugin Name: LocalWeb All In One 11 11 * Description: LocalWeb All In One should be installed only on websites created by Local Web S.R.L, because it extends certain functionalities of the website which may send certain data to LocalWeb's servers. This is to make possible showing data on LocalWeb App. 12 * Version: 1.7. 112 * Version: 1.7.2 13 13 * Author: Local Web S.R.L 14 14 * Author URI: https://localweb.it/ … … 29 29 * Currently plugin version. 30 30 */ 31 define('LW_ALL_IN_ONE_VERSION', '1.7. 1');31 define('LW_ALL_IN_ONE_VERSION', '1.7.2'); 32 32 33 33 /** -
lw-all-in-one/trunk/public/class-lw-all-in-one-public.php
r2957218 r2961090 28 28 * @var string $plugin_name The ID of this plugin. 29 29 */ 30 private string$plugin_name;30 private $plugin_name; 31 31 32 32 /** … … 36 36 * @var string $version The current version of this plugin. 37 37 */ 38 private string$version;38 private $version; 39 39 40 40 /** … … 44 44 * @param string $version The version of this plugin. 45 45 */ 46 public function __construct( string $plugin_name, string$version) {46 public function __construct( $plugin_name, $version) { 47 47 48 48 $this->plugin_name = $plugin_name; … … 66 66 * 67 67 */ 68 public function enqueue_scripts() : void{68 public function enqueue_scripts(){ 69 69 //Plugin options 70 70 $options = get_option($this->plugin_name); … … 112 112 } 113 113 114 public function lw_all_in_one_dequeue() : void{114 public function lw_all_in_one_dequeue(){ 115 115 //Plugin options 116 116 $options = get_option($this->plugin_name); … … 125 125 } 126 126 127 function lw_all_in_one_dequeue_styles() : void{127 function lw_all_in_one_dequeue_styles(){ 128 128 global $wp_styles; 129 129 foreach( $wp_styles->queue as $style ) { … … 134 134 } 135 135 136 function lw_all_in_one_dequeue_scripts() : void{136 function lw_all_in_one_dequeue_scripts(){ 137 137 global $wp_scripts; 138 138 foreach( $wp_scripts->queue as $style ) { -
lw-all-in-one/trunk/readme.txt
r2960955 r2961090 4 4 Requires at least: 4.8.5 5 5 Tested up to: 6.3 6 Stable tag: 1.7. 17 Requires PHP: 7.06 Stable tag: 1.7.2 7 Requires PHP: 5.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 30 30 31 31 ## Changelog 32 33 ### 1.7.2 34 - Added backward compatibility down to PHP 5.6. 32 35 33 36 ### 1.7.1
Note: See TracChangeset
for help on using the changeset viewer.