Say what? - Version 1.9.7

Version Description

  • Fix issue where replacement table disappeared at small screen widths
  • Update WordPress compatibility
  • Changes to donation / upsell content
Download this release

Release Info

Developer leewillis77
Plugin Icon 128x128 Say what?
Version 1.9.7
Comparing to
See all releases

Code changes from version 1.9.6 to 1.9.7

css/admin.css CHANGED
@@ -14,27 +14,88 @@
14
  }
15
 
16
  .saywhat-gopro {
17
- width: 60%;
18
- border-right: 1px dashed lightgray;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
- .treeware {
22
- width: 40%;margin-top: -4px;
 
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
  .saywhat-gopro h2 {
27
  margin-top: 0;
28
  }
29
 
30
- .upgrades-wrapper {
31
- overflow: hidden;
32
- margin: auto;
33
- width: 80%;
34
  }
35
 
36
- .upgrades-wrapper > div {
37
- float: left;
38
- box-sizing: border-box;
39
- padding: 2em;
40
  }
14
  }
15
 
16
  .saywhat-gopro {
17
+ float: left;
18
+ width: 45%;
19
+ border-left: 1px dashed lightgray;
20
+ padding-left: 1em;
21
+ box-sizing: border-box;
22
+ }
23
+
24
+ .swp-cpw {
25
+ width: 55%;
26
+ padding-right: 1em;
27
+ float: left;
28
+ box-sizing: border-box;
29
+ }
30
+
31
+
32
+ .swp-cpw .swp-img-container {
33
+ width: 40%;
34
+ box-sizing: border-box;
35
+ float: left;
36
  }
37
 
38
+ .swp-cpw img {
39
+ width: 100%;
40
+ }
41
 
42
+ .swp-cpw .swp-intro-container {
43
+ padding-left: 1em;
44
+ width: 50%;
45
+ box-sizing: border-box;
46
+ float: left;
47
+ }
48
+
49
+ @media screen and (max-width: 782px) {
50
+ .swp-cpw .swp-img-container {
51
+ display: none;
52
+ }
53
+ .swp-cpw .swp-intro-container {
54
+ width: 100%;
55
+ }
56
+ }
57
+
58
+ .swp-intro {
59
+ font-weight: bold;
60
+ font-size: large;
61
+ }
62
+
63
+ .swp-cpw .button {
64
+ font-weight: bold;
65
+ background-color: #28c382;
66
+ font-size: larger;
67
+ border-color: #0c9e77;
68
+ text-align: center;
69
+ line-height: 1.5;
70
+ display: block;
71
+ white-space: inherit;
72
+ margin: 4px;
73
+ }
74
+
75
+ .swp-cpw .button:hover {
76
+ background-color: #0c9e77;
77
+ border-color: #0c9e77;
78
+ }
79
+ .swp-cpw .button {
80
+ color: #fff !important;
81
+ text-decoration: none;
82
+ padding: 8px 6px 10px 6px;
83
+ line-height: 1.3;
84
+ }
85
+
86
+ .swp-cpw .swp-content-container {
87
+ clear: both;
88
+ padding-top: 1em;
89
  }
90
 
91
  .saywhat-gopro h2 {
92
  margin-top: 0;
93
  }
94
 
95
+ .swp-upgrades-wrapper {
96
+ margin-top: -1.5em;
 
 
97
  }
98
 
99
+ .swp-upgrades-wrapper hr {
100
+ margin-bottom: 2em;
 
 
101
  }
html/say-what-admin-list.php CHANGED
@@ -7,46 +7,74 @@
7
  $list_table_instance->prepare_items();
8
  $list_table_instance->display();
9
  ?>
10
- <div class="upgrades-wrapper">
11
- <div class="saywhat-gopro">
12
- <div>
13
- <h2>Go pro</h2>
14
- <hr>
15
- <p>
16
- <a href="https://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade" target="_blank" rel="noopener noreferrer">Say What? Pro</a> makes it even easier for you to change strings:
17
- <ul class="ul-disc">
18
- <li>
19
- <a href="https://plugins.leewillis.co.uk/doc_post/string-discovery/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgradesd"
20
- target="_blank" rel="noopener noreferrer">String Discovery</a> and autocomplete - find the strings you need without
21
- diving through code.
22
- </li>
23
- <li>
24
- <a href="https://plugins.leewillis.co.uk/doc_post/replace-words-across-whole-site/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgradesd"
25
- target="_blank" rel="noopener noreferrer">Wildcard string replacements</a> - replace individual words, or fragments
26
- across your whole site.
27
- </li>
28
- <li>
29
- <a href="https://plugins.leewillis.co.uk/doc_post/multi-lingual-string-replacements/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrademl" target="_blank" rel="noopener noreferrer">Multi-lingual support</a> - set different replacements for different languages.</a></li>
30
- <li>Import &amp; export your strings between sites.</li>
31
- </ul>
32
- </p>
33
- <p><strong>Upgrade to the Pro version today, and <em>save 15%</em> with the code <code>WPSAYWHAT</code> at checkout.</strong></p>
34
- <p>
35
- <center>
36
- <a href="https://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgradebtn"
37
- class="button button-primary" target="_blank" rel="noopener noreferrer">Go Pro now &raquo;</a></center>
38
- </p>
39
- </div>
40
- </div>
41
- <div class="treeware">
42
  <a href="https://ecologi.com/ademtisoftware?gift-trees" target="_blank" rel="noopener noreferrer nofollow">
43
- <img src="<?php echo esc_attr( plugins_url( 'say-what/img/treeware.svg' ) ); ?>" alt="Treeware">
 
44
  </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <hr>
46
- <p>You're free to use this package for free, but if it makes it to your production environment please buy the world some trees.</p>
47
- <p>It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to <a href="https://www.bbc.co.uk/news/science-environment-48870920" target="_blank" rel="noopener noreferrer nofollow">plant trees</a>. If you support this package and contribute to the our forest you’ll be creating employment for local families and restoring wildlife habitats.</p>
48
- <p>You can buy trees here <a target="_blank" rel="noopener noreferrer nofollow" href="https://ecologi.com/ademtisoftware?gift-trees">ecologi.com/ademtisoftware</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  </p>
50
  </div>
 
51
  </div>
52
  </div>
7
  $list_table_instance->prepare_items();
8
  $list_table_instance->display();
9
  ?>
10
+
11
+ <div class="swp-upgrades-wrapper">
12
+ <hr>
13
+ <div class="swp-cpw">
14
+ <div class="swp-img-container">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <a href="https://ecologi.com/ademtisoftware?gift-trees" target="_blank" rel="noopener noreferrer nofollow">
16
+ <img src="<?php echo esc_attr( plugins_url( 'say-what/img/cpw.png' ) ); ?>"
17
+ alt="We're a climate positive workforce">
18
  </a>
19
+ </div>
20
+ <div class="swp-intro-container">
21
+ <p class="swp-intro">Using this plugin on your live site? Please buy the world some trees...</p>
22
+ <div><a class="button" target="_blank" rel="noopener noreferrer nofollow"
23
+ href="https://ecologi.com/ademtisoftware?gift-trees">Support this free plugin by planting trees</a></div>
24
+ </div>
25
+ <div class="swp-content-container">
26
+ <p>It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our
27
+ temperatures from rising above 1.5C is to <a
28
+ href="https://www.bbc.co.uk/news/science-environment-48870920" target="_blank"
29
+ rel="noopener noreferrer nofollow">plant trees</a>.</p>
30
+ <p>As a business, we already donate a percentage of our profits from premium plugins to global climate
31
+ change projects. You're free to use package free of charge, but if you do, please consider <a
32
+ target="_blank" rel="noopener noreferrer nofollow"
33
+ href="https://ecologi.com/ademtisoftware?gift-trees">buying the world some trees</a> in return.
34
+ You’ll be creating employment for local families and restoring wildlife habitats.</p>
35
+ </div>
36
+ </div>
37
+ <div class="saywhat-gopro">
38
+ <div>
39
+ <h2>Go pro today</h2>
40
  <hr>
41
+ <p>
42
+ <a href="https://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade"
43
+ target="_blank" rel="noopener noreferrer">Say What? Pro</a> makes it even easier for you to
44
+ change strings:
45
+ <ul class="ul-disc">
46
+ <li>
47
+ <a href="https://plugins.leewillis.co.uk/doc_post/string-discovery/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade"
48
+ target="_blank" rel="noopener noreferrer">String Discovery</a> and autocomplete - find the
49
+ strings you need without diving through code. Works with server-side and Javascript-rendered
50
+ strings.
51
+ </li>
52
+ <li>
53
+ <a href="https://plugins.leewillis.co.uk/doc_post/replace-words-across-whole-site/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade"
54
+ target="_blank" rel="noopener noreferrer">Wildcard string replacements</a> - replace
55
+ individual words, or fragments
56
+ across your whole site.
57
+ </li>
58
+ <li>
59
+ <a href="https://plugins.leewillis.co.uk/doc_post/multi-lingual-string-replacements/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade"
60
+ target="_blank" rel="noopener noreferrer">Multi-lingual support</a> - set different
61
+ replacements for different languages.</a></li>
62
+ <li>
63
+ <a href="https://plugins.leewillis.co.uk/doc_post/import-export-string-replacements/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade">Import
64
+ &amp; export</a> your strings between sites.
65
+ </li>
66
+ <li><em>Improved performance</em> using text-domain-specific filters.</li>
67
+ </ul>
68
+ </p>
69
+ <p><strong>Upgrade to the Pro version today, and <em>save 15%</em> with the code <code>WPSAYWHAT</code>
70
+ at checkout.</strong></p>
71
+ <p>
72
+ <center>
73
+ <a href="https://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgradebtn"
74
+ class="button button-primary" target="_blank" rel="noopener noreferrer">Go Pro now &raquo;</a>
75
+ </center>
76
  </p>
77
  </div>
78
+ </div>
79
  </div>
80
  </div>
img/cpw.html ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <html>
2
+ <head>
3
+ <style type="text/css">
4
+ body {
5
+ background: #fff;
6
+ position:relative;
7
+ }
8
+ .bg {
9
+ position: absolute;
10
+ top: 10;
11
+ left: 10;
12
+ width: 402px;
13
+ }
14
+ .logo {
15
+ position: absolute;
16
+ top: 80px;
17
+ left: 143px;
18
+ width: 130px;
19
+ border-radius: 50%;
20
+ z-index: 10;
21
+ }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <img class="bg" src="bg.jpg"/>
26
+ <img class="logo" src="logo.png"/>
27
+ </body>
28
+ </html>
img/cpw.png ADDED
Binary file
img/logo.png ADDED
Binary file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://plugins.leewillis.co.uk/downloads/say-what-pro?utm_source=wo
4
  Tags: string, change, translation
5
  Requires at least: 5.4
6
  Tested up to: 5.6
7
- Stable tag: 1.9.6
8
 
9
  == Description ==
10
  An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code. Simply enter the current string, and what you want to replace it with and the plugin will automatically do the rest!
@@ -63,6 +63,11 @@ Not in the free plugin, however this is available in the [Pro version of the plu
63
 
64
  == Changelog ==
65
 
 
 
 
 
 
66
  = 1.9.6 =
67
  * Fix link in documentation
68
 
4
  Tags: string, change, translation
5
  Requires at least: 5.4
6
  Tested up to: 5.6
7
+ Stable tag: 1.9.7
8
 
9
  == Description ==
10
  An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code. Simply enter the current string, and what you want to replace it with and the plugin will automatically do the rest!
63
 
64
  == Changelog ==
65
 
66
+ = 1.9.7 =
67
+ * Fix issue where replacement table disappeared at small screen widths
68
+ * Update WordPress compatibility
69
+ * Changes to donation / upsell content
70
+
71
  = 1.9.6 =
72
  * Fix link in documentation
73
 
say-what-list-table.class.php CHANGED
@@ -83,6 +83,15 @@ class SayWhatListTable extends WP_List_Table {
83
  'replacement_string' => array( 'replacement_string', false ) );
84
  }
85
 
 
 
 
 
 
 
 
 
 
86
  /**
87
  * Specify the bulk actions available. Not used currently
88
  */
83
  'replacement_string' => array( 'replacement_string', false ) );
84
  }
85
 
86
+ /**
87
+ * Set the primary column.
88
+ *
89
+ * @return string The name of the primary column.
90
+ */
91
+ protected function get_primary_column_name() {
92
+ return 'orig_string';
93
+ }
94
+
95
  /**
96
  * Specify the bulk actions available. Not used currently
97
  */
say-what.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Say What?
5
  Plugin URI: https://github.com/leewillis77/say-what
6
  Description: An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code
7
- Version: 1.9.6
8
  Author: Lee Willis
9
  Author URI: https://plugins.leewillis.co.uk/
10
  Text Domain: say-what
4
  Plugin Name: Say What?
5
  Plugin URI: https://github.com/leewillis77/say-what
6
  Description: An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code
7
+ Version: 1.9.7
8
  Author: Lee Willis
9
  Author URI: https://plugins.leewillis.co.uk/
10
  Text Domain: say-what