Newsletter - Version 5.2.3

Version Description

=

  • Newsletter subject ideas popup

=

Download this release

Release Info

Developer satollo
Plugin Icon 128x128 Newsletter
Version 5.2.3
Comparing to
See all releases

Code changes from version 5.2.2 to 5.2.3

Files changed (5) hide show
  1. admin.css +83 -8
  2. emails/edit.php +56 -19
  3. includes/controls.php +12 -4
  4. plugin.php +2 -2
  5. readme.txt +6 -2
admin.css CHANGED
@@ -1906,18 +1906,93 @@ input:checked + .slider:before {
1906
  font-family: "Montserrat", sans-serif;
1907
  margin-left: 8px;
1908
  border-radius: 3px;
1909
- border: 1px solid #2980B9;
1910
- padding: 5px 15px;
1911
- font-size: 16px;
 
1912
  text-decoration: none;
1913
  }
1914
 
1915
  .tnp-suggest-button:hover {
1916
- border: 2px solid #3498DB;
1917
  }
1918
 
1919
- /*
1920
- #options-subject {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1921
  background: url(images/idea.svg) no-repeat white 99% 3px;
1922
  background-size: 25px;
1923
  }
@@ -1925,8 +2000,8 @@ input:checked + .slider:before {
1925
  #options-subject:hover {
1926
  background: url(images/idea.svg) no-repeat red 99% 3px;
1927
  background-size: 25px;
1928
- }
1929
- */
1930
 
1931
  /* Stile selettore liste - Schermata di invio newsletter */
1932
 
1906
  font-family: "Montserrat", sans-serif;
1907
  margin-left: 8px;
1908
  border-radius: 3px;
1909
+ background-color: #2980B9;
1910
+ padding: 10px 15px 8px;
1911
+ font-size: 14px;
1912
+ color: #fff !important;
1913
  text-decoration: none;
1914
  }
1915
 
1916
  .tnp-suggest-button:hover {
1917
+ background-color: #3f8dbf;
1918
  }
1919
 
1920
+ .tnp-popup-overlay {
1921
+ display: none;
1922
+ position: fixed;
1923
+ top: 0;
1924
+ left: 0;
1925
+ width: 100%;
1926
+ height: 100%;
1927
+ background-color: rgba(0, 0, 0, .8);
1928
+ z-index: 10000;
1929
+ }
1930
+
1931
+ .tnp-popup {
1932
+ width: 40vw;
1933
+ height: 66vh;
1934
+ overflow: auto;
1935
+ margin: 100px auto 0 auto;
1936
+ background-color: #181818;
1937
+ padding: 20px;
1938
+ position: relative;
1939
+ }
1940
+ .tnp-popup-close {
1941
+ display: block;
1942
+ position: absolute;
1943
+ top: 5px;
1944
+ right: 5px;
1945
+ background-color: #181818;
1946
+ color: #fff;
1947
+ font-size: 40px;
1948
+ padding: 10px;
1949
+ text-align: right;
1950
+ cursor: pointer;
1951
+ }
1952
+
1953
+ .tnp-subjects-header {
1954
+ font-size: 16px;
1955
+ color: #fff;
1956
+ padding: 0px 70px 20px 20px;
1957
+ font-family: "Montserrat", sans-serif;
1958
+ border-bottom: 1px solid #282828;
1959
+ }
1960
+
1961
+ #tnp-edit-subjects-list {
1962
+ padding: 0px 70px 20px 20px;
1963
+ }
1964
+
1965
+ #tnp-edit-subjects-list a {
1966
+ padding: 5px;
1967
+ }
1968
+
1969
+ #tnp-edit-subjects-list svg {
1970
+ margin: 0px 10px 0px 0px;
1971
+ vertical-align: middle;
1972
+ }
1973
+
1974
+ .tnp-subject-category {
1975
+ color: #565656;
1976
+ margin: 25px 0px 10px 0px;
1977
+ /* font-family: "Montserrat"; */
1978
+ font-size: 12px;
1979
+ text-transform: uppercase;
1980
+ letter-spacing: 0.1em;
1981
+ }
1982
+
1983
+
1984
+ #tnp-edit-emoji-list {
1985
+ font-size: 28px;
1986
+ }
1987
+ #tnp-edit-emoji-list a {
1988
+ display: inline-block;
1989
+ margin-right: 5px;
1990
+ margin-bottom: 5px;
1991
+ }
1992
+
1993
+ /* Stili per il campo testo oggetto delle email */
1994
+
1995
+ /*#options-subject {
1996
  background: url(images/idea.svg) no-repeat white 99% 3px;
1997
  background-size: 25px;
1998
  }
2000
  #options-subject:hover {
2001
  background: url(images/idea.svg) no-repeat red 99% 3px;
2002
  background-size: 25px;
2003
+ }*/
2004
+
2005
 
2006
  /* Stile selettore liste - Schermata di invio newsletter */
2007
 
emails/edit.php CHANGED
@@ -336,8 +336,9 @@ if (isset($controls->data['options_status']) && $controls->data['options_status'
336
  </div>
337
 
338
  <?php $controls->text('subject', 70, 'Subject'); ?>
339
- <!--
340
  <a href="#" class="tnp-suggest-button" onclick="tnp_suggest_subject(); return false;"><?php _e('Get ideas', 'newsletter') ?></a></a>
 
341
  <a href="#" class="tnp-suggest-button" onclick="tnp_emoji(); return false;"><?php _e('Insert emoji', 'newsletter') ?></a>
342
  -->
343
 
@@ -535,70 +536,104 @@ if (isset($controls->data['options_status']) && $controls->data['options_status'
535
  });
536
  </script>
537
  <style>
538
- .tnp-popup-overlay {
539
  display: none;
540
  position: fixed;
541
  top: 0;
542
  left: 0;
543
  width: 100%;
544
  height: 100%;
545
- background-color: rgba(0, 0, 0, .4);
546
  z-index: 10000;
547
  }
548
 
549
  .tnp-popup {
550
- width: 600px;
551
- height: 500px;
552
  overflow: auto;
553
  margin: 100px auto 0 auto;
554
- background-color: #fff;
555
  padding: 20px;
556
  position: relative;
557
  }
558
  .tnp-popup-close {
559
  display: block;
560
- position: fixed;
561
  top: 5px;
562
  right: 5px;
563
- background-color: #000;
564
  color: #fff;
565
- font-size: 30px;
566
- border-radius: 50%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
  padding: 5px;
568
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
  #tnp-edit-emoji-list {
570
  font-size: 28px;
571
  }
572
  #tnp-edit-emoji-list a {
573
  display: inline-block;
574
  margin-right: 5px;
575
- margin-bottom: 5px;
576
- }
577
  </style>
578
  <div id="tnp-edit-subjects" class="tnp-popup-overlay">
579
  <div class="tnp-popup">
580
  <a class="tnp-popup-close">&times;</a>
581
- <p>
582
- Here few subject templates you can choose from which should engage your subscribers.
583
  </p>
584
  <div id="tnp-edit-subjects-list">
585
- <h3>Dangers</h3>
 
586
  <a href="#"><?php _e('How safe is your <em>[something]</em> from <em>[danger]</em>?', 'newsletter') ?></a><br>
587
  <a href="#"><?php _e('10 Warning Signs That <em>[something]</em>', 'newsletter') ?></a><br>
588
  <a href="#"><?php _e('10 Lies <em>[kind of people]</em> Likes to Tell', 'newsletter') ?></a><br>
589
 
590
- <h3>Better life, problem management</h3>
591
  <a href="#"><?php _e('10 Ways to Simplify Your <em>[something]</em>', 'newsletter') ?></a><br>
592
  <a href="#"><?php _e('Get Rid of <em>[problem]</em> Once and Forever', 'newsletter') ?></a><br>
593
  <a href="#"><?php _e('How to End [problem]', 'newsletter') ?></a><br>
594
  <a href="#"><?php _e('Secrets of [famous people]', 'newsletter') ?></a><br>
595
 
596
- <h3>Mistakes</h3>
597
  <a href="#"><?php _e('Do You Make These 10 <em>[something]</em> Mistakes?', 'newsletter') ?></a><br>
598
  <a href="#"><?php _e('10 <em>[something]</em> Mistakes That Make You Look Dumb', 'newsletter') ?></a><br>
599
  <a href="#"><?php _e('Don\'t do These 10 Things When <em>[something]</em>', 'newsletter') ?></a><br>
600
 
601
- <h3>Lists (classic)</h3>
602
  <a href="#"><?php _e('10 Ways to <em>[something]</em>', 'newsletter') ?></a><br>
603
  <a href="#"><?php _e('The Top 10 <em>[something]</em>', 'newsletter') ?></a><br>
604
  <a href="#"><?php _e('The 10 Rules for <em>[something]</em>', 'newsletter') ?></a><br>
@@ -607,7 +642,7 @@ if (isset($controls->data['options_status']) && $controls->data['options_status'
607
  </div>
608
  </div>
609
  </div>
610
-
611
  <div id="tnp-edit-emoji" class="tnp-popup-overlay">
612
  <div class="tnp-popup">
613
  <a class="tnp-popup-close">&times;</a>
@@ -639,6 +674,8 @@ if (isset($controls->data['options_status']) && $controls->data['options_status'
639
  </div>
640
  </div>
641
  </div>
 
 
642
 
643
  <?php include NEWSLETTER_DIR . '/tnp-footer.php'; ?>
644
 
336
  </div>
337
 
338
  <?php $controls->text('subject', 70, 'Subject'); ?>
339
+
340
  <a href="#" class="tnp-suggest-button" onclick="tnp_suggest_subject(); return false;"><?php _e('Get ideas', 'newsletter') ?></a></a>
341
+ <!--
342
  <a href="#" class="tnp-suggest-button" onclick="tnp_emoji(); return false;"><?php _e('Insert emoji', 'newsletter') ?></a>
343
  -->
344
 
536
  });
537
  </script>
538
  <style>
539
+ /* .tnp-popup-overlay {
540
  display: none;
541
  position: fixed;
542
  top: 0;
543
  left: 0;
544
  width: 100%;
545
  height: 100%;
546
+ background-color: rgba(0, 0, 0, .8);
547
  z-index: 10000;
548
  }
549
 
550
  .tnp-popup {
551
+ width: 40vw;
552
+ height: 66vh;
553
  overflow: auto;
554
  margin: 100px auto 0 auto;
555
+ background-color: #181818;
556
  padding: 20px;
557
  position: relative;
558
  }
559
  .tnp-popup-close {
560
  display: block;
561
+ position: absolute;
562
  top: 5px;
563
  right: 5px;
564
+ background-color: #181818;
565
  color: #fff;
566
+ font-size: 40px;
567
+ padding: 10px;
568
+ text-align: right;
569
+ cursor: pointer;
570
+ }
571
+
572
+ .tnp-subjects-header {
573
+ font-size: 16px;
574
+ color: #fff;
575
+ padding: 0px 70px 20px 20px;
576
+ font-family: "Montserrat", sans-serif;
577
+ border-bottom: 1px solid #282828;
578
+ }
579
+
580
+ #tnp-edit-subjects-list {
581
+ padding: 0px 70px 20px 20px;
582
+ }
583
+
584
+ #tnp-edit-subjects-list a {
585
  padding: 5px;
586
  }
587
+
588
+ #tnp-edit-subjects-list svg {
589
+ margin: 0px 10px 0px 0px;
590
+ vertical-align: middle;
591
+ }
592
+
593
+ .tnp-subject-category {
594
+ color: #565656;
595
+ margin: 25px 0px 10px 0px;
596
+ font-family: "Montserrat";
597
+ font-size: 12px;
598
+ text-transform: uppercase;
599
+ letter-spacing: 0.1em;
600
+ }
601
+
602
+
603
  #tnp-edit-emoji-list {
604
  font-size: 28px;
605
  }
606
  #tnp-edit-emoji-list a {
607
  display: inline-block;
608
  margin-right: 5px;
609
+ margin-bottom: 5px;
610
+ }*/
611
  </style>
612
  <div id="tnp-edit-subjects" class="tnp-popup-overlay">
613
  <div class="tnp-popup">
614
  <a class="tnp-popup-close">&times;</a>
615
+ <p class="tnp-subjects-header">
616
+ Here are some subject examples you can start from to further engage your subscribers.
617
  </p>
618
  <div id="tnp-edit-subjects-list">
619
+
620
+ <h3 class="tnp-subject-category"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" xml:space="preserve" width="18" height="18"><g class="nc-icon-wrapper"><path fill="#43A6DD" d="M10,5C9.668,5,9.358,5.165,9.172,5.439C8.986,5.714,8.948,6.063,9.071,6.371 c0.078,0.194,7.669,19.475,0.222,26.922c-0.286,0.286-0.372,0.716-0.217,1.09C9.23,34.757,9.596,35,10,35h28c0.553,0,1-0.447,1-1 C39,18.01,25.99,5,10,5z"></path> <path fill="#BADEFC" d="M46,43c0.552,0,1-0.448,1-1V30.544c-0.646,0.29-1.257,0.684-1.787,1.214c-2.343,2.343-6.142,2.343-8.485,0 c-2.343-2.343-6.142-2.343-8.485,0c-2.343,2.343-6.142,2.343-8.485,0s-6.142-2.343-8.485,0s-6.142,2.343-8.485,0 c-0.53-0.53-1.141-0.924-1.787-1.214V42c0,0.552,0.448,1,1,1H46z"></path></g></svg>Dangers</h3>
621
  <a href="#"><?php _e('How safe is your <em>[something]</em> from <em>[danger]</em>?', 'newsletter') ?></a><br>
622
  <a href="#"><?php _e('10 Warning Signs That <em>[something]</em>', 'newsletter') ?></a><br>
623
  <a href="#"><?php _e('10 Lies <em>[kind of people]</em> Likes to Tell', 'newsletter') ?></a><br>
624
 
625
+ <h3 class="tnp-subject-category"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" xml:space="preserve" width="18" height="18"><g class="nc-icon-wrapper"><path fill="#7C5839" d="M38.75586,31.34473C38.56543,31.12598,38.29004,31,38,31H10c-0.29004,0-0.56543,0.12598-0.75586,0.34473 c-0.18945,0.21924-0.27539,0.50977-0.23438,0.79688l2,14C11.08008,46.63428,11.50195,47,12,47h24 c0.49805,0,0.91992-0.36572,0.99023-0.8584l2-14C39.03125,31.85449,38.94531,31.56396,38.75586,31.34473z"></path> <path fill="#72C472" d="M34,6c-3.96655,0-7.38348,2.31537-9,5.66302V2c0-0.55225-0.44727-1-1-1s-1,0.44775-1,1v26 c0,0.55225,0.44727,1,1,1s1-0.44775,1-1v-8h1c5.52283,0,10-4.47717,10-10V6H34z"></path> <path fill="#A67C52" d="M42,33H6c-0.55273,0-1-0.44775-1-1v-4c0-0.55225,0.44727-1,1-1h36c0.55273,0,1,0.44775,1,1v4 C43,32.55225,42.55273,33,42,33z"></path></g></svg>Better life, problem management</h3>
626
  <a href="#"><?php _e('10 Ways to Simplify Your <em>[something]</em>', 'newsletter') ?></a><br>
627
  <a href="#"><?php _e('Get Rid of <em>[problem]</em> Once and Forever', 'newsletter') ?></a><br>
628
  <a href="#"><?php _e('How to End [problem]', 'newsletter') ?></a><br>
629
  <a href="#"><?php _e('Secrets of [famous people]', 'newsletter') ?></a><br>
630
 
631
+ <h3 class="tnp-subject-category"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" xml:space="preserve" width="18" height="18"><g class="nc-icon-wrapper"><path fill="#444444" d="M8,27H2c-0.553,0-1-0.447-1-1s0.447-1,1-1h6c0.553,0,1,0.447,1,1S8.553,27,8,27z"></path> <path fill="#444444" d="M12.185,15.19c-0.256,0-0.513-0.098-0.708-0.293l-4.185-4.19c-0.39-0.392-0.39-1.024,0.001-1.415 c0.391-0.389,1.024-0.39,1.415,0.001l4.185,4.19c0.39,0.392,0.39,1.024-0.001,1.415C12.696,15.093,12.44,15.19,12.185,15.19z"></path> <path fill="#444444" d="M35.815,15.19c-0.256,0-0.512-0.098-0.707-0.292c-0.391-0.391-0.391-1.023-0.001-1.415l4.185-4.19 c0.391-0.391,1.024-0.39,1.415-0.001c0.391,0.391,0.391,1.023,0.001,1.415l-4.185,4.19C36.328,15.093,36.071,15.19,35.815,15.19z"></path> <path fill="#444444" d="M8,45c-0.256,0-0.513-0.098-0.708-0.293c-0.39-0.392-0.39-1.024,0.001-1.415l4.189-4.184 c0.391-0.389,1.024-0.39,1.415,0.001c0.39,0.392,0.39,1.024-0.001,1.415l-4.189,4.184C8.512,44.902,8.256,45,8,45z"></path> <path fill="#444444" d="M40,45c-0.256,0-0.512-0.098-0.707-0.292l-4.189-4.184c-0.391-0.391-0.391-1.023-0.001-1.415 c0.391-0.391,1.024-0.39,1.415-0.001l4.189,4.184c0.391,0.391,0.391,1.023,0.001,1.415C40.513,44.902,40.256,45,40,45z"></path> <path fill="#444444" d="M46,27h-6c-0.553,0-1-0.447-1-1s0.447-1,1-1h6c0.553,0,1,0.447,1,1S46.553,27,46,27z"></path> <path fill="#E86C60" d="M32.324,9.555c-0.164-0.108-0.355-0.166-0.552-0.166c-0.001,0-0.001,0-0.002,0L16.188,9.413 c-0.196,0-0.389,0.059-0.552,0.167C10.31,13.125,7,19.799,7,27c0,11.028,7.626,20,17,20s17-8.972,17-20 C41,19.777,37.676,13.093,32.324,9.555z"></path> <path fill="#444444" d="M34.707,1.293c-0.391-0.391-1.023-0.391-1.414,0l-3.694,3.694C28.051,3.744,26.1,3,24,3 s-4.051,0.744-5.599,1.987l-3.694-3.694c-0.391-0.391-1.023-0.391-1.414,0s-0.391,1.023,0,1.414l3.689,3.689 c-0.993,1.243-1.669,2.757-1.891,4.426c-0.021,0.156-0.004,0.316,0.049,0.466C15.425,12.096,20.198,15,24,15s8.575-2.904,8.86-3.712 c0.053-0.149,0.069-0.31,0.049-0.466c-0.223-1.669-0.898-3.183-1.891-4.426l3.689-3.689C35.098,2.316,35.098,1.684,34.707,1.293z"></path> <path fill="#444444" d="M24,47c0.338,0,0.667-0.037,1-0.06V14c0-0.553-0.447-1-1-1s-1,0.447-1,1v32.94 C23.333,46.963,23.662,47,24,47z"></path> <circle fill="#444444" cx="15" cy="23" r="3"></circle> <circle fill="#444444" cx="17.5" cy="34.5" r="2.5"></circle> <circle fill="#444444" cx="33" cy="23" r="3"></circle> <circle fill="#444444" cx="30.5" cy="34.5" r="2.5"></circle></g></svg>Mistakes</h3>
632
  <a href="#"><?php _e('Do You Make These 10 <em>[something]</em> Mistakes?', 'newsletter') ?></a><br>
633
  <a href="#"><?php _e('10 <em>[something]</em> Mistakes That Make You Look Dumb', 'newsletter') ?></a><br>
634
  <a href="#"><?php _e('Don\'t do These 10 Things When <em>[something]</em>', 'newsletter') ?></a><br>
635
 
636
+ <h3 class="tnp-subject-category"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" xml:space="preserve" width="18" height="18"><g class="nc-icon-wrapper"><path fill="#5A7A84" d="M6,13c2.75684,0,5-2.24316,5-5S8.75684,3,6,3S1,5.24316,1,8S3.24316,13,6,13z"></path> <path fill="#5A7A84" d="M6,19c-2.75684,0-5,2.24316-5,5s2.24316,5,5,5s5-2.24316,5-5S8.75684,19,6,19z"></path> <path fill="#5A7A84" d="M6,35c-2.75684,0-5,2.24316-5,5s2.24316,5,5,5s5-2.24316,5-5S8.75684,35,6,35z"></path> <path fill="#76B5B5" d="M46,10H16c-0.55229,0-1-0.44771-1-1V7c0-0.55228,0.44771-1,1-1h30c0.55228,0,1,0.44772,1,1v2 C47,9.55229,46.55228,10,46,10z"></path> <path fill="#76B5B5" d="M34,26H16c-0.55229,0-1-0.44772-1-1v-2c0-0.55228,0.44771-1,1-1h18c0.55228,0,1,0.44772,1,1v2 C35,25.55228,34.55228,26,34,26z"></path> <path fill="#76B5B5" d="M46,42H16c-0.55229,0-1-0.44772-1-1v-2c0-0.55228,0.44771-1,1-1h30c0.55228,0,1,0.44772,1,1v2 C47,41.55228,46.55228,42,46,42z"></path></g></svg>Lists (classic)</h3>
637
  <a href="#"><?php _e('10 Ways to <em>[something]</em>', 'newsletter') ?></a><br>
638
  <a href="#"><?php _e('The Top 10 <em>[something]</em>', 'newsletter') ?></a><br>
639
  <a href="#"><?php _e('The 10 Rules for <em>[something]</em>', 'newsletter') ?></a><br>
642
  </div>
643
  </div>
644
  </div>
645
+ <?php /*
646
  <div id="tnp-edit-emoji" class="tnp-popup-overlay">
647
  <div class="tnp-popup">
648
  <a class="tnp-popup-close">&times;</a>
674
  </div>
675
  </div>
676
  </div>
677
+
678
+ */ ?>
679
 
680
  <?php include NEWSLETTER_DIR . '/tnp-footer.php'; ?>
681
 
includes/controls.php CHANGED
@@ -1202,14 +1202,18 @@ class NewsletterControls {
1202
  }).on("select", function() {
1203
  var media = tnp_uploader.state().get("selection").first();
1204
  document.getElementById(name + "_id").value = media.id;
 
1205
  if (media.attributes.url.substring(0, 0) == "/") {
1206
  media.attributes.url = "' . site_url('/') . '" + media.attributes.url;
1207
  }
1208
  document.getElementById(name + "_url").value = media.attributes.url;
1209
- if (media.attributes.sizes.medium.url.substring(0, 0) == "/") {
1210
- media.attributes.sizes.medium.url = "' . site_url('/') . '" + media.attributes.sizes.medium.url;
 
 
 
1211
  }
1212
- document.getElementById(name + "_img").src = media.attributes.sizes.medium.url;
1213
  }).open();
1214
  }
1215
  function newsletter_media_remove(name) {
@@ -1416,7 +1420,11 @@ class NewsletterControls {
1416
  $buffer .= ')';
1417
  }
1418
  if ($left) {
1419
- $buffer .= ', ' . gmdate('H:i:s', $time - time()) . ' left';
 
 
 
 
1420
  }
1421
  return $buffer;
1422
  }
1202
  }).on("select", function() {
1203
  var media = tnp_uploader.state().get("selection").first();
1204
  document.getElementById(name + "_id").value = media.id;
1205
+ //alert(media.attributes.url);
1206
  if (media.attributes.url.substring(0, 0) == "/") {
1207
  media.attributes.url = "' . site_url('/') . '" + media.attributes.url;
1208
  }
1209
  document.getElementById(name + "_url").value = media.attributes.url;
1210
+
1211
+ var img_url = media.attributes.url;
1212
+ if (typeof media.attributes.sizes.medium !== "undefined") img_url = media.attributes.sizes.medium.url;
1213
+ if (img_url.substring(0, 0) == "/") {
1214
+ img_url = "' . site_url('/') . '" + img_url;
1215
  }
1216
+ document.getElementById(name + "_img").src = img_url;
1217
  }).open();
1218
  }
1219
  function newsletter_media_remove(name) {
1420
  $buffer .= ')';
1421
  }
1422
  if ($left) {
1423
+ if ($time - time() < 0) {
1424
+ $buffer .= ', ' . (time()-$time) . ' seconds late';
1425
+ } else {
1426
+ $buffer .= ', ' . gmdate('H:i:s', $time - time()) . ' left';
1427
+ }
1428
  }
1429
  return $buffer;
1430
  }
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Newsletter
5
  Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
6
  Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
- Version: 5.2.2
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: https://www.thenewsletterplugin.com
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
@@ -14,7 +14,7 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.2.2');
18
 
19
  global $wpdb, $newsletter;
20
 
4
  Plugin Name: Newsletter
5
  Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
6
  Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
+ Version: 5.2.3
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: https://www.thenewsletterplugin.com
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
+ define('NEWSLETTER_VERSION', '5.2.3');
18
 
19
  global $wpdb, $newsletter;
20
 
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Newsletter ===
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
- Tested up to: 4.9.2
5
- Stable tag: 5.2.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -85,6 +85,10 @@ Thank you, The Newsletter Team
85
 
86
  == Changelog ==
87
 
 
 
 
 
88
  == 5.2.2 ==
89
 
90
  * Removed create_function from widgets (compatibility PHP 7.2)
1
  === Newsletter ===
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
+ Tested up to: 4.9.4
5
+ Stable tag: 5.2.3
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
85
 
86
  == Changelog ==
87
 
88
+ == 5.2.3 ==
89
+
90
+ * Newsletter subject ideas popup
91
+
92
  == 5.2.2 ==
93
 
94
  * Removed create_function from widgets (compatibility PHP 7.2)