Enhanced Text Widget - Version 1.5.4

Version Description

  • Tested up to WordPress 6.1-RC5
  • Updated try it out URL in readme to properly setup demo site
  • Adjusted carrousel module
Download this release

Release Info

Developer cl272
Plugin Icon wp plugin Enhanced Text Widget
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.4

analyst/src/helpers.php CHANGED
@@ -71,14 +71,3 @@ if (! function_exists('analyst_require_template')) {
71
  require analyst_templates_path($file);
72
  }
73
  }
74
-
75
- if (! function_exists('dd')) {
76
- /**
77
- * Dump some data
78
- */
79
- function dd ()
80
- {
81
- var_dump(func_get_args());
82
- die();
83
- }
84
- }
71
  require analyst_templates_path($file);
72
  }
73
  }
 
 
 
 
 
 
 
 
 
 
 
banner/assets/style.min.css CHANGED
@@ -135,3 +135,6 @@ a.ci-see-all-projects {
135
  padding: 35px 15px 5px 15px;
136
  }
137
  }
 
 
 
135
  padding: 35px 15px 5px 15px;
136
  }
137
  }
138
+
139
+ /* @since - Version 2.0 */
140
+ @media (max-width:760px){.ci-carrinis .ci-project:not(.ci-project-SocialShare):not(.ci-project-redRed) .ci-left-part .ci-project-logo a img{max-height:45px}}.ci-project-content{max-height:262px}.ci-project-content.ci-redRed-visible>div:not(.ci-project-redRed){display:none!important}.ci-carrinis .ci-project-redRed .ci-install-state .ci-install-button button{background-color:#374785}.ci-carrinis .ci-project-redRed .ci-install-state .ci-install-button a{color:#374785}.ci-carrinis .ci-project-redRed .ci-right-part img{top:0;right:0}@media (max-width:900px){.ci-carrinis .ci-project-redRed .ci-right-part img{display:none}}.ci-carrinis .ci-project-list-element-redRed:not(.ci-selected-project){background:#374785}.ci-carrinis .ci-project-list-element-redRed .ci-project-list-element-logo{width:45px;height:auto;margin-left:-8px}.ci-carrinis .ci-project-list-element.ci-project-list-element-redRed span{margin-left:6px}.ci-project-redRed .ci-background-top-left{position:absolute;top:-44px;left:0;z-index:-1}.ci-project-redRed .ci-project-logo{margin-left:128px;margin-right:46px}.ci-project-redRed .ci-project-logo a{margin-bottom:8px}.ci-projects-list>.ci-project-list-element:not(.ci-selected-project){height:32px;transition:height .3s cubic-bezier(.25,.1,.25,1)}.ci-projects-list>.ci-project-list-element.ci-selected-project{height:40px;transition:height .3s cubic-bezier(.25,.1,.25,1)}.ci-project-redRed .ci-redi-logo-p{width:131px}.ci-project-redRed .ci-right-part .ci-background-top-right{width:480px;z-index:-1}.ci-project-redRed .ci-already-installed-heading-redi::after{content:'';clear:both;display:block}.ci-project-redRed .ci-already-installed-heading-redi svg{margin-left:70px;float:left}.ci-project-redRed .ci-installed-column-redi{margin-left:90px!important}.ci-project-redRed .ci-already-redi-installed{float:left;font-size:24px;font-weight:400;color:#72c694;margin-left:15px;line-height:40px;font-family:Montserrat}.ci-project-redRed .ci-check-out-others-redi{font-family:Montserrat;font-size:18px;color:#374785;font-weight:400;line-height:40px;margin-top:15px}
banner/misc.php CHANGED
@@ -4,7 +4,7 @@
4
  * File for our cool Carousel in the footer
5
  *
6
  * @category Child Plugin
7
- * @version v0.1.0
8
  * @since v0.1.0
9
  * @author iClyde <kontakt@iclyde.pl>
10
  */
@@ -31,6 +31,7 @@
31
  private $bmi_slug = 'backup-backup/backup-backup.php';
32
  private $cdp_premium = 'copy-delete-posts-premium/copy-delete-posts-premium.php';
33
  private $cdp_slug = 'copy-delete-posts/copy-delete-posts.php';
 
34
  private $mpu_slug = 'pop-up-pop-up/pop-up-pop-up.php';
35
 
36
  /*
@@ -58,7 +59,6 @@
58
  return;
59
 
60
  }
61
-
62
  // WordPress globals
63
  global $menu;
64
 
@@ -98,7 +98,6 @@
98
 
99
  // WordPress Global Variables
100
  global $menu, $pagenow;
101
-
102
  // Make sure $menu exists
103
  if (!isset($menu) || !is_array($menu)) return $this->fail(5);
104
 
@@ -116,7 +115,6 @@
116
 
117
  // Print the footer
118
  add_action('admin_footer', [&$this, '_print'], 1);
119
-
120
  }
121
 
122
  }
@@ -298,6 +296,12 @@
298
  $url = admin_url() . 'admin.php?page=backup-migration';
299
  }
300
 
 
 
 
 
 
 
301
  // Send success
302
  wp_send_json_success([ 'installed' => true, 'url' => $url ]);
303
 
@@ -313,7 +317,6 @@
313
  * Add/print the Carousel
314
  */
315
  public function _print() {
316
-
317
  try {
318
 
319
  include_once trailingslashit($this->_root_dir) . 'views/index.php';
@@ -353,6 +356,10 @@
353
 
354
  $this->install($this->mpu_slug, 'pop-up-pop-up');
355
 
 
 
 
 
356
  // Anything else error
357
  } else wp_send_json_error();
358
 
@@ -362,7 +369,6 @@
362
  }
363
 
364
  if (!defined('INISEV_CAROUSEL_WIDGET')) {
365
-
366
  $carousel = new Inisev_Carousel_Widget(__FILE__, __DIR__);
367
 
368
  }
4
  * File for our cool Carousel in the footer
5
  *
6
  * @category Child Plugin
7
+ * @version v0.2.0
8
  * @since v0.1.0
9
  * @author iClyde <kontakt@iclyde.pl>
10
  */
31
  private $bmi_slug = 'backup-backup/backup-backup.php';
32
  private $cdp_premium = 'copy-delete-posts-premium/copy-delete-posts-premium.php';
33
  private $cdp_slug = 'copy-delete-posts/copy-delete-posts.php';
34
+ private $redi_slug = 'redirect-redirection/redirect-redirection.php';
35
  private $mpu_slug = 'pop-up-pop-up/pop-up-pop-up.php';
36
 
37
  /*
59
  return;
60
 
61
  }
 
62
  // WordPress globals
63
  global $menu;
64
 
98
 
99
  // WordPress Global Variables
100
  global $menu, $pagenow;
 
101
  // Make sure $menu exists
102
  if (!isset($menu) || !is_array($menu)) return $this->fail(5);
103
 
115
 
116
  // Print the footer
117
  add_action('admin_footer', [&$this, '_print'], 1);
 
118
  }
119
 
120
  }
296
  $url = admin_url() . 'admin.php?page=backup-migration';
297
  }
298
 
299
+ // Redirection for RED
300
+ if ($_POST['slug'] === 'redi') {
301
+ update_option('irrp_activation_redirect', true);
302
+ $url = admin_url() . 'admin.php?page=irrp-redirection';
303
+ }
304
+
305
  // Send success
306
  wp_send_json_success([ 'installed' => true, 'url' => $url ]);
307
 
317
  * Add/print the Carousel
318
  */
319
  public function _print() {
 
320
  try {
321
 
322
  include_once trailingslashit($this->_root_dir) . 'views/index.php';
356
 
357
  $this->install($this->mpu_slug, 'pop-up-pop-up');
358
 
359
+ } elseif ($slug == 'redi') {
360
+
361
+ $this->install($this->redi_slug, 'redirect-redirection');
362
+
363
  // Anything else error
364
  } else wp_send_json_error();
365
 
369
  }
370
 
371
  if (!defined('INISEV_CAROUSEL_WIDGET')) {
 
372
  $carousel = new Inisev_Carousel_Widget(__FILE__, __DIR__);
373
 
374
  }
banner/views/index.php CHANGED
@@ -117,6 +117,21 @@
117
  <img src="<?php $this->_asset('/projects/cdp/imgs/main-background-image.png'); ?>" class="ci-main-image">
118
  </div>
119
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  <div class="ci-project ci-project-TasteWP ci-install-state-visible">
121
  <?php $this->_include('projects/twp/install'); ?>
122
  <div class="ci-right-part">
117
  <img src="<?php $this->_asset('/projects/cdp/imgs/main-background-image.png'); ?>" class="ci-main-image">
118
  </div>
119
  </div>
120
+ <?php
121
+
122
+ $redi_plugin = $this->is_plugin_installed($this->redi_slug);
123
+ $redi_state = $redi_plugin ? 'already-installed' : 'install';
124
+
125
+ ?>
126
+ <div class="ci-project ci-project-redRed ci-<?php echo $redi_state; ?>-state-visible">
127
+ <?php
128
+ if ($redi_state == 'install') {
129
+ $this->_include('projects/red/install');
130
+ } else {
131
+ $this->_include('projects/red/installed');
132
+ }
133
+ ?>
134
+ </div>
135
  <div class="ci-project ci-project-TasteWP ci-install-state-visible">
136
  <?php $this->_include('projects/twp/install'); ?>
137
  <div class="ci-right-part">
banner/views/projects/red/imgs/background-top-left.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg width="260" height="287" viewBox="0 0 260 287" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M260 177.123C260.001 190.104 256.148 202.793 248.926 213.586C241.705 224.379 231.441 232.792 219.432 237.76C207.423 242.728 194.208 244.028 181.459 241.497C168.709 238.965 156.998 232.715 147.806 223.537C138.614 214.359 132.354 202.665 129.817 189.934C127.281 177.203 128.582 164.008 133.557 152.015C138.531 140.023 146.955 129.773 157.763 122.562C168.572 115.35 181.279 111.501 194.278 111.501C202.908 111.5 211.454 113.197 219.428 116.495C227.402 119.792 234.647 124.626 240.75 130.72C246.853 136.813 251.694 144.048 254.997 152.01C258.3 159.972 260 168.505 260 177.123ZM-125.739 -82.1804C-156.882 -58.3489 -181.43 -26.361 -193.954 10.741C-221.736 93.0385 -181.15 200.83 -93.4224 226.18C-11.4701 249.862 82.4792 199.817 97.2995 113.53C105.408 66.3073 111.616 20.7462 160.238 -1.42454C170.156 -5.94683 180.744 -8.99534 190.336 -14.1784C242.871 -42.5636 161.875 -83.6702 138.478 -95.8819C85.3785 -123.594 22.9974 -135.386 -36.1155 -123.234C-68.6949 -116.434 -99.3252 -102.403 -125.739 -82.1804ZM-225.256 59.6042C-225.257 61.8165 -225.693 64.007 -226.541 66.0509C-227.389 68.0947 -228.632 69.9517 -230.198 71.5159C-231.765 73.0802 -233.625 74.321 -235.672 75.1674C-237.718 76.0139 -239.912 76.4495 -242.128 76.4494C-244.343 76.4496 -246.537 76.014 -248.584 75.1676C-250.631 74.3212 -252.491 73.0804 -254.058 71.5162C-255.624 69.952 -256.867 68.0949 -257.715 66.051C-258.563 64.0072 -259 61.8165 -259 59.6042C-259 55.1362 -257.222 50.8514 -254.058 47.6922C-250.894 44.5331 -246.603 42.7583 -242.128 42.7585C-239.913 42.7583 -237.719 43.1939 -235.672 44.0404C-233.625 44.8869 -231.765 46.1278 -230.198 47.692C-228.632 49.2563 -227.389 51.1134 -226.541 53.1573C-225.693 55.2012 -225.257 57.3919 -225.256 59.6042ZM-108.813 254.172C-108.814 262.879 -112.278 271.229 -118.444 277.386C-124.61 283.542 -132.973 287 -141.693 287C-146.01 287 -150.286 286.151 -154.275 284.502C-158.264 282.852 -161.888 280.434 -164.942 277.386C-167.995 274.337 -170.417 270.718 -172.069 266.735C-173.722 262.752 -174.572 258.483 -174.573 254.172C-174.572 249.86 -173.722 245.591 -172.069 241.608C-170.417 237.625 -167.995 234.006 -164.942 230.957C-161.889 227.909 -158.264 225.491 -154.275 223.841C-150.286 222.192 -146.01 221.343 -141.693 221.343C-137.375 221.343 -133.1 222.192 -129.111 223.841C-125.122 225.491 -121.497 227.909 -118.444 230.958C-115.391 234.006 -112.969 237.625 -111.316 241.608C-109.664 245.591 -108.813 249.86 -108.813 254.172ZM-220.321 84.1895C-220.321 85.2063 -220.726 86.1816 -221.446 86.9006C-222.166 87.6197 -223.142 88.0236 -224.161 88.0236C-224.665 88.0237 -225.164 87.9246 -225.63 87.7319C-226.096 87.5393 -226.52 87.2569 -226.876 86.9008C-227.233 86.5448 -227.516 86.1221 -227.709 85.6569C-227.902 85.1916 -228.001 84.693 -228.001 84.1895C-228.001 83.6859 -227.902 83.1873 -227.709 82.7221C-227.516 82.2569 -227.233 81.8342 -226.876 81.4781C-226.52 81.1221 -226.096 80.8397 -225.63 80.647C-225.164 80.4544 -224.665 80.3553 -224.161 80.3553C-223.143 80.3556 -222.166 80.7597 -221.446 81.4787C-220.727 82.1977 -220.322 83.1728 -220.322 84.1895H-220.321Z" fill="#F0F3FF"/>
3
+ </svg>
banner/views/projects/red/imgs/big-colored-logo-rr.png ADDED
Binary file
banner/views/projects/red/imgs/colored-logo-rr.svg ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="48" height="23" viewBox="0 0 48 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M41.3512 8.15972L39.5502 0.235294C39.4781 0.091214 39.334 -0.0528797 39.19 0.0191605C39.1179 0.0191605 39.0459 0.0912052 39.0459 0.0912052L37.1728 2.10832C33.5708 -0.917367 28.528 0.739558 26.2227 3.18893C26.0786 3.33301 26.1507 3.47709 26.2227 3.62117C26.3668 3.76525 26.5109 3.69321 26.655 3.62117C27.2313 3.04485 31.9859 2.61262 34.6514 4.84587L32.7784 6.86298C32.6343 7.00706 32.7063 7.15115 32.7784 7.29523C32.8504 7.36727 32.8504 7.36727 32.9224 7.36727L40.9189 8.51992C41.063 8.51992 41.2071 8.44786 41.2791 8.23174C41.3512 8.23174 41.3512 8.23176 41.3512 8.15972Z" fill="#374785"/>
3
+ <g opacity="0.4">
4
+ <path opacity="0.4" d="M10.734 10.2489C10.4459 10.2489 10.1577 10.465 10.1577 10.8973C10.1577 11.3295 10.3738 11.5456 10.734 11.5456C11.0222 11.5456 11.3103 11.3295 11.3103 10.8973C11.2383 10.465 11.0222 10.2489 10.734 10.2489Z" fill="#374785"/>
5
+ <path opacity="0.4" d="M25.142 6.35873H4.10628C1.87303 6.35873 0 8.15973 0 10.465C0 12.7703 1.80099 14.5713 4.10628 14.5713H25.142C27.3753 14.5713 29.2483 12.7703 29.2483 10.465C29.2483 8.15973 27.3753 6.35873 25.142 6.35873ZM5.90729 12.266C5.0428 12.266 4.39446 11.6897 4.39446 10.8973C4.39446 10.1048 5.0428 9.5285 5.90729 9.5285C6.77177 9.5285 7.42014 10.1048 7.42014 10.8973C7.42014 11.6897 6.77177 12.266 5.90729 12.266ZM8.78889 12.194H7.85238V8.59196H8.78889V12.194ZM12.1748 12.194H11.3103V11.9058C11.1662 12.1219 10.8781 12.194 10.5179 12.194C9.79748 12.194 9.22114 11.6897 9.22114 10.8252C9.22114 9.96073 9.79748 9.45646 10.5179 9.45646C10.806 9.45646 11.0942 9.52849 11.2383 9.74461V8.51994H12.1748V12.194ZM14.1199 11.1854H12.6791V10.465H14.1199V11.1854ZM17.866 10.6811C17.866 11.6897 17.2897 12.266 16.2811 12.266C15.2725 12.266 14.6962 11.6897 14.6962 10.6811V8.8081H15.6327V10.6811C15.6327 11.2575 15.8489 11.4736 16.2811 11.4736C16.7133 11.4736 16.9295 11.2575 16.9295 10.6811V8.8081H17.866V10.6811ZM20.6755 12.194L20.0272 11.2575H19.5229V12.194H18.5864V8.8081H20.1713C21.1078 8.8081 21.6841 9.31237 21.6841 10.1048C21.6841 10.6091 21.468 10.9693 21.0357 11.1854L21.7561 12.266H20.6755V12.194ZM24.7818 12.194H22.1884V8.8081H23.1249V11.4736H24.7818V12.194Z" fill="#374785"/>
6
+ <path opacity="0.4" d="M20.0271 9.5285H19.5228V10.5371H20.0271C20.4593 10.5371 20.6034 10.3209 20.6034 10.0328C20.6755 9.74461 20.4593 9.5285 20.0271 9.5285Z" fill="#374785"/>
7
+ <path opacity="0.4" d="M5.90737 10.2489C5.61921 10.2489 5.33105 10.465 5.33105 10.8973C5.33105 11.3295 5.54717 11.5456 5.90737 11.5456C6.19553 11.5456 6.4837 11.3295 6.4837 10.8973C6.4837 10.465 6.19553 10.2489 5.90737 10.2489Z" fill="#374785"/>
8
+ </g>
9
+ <path d="M41.4952 23H12.1748C9.07709 23 6.48364 20.4786 6.48364 17.3088V17.2368C6.48364 14.139 9.00505 11.5456 12.1748 11.5456H41.4952C44.5929 11.5456 47.1864 14.067 47.1864 17.2368V17.3088C47.1864 20.4786 44.665 23 41.4952 23Z" fill="#374785"/>
10
+ <path d="M14.7682 17.5249V19.6141H13.4715V17.7411C13.4715 17.2368 13.2554 17.0207 12.8952 17.0207C12.4629 17.0207 12.1748 17.3088 12.1748 17.8852V19.6862H10.8781V15.9401H12.1027V16.3723C12.3909 16.0841 12.8231 15.9401 13.2554 15.9401C14.1199 15.868 14.7682 16.3723 14.7682 17.5249Z" fill="white"/>
11
+ <path d="M19.3787 18.1012H16.7132C16.8573 18.4614 17.1455 18.6776 17.6498 18.6776C18.01 18.6776 18.2261 18.6055 18.5142 18.3894L19.1626 19.1098C18.8024 19.47 18.2981 19.6861 17.5777 19.6861C16.281 19.6861 15.4165 18.8937 15.4165 17.8131C15.4165 16.7325 16.281 15.94 17.4336 15.94C18.5142 15.94 19.3787 16.6604 19.3787 17.8131C19.3787 17.8851 19.3787 18.0292 19.3787 18.1012ZM16.6412 17.4529H18.154C18.082 17.0927 17.7938 16.8045 17.4336 16.8045C17.0014 16.8045 16.7132 17.0206 16.6412 17.4529Z" fill="white"/>
12
+ <path d="M26.0064 15.94L24.7097 19.6141H23.485L22.7646 17.5969L22.0442 19.6141H20.8195L19.5228 15.94H20.7475L21.4679 18.1733L22.2603 15.94H23.341L24.1334 18.1733L24.9258 15.94H26.0064Z" fill="white"/>
13
+ <path d="M26.1505 17.1647H28.0956V18.1733H26.1505V17.1647Z" fill="white"/>
14
+ <path d="M28.8881 17.5249V14.8594H30.2568V17.4529C30.2568 18.2453 30.617 18.6055 31.1933 18.6055C31.7697 18.6055 32.0578 18.2453 32.0578 17.4529V14.8594H33.3545V17.5249C33.3545 18.9657 32.5621 19.7582 31.1213 19.7582C29.7525 19.6861 28.8881 18.8937 28.8881 17.5249Z" fill="white"/>
15
+ <path d="M36.3803 18.3894H35.6599V19.6861H34.2911V14.9315H36.4523C37.7491 14.9315 38.5415 15.5798 38.5415 16.6604C38.5415 17.3809 38.1813 17.8851 37.605 18.1733L38.6136 19.6861H37.1727L36.3803 18.3894ZM36.3803 15.94H35.6599V17.3088H36.3803C36.9566 17.3088 37.2448 17.0206 37.2448 16.5884C37.1727 16.1562 36.9566 15.94 36.3803 15.94Z" fill="white"/>
16
+ <path d="M39.334 14.8594H40.7027V18.5335H42.936V19.6141H39.334V14.8594Z" fill="white"/>
17
+ </svg>
banner/views/projects/red/imgs/main-background-image.png ADDED
Binary file
banner/views/projects/red/imgs/not-colored-logo.svg ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="45" height="22" viewBox="0 0 45 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M39.2718 7.74945L37.5614 0.223493C37.4929 0.0866579 37.3561 -0.0501902 37.2193 0.0182276C37.1509 0.0182276 37.0824 0.0866496 37.0824 0.0866496L35.3036 2.00234C31.8827 -0.871208 27.0934 0.702401 24.9041 3.02861C24.7672 3.16544 24.8357 3.30228 24.9041 3.43912C25.0409 3.57595 25.1778 3.50753 25.3146 3.43912C25.8619 2.89177 30.3775 2.48128 32.909 4.60223L31.1301 6.51792C30.9933 6.65475 31.0617 6.79159 31.1301 6.92843C31.1985 6.99685 31.1985 6.99685 31.2669 6.99685L38.8613 8.09154C38.9981 8.09154 39.135 8.0231 39.2034 7.81785C39.2718 7.81785 39.2718 7.81787 39.2718 7.74945Z" fill="white"/>
3
+ <g opacity="0.4">
4
+ <path opacity="0.4" d="M10.1942 9.73355C9.92051 9.73355 9.64685 9.9388 9.64685 10.3493C9.64685 10.7598 9.8521 10.9651 10.1942 10.9651C10.4679 10.9651 10.7415 10.7598 10.7415 10.3493C10.6731 9.9388 10.4679 9.73355 10.1942 9.73355Z" fill="white"/>
5
+ <path opacity="0.4" d="M23.8778 6.039H3.8998C1.77885 6.039 0 7.74943 0 9.9388C0 12.1282 1.71043 13.8386 3.8998 13.8386H23.8778C25.9988 13.8386 27.7776 12.1282 27.7776 9.9388C27.7776 7.74943 25.9988 6.039 23.8778 6.039ZM5.61025 11.6492C4.78923 11.6492 4.17349 11.1019 4.17349 10.3493C4.17349 9.59672 4.78923 9.04938 5.61025 9.04938C6.43126 9.04938 7.04702 9.59672 7.04702 10.3493C7.04702 11.1019 6.43126 11.6492 5.61025 11.6492ZM8.34696 11.5808H7.45753V8.15994H8.34696V11.5808ZM11.5626 11.5808H10.7416V11.3072C10.6047 11.5124 10.3311 11.5808 9.989 11.5808C9.30482 11.5808 8.75747 11.1019 8.75747 10.2809C8.75747 9.45988 9.30482 8.98096 9.989 8.98096C10.2627 8.98096 10.5363 9.04937 10.6732 9.25462V8.09153H11.5626V11.5808ZM13.4099 10.623H12.0415V9.9388H13.4099V10.623ZM16.9676 10.1441C16.9676 11.1019 16.4203 11.6492 15.4624 11.6492C14.5046 11.6492 13.9572 11.1019 13.9572 10.1441V8.3652H14.8466V10.1441C14.8466 10.6914 15.0519 10.8966 15.4624 10.8966C15.8729 10.8966 16.0782 10.6914 16.0782 10.1441V8.3652H16.9676V10.1441ZM19.6359 11.5808L19.0201 10.6914H18.5412V11.5808H17.6518V8.3652H19.157C20.0464 8.3652 20.5938 8.84412 20.5938 9.59671C20.5938 10.0756 20.3885 10.4177 19.978 10.623L20.6622 11.6492H19.6359V11.5808ZM23.5357 11.5808H21.0727V8.3652H21.9621V10.8966H23.5357V11.5808Z" fill="white"/>
6
+ <path opacity="0.4" d="M19.02 9.04938H18.5411V10.0072H19.02C19.4306 10.0072 19.5674 9.80196 19.5674 9.52829C19.6358 9.25462 19.4306 9.04938 19.02 9.04938Z" fill="white"/>
7
+ <path opacity="0.4" d="M5.61032 9.73355C5.33665 9.73355 5.06299 9.9388 5.06299 10.3493C5.06299 10.7598 5.26823 10.9651 5.61032 10.9651C5.88399 10.9651 6.15768 10.7598 6.15768 10.3493C6.15768 9.9388 5.88399 9.73355 5.61032 9.73355Z" fill="white"/>
8
+ </g>
9
+ <path d="M39.4086 21.8435H11.5626C8.62063 21.8435 6.15759 19.4489 6.15759 16.4385V16.3701C6.15759 13.4281 8.55221 10.9651 11.5626 10.9651H39.4086C42.3506 10.9651 44.8136 13.3597 44.8136 16.3701V16.4385C44.8136 19.4489 42.419 21.8435 39.4086 21.8435Z" fill="white"/>
10
+ <path d="M14.0256 16.6437V18.6279H12.7941V16.849C12.7941 16.3701 12.5888 16.1648 12.2467 16.1648C11.8362 16.1648 11.5626 16.4385 11.5626 16.9858V18.6963H10.3311V15.1385H11.4941V15.549C11.7678 15.2754 12.1783 15.1385 12.5888 15.1385C13.4098 15.0701 14.0256 15.5491 14.0256 16.6437Z" fill="black"/>
11
+ <path d="M18.4042 17.1911H15.8727C16.0096 17.5331 16.2833 17.7384 16.7622 17.7384C17.1043 17.7384 17.3095 17.67 17.5832 17.4647L18.199 18.1489C17.8569 18.491 17.3779 18.6963 16.6938 18.6963C15.4622 18.6963 14.6412 17.9437 14.6412 16.9174C14.6412 15.8911 15.4622 15.1385 16.5569 15.1385C17.5832 15.1385 18.4042 15.8227 18.4042 16.9174C18.4042 16.9858 18.4042 17.1226 18.4042 17.1911ZM15.8043 16.5753H17.2411C17.1727 16.2332 16.899 15.9595 16.5569 15.9595C16.1464 15.9595 15.8728 16.1648 15.8043 16.5753Z" fill="black"/>
12
+ <path d="M24.6987 15.1385L23.4672 18.6278H22.3041L21.6199 16.7121L20.9358 18.6278H19.7726L18.5411 15.1385H19.7042L20.3884 17.2595L21.141 15.1385H22.1673L22.9199 17.2595L23.6725 15.1385H24.6987Z" fill="black"/>
13
+ <path d="M24.8356 16.3016H26.6829V17.2595H24.8356V16.3016Z" fill="black"/>
14
+ <path d="M27.4354 16.6437V14.1123H28.7354V16.5753C28.7354 17.3279 29.0774 17.67 29.6248 17.67C30.1721 17.67 30.4458 17.3279 30.4458 16.5753V14.1123H31.6773V16.6437C31.6773 18.0121 30.9247 18.7647 29.5564 18.7647C28.2564 18.6963 27.4354 17.9437 27.4354 16.6437Z" fill="black"/>
15
+ <path d="M34.5509 17.4647H33.8667V18.6963H32.5668V14.1807H34.6193C35.8508 14.1807 36.6034 14.7965 36.6034 15.8227C36.6034 16.5069 36.2613 16.9858 35.714 17.2595L36.6718 18.6963H35.3035L34.5509 17.4647ZM34.5509 15.1385H33.8667V16.4385H34.5509C35.0982 16.4385 35.3719 16.1648 35.3719 15.7543C35.3035 15.3438 35.0982 15.1385 34.5509 15.1385Z" fill="black"/>
16
+ <path d="M37.3561 14.1123H38.656V17.6016H40.777V18.6279H37.3561V14.1123Z" fill="black"/>
17
+ </svg>
banner/views/projects/red/install.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Namespace
4
+ namespace Inisev\Subs;
5
+
6
+ // Disallow direct access
7
+ if (!defined('ABSPATH')) exit;
8
+
9
+ ?>
10
+
11
+ <img src="<?php $this->_asset('/projects/red/imgs/background-top-left.svg'); ?>" class="ci-background-top-left">
12
+ <div class="ci-left-part ci-install-state">
13
+
14
+ <div class="ci-project-logo">
15
+ <a href="https://wordpress.org/plugins/redirect-redirection/" target="_blank">
16
+ <img class="ci-redi-logo-p" alt="Redirect Logo" src="<?php $this->_asset('/projects/red/imgs/big-colored-logo-rr.png'); ?>">
17
+ </a>
18
+ <img src="<?php $this->_asset('/static/imgs/rating.svg'); ?>">
19
+ </div>
20
+
21
+ <div class="ci-install-column">
22
+ <ul class="ci-checkmark-list ci-checkmark-list-type-1">
23
+ <li>Redirect URLs with one click</li>
24
+ <li>Define redirection rules</li>
25
+ <li><b>100% Free</b></li>
26
+ </ul>
27
+ <div class="ci-install-button">
28
+ <button class="ci-inisev-install-plugin" data-slug="redi">Install plugin now</button>
29
+ <span>(from <a href="https://wordpress.org/plugins/redirect-redirection/" target="_blank">WP directory</a>)</span>
30
+ </div>
31
+ </div>
32
+
33
+ </div>
34
+
35
+ <div class="ci-right-part">
36
+ <img src="<?php $this->_asset('/projects/red/imgs/main-background-image.png'); ?>" class="ci-background-top-right">
37
+ </div>
banner/views/projects/red/installed.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Namespace
4
+ namespace Inisev\Subs;
5
+
6
+ // Disallow direct access
7
+ if (!defined('ABSPATH')) exit;
8
+
9
+ ?>
10
+
11
+ <img src="<?php $this->_asset('/projects/red/imgs/background-top-left.svg'); ?>" class="ci-background-top-left">
12
+ <div class="ci-left-part ci-install-state">
13
+
14
+ <div class="ci-install-column ci-installed-column ci-installed-column-redi">
15
+ <div class="ci-already-installed-heading ci-already-installed-heading-redi">
16
+ <svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
17
+ <path d="M40.7975 5.74273C40.1757 5.1268 39.1785 5.1268 38.5567 5.74273L19.5688 24.6779L12.7232 17.24C12.1307 16.5947 11.1276 16.5536 10.4824 17.1461C9.843 17.7385 9.802 18.7416 10.3945 19.381L18.3603 28.0332C18.6478 28.35 19.0584 28.5318 19.4866 28.5436C19.4984 28.5436 19.51 28.5436 19.5218 28.5436C19.9441 28.5436 20.343 28.3793 20.6422 28.0802L40.7916 7.98351C41.4134 7.36759 41.4134 6.36451 40.7975 5.74273ZM40.4162 19.4162C39.5421 19.4162 38.8324 20.126 38.8324 21C38.8324 30.8313 30.8313 38.8324 21 38.8324C11.1687 38.8324 3.16761 30.8313 3.16761 21C3.16761 11.1687 11.1687 3.16758 21 3.16758C21.874 3.16758 22.5838 2.45783 22.5838 1.58381C22.5838 0.709784 21.874 0 21 0C9.42069 0 0 9.42067 0 21C0 32.5793 9.42069 42 21 42C32.5793 42 42 32.5793 42 21C42 20.126 41.2902 19.4162 40.4162 19.4162Z" fill="#6BB4A7"/>
18
+ </svg>
19
+ <div class="ci-already-redi-installed">
20
+ <span class="ci-colored-part">Already installed</span>
21
+ </div>
22
+ </div>
23
+ <div class="ci-check-out-others-redi">
24
+ Please keep checking out our other plugins :)
25
+ </div>
26
+ </div>
27
+
28
+ </div>
29
+
30
+ <div class="ci-right-part">
31
+ <img src="<?php $this->_asset('/projects/red/imgs/main-background-image.png'); ?>" class="ci-background-top-right">
32
+ </div>
banner/views/static/tabs.php CHANGED
@@ -44,6 +44,13 @@
44
  </div>
45
  <span>Social Share</span>
46
  </div>
 
 
 
 
 
 
 
47
  <div class="ci-project-list-element ci-project-list-element-followIt" id="followIt-trigger">
48
  <div class="ci-project-list-element-logo">
49
  <img src="<?php $this->_asset('/projects/fit/imgs/white-logo.svg'); ?>" class="ci-white-project-logo">
44
  </div>
45
  <span>Social Share</span>
46
  </div>
47
+ <div class="ci-project-list-element ci-project-list-element-redRed" id="redRed-trigger">
48
+ <div class="ci-project-list-element-logo">
49
+ <img src="<?php $this->_asset('/projects/red/imgs/not-colored-logo.svg'); ?>" class="ci-white-project-logo">
50
+ <img src="<?php $this->_asset('/projects/red/imgs/colored-logo-rr.svg'); ?>" class="ci-colored-project-logo">
51
+ </div>
52
+ <span>Redirect Redirection</span>
53
+ </div>
54
  <div class="ci-project-list-element ci-project-list-element-followIt" id="followIt-trigger">
55
  <div class="ci-project-list-element-logo">
56
  <img src="<?php $this->_asset('/projects/fit/imgs/white-logo.svg'); ?>" class="ci-white-project-logo">
enhanced-text-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enhanced Text Widget
4
  Plugin URI: http://wordpress.org/plugins/enhanced-text-widget/
5
  Description: An enhanced version of the default text widget where you may have Text, HTML, CSS, JavaScript, Flash, Shortcodes, and/or PHP as content with linkable widget title.
6
- Version: 1.5.2
7
  Author: Clever Widgets
8
  Author URI: https://themecheck.info
9
  Text Domain: enhanced-text-widget
@@ -13,14 +13,14 @@ License: MIT
13
 
14
  // Exit if accessed directly.
15
  if ( !defined('ABSPATH') ) exit;
16
- require_once 'analyst/main.php';
17
-
18
- analyst_init(array(
19
- 'client-id' => 'ozb8r4zvwq369anp',
20
- 'client-secret' => '63fcba7fd64e28937637a50f84450df531eb2dae',
21
- 'base-dir' => __FILE__
22
- ));
23
-
24
 
25
  class EnhancedTextWidget extends WP_Widget {
26
 
@@ -28,10 +28,10 @@ class EnhancedTextWidget extends WP_Widget {
28
  * Widget construction
29
  */
30
  function __construct() {
31
- $widget_ops = array('classname' => 'widget_text enhanced-text-widget', 'description' => __('Text, HTML, CSS, PHP, Flash, JavaScript, Shortcodes', 'enhanced-text-widget'));
32
- $control_ops = array('width' => 450);
33
- parent::__construct('EnhancedTextWidget', __('Enhanced Text', 'enhanced-text-widget'), $widget_ops, $control_ops);
34
- load_plugin_textdomain('enhanced-text-widget', false, basename( dirname( __FILE__ ) ) . '/languages' );
35
  }
36
 
37
  /**
@@ -126,8 +126,7 @@ class EnhancedTextWidget extends WP_Widget {
126
  $titleUrl = $instance['titleUrl'];
127
  $cssClass = $instance['cssClass'];
128
  $text = format_to_edit($instance['text']);
129
- ?>
130
-
131
  <style>
132
  .monospace {
133
  font-family: Consolas, Lucida Console, monospace;
@@ -139,59 +138,53 @@ class EnhancedTextWidget extends WP_Widget {
139
  padding: 4px 6px;
140
  }
141
  </style>
142
-
143
  <p>
144
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'enhanced-text-widget'); ?>:</label>
145
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />
146
  </p>
147
 
148
  <p>
149
- <label for="<?php echo $this->get_field_id('titleUrl'); ?>"><?php _e('URL', 'enhanced-text-widget'); ?>:</label>
150
  <input class="widefat" id="<?php echo $this->get_field_id('titleUrl'); ?>" name="<?php echo $this->get_field_name('titleUrl'); ?>" type="text" value="<?php echo $titleUrl; ?>" />
151
  </p>
152
 
153
  <p>
154
- <label for="<?php echo $this->get_field_id('cssClass'); ?>"><?php _e('CSS Classes', 'enhanced-text-widget'); ?>:</label>
155
  <input class="widefat" id="<?php echo $this->get_field_id('cssClass'); ?>" name="<?php echo $this->get_field_name('cssClass'); ?>" type="text" value="<?php echo $cssClass; ?>" />
156
  </p>
157
 
158
  <p>
159
- <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Content', 'enhanced-text-widget'); ?>:</label>
160
  <textarea class="widefat monospace" rows="16" cols="20" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea>
161
  </p>
162
 
163
  <p>
164
- <input id="<?php echo $this->get_field_id('hideTitle'); ?>" name="<?php echo $this->get_field_name('hideTitle'); ?>" type="checkbox" <?php checked(isset($instance['hideTitle']) ? $instance['hideTitle'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('hideTitle'); ?>"><?php _e('Do not display the title', 'enhanced-text-widget'); ?></label>
165
  </p>
166
 
167
  <p>
168
- <input id="<?php echo $this->get_field_id('hideEmpty'); ?>" name="<?php echo $this->get_field_name('hideEmpty'); ?>" type="checkbox" <?php checked(isset($instance['hideEmpty']) ? $instance['hideEmpty'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('hideEmpty'); ?>"><?php _e('Do not display empty widgets', 'enhanced-text-widget'); ?></label>
169
  </p>
170
 
171
  <p>
172
  <input type="checkbox" id="<?php echo $this->get_field_id('newWindow'); ?>" name="<?php echo $this->get_field_name('newWindow'); ?>" <?php checked(isset($instance['newWindow']) ? $instance['newWindow'] : 0); ?> />
173
- <label for="<?php echo $this->get_field_id('newWindow'); ?>"><?php _e('Open the URL in a new window', 'enhanced-text-widget'); ?></label>
174
  </p>
175
 
176
  <p>
177
- <input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs to the content', 'enhanced-text-widget'); ?></label>
178
  </p>
179
 
180
  <p>
181
- <input id="<?php echo $this->get_field_id('bare'); ?>" name="<?php echo $this->get_field_name('bare'); ?>" type="checkbox" <?php checked(isset($instance['bare']) ? $instance['bare'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('bare'); ?>"><?php _e('Do not output before/after_widget/title', 'enhanced-text-widget'); ?></label>
182
  </p>
183
 
184
- <div class="etw-carousel-ad-trigger">
185
- <div class="etw-new-label">
186
- New
187
- </div>
188
- <span>Please check out our other plugins too!</span>
189
- <div class="etw-check-it-label">
190
- Check it out
191
- </div>
192
- </div>
193
-
194
- <?php
195
  }
196
  }
197
 
@@ -199,15 +192,77 @@ class EnhancedTextWidget extends WP_Widget {
199
  * Register the widget
200
  */
201
  function enhanced_text_widget_init() {
 
 
 
 
 
 
 
202
 
203
- register_widget('EnhancedTextWidget');
 
204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  }
206
 
207
- add_action('widgets_init', 'enhanced_text_widget_init');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
 
209
- add_action('admin_init', function () {
 
210
 
211
- require_once 'banner/misc.php';
212
 
213
- });
 
 
 
 
 
 
 
 
 
 
 
 
3
  Plugin Name: Enhanced Text Widget
4
  Plugin URI: http://wordpress.org/plugins/enhanced-text-widget/
5
  Description: An enhanced version of the default text widget where you may have Text, HTML, CSS, JavaScript, Flash, Shortcodes, and/or PHP as content with linkable widget title.
6
+ Version: 1.5.4
7
  Author: Clever Widgets
8
  Author URI: https://themecheck.info
9
  Text Domain: enhanced-text-widget
13
 
14
  // Exit if accessed directly.
15
  if ( !defined('ABSPATH') ) exit;
16
+ require_once 'analyst/main.php';
17
+
18
+ analyst_init(array(
19
+ 'client-id' => 'ozb8r4zvwq369anp',
20
+ 'client-secret' => '63fcba7fd64e28937637a50f84450df531eb2dae',
21
+ 'base-dir' => __FILE__
22
+ ));
23
+
24
 
25
  class EnhancedTextWidget extends WP_Widget {
26
 
28
  * Widget construction
29
  */
30
  function __construct() {
31
+ $widget_ops = array('classname' => 'widget_text enhanced-text-widget', 'description' => __( 'Text, HTML, CSS, PHP, Flash, JavaScript, Shortcodes', 'enhanced-text-widget' ));
32
+ $control_ops = array( 'width' => 450 );
33
+ parent::__construct('EnhancedTextWidget', __( 'Enhanced Text', 'enhanced-text-widget' ), $widget_ops, $control_ops);
34
+ load_plugin_textdomain( 'enhanced-text-widget', false, basename( dirname( __FILE__ ) ) . '/languages' );
35
  }
36
 
37
  /**
126
  $titleUrl = $instance['titleUrl'];
127
  $cssClass = $instance['cssClass'];
128
  $text = format_to_edit($instance['text']);
129
+ ?>
 
130
  <style>
131
  .monospace {
132
  font-family: Consolas, Lucida Console, monospace;
138
  padding: 4px 6px;
139
  }
140
  </style>
 
141
  <p>
142
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title', 'enhanced-text-widget' ); ?>:</label>
143
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />
144
  </p>
145
 
146
  <p>
147
+ <label for="<?php echo $this->get_field_id('titleUrl'); ?>"><?php _e( 'URL', 'enhanced-text-widget' ); ?>:</label>
148
  <input class="widefat" id="<?php echo $this->get_field_id('titleUrl'); ?>" name="<?php echo $this->get_field_name('titleUrl'); ?>" type="text" value="<?php echo $titleUrl; ?>" />
149
  </p>
150
 
151
  <p>
152
+ <label for="<?php echo $this->get_field_id('cssClass'); ?>"><?php _e( 'CSS Classes', 'enhanced-text-widget' ); ?>:</label>
153
  <input class="widefat" id="<?php echo $this->get_field_id('cssClass'); ?>" name="<?php echo $this->get_field_name('cssClass'); ?>" type="text" value="<?php echo $cssClass; ?>" />
154
  </p>
155
 
156
  <p>
157
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e( 'Content', 'enhanced-text-widget' ); ?>:</label>
158
  <textarea class="widefat monospace" rows="16" cols="20" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea>
159
  </p>
160
 
161
  <p>
162
+ <input id="<?php echo $this->get_field_id('hideTitle'); ?>" name="<?php echo $this->get_field_name('hideTitle'); ?>" type="checkbox" <?php checked(isset($instance['hideTitle']) ? $instance['hideTitle'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('hideTitle'); ?>"><?php _e( 'Do not display the title', 'enhanced-text-widget' ); ?></label>
163
  </p>
164
 
165
  <p>
166
+ <input id="<?php echo $this->get_field_id('hideEmpty'); ?>" name="<?php echo $this->get_field_name('hideEmpty'); ?>" type="checkbox" <?php checked(isset($instance['hideEmpty']) ? $instance['hideEmpty'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('hideEmpty'); ?>"><?php _e( 'Do not display empty widgets', 'enhanced-text-widget' ); ?></label>
167
  </p>
168
 
169
  <p>
170
  <input type="checkbox" id="<?php echo $this->get_field_id('newWindow'); ?>" name="<?php echo $this->get_field_name('newWindow'); ?>" <?php checked(isset($instance['newWindow']) ? $instance['newWindow'] : 0); ?> />
171
+ <label for="<?php echo $this->get_field_id('newWindow'); ?>"><?php _e( 'Open the URL in a new window', 'enhanced-text-widget' ); ?></label>
172
  </p>
173
 
174
  <p>
175
+ <input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e( 'Automatically add paragraphs to the content', 'enhanced-text-widget' ); ?></label>
176
  </p>
177
 
178
  <p>
179
+ <input id="<?php echo $this->get_field_id('bare'); ?>" name="<?php echo $this->get_field_name('bare'); ?>" type="checkbox" <?php checked(isset($instance['bare']) ? $instance['bare'] : 0); ?> />&nbsp;<label for="<?php echo $this->get_field_id('bare'); ?>"><?php _e( 'Do not output before/after_widget/title', 'enhanced-text-widget' ); ?></label>
180
  </p>
181
 
182
+ <div class="etw-carousel-ad-trigger">
183
+ <div class="etw-new-label"><?php _e( 'New', 'enhanced-text-widget' ); ?></div>
184
+ <span><?php _e( 'Please check out our other plugins too!', 'enhanced-text-widget' ); ?></span>
185
+ <div class="etw-check-it-label"><?php _e( 'Check it out', 'enhanced-text-widget' ); ?></div>
186
+ </div>
187
+ <?php
 
 
 
 
 
188
  }
189
  }
190
 
192
  * Register the widget
193
  */
194
  function enhanced_text_widget_init() {
195
+ register_widget( 'EnhancedTextWidget' );
196
+ }
197
+ add_action( 'widgets_init', 'enhanced_text_widget_init' );
198
+
199
+ add_action('admin_init', function () {
200
+ require_once 'banner/misc.php';
201
+ });
202
 
203
+ /* Admin notice to check Classic Widgets Plugin is not already installed and WordPress version 5.8 or higher */
204
+ add_action( 'admin_notices', 'etw_flush_admin_notice__warning' );
205
 
206
+ function etw_flush_admin_notice__warning() {
207
+ global $wp_version;
208
+
209
+ if ( version_compare( $wp_version, '5.8' ) >= 0 && !is_plugin_active( 'classic-widgets/classic-widgets.php' ) ) {
210
+
211
+ $etw_hide_admin_notification = get_option( 'etw_hide_admin_notification' );
212
+ if( 'yes' === $etw_hide_admin_notification ) {
213
+ return;
214
+ }
215
+ ?>
216
+ <div class="notice notice-warning etw-notice-wrapper is-dismissible">
217
+ <p><?php
218
+ echo sprintf(
219
+ __( '%1$sEnhanced Text Widget:%2$s This plugin provides a classic widget type, and needs the %3$sClassic Widgets%4$s plugin to function properly on this WordPress version.', 'ultimate-posts-widget' ),
220
+ '<b>',
221
+ '</b>',
222
+ '<a href="https://wordpress.org/plugins/classic-widgets/" target="_blank">',
223
+ '</a>'
224
+ );
225
+ ?></p>
226
+ </div>
227
+ <?php
228
+ }
229
  }
230
 
231
+ add_action( 'admin_print_footer_scripts', 'etw_admin_footer_js' );
232
+ function etw_admin_footer_js() {
233
+ ?>
234
+ <script id='etw-notice-js'>
235
+ (function ($) {
236
+ $( document ).ready( function() {
237
+ $( document ).on( 'click', '.etw-notice-wrapper.is-dismissible .notice-dismiss', function () {
238
+ $.ajax({
239
+ type: "post",
240
+ dataType: "json",
241
+ url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
242
+ data : { action: "etw_hide_admin_notification" },
243
+ });
244
+ });
245
+ });
246
+ })( jQuery );
247
+ </script>
248
+ <?php
249
+ }
250
 
251
+ add_action( 'wp_ajax_nopriv_etw_hide_admin_notification', 'etw_hide_admin_notification_callback' );
252
+ add_action( 'wp_ajax_etw_hide_admin_notification', 'etw_hide_admin_notification_callback' );
253
 
254
+ function etw_hide_admin_notification_callback() {
255
 
256
+ $option_name = 'etw_hide_admin_notification';
257
+ $new_value = 'yes';
258
+
259
+ if ( get_option( $option_name ) !== false ) {
260
+ update_option( $option_name, $new_value );
261
+ } else {
262
+ $deprecated = null;
263
+ $autoload = 'no';
264
+ add_option( $option_name, $new_value, $deprecated, $autoload );
265
+ }
266
+ wp_send_json_success();
267
+ die;
268
+ }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: cl272
3
  Donate link: https://sellcodes.com/5U4SICyc
4
  Tags: widget, clickable, linkable, linked title, text, php, javascript, flash, linked title text, linked, text widget, php widget, link widget title, bare widget, widget shortcodes, enhanced text, better text widget, simple, html widget, css
5
  Requires at least: 3.6
6
- Tested up to: 5.8
7
- Stable tag: 1.5.2
8
  License: MIT
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -12,7 +12,10 @@ An enhanced version of the text widget that supports Text, HTML, CSS, JavaScript
12
 
13
  == Description ==
14
 
15
- **Try it out on your free dummy site: Click here => [https://tastewp.com/plugins/enhanced-text-widget](https://tastewp.com/plugins/enhanced-text-widget)**
 
 
 
16
 
17
  UPDATE: Plugin ownership changed for this plugin. We are currently evaluating possible enhancements for it. Stay tuned! If you have any suggestions yourself, please let us know in the Support Forum.
18
 
@@ -53,33 +56,16 @@ Nothing right now.
53
 
54
  1. Widget options
55
 
56
- == Upgrade Notice ==
57
-
58
- = 1.5.2 =
59
- * Tested up to WordPress 5.7.1
60
- * Added support for PHP 8
61
- * Updated banner
62
-
63
- = 1.5.1 =
64
- * Tested with new version of WordPress
65
- * Updated Opt-in
66
-
67
- = 1.5 =
68
- * Fixed issue with not registered widget
69
-
70
- = 1.3.4 =
71
- This adds option to hide the title
72
-
73
- = 1.2 =
74
- This adds option to display bare text (no before/after widget/title elements are shown).
75
-
76
- = 1.1 =
77
- This adds a CSS class parameter to each widget.
78
-
79
- = 1.0 =
80
- This is the initial release.
81
-
82
  == Changelog ==
 
 
 
 
 
 
 
 
 
83
 
84
  = 1.5.2 =
85
  * Tested up to WordPress 5.7.1
@@ -149,3 +135,9 @@ This is the initial release.
149
 
150
  = 1.0 =
151
  * First release.
 
 
 
 
 
 
3
  Donate link: https://sellcodes.com/5U4SICyc
4
  Tags: widget, clickable, linkable, linked title, text, php, javascript, flash, linked title text, linked, text widget, php widget, link widget title, bare widget, widget shortcodes, enhanced text, better text widget, simple, html widget, css
5
  Requires at least: 3.6
6
+ Tested up to: 6.1
7
+ Stable tag: 1.5.4
8
  License: MIT
9
  License URI: http://opensource.org/licenses/MIT
10
 
12
 
13
  == Description ==
14
 
15
+ **Try it out on your free dummy site: Click here => [https://tastewp.com/plugins/enhanced-text-widget](https://demo.tastewp.com/enhanced-text-widget).**
16
+ (this trick works for all plugins in the WP repo - just replace "wordpress" with "tastewp" in the URL)
17
+
18
+ Note: This is a **classic widget** type, in order for it to work on the latest version of WordPress you will need [Classic Widgets](https://wordpress.org/plugins/classic-widgets/) plugin installed on your site.
19
 
20
  UPDATE: Plugin ownership changed for this plugin. We are currently evaluating possible enhancements for it. Stay tuned! If you have any suggestions yourself, please let us know in the Support Forum.
21
 
56
 
57
  1. Widget options
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  == Changelog ==
60
+ = 1.5.4 =
61
+ * Tested up to WordPress 6.1-RC5
62
+ * Updated try it out URL in readme to properly setup demo site
63
+ * Adjusted carrousel module
64
+
65
+ = 1.5.3 =
66
+ * Added admin notice for new Widget editor
67
+ * Fixed Some minor fixes
68
+ * Tested up to WordPress 6.0-beta1
69
 
70
  = 1.5.2 =
71
  * Tested up to WordPress 5.7.1
135
 
136
  = 1.0 =
137
  * First release.
138
+
139
+ == Upgrade Notice ==
140
+ = 1.5.4 =
141
+ * Tested up to WordPress 6.1-RC5
142
+ * Updated try it out URL in readme
143
+ * Adjusted carrousel module