Genesis Simple Edits - Version 2.2.2

Version Description

  • Add compatibility with WordPress Coding Standards.
Download this release

Release Info

Developer nathanrice
Plugin Icon 128x128 Genesis Simple Edits
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

.circleci/config.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: 2.1
2
+
3
+ jobs:
4
+ test:
5
+ docker:
6
+ - image: circleci/php:7.3.3-stretch-node-browsers
7
+ steps:
8
+ - checkout
9
+ - prepare-environment
10
+ - run: composer phpcs
11
+
12
+ commands:
13
+ prepare-environment:
14
+ description: "Install dependencies."
15
+ steps:
16
+ - run: composer install
17
+
18
+ workflows:
19
+ version: 2
20
+ check-wp-cs:
21
+ jobs:
22
+ - test
composer.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "studiopress/genesis-simple-edits",
3
+ "type": "wordpress-plugin",
4
+ "description": "This plugin lets you edit the the post-info (byline), the post-meta, and the footer area in a Genesis Theme.",
5
+ "homepage": "https://github.com/studiopress/genesis-simple-edits",
6
+ "license": "GPL-2.0-or-later",
7
+ "require": {
8
+ "php": "^5.6 || ^7",
9
+ "composer/installers": "^1"
10
+ },
11
+ "require-dev": {
12
+ "php": "^5.6 || ^7",
13
+ "dealerdirect/phpcodesniffer-composer-installer": "*",
14
+ "squizlabs/php_codesniffer": "^3.3.1",
15
+ "phpcompatibility/phpcompatibility-wp": "*",
16
+ "wp-coding-standards/wpcs": "^1"
17
+ },
18
+ "config": {
19
+ "sort-order": true
20
+ },
21
+ "minimum-stability": "dev",
22
+ "prefer-stable": true,
23
+ "scripts": {
24
+ "phpcs": "phpcs --standard=WordPress --ignore=vendor/,node_modules/,assets/ --extensions=php -p ./",
25
+ "phpcs-compat": "phpcs --extensions=php --standard=PHPCompatibilityWP --ignore=vendor/,node_modules/,assets/ --runtime-set testVersion 5.6- -p ./",
26
+ "phpcbf": "phpcbf --standard=WordPress --ignore=vendor/,node_modules/,assets/ --extensions=php -p ./"
27
+ },
28
+ "support": {
29
+ "issues": "https://github.com/studiopress/genesis-simple-edits/issues",
30
+ "source": "https://github.com/studiopress/genesis-simple-edits"
31
+ }
32
+ }
composer.lock ADDED
@@ -0,0 +1,461 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_readme": [
3
+ "This file locks the dependencies of your project to a known state",
4
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
+ "This file is @generated automatically"
6
+ ],
7
+ "content-hash": "e5965b014baa8e5cf6efb36f3d8ccd60",
8
+ "packages": [
9
+ {
10
+ "name": "composer/installers",
11
+ "version": "v1.6.0",
12
+ "source": {
13
+ "type": "git",
14
+ "url": "https://github.com/composer/installers.git",
15
+ "reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b"
16
+ },
17
+ "dist": {
18
+ "type": "zip",
19
+ "url": "https://api.github.com/repos/composer/installers/zipball/cfcca6b1b60bc4974324efb5783c13dca6932b5b",
20
+ "reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b",
21
+ "shasum": ""
22
+ },
23
+ "require": {
24
+ "composer-plugin-api": "^1.0"
25
+ },
26
+ "replace": {
27
+ "roundcube/plugin-installer": "*",
28
+ "shama/baton": "*"
29
+ },
30
+ "require-dev": {
31
+ "composer/composer": "1.0.*@dev",
32
+ "phpunit/phpunit": "^4.8.36"
33
+ },
34
+ "type": "composer-plugin",
35
+ "extra": {
36
+ "class": "Composer\\Installers\\Plugin",
37
+ "branch-alias": {
38
+ "dev-master": "1.0-dev"
39
+ }
40
+ },
41
+ "autoload": {
42
+ "psr-4": {
43
+ "Composer\\Installers\\": "src/Composer/Installers"
44
+ }
45
+ },
46
+ "notification-url": "https://packagist.org/downloads/",
47
+ "license": [
48
+ "MIT"
49
+ ],
50
+ "authors": [
51
+ {
52
+ "name": "Kyle Robinson Young",
53
+ "email": "kyle@dontkry.com",
54
+ "homepage": "https://github.com/shama"
55
+ }
56
+ ],
57
+ "description": "A multi-framework Composer library installer",
58
+ "homepage": "https://composer.github.io/installers/",
59
+ "keywords": [
60
+ "Craft",
61
+ "Dolibarr",
62
+ "Eliasis",
63
+ "Hurad",
64
+ "ImageCMS",
65
+ "Kanboard",
66
+ "Lan Management System",
67
+ "MODX Evo",
68
+ "Mautic",
69
+ "Maya",
70
+ "OXID",
71
+ "Plentymarkets",
72
+ "Porto",
73
+ "RadPHP",
74
+ "SMF",
75
+ "Thelia",
76
+ "WolfCMS",
77
+ "agl",
78
+ "aimeos",
79
+ "annotatecms",
80
+ "attogram",
81
+ "bitrix",
82
+ "cakephp",
83
+ "chef",
84
+ "cockpit",
85
+ "codeigniter",
86
+ "concrete5",
87
+ "croogo",
88
+ "dokuwiki",
89
+ "drupal",
90
+ "eZ Platform",
91
+ "elgg",
92
+ "expressionengine",
93
+ "fuelphp",
94
+ "grav",
95
+ "installer",
96
+ "itop",
97
+ "joomla",
98
+ "kohana",
99
+ "laravel",
100
+ "lavalite",
101
+ "lithium",
102
+ "magento",
103
+ "majima",
104
+ "mako",
105
+ "mediawiki",
106
+ "modulework",
107
+ "modx",
108
+ "moodle",
109
+ "osclass",
110
+ "phpbb",
111
+ "piwik",
112
+ "ppi",
113
+ "puppet",
114
+ "pxcms",
115
+ "reindex",
116
+ "roundcube",
117
+ "shopware",
118
+ "silverstripe",
119
+ "sydes",
120
+ "symfony",
121
+ "typo3",
122
+ "wordpress",
123
+ "yawik",
124
+ "zend",
125
+ "zikula"
126
+ ],
127
+ "time": "2018-08-27T06:10:37+00:00"
128
+ }
129
+ ],
130
+ "packages-dev": [
131
+ {
132
+ "name": "dealerdirect/phpcodesniffer-composer-installer",
133
+ "version": "v0.5.0",
134
+ "source": {
135
+ "type": "git",
136
+ "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
137
+ "reference": "e749410375ff6fb7a040a68878c656c2e610b132"
138
+ },
139
+ "dist": {
140
+ "type": "zip",
141
+ "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/e749410375ff6fb7a040a68878c656c2e610b132",
142
+ "reference": "e749410375ff6fb7a040a68878c656c2e610b132",
143
+ "shasum": ""
144
+ },
145
+ "require": {
146
+ "composer-plugin-api": "^1.0",
147
+ "php": "^5.3|^7",
148
+ "squizlabs/php_codesniffer": "^2|^3"
149
+ },
150
+ "require-dev": {
151
+ "composer/composer": "*",
152
+ "phpcompatibility/php-compatibility": "^9.0",
153
+ "sensiolabs/security-checker": "^4.1.0"
154
+ },
155
+ "type": "composer-plugin",
156
+ "extra": {
157
+ "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
158
+ },
159
+ "autoload": {
160
+ "psr-4": {
161
+ "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
162
+ }
163
+ },
164
+ "notification-url": "https://packagist.org/downloads/",
165
+ "license": [
166
+ "MIT"
167
+ ],
168
+ "authors": [
169
+ {
170
+ "name": "Franck Nijhof",
171
+ "email": "franck.nijhof@dealerdirect.com",
172
+ "homepage": "http://www.frenck.nl",
173
+ "role": "Developer / IT Manager"
174
+ }
175
+ ],
176
+ "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
177
+ "homepage": "http://www.dealerdirect.com",
178
+ "keywords": [
179
+ "PHPCodeSniffer",
180
+ "PHP_CodeSniffer",
181
+ "code quality",
182
+ "codesniffer",
183
+ "composer",
184
+ "installer",
185
+ "phpcs",
186
+ "plugin",
187
+ "qa",
188
+ "quality",
189
+ "standard",
190
+ "standards",
191
+ "style guide",
192
+ "stylecheck",
193
+ "tests"
194
+ ],
195
+ "time": "2018-10-26T13:21:45+00:00"
196
+ },
197
+ {
198
+ "name": "phpcompatibility/php-compatibility",
199
+ "version": "9.1.1",
200
+ "source": {
201
+ "type": "git",
202
+ "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
203
+ "reference": "2b63c5d284ab8857f7b1d5c240ddb507a6b2293c"
204
+ },
205
+ "dist": {
206
+ "type": "zip",
207
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/2b63c5d284ab8857f7b1d5c240ddb507a6b2293c",
208
+ "reference": "2b63c5d284ab8857f7b1d5c240ddb507a6b2293c",
209
+ "shasum": ""
210
+ },
211
+ "require": {
212
+ "php": ">=5.3",
213
+ "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
214
+ },
215
+ "conflict": {
216
+ "squizlabs/php_codesniffer": "2.6.2"
217
+ },
218
+ "require-dev": {
219
+ "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
220
+ },
221
+ "suggest": {
222
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
223
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
224
+ },
225
+ "type": "phpcodesniffer-standard",
226
+ "notification-url": "https://packagist.org/downloads/",
227
+ "license": [
228
+ "LGPL-3.0-or-later"
229
+ ],
230
+ "authors": [
231
+ {
232
+ "name": "Contributors",
233
+ "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
234
+ },
235
+ {
236
+ "name": "Wim Godden",
237
+ "homepage": "https://github.com/wimg",
238
+ "role": "lead"
239
+ },
240
+ {
241
+ "name": "Juliette Reinders Folmer",
242
+ "homepage": "https://github.com/jrfnl",
243
+ "role": "lead"
244
+ }
245
+ ],
246
+ "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
247
+ "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
248
+ "keywords": [
249
+ "compatibility",
250
+ "phpcs",
251
+ "standards"
252
+ ],
253
+ "time": "2018-12-30T23:16:27+00:00"
254
+ },
255
+ {
256
+ "name": "phpcompatibility/phpcompatibility-paragonie",
257
+ "version": "1.0.1",
258
+ "source": {
259
+ "type": "git",
260
+ "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
261
+ "reference": "9160de79fcd683b5c99e9c4133728d91529753ea"
262
+ },
263
+ "dist": {
264
+ "type": "zip",
265
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/9160de79fcd683b5c99e9c4133728d91529753ea",
266
+ "reference": "9160de79fcd683b5c99e9c4133728d91529753ea",
267
+ "shasum": ""
268
+ },
269
+ "require": {
270
+ "phpcompatibility/php-compatibility": "^9.0"
271
+ },
272
+ "require-dev": {
273
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4"
274
+ },
275
+ "suggest": {
276
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
277
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
278
+ },
279
+ "type": "phpcodesniffer-standard",
280
+ "notification-url": "https://packagist.org/downloads/",
281
+ "license": [
282
+ "LGPL-3.0-or-later"
283
+ ],
284
+ "authors": [
285
+ {
286
+ "name": "Wim Godden",
287
+ "role": "lead"
288
+ },
289
+ {
290
+ "name": "Juliette Reinders Folmer",
291
+ "role": "lead"
292
+ }
293
+ ],
294
+ "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.",
295
+ "homepage": "http://phpcompatibility.com/",
296
+ "keywords": [
297
+ "compatibility",
298
+ "paragonie",
299
+ "phpcs",
300
+ "polyfill",
301
+ "standards"
302
+ ],
303
+ "time": "2018-12-16T19:10:44+00:00"
304
+ },
305
+ {
306
+ "name": "phpcompatibility/phpcompatibility-wp",
307
+ "version": "2.0.0",
308
+ "source": {
309
+ "type": "git",
310
+ "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
311
+ "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd"
312
+ },
313
+ "dist": {
314
+ "type": "zip",
315
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/cb303f0067cd5b366a41d4fb0e254fb40ff02efd",
316
+ "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd",
317
+ "shasum": ""
318
+ },
319
+ "require": {
320
+ "phpcompatibility/php-compatibility": "^9.0",
321
+ "phpcompatibility/phpcompatibility-paragonie": "^1.0"
322
+ },
323
+ "require-dev": {
324
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3"
325
+ },
326
+ "suggest": {
327
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
328
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
329
+ },
330
+ "type": "phpcodesniffer-standard",
331
+ "notification-url": "https://packagist.org/downloads/",
332
+ "license": [
333
+ "LGPL-3.0-or-later"
334
+ ],
335
+ "authors": [
336
+ {
337
+ "name": "Wim Godden",
338
+ "role": "lead"
339
+ },
340
+ {
341
+ "name": "Juliette Reinders Folmer",
342
+ "role": "lead"
343
+ }
344
+ ],
345
+ "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.",
346
+ "homepage": "http://phpcompatibility.com/",
347
+ "keywords": [
348
+ "compatibility",
349
+ "phpcs",
350
+ "standards",
351
+ "wordpress"
352
+ ],
353
+ "time": "2018-10-07T18:31:37+00:00"
354
+ },
355
+ {
356
+ "name": "squizlabs/php_codesniffer",
357
+ "version": "3.4.2",
358
+ "source": {
359
+ "type": "git",
360
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
361
+ "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8"
362
+ },
363
+ "dist": {
364
+ "type": "zip",
365
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
366
+ "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
367
+ "shasum": ""
368
+ },
369
+ "require": {
370
+ "ext-simplexml": "*",
371
+ "ext-tokenizer": "*",
372
+ "ext-xmlwriter": "*",
373
+ "php": ">=5.4.0"
374
+ },
375
+ "require-dev": {
376
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
377
+ },
378
+ "bin": [
379
+ "bin/phpcs",
380
+ "bin/phpcbf"
381
+ ],
382
+ "type": "library",
383
+ "extra": {
384
+ "branch-alias": {
385
+ "dev-master": "3.x-dev"
386
+ }
387
+ },
388
+ "notification-url": "https://packagist.org/downloads/",
389
+ "license": [
390
+ "BSD-3-Clause"
391
+ ],
392
+ "authors": [
393
+ {
394
+ "name": "Greg Sherwood",
395
+ "role": "lead"
396
+ }
397
+ ],
398
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
399
+ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
400
+ "keywords": [
401
+ "phpcs",
402
+ "standards"
403
+ ],
404
+ "time": "2019-04-10T23:49:02+00:00"
405
+ },
406
+ {
407
+ "name": "wp-coding-standards/wpcs",
408
+ "version": "1.2.1",
409
+ "source": {
410
+ "type": "git",
411
+ "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
412
+ "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c"
413
+ },
414
+ "dist": {
415
+ "type": "zip",
416
+ "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
417
+ "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
418
+ "shasum": ""
419
+ },
420
+ "require": {
421
+ "php": ">=5.3",
422
+ "squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
423
+ },
424
+ "require-dev": {
425
+ "phpcompatibility/php-compatibility": "^9.0"
426
+ },
427
+ "suggest": {
428
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
429
+ },
430
+ "type": "phpcodesniffer-standard",
431
+ "notification-url": "https://packagist.org/downloads/",
432
+ "license": [
433
+ "MIT"
434
+ ],
435
+ "authors": [
436
+ {
437
+ "name": "Contributors",
438
+ "homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
439
+ }
440
+ ],
441
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
442
+ "keywords": [
443
+ "phpcs",
444
+ "standards",
445
+ "wordpress"
446
+ ],
447
+ "time": "2018-12-18T09:43:51+00:00"
448
+ }
449
+ ],
450
+ "aliases": [],
451
+ "minimum-stability": "dev",
452
+ "stability-flags": [],
453
+ "prefer-stable": true,
454
+ "prefer-lowest": false,
455
+ "platform": {
456
+ "php": "^5.3 || ^7"
457
+ },
458
+ "platform-dev": {
459
+ "php": "^5.6 || ^7"
460
+ }
461
+ }
genesis-simple-edits.php CHANGED
@@ -1,146 +1,27 @@
1
  <?php
2
-
3
  /**
4
- * The main class that handles the entire output, content filters, etc., for this plugin.
5
  *
6
- * @package Genesis Simple Edits
7
- * @since 1.0
8
  */
9
- class Genesis_Simple_Edits {
10
-
11
- /**
12
- * Plugin version
13
- */
14
- public $plugin_version = '2.2.1';
15
-
16
- /**
17
- * Minimum WordPress version.
18
- */
19
- public $min_wp_version = '4.7.2';
20
-
21
- /**
22
- * Minimum Genesis version.
23
- */
24
- public $min_genesis_version = '2.4.2';
25
-
26
- /**
27
- * The plugin textdomain, for translations.
28
- */
29
- public $plugin_textdomain = 'genesis-simple-edits';
30
-
31
- /**
32
- * The url to the plugin directory.
33
- */
34
- public $plugin_dir_url;
35
-
36
- /**
37
- * The path to the plugin directory.
38
- */
39
- public $plugin_dir_path;
40
-
41
- /**
42
- * The main settings field for this plugin.
43
- */
44
- public $settings_field = 'gse-settings';
45
-
46
- /**
47
- * Core functionality.
48
- */
49
- public $core;
50
-
51
- /**
52
- * Admin menu and settings page.
53
- */
54
- public $admin;
55
-
56
- /**
57
- * Constructor.
58
- *
59
- * @since 2.2.0
60
- */
61
- function __construct() {
62
-
63
- $this->plugin_dir_url = plugin_dir_url( __FILE__ );
64
- $this->plugin_dir_path = plugin_dir_path( __FILE__ );
65
-
66
- // For backward compatibility
67
- define( 'GSE_SETTINGS_FIELD', $this->settings_field );
68
-
69
- }
70
-
71
- /**
72
- * Initialize.
73
- *
74
- * @since 2.2.0
75
- */
76
- public function init() {
77
-
78
- $this->load_plugin_textdomain();
79
 
80
- add_action( 'admin_notices', array( $this, 'requirements_notice' ) );
81
- add_action( 'genesis_setup', array( $this, 'instantiate' ) );
 
82
 
83
- }
84
-
85
- /**
86
- * Show admin notice if minimum requirements aren't met.
87
- *
88
- * @since 2.2.0
89
- */
90
- public function requirements_notice() {
91
-
92
- if ( ! defined( 'PARENT_THEME_VERSION' ) || ! version_compare( PARENT_THEME_VERSION, $this->min_genesis_version, '>=' ) ) {
93
-
94
- $action = defined( 'PARENT_THEME_VERSION' ) ? __( 'upgrade to', 'genesis-simple-edits' ) : __( 'install and activate', 'genesis-simple-edits' );
95
-
96
- $message = sprintf( __( 'Genesis Simple Edits requires WordPress %s and Genesis %s, or greater. Please %s the latest version of <a href="%s" target="_blank">Genesis</a> to use this plugin.', 'genesis-simple-edits' ), $this->min_wp_version, $this->min_genesis_version, $action, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa' );
97
- echo '<div class="notice notice-warning"><p>' . $message . '</p></div>';
98
-
99
- }
100
-
101
- }
102
-
103
- /**
104
- * Load the plugin textdomain, for translation.
105
- *
106
- * @since 2.2.0
107
- */
108
- function load_plugin_textdomain() {
109
- load_plugin_textdomain( $this->plugin_textdomain, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
110
- }
111
-
112
- /**
113
- * Include the class file, instantiate the classes, create objects.
114
- *
115
- * @since 2.2.0
116
- */
117
- public function instantiate() {
118
-
119
- require_once( $this->plugin_dir_path . 'includes/class-genesis-simple-edits-core.php' );
120
- $this->core = new Genesis_Simple_Edits_Core;
121
- $this->core->init();
122
-
123
- if ( is_admin() ) {
124
- require_once( $this->plugin_dir_path . 'includes/class-genesis-simple-edits-admin.php' );
125
- $this->admin = new Genesis_Simple_Edits_Admin;
126
- $this->admin->init();
127
- }
128
-
129
- }
130
-
131
- }
132
 
133
  /**
134
  * Helper function to retrieve the static object without using globals.
135
  *
136
  * @since 2.2.0
137
  */
138
- function Genesis_Simple_Edits() {
139
 
140
  static $object;
141
 
142
- if ( null == $object ) {
143
- $object = new Genesis_Simple_Edits;
144
  }
145
 
146
  return $object;
1
  <?php
 
2
  /**
3
+ * Genesis Simple Edits
4
  *
5
+ * @package genesis-simple-edits
 
6
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ define( 'GENESIS_SIMPLE_EDITS_DIR', plugin_dir_path( __FILE__ ) );
9
+ define( 'GENESIS_SIMPLE_EDITS_URL', plugins_url( '', __FILE__ ) );
10
+ define( 'GENESIS_SIMPLE_EDITS_VERSION', '5.2.1' );
11
 
12
+ require_once GENESIS_SIMPLE_EDITS_DIR . '/includes/class-genesis-simple-edits.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  /**
15
  * Helper function to retrieve the static object without using globals.
16
  *
17
  * @since 2.2.0
18
  */
19
+ function genesis_simple_edits() {
20
 
21
  static $object;
22
 
23
+ if ( null === $object ) {
24
+ $object = new Genesis_Simple_Edits();
25
  }
26
 
27
  return $object;
includes/class-genesis-simple-edits-admin.php CHANGED
@@ -1,10 +1,21 @@
1
  <?php
2
-
 
 
 
 
 
 
 
 
 
 
3
  class Genesis_Simple_Edits_Admin extends Genesis_Admin_Form {
4
 
5
  /**
6
  * Settings field.
7
  *
 
8
  * @since 2.1.0
9
  */
10
  public $settings_field;
@@ -18,6 +29,9 @@ class Genesis_Simple_Edits_Admin extends Genesis_Admin_Form {
18
 
19
  }
20
 
 
 
 
21
  public function init() {
22
 
23
  add_action( 'genesis_admin_menu', array( $this, 'admin_menu' ) );
@@ -41,11 +55,11 @@ class Genesis_Simple_Edits_Admin extends Genesis_Admin_Form {
41
  'submenu' => array(
42
  'parent_slug' => 'genesis',
43
  'page_title' => __( 'Genesis - Simple Edits', 'genesis-simple-edits' ),
44
- 'menu_title' => __( 'Simple Edits', 'genesis-simple-edits' )
45
- )
46
  );
47
 
48
- // Use Genesis default
49
  $page_ops = array();
50
 
51
  $this->create( $page_id, $menu_ops, $page_ops, $this->settings_field, $this->get_default_settings() );
@@ -73,9 +87,12 @@ class Genesis_Simple_Edits_Admin extends Genesis_Admin_Form {
73
 
74
  }
75
 
 
 
 
76
  public function scripts() {
77
 
78
- wp_enqueue_script( 'genesis-simple-edits-admin-js', Genesis_Simple_Edits()->plugin_dir_url . 'assets/js/admin.js', array( 'jquery' ), Genesis_Simple_Edits()->plugin_version, true );
79
 
80
  }
81
 
@@ -83,11 +100,10 @@ class Genesis_Simple_Edits_Admin extends Genesis_Admin_Form {
83
  * Callback for displaying the Simple Sidebars admin form.
84
  *
85
  * @since 2.1.0
86
- *
87
  */
88
  public function form() {
89
 
90
- require_once( Genesis_Simple_Edits()->plugin_dir_path . 'includes/views/admin.php' );
91
 
92
  }
93
 
1
  <?php
2
+ /**
3
+ * Genesis Simple Edits Admin
4
+ *
5
+ * @package genesis-simple-edits
6
+ */
7
+
8
+ /**
9
+ * Admin Class
10
+ *
11
+ * @package genesis-simple-edits
12
+ */
13
  class Genesis_Simple_Edits_Admin extends Genesis_Admin_Form {
14
 
15
  /**
16
  * Settings field.
17
  *
18
+ * @var settings_field Settings Field
19
  * @since 2.1.0
20
  */
21
  public $settings_field;
29
 
30
  }
31
 
32
+ /**
33
+ * Initializes Admin Menu.
34
+ */
35
  public function init() {
36
 
37
  add_action( 'genesis_admin_menu', array( $this, 'admin_menu' ) );
55
  'submenu' => array(
56
  'parent_slug' => 'genesis',
57
  'page_title' => __( 'Genesis - Simple Edits', 'genesis-simple-edits' ),
58
+ 'menu_title' => __( 'Simple Edits', 'genesis-simple-edits' ),
59
+ ),
60
  );
61
 
62
+ // Use Genesis default.
63
  $page_ops = array();
64
 
65
  $this->create( $page_id, $menu_ops, $page_ops, $this->settings_field, $this->get_default_settings() );
87
 
88
  }
89
 
90
+ /**
91
+ * Sets up Javascript scripts.
92
+ */
93
  public function scripts() {
94
 
95
+ wp_enqueue_script( 'genesis-simple-edits-admin-js', Genesis_Simple_Edits()->plugin_dir_url . '/assets/js/admin.js', array( 'jquery' ), GENESIS_SIMPLE_EDITS_VERSION, true );
96
 
97
  }
98
 
100
  * Callback for displaying the Simple Sidebars admin form.
101
  *
102
  * @since 2.1.0
 
103
  */
104
  public function form() {
105
 
106
+ require_once Genesis_Simple_Edits()->plugin_dir_path . 'includes/views/admin.php';
107
 
108
  }
109
 
includes/class-genesis-simple-edits-core.php CHANGED
@@ -1,11 +1,20 @@
1
  <?php
2
-
 
 
 
 
 
 
 
 
3
  class Genesis_Simple_Edits_Core {
4
 
5
  /**
6
  * Settings field.
7
  *
8
  * @since 2.1.0
 
9
  */
10
  private $settings_field;
11
 
@@ -18,6 +27,9 @@ class Genesis_Simple_Edits_Core {
18
 
19
  }
20
 
 
 
 
21
  public function init() {
22
 
23
  add_filter( 'genesis_post_info', array( $this, 'post_info_filter' ), 19 );
@@ -28,32 +40,56 @@ class Genesis_Simple_Edits_Core {
28
 
29
  }
30
 
31
-
32
- function post_info_filter( $output ) {
 
 
 
 
33
 
34
  return genesis_get_option( 'post_info', $this->settings_field );
35
 
36
  }
37
 
38
- function post_meta_filter( $output ) {
 
 
 
 
 
39
 
40
  return genesis_get_option( 'post_meta', $this->settings_field );
41
 
42
  }
43
 
44
- function footer_backtotop_filter( $output ) {
 
 
 
 
 
45
 
46
  return genesis_get_option( 'footer_backtotop_text', $this->settings_field );
47
 
48
  }
49
 
50
- function footer_creds_filter( $output ) {
 
 
 
 
 
51
 
52
  return genesis_get_option( 'footer_creds_text', $this->settings_field );
53
 
54
  }
55
 
56
- function footer_output_filter( $output ) {
 
 
 
 
 
57
 
58
  if ( genesis_get_option( 'footer_output_on', $this->settings_field ) ) {
59
  return genesis_get_option( 'footer_output', $this->settings_field );
1
  <?php
2
+ /**
3
+ * Genesis Simple Edits Core
4
+ *
5
+ * @package genesis-simple-edits
6
+ */
7
+
8
+ /**
9
+ * Core Class
10
+ */
11
  class Genesis_Simple_Edits_Core {
12
 
13
  /**
14
  * Settings field.
15
  *
16
  * @since 2.1.0
17
+ * @var $settings_field Settings Field
18
  */
19
  private $settings_field;
20
 
27
 
28
  }
29
 
30
+ /**
31
+ * Init, sets up filters.
32
+ */
33
  public function init() {
34
 
35
  add_filter( 'genesis_post_info', array( $this, 'post_info_filter' ), 19 );
40
 
41
  }
42
 
43
+ /**
44
+ * Post Info Filter
45
+ *
46
+ * @param Output $output Output.
47
+ */
48
+ public function post_info_filter( $output ) {
49
 
50
  return genesis_get_option( 'post_info', $this->settings_field );
51
 
52
  }
53
 
54
+ /**
55
+ * Post Meta Filter
56
+ *
57
+ * @param Output $output Output.
58
+ */
59
+ public function post_meta_filter( $output ) {
60
 
61
  return genesis_get_option( 'post_meta', $this->settings_field );
62
 
63
  }
64
 
65
+ /**
66
+ * Footer Back To Top Filter
67
+ *
68
+ * @param Output $output Output.
69
+ */
70
+ public function footer_backtotop_filter( $output ) {
71
 
72
  return genesis_get_option( 'footer_backtotop_text', $this->settings_field );
73
 
74
  }
75
 
76
+ /**
77
+ * Footer Creds Filter
78
+ *
79
+ * @param Output $output Output.
80
+ */
81
+ public function footer_creds_filter( $output ) {
82
 
83
  return genesis_get_option( 'footer_creds_text', $this->settings_field );
84
 
85
  }
86
 
87
+ /**
88
+ * Footer Output Filter
89
+ *
90
+ * @param Output $output Output.
91
+ */
92
+ public function footer_output_filter( $output ) {
93
 
94
  if ( genesis_get_option( 'footer_output_on', $this->settings_field ) ) {
95
  return genesis_get_option( 'footer_output', $this->settings_field );
includes/class-genesis-simple-edits.php ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The main class that handles the entire output, content filters, etc., for this plugin.
4
+ *
5
+ * @package genesis-simple-edits
6
+ * @since 1.0
7
+ */
8
+
9
+ /**
10
+ * Main Class
11
+ *
12
+ * @since 1.0
13
+ */
14
+ class Genesis_Simple_Edits {
15
+
16
+ /**
17
+ * Minimum WordPress version.
18
+ *
19
+ * @var $min_wp_version Minimum WordPress version
20
+ */
21
+ public $min_wp_version = '4.7.2';
22
+
23
+ /**
24
+ * Minimum Genesis version.
25
+ *
26
+ * @var $min_genesis_version Minimum Genesis version
27
+ */
28
+ public $min_genesis_version = '2.4.2';
29
+
30
+ /**
31
+ * The plugin textdomain, for translations.
32
+ *
33
+ * @var $plugin_textdomain The plugin textdomain
34
+ */
35
+ public $plugin_textdomain = 'genesis-simple-edits';
36
+
37
+ /**
38
+ * The url to the plugin directory.
39
+ *
40
+ * @var $plugin_dir_url The url to the Plugin Directory
41
+ */
42
+ public $plugin_dir_url;
43
+
44
+ /**
45
+ * The path to the plugin directory.
46
+ *
47
+ * @var $plugin_dir_path The path to the plugin directory
48
+ */
49
+ public $plugin_dir_path;
50
+
51
+ /**
52
+ * The main settings field for this plugin.
53
+ *
54
+ * @var $settings_field The main settings field for this plugin
55
+ */
56
+ public $settings_field = 'gse-settings';
57
+
58
+ /**
59
+ * Core functionality.
60
+ *
61
+ * @var $core Core functionality
62
+ */
63
+ public $core;
64
+
65
+ /**
66
+ * Admin menu and settings page.
67
+ *
68
+ * @var $admin Admin menu and settings page
69
+ */
70
+ public $admin;
71
+
72
+ /**
73
+ * Constructor.
74
+ *
75
+ * @since 2.2.0
76
+ */
77
+ public function __construct() {
78
+
79
+ $this->plugin_dir_url = GENESIS_SIMPLE_EDITS_URL;
80
+ $this->plugin_dir_path = GENESIS_SIMPLE_EDITS_DIR;
81
+
82
+ // For backward compatibility.
83
+ define( 'GSE_SETTINGS_FIELD', $this->settings_field );
84
+
85
+ }
86
+
87
+ /**
88
+ * Initialize.
89
+ *
90
+ * @since 2.2.0
91
+ */
92
+ public function init() {
93
+
94
+ $this->load_plugin_textdomain();
95
+
96
+ add_action( 'admin_notices', array( $this, 'requirements_notice' ) );
97
+ add_action( 'genesis_setup', array( $this, 'instantiate' ) );
98
+
99
+ }
100
+
101
+ /**
102
+ * Show admin notice if minimum requirements aren't met.
103
+ *
104
+ * @since 2.2.0
105
+ */
106
+ public function requirements_notice() {
107
+
108
+ if ( ! defined( 'PARENT_THEME_VERSION' ) || ! version_compare( PARENT_THEME_VERSION, $this->min_genesis_version, '>=' ) ) {
109
+
110
+ $action = defined( 'PARENT_THEME_VERSION' ) ? __( 'upgrade to', 'genesis-simple-edits' ) : __( 'install and activate', 'genesis-simple-edits' );
111
+
112
+ // Translators: String 1 is the version of WordPress required, String 2 is the version of Genesis required. String 3 is an expected action to take, String 4 is the URL of the Genesis Plugin.
113
+ $message = sprintf( __( 'Genesis Simple Edits requires WordPress %1$s and Genesis %2$s, or greater. Please %3$s the latest version of <a href="%4$s" target="_blank">Genesis</a> to use this plugin.', 'genesis-simple-edits' ), $this->min_wp_version, $this->min_genesis_version, $action, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa' );
114
+ echo '<div class="notice notice-warning"><p>' . esc_html( $message ) . '</p></div>';
115
+
116
+ }
117
+
118
+ }
119
+
120
+ /**
121
+ * Load the plugin textdomain, for translation.
122
+ *
123
+ * @since 2.2.0
124
+ */
125
+ public function load_plugin_textdomain() {
126
+ load_plugin_textdomain( $this->plugin_textdomain, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
127
+ }
128
+
129
+ /**
130
+ * Include the class file, instantiate the classes, create objects.
131
+ *
132
+ * @since 2.2.0
133
+ */
134
+ public function instantiate() {
135
+
136
+ require_once $this->plugin_dir_path . 'includes/class-genesis-simple-edits-core.php';
137
+ $this->core = new Genesis_Simple_Edits_Core();
138
+ $this->core->init();
139
+
140
+ if ( is_admin() ) {
141
+ require_once $this->plugin_dir_path . 'includes/class-genesis-simple-edits-admin.php';
142
+ $this->admin = new Genesis_Simple_Edits_Admin();
143
+ $this->admin->init();
144
+ }
145
+
146
+ }
147
+
148
+ }
includes/views/admin.php CHANGED
@@ -1,39 +1,57 @@
 
 
 
 
 
 
 
 
1
  <table class="form-table"><tbody>
2
 
3
  <tr>
4
- <th scope="row"><p><label for="<?php $this->field_id( 'post_info' ); ?>"><b><?php _e( 'Entry Meta (above content)', 'genesis-simple-edits' ); ?></b></label></p></th>
5
  <td>
6
  <p><input type="text" name="<?php $this->field_name( 'post_info' ); ?>" id="<?php $this->field_id( 'post_info' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'post_info' ) ); ?>" size="125" /></p>
7
  </td>
8
  </tr>
9
 
10
  <tr>
11
- <th scope="row"><p><label for="<?php $this->field_id( 'post_meta' ); ?>"><b><?php _e( 'Entry Meta (below content)', 'genesis-simple-edits' ); ?></b></label></p></th>
12
  <td>
13
  <p><input type="text" name="<?php $this->field_name( 'post_meta' ); ?>" id="<?php $this->field_id( 'post_meta' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'post_meta' ) ); ?>" size="125" /></p>
14
 
15
- <p><small><a class="post-shortcodes-toggle" href="#"><?php _e( 'Show available entry meta shortcodes', 'genesis-simple-edits' ) ?></a></small></p>
16
 
17
  </td>
18
  </tr>
19
 
20
  <tr class="post-shortcodes" style="display: none;">
21
- <th scope="row"><p><span class="description"><?php _e( 'Shortcode Reference', 'genesis-simple-edits' ); ?></span></p></th>
22
  <td>
23
- <p><span class="description"><?php printf( __( 'NOTE: For a more comprehensive shortcode usage guide, see the <a href="%s" target="_blank">post shortcode reference</a>.', 'genesis-simple-edits' ), 'http://my.studiopress.com/documentation/customization/shortcodes-reference/post-shortcode-reference/' ); ?></span></p>
 
 
 
 
 
 
 
 
 
 
24
  <p>
25
  <ul>
26
- <li>[post_date] - <span class="description"><?php _e( 'Date the entry was published', 'genesis-simple-edits' ); ?></span></li>
27
- <li>[post_modified_date] - <span class="description"><?php _e( 'Date the entry was last modified', 'genesis-simple-edits' ); ?></span></li>
28
- <li>[post_time] - <span class="description"><?php _e( 'Time the entry was published', 'genesis-simple-edits' ); ?></span></li>
29
- <li>[post_modified_time] - <span class="description"><?php _e( 'Time the entry was last modified', 'genesis-simple-edits' ); ?></span></li>
30
- <li>[post_author] - <span class="description"><?php _e( 'Entry author display name', 'genesis-simple-edits' ); ?></span></li>
31
- <li>[post_author_link] - <span class="description"><?php _e( 'Entry author display name, linked to their website', 'genesis-simple-edits' ); ?></span></li>
32
- <li>[post_author_posts_link] - <span class="description"><?php _e( 'Entry author display name, linked to their archive', 'genesis-simple-edits' ); ?></span></li>
33
- <li>[post_comments] - <span class="description"><?php _e( 'Entry comments link', 'genesis-simple-edits' ); ?></span></li>
34
- <li>[post_tags] - <span class="description"><?php _e( 'List of entry tags', 'genesis-simple-edits' ); ?></span></li>
35
- <li>[post_categories] - <span class="description"><?php _e( 'List of entry categories', 'genesis-simple-edits' ); ?></span></li>
36
- <li>[post_edit] - <span class="description"><?php _e( 'Entry edit link (visible to admins)', 'genesis-simple-edits' ); ?></span></li>
37
  </ul>
38
  </p>
39
  </td>
@@ -41,7 +59,7 @@
41
 
42
  <?php if ( ! genesis_html5() ) : ?>
43
  <tr>
44
- <th scope="row"><p><label for="<?php $this->field_id( 'footer_backtotop_text' ); ?>"><b><?php _e( 'Footer "Back to Top" Link', 'genesis-simple-edits' ); ?></b></label></p></th>
45
  <td>
46
  <p><input type="text" name="<?php $this->field_name( 'footer_backtotop_text' ); ?>" id="<?php $this->field_id( 'footer_backtotop_text' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'footer_backtotop_text' ) ); ?>" size="125" /></p>
47
  </td>
@@ -49,40 +67,50 @@
49
  <?php endif; ?>
50
 
51
  <tr>
52
- <th scope="row"><p><label for="<?php $this->field_id( 'footer_creds_text' ); ?>"><b><?php _e( 'Footer Credits Text', 'genesis-simple-edits' ); ?></b></label></p></th>
53
  <td>
54
  <p><input type="text" name="<?php $this->field_name( 'footer_creds_text' ); ?>" id="<?php $this->field_name( 'footer_creds_text' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'footer_creds_text' ) ); ?>" size="125" /></p>
55
  </td>
56
  </tr>
57
 
58
  <tr>
59
- <th scope="row"><p><b><?php _e( 'Footer Output', 'genesis-simple-edits' ); ?></b></p></th>
60
  <td>
61
- <p><input type="checkbox" name="<?php $this->field_name( 'footer_output_on' ); ?>" id="<?php $this->field_id( 'footer_output_on' ); ?>" value="1" <?php checked( 1, $this->get_field_value( 'footer_output_on' ) ); ?> /> <label for="<?php $this->field_id( 'footer_output_on' ); ?>"><?php _e( 'Modify Entire Footer Text (including markup)?', 'genesis-simple-edits' ); ?></label></p>
62
 
63
- <p><span class="description"><?php _e( 'NOTE: Checking this option will use the content of the box below, and override the options above.', 'genesis-simple-edits' ); ?></span></p>
64
 
65
  <p><textarea name="<?php $this->field_name( 'footer_output' ); ?>" cols="80" rows="5"><?php echo esc_textarea( $this->get_field_value( 'footer_output' ) ); ?></textarea></p>
66
 
67
- <p><small><a class="footer-shortcodes-toggle" href="#"><?php _e( 'Show available footer shortcodes', 'genesis-simple-edits' ); ?></a></small></p>
68
  </td>
69
  </tr>
70
 
71
  <tr class="footer-shortcodes" style="display: none;">
72
- <th scope="row"><p><span class="description"><?php _e( 'Shortcode Reference', 'genesis-simple-edits' ); ?></span></p></th>
73
  <td>
74
- <p><span class="description"><?php printf( __( 'NOTE: For a more comprehensive shortcode usage guide, see the <a href="%s" target="_blank">footer shortcode reference</a>.', 'genesis-simple-edits' ), 'http://my.studiopress.com/documentation/customization/shortcodes-reference/footer-shortcode-reference/' ); ?></span></p>
 
 
 
 
 
 
 
 
 
 
75
  <p>
76
  <ul>
77
  <?php if ( ! genesis_html5() ) : ?>
78
- <li>[footer_backtotop] - <span class="description"><?php _e( 'The "Back to Top" Link', 'genesis-simple-edits'); ?></span></li>
79
  <?php endif; ?>
80
- <li>[footer_copyright] - <span class="description"><?php _e( 'The Copyright notice', 'genesis-simple-edits' ); ?></span></li>
81
- <li>[footer_childtheme_link] - <span class="description"><?php _e( 'The Child Theme Link', 'genesis-simple-edits' ); ?></span></li>
82
- <li>[footer_genesis_link] - <span class="description"><?php _e( 'The Genesis Link', 'genesis-simple-edits' ); ?></span></li>
83
- <li>[footer_studiopress_link] - <span class="description"><?php _e( 'The StudioPress Link', 'genesis-simple-edits' ); ?></span></li>
84
- <li>[footer_wordpress_link] - <span class="description"><?php _e( 'The WordPress Link', 'genesis-simple-edits' ); ?></span></li>
85
- <li>[footer_loginout] - <span class="description"><?php _e( 'Log In/Out Link', 'genesis-simple-edits' ); ?></span></li>
86
  </ul>
87
  </p>
88
  </td>
1
+ <?php
2
+ /**
3
+ * File Doc Comment
4
+ *
5
+ * @package genesis-simple-edits
6
+ */
7
+
8
+ ?>
9
  <table class="form-table"><tbody>
10
 
11
  <tr>
12
+ <th scope="row"><p><label for="<?php $this->field_id( 'post_info' ); ?>"><b><?php esc_html_e( 'Entry Meta (above content)', 'genesis-simple-edits' ); ?></b></label></p></th>
13
  <td>
14
  <p><input type="text" name="<?php $this->field_name( 'post_info' ); ?>" id="<?php $this->field_id( 'post_info' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'post_info' ) ); ?>" size="125" /></p>
15
  </td>
16
  </tr>
17
 
18
  <tr>
19
+ <th scope="row"><p><label for="<?php $this->field_id( 'post_meta' ); ?>"><b><?php esc_html_e( 'Entry Meta (below content)', 'genesis-simple-edits' ); ?></b></label></p></th>
20
  <td>
21
  <p><input type="text" name="<?php $this->field_name( 'post_meta' ); ?>" id="<?php $this->field_id( 'post_meta' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'post_meta' ) ); ?>" size="125" /></p>
22
 
23
+ <p><small><a class="post-shortcodes-toggle" href="#"><?php esc_html_e( 'Show available entry meta shortcodes', 'genesis-simple-edits' ); ?></a></small></p>
24
 
25
  </td>
26
  </tr>
27
 
28
  <tr class="post-shortcodes" style="display: none;">
29
+ <th scope="row"><p><span class="description"><?php esc_html_e( 'Shortcode Reference', 'genesis-simple-edits' ); ?></span></p></th>
30
  <td>
31
+ <p><span class="description">
32
+ <?php
33
+ $allowed_html = array(
34
+ 'a' => array(
35
+ 'href' => array(),
36
+ 'target' => array(),
37
+ ),
38
+ );
39
+ ?>
40
+ <?php // Translators: The string is a URL to a usage guide. ?>
41
+ <?php printf( wp_kses( __( 'NOTE: For a more comprehensive shortcode usage guide, see the <a href="%s" target="_blank">post shortcode reference</a>.', 'genesis-simple-edits' ), $allowed_html ), 'http://my.studiopress.com/documentation/customization/shortcodes-reference/post-shortcode-reference/' ); ?></span></p>
42
  <p>
43
  <ul>
44
+ <li>[post_date] - <span class="description"><?php esc_html_e( 'Date the entry was published', 'genesis-simple-edits' ); ?></span></li>
45
+ <li>[post_modified_date] - <span class="description"><?php esc_html_e( 'Date the entry was last modified', 'genesis-simple-edits' ); ?></span></li>
46
+ <li>[post_time] - <span class="description"><?php esc_html_e( 'Time the entry was published', 'genesis-simple-edits' ); ?></span></li>
47
+ <li>[post_modified_time] - <span class="description"><?php esc_html_e( 'Time the entry was last modified', 'genesis-simple-edits' ); ?></span></li>
48
+ <li>[post_author] - <span class="description"><?php esc_html_e( 'Entry author display name', 'genesis-simple-edits' ); ?></span></li>
49
+ <li>[post_author_link] - <span class="description"><?php esc_html_e( 'Entry author display name, linked to their website', 'genesis-simple-edits' ); ?></span></li>
50
+ <li>[post_author_posts_link] - <span class="description"><?php esc_html_e( 'Entry author display name, linked to their archive', 'genesis-simple-edits' ); ?></span></li>
51
+ <li>[post_comments] - <span class="description"><?php esc_html_e( 'Entry comments link', 'genesis-simple-edits' ); ?></span></li>
52
+ <li>[post_tags] - <span class="description"><?php esc_html_e( 'List of entry tags', 'genesis-simple-edits' ); ?></span></li>
53
+ <li>[post_categories] - <span class="description"><?php esc_html_e( 'List of entry categories', 'genesis-simple-edits' ); ?></span></li>
54
+ <li>[post_edit] - <span class="description"><?php esc_html_e( 'Entry edit link (visible to admins)', 'genesis-simple-edits' ); ?></span></li>
55
  </ul>
56
  </p>
57
  </td>
59
 
60
  <?php if ( ! genesis_html5() ) : ?>
61
  <tr>
62
+ <th scope="row"><p><label for="<?php $this->field_id( 'footer_backtotop_text' ); ?>"><b><?php esc_html_e( 'Footer "Back to Top" Link', 'genesis-simple-edits' ); ?></b></label></p></th>
63
  <td>
64
  <p><input type="text" name="<?php $this->field_name( 'footer_backtotop_text' ); ?>" id="<?php $this->field_id( 'footer_backtotop_text' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'footer_backtotop_text' ) ); ?>" size="125" /></p>
65
  </td>
67
  <?php endif; ?>
68
 
69
  <tr>
70
+ <th scope="row"><p><label for="<?php $this->field_id( 'footer_creds_text' ); ?>"><b><?php esc_html_e( 'Footer Credits Text', 'genesis-simple-edits' ); ?></b></label></p></th>
71
  <td>
72
  <p><input type="text" name="<?php $this->field_name( 'footer_creds_text' ); ?>" id="<?php $this->field_name( 'footer_creds_text' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'footer_creds_text' ) ); ?>" size="125" /></p>
73
  </td>
74
  </tr>
75
 
76
  <tr>
77
+ <th scope="row"><p><b><?php esc_html_e( 'Footer Output', 'genesis-simple-edits' ); ?></b></p></th>
78
  <td>
79
+ <p><input type="checkbox" name="<?php $this->field_name( 'footer_output_on' ); ?>" id="<?php $this->field_id( 'footer_output_on' ); ?>" value="1" <?php checked( 1, $this->get_field_value( 'footer_output_on' ) ); ?> /> <label for="<?php $this->field_id( 'footer_output_on' ); ?>"><?php esc_html_e( 'Modify Entire Footer Text (including markup)?', 'genesis-simple-edits' ); ?></label></p>
80
 
81
+ <p><span class="description"><?php esc_html_e( 'NOTE: Checking this option will use the content of the box below, and override the options above.', 'genesis-simple-edits' ); ?></span></p>
82
 
83
  <p><textarea name="<?php $this->field_name( 'footer_output' ); ?>" cols="80" rows="5"><?php echo esc_textarea( $this->get_field_value( 'footer_output' ) ); ?></textarea></p>
84
 
85
+ <p><small><a class="footer-shortcodes-toggle" href="#"><?php esc_html_e( 'Show available footer shortcodes', 'genesis-simple-edits' ); ?></a></small></p>
86
  </td>
87
  </tr>
88
 
89
  <tr class="footer-shortcodes" style="display: none;">
90
+ <th scope="row"><p><span class="description"><?php esc_html_e( 'Shortcode Reference', 'genesis-simple-edits' ); ?></span></p></th>
91
  <td>
92
+ <p><span class="description">
93
+ <?php
94
+ $allowed_html = array(
95
+ 'a' => array(
96
+ 'href' => array(),
97
+ 'target' => array(),
98
+ ),
99
+ );
100
+ ?>
101
+ <?php // Translators: The string is a URL to a usage guide. ?>
102
+ <?php printf( wp_kses( __( 'NOTE: For a more comprehensive shortcode usage guide, see the <a href="%s" target="_blank">footer shortcode reference</a>.', 'genesis-simple-edits' ), $allowed_html ), 'http://my.studiopress.com/documentation/customization/shortcodes-reference/footer-shortcode-reference/' ); ?></span></p>
103
  <p>
104
  <ul>
105
  <?php if ( ! genesis_html5() ) : ?>
106
+ <li>[footer_backtotop] - <span class="description"><?php esc_html_e( 'The "Back to Top" Link', 'genesis-simple-edits' ); ?></span></li>
107
  <?php endif; ?>
108
+ <li>[footer_copyright] - <span class="description"><?php esc_html_e( 'The Copyright notice', 'genesis-simple-edits' ); ?></span></li>
109
+ <li>[footer_childtheme_link] - <span class="description"><?php esc_html_e( 'The Child Theme Link', 'genesis-simple-edits' ); ?></span></li>
110
+ <li>[footer_genesis_link] - <span class="description"><?php esc_html_e( 'The Genesis Link', 'genesis-simple-edits' ); ?></span></li>
111
+ <li>[footer_studiopress_link] - <span class="description"><?php esc_html_e( 'The StudioPress Link', 'genesis-simple-edits' ); ?></span></li>
112
+ <li>[footer_wordpress_link] - <span class="description"><?php esc_html_e( 'The WordPress Link', 'genesis-simple-edits' ); ?></span></li>
113
+ <li>[footer_loginout] - <span class="description"><?php esc_html_e( 'Log In/Out Link', 'genesis-simple-edits' ); ?></span></li>
114
  </ul>
115
  </p>
116
  </td>
languages/genesis-simple-edits.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2015 Nathan Rice
2
  # This file is distributed under the GNU General Public License v2.0 (or later).
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Genesis Simple Edits 2.1.1\n"
6
  "Report-Msgid-Bugs-To: StudioPress <translations@studiopress.com>\n"
7
- "POT-Creation-Date: 2015-09-29 19:30:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: StudioPress <translations@studiopress.com>\n"
13
  "Language-Team: English <translations@studiopress.com>\n"
14
  "X-Generator: grunt-wp-i18n 0.4.4\n"
@@ -24,173 +24,181 @@ msgstr ""
24
  "X-Poedit-SearchPath-0: .\n"
25
  "X-Textdomain-Support: yes\n"
26
 
27
- #: plugin.php:48
28
- msgid "Sorry, you cannot activate without <a href=\"%s\">Genesis %s</a> or greater"
29
- msgstr ""
30
-
31
- #: plugin.php:83
32
- msgid "Simple Edits Reset"
33
  msgstr ""
34
 
35
- #: plugin.php:86
36
- msgid "Simple Edits Saved"
37
  msgstr ""
38
 
39
- #: plugin.php:93 plugin.php:94 plugin.php:100
 
 
40
  msgid "Copyright"
41
  msgstr ""
42
 
43
- #: plugin.php:93 plugin.php:100
 
44
  msgid "On"
45
  msgstr ""
46
 
47
- #: plugin.php:97
48
  msgid "By"
49
  msgstr ""
50
 
51
- #: plugin.php:109
52
- msgid "Genesis - Simple Edits"
53
  msgstr ""
54
 
55
- #: plugin.php:109
56
- msgid "Simple Edits"
 
 
 
 
 
 
 
 
 
 
57
  msgstr ""
58
 
59
- #: plugin.php:124
60
  msgid "Entry Meta (above content)"
61
  msgstr ""
62
 
63
- #: plugin.php:131
64
  msgid "Entry Meta (below content)"
65
  msgstr ""
66
 
67
- #: plugin.php:135
68
  msgid "Show available entry meta shortcodes"
69
  msgstr ""
70
 
71
- #: plugin.php:141 plugin.php:192
72
  msgid "Shortcode Reference"
73
  msgstr ""
74
 
75
- #: plugin.php:143 plugin.php:194
 
76
  msgid ""
77
- "NOTE: For a more comprehensive shortcode usage guide, <a "
78
- "href=\"http://my.studiopress.com/docs/shortcode-reference/\" "
79
- "target=\"_blank\">see this page</a>."
80
  msgstr ""
81
 
82
- #: plugin.php:146
83
  msgid "Date the entry was published"
84
  msgstr ""
85
 
86
- #: plugin.php:147
87
  msgid "Date the entry was last modified"
88
  msgstr ""
89
 
90
- #: plugin.php:148
91
  msgid "Time the entry was published"
92
  msgstr ""
93
 
94
- #: plugin.php:149
95
  msgid "Time the entry was last modified"
96
  msgstr ""
97
 
98
- #: plugin.php:150
99
  msgid "Entry author display name"
100
  msgstr ""
101
 
102
- #: plugin.php:151
103
  msgid "Entry author display name, linked to their website"
104
  msgstr ""
105
 
106
- #: plugin.php:152
107
  msgid "Entry author display name, linked to their archive"
108
  msgstr ""
109
 
110
- #: plugin.php:153
111
  msgid "Entry comments link"
112
  msgstr ""
113
 
114
- #: plugin.php:154
115
  msgid "List of entry tags"
116
  msgstr ""
117
 
118
- #: plugin.php:155
119
  msgid "List of entry categories"
120
  msgstr ""
121
 
122
- #: plugin.php:156
123
  msgid "Entry edit link (visible to admins)"
124
  msgstr ""
125
 
126
- #: plugin.php:164
127
  msgid "Footer \"Back to Top\" Link"
128
  msgstr ""
129
 
130
- #: plugin.php:172
131
  msgid "Footer Credits Text"
132
  msgstr ""
133
 
134
- #: plugin.php:179
135
  msgid "Footer Output"
136
  msgstr ""
137
 
138
- #: plugin.php:181
139
  msgid "Modify Entire Footer Text (including markup)?"
140
  msgstr ""
141
 
142
- #: plugin.php:183
143
  msgid ""
144
  "NOTE: Checking this option will use the content of the box below, and "
145
  "override the options above."
146
  msgstr ""
147
 
148
- #: plugin.php:187
149
  msgid "Show available footer shortcodes"
150
  msgstr ""
151
 
152
- #: plugin.php:198
 
 
 
 
 
 
 
153
  msgid "The \"Back to Top\" Link"
154
  msgstr ""
155
 
156
- #: plugin.php:200
157
  msgid "The Copyright notice"
158
  msgstr ""
159
 
160
- #: plugin.php:201
161
  msgid "The Child Theme Link"
162
  msgstr ""
163
 
164
- #: plugin.php:202
165
  msgid "The Genesis Link"
166
  msgstr ""
167
 
168
- #: plugin.php:203
169
  msgid "The StudioPress Link"
170
  msgstr ""
171
 
172
- #: plugin.php:204
173
  msgid "The WordPress Link"
174
  msgstr ""
175
 
176
- #: plugin.php:205
177
  msgid "Log In/Out Link"
178
  msgstr ""
179
 
180
- #: plugin.php:214
181
- msgid "Save Settings"
182
- msgstr ""
183
-
184
- #: plugin.php:215
185
- msgid "Reset Settings"
186
- msgstr ""
187
-
188
  #. Plugin Name of the plugin/theme
189
  msgid "Genesis Simple Edits"
190
  msgstr ""
191
 
192
  #. Plugin URI of the plugin/theme
193
- msgid "http://www.studiopress.com/plugins/genesis-simple-edits"
194
  msgstr ""
195
 
196
  #. Description of the plugin/theme
@@ -200,9 +208,9 @@ msgid ""
200
  msgstr ""
201
 
202
  #. Author of the plugin/theme
203
- msgid "Nathan Rice"
204
  msgstr ""
205
 
206
  #. Author URI of the plugin/theme
207
- msgid "http://www.nathanrice.net/"
208
  msgstr ""
1
+ # Copyright (C) 2019 StudioPress
2
  # This file is distributed under the GNU General Public License v2.0 (or later).
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Genesis Simple Edits 2.2.2\n"
6
  "Report-Msgid-Bugs-To: StudioPress <translations@studiopress.com>\n"
7
+ "POT-Creation-Date: 2019-07-08 13:19:27+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: StudioPress <translations@studiopress.com>\n"
13
  "Language-Team: English <translations@studiopress.com>\n"
14
  "X-Generator: grunt-wp-i18n 0.4.4\n"
24
  "X-Poedit-SearchPath-0: .\n"
25
  "X-Textdomain-Support: yes\n"
26
 
27
+ #: includes/class-genesis-simple-edits-admin.php:57
28
+ msgid "Genesis - Simple Edits"
 
 
 
 
29
  msgstr ""
30
 
31
+ #: includes/class-genesis-simple-edits-admin.php:58
32
+ msgid "Simple Edits"
33
  msgstr ""
34
 
35
+ #: includes/class-genesis-simple-edits-admin.php:76
36
+ #: includes/class-genesis-simple-edits-admin.php:77
37
+ #: includes/class-genesis-simple-edits-admin.php:83
38
  msgid "Copyright"
39
  msgstr ""
40
 
41
+ #: includes/class-genesis-simple-edits-admin.php:76
42
+ #: includes/class-genesis-simple-edits-admin.php:83
43
  msgid "On"
44
  msgstr ""
45
 
46
+ #: includes/class-genesis-simple-edits-admin.php:80
47
  msgid "By"
48
  msgstr ""
49
 
50
+ #: includes/class-genesis-simple-edits.php:110
51
+ msgid "upgrade to"
52
  msgstr ""
53
 
54
+ #: includes/class-genesis-simple-edits.php:110
55
+ msgid "install and activate"
56
+ msgstr ""
57
+
58
+ #: includes/class-genesis-simple-edits.php:113
59
+ #. Translators: String 1 is the version of WordPress required, String 2 is the
60
+ #. version of Genesis required. String 3 is an expected action to take, String
61
+ #. 4 is the URL of the Genesis Plugin.
62
+ msgid ""
63
+ "Genesis Simple Edits requires WordPress %1$s and Genesis %2$s, or greater. "
64
+ "Please %3$s the latest version of <a href=\"%4$s\" "
65
+ "target=\"_blank\">Genesis</a> to use this plugin."
66
  msgstr ""
67
 
68
+ #: includes/views/admin.php:12
69
  msgid "Entry Meta (above content)"
70
  msgstr ""
71
 
72
+ #: includes/views/admin.php:19
73
  msgid "Entry Meta (below content)"
74
  msgstr ""
75
 
76
+ #: includes/views/admin.php:23
77
  msgid "Show available entry meta shortcodes"
78
  msgstr ""
79
 
80
+ #: includes/views/admin.php:29 includes/views/admin.php:90
81
  msgid "Shortcode Reference"
82
  msgstr ""
83
 
84
+ #: includes/views/admin.php:41
85
+ #. Translators: The string is a URL to a usage guide.
86
  msgid ""
87
+ "NOTE: For a more comprehensive shortcode usage guide, see the <a "
88
+ "href=\"%s\" target=\"_blank\">post shortcode reference</a>."
 
89
  msgstr ""
90
 
91
+ #: includes/views/admin.php:44
92
  msgid "Date the entry was published"
93
  msgstr ""
94
 
95
+ #: includes/views/admin.php:45
96
  msgid "Date the entry was last modified"
97
  msgstr ""
98
 
99
+ #: includes/views/admin.php:46
100
  msgid "Time the entry was published"
101
  msgstr ""
102
 
103
+ #: includes/views/admin.php:47
104
  msgid "Time the entry was last modified"
105
  msgstr ""
106
 
107
+ #: includes/views/admin.php:48
108
  msgid "Entry author display name"
109
  msgstr ""
110
 
111
+ #: includes/views/admin.php:49
112
  msgid "Entry author display name, linked to their website"
113
  msgstr ""
114
 
115
+ #: includes/views/admin.php:50
116
  msgid "Entry author display name, linked to their archive"
117
  msgstr ""
118
 
119
+ #: includes/views/admin.php:51
120
  msgid "Entry comments link"
121
  msgstr ""
122
 
123
+ #: includes/views/admin.php:52
124
  msgid "List of entry tags"
125
  msgstr ""
126
 
127
+ #: includes/views/admin.php:53
128
  msgid "List of entry categories"
129
  msgstr ""
130
 
131
+ #: includes/views/admin.php:54
132
  msgid "Entry edit link (visible to admins)"
133
  msgstr ""
134
 
135
+ #: includes/views/admin.php:62
136
  msgid "Footer \"Back to Top\" Link"
137
  msgstr ""
138
 
139
+ #: includes/views/admin.php:70
140
  msgid "Footer Credits Text"
141
  msgstr ""
142
 
143
+ #: includes/views/admin.php:77
144
  msgid "Footer Output"
145
  msgstr ""
146
 
147
+ #: includes/views/admin.php:79
148
  msgid "Modify Entire Footer Text (including markup)?"
149
  msgstr ""
150
 
151
+ #: includes/views/admin.php:81
152
  msgid ""
153
  "NOTE: Checking this option will use the content of the box below, and "
154
  "override the options above."
155
  msgstr ""
156
 
157
+ #: includes/views/admin.php:85
158
  msgid "Show available footer shortcodes"
159
  msgstr ""
160
 
161
+ #: includes/views/admin.php:102
162
+ #. Translators: The string is a URL to a usage guide.
163
+ msgid ""
164
+ "NOTE: For a more comprehensive shortcode usage guide, see the <a "
165
+ "href=\"%s\" target=\"_blank\">footer shortcode reference</a>."
166
+ msgstr ""
167
+
168
+ #: includes/views/admin.php:106
169
  msgid "The \"Back to Top\" Link"
170
  msgstr ""
171
 
172
+ #: includes/views/admin.php:108
173
  msgid "The Copyright notice"
174
  msgstr ""
175
 
176
+ #: includes/views/admin.php:109
177
  msgid "The Child Theme Link"
178
  msgstr ""
179
 
180
+ #: includes/views/admin.php:110
181
  msgid "The Genesis Link"
182
  msgstr ""
183
 
184
+ #: includes/views/admin.php:111
185
  msgid "The StudioPress Link"
186
  msgstr ""
187
 
188
+ #: includes/views/admin.php:112
189
  msgid "The WordPress Link"
190
  msgstr ""
191
 
192
+ #: includes/views/admin.php:113
193
  msgid "Log In/Out Link"
194
  msgstr ""
195
 
 
 
 
 
 
 
 
 
196
  #. Plugin Name of the plugin/theme
197
  msgid "Genesis Simple Edits"
198
  msgstr ""
199
 
200
  #. Plugin URI of the plugin/theme
201
+ msgid "https://www.studiopress.com/plugins/genesis-simple-edits"
202
  msgstr ""
203
 
204
  #. Description of the plugin/theme
208
  msgstr ""
209
 
210
  #. Author of the plugin/theme
211
+ msgid "StudioPress"
212
  msgstr ""
213
 
214
  #. Author URI of the plugin/theme
215
+ msgid "https://www.studiopress.com/"
216
  msgstr ""
package.json CHANGED
@@ -29,7 +29,7 @@
29
  "description": "Genesis Simple Edits lets you edit the three most commonly modified areas in any Genesis theme: the post-info, the post-meta, and the footer area.",
30
  "author": "StudioPress",
31
  "authoruri": "http://www.studiopress.com/",
32
- "version": "2.2.1",
33
  "license": "GPL-2.0+",
34
  "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
35
  "textdomain": "genesis-simple-edits"
29
  "description": "Genesis Simple Edits lets you edit the three most commonly modified areas in any Genesis theme: the post-info, the post-meta, and the footer area.",
30
  "author": "StudioPress",
31
  "authoruri": "http://www.studiopress.com/",
32
+ "version": "2.2.2",
33
  "license": "GPL-2.0+",
34
  "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
35
  "textdomain": "genesis-simple-edits"
plugin.php CHANGED
@@ -1,20 +1,20 @@
1
- <?php
2
- /*
3
- Plugin Name: Genesis Simple Edits
4
- Plugin URI: http://www.studiopress.com/plugins/genesis-simple-edits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- Description: Genesis Simple Edits lets you edit the three most commonly modified areas in any Genesis theme: the post-info, the post-meta, and the footer area.
7
-
8
- Author: StudioPress
9
- Author URI: http://www.studiopress.com/
10
-
11
- Version: 2.2.1
12
-
13
- Text Domain: genesis-simple-edits
14
- Domain Path: /languages
15
-
16
- License: GNU General Public License v2.0 (or later)
17
- License URI: http://www.opensource.org/licenses/gpl-license.php
18
- */
19
-
20
- require_once( plugin_dir_path( __FILE__ ) . 'genesis-simple-edits.php' );
1
+ <?php //phpcs:ignore
2
+ /**
3
+ * Genesis Simple Edits File
4
+ * Plugin Name: Genesis Simple Edits
5
+ * Plugin URI: https://www.studiopress.com/plugins/genesis-simple-edits
6
+ * Description: Genesis Simple Edits lets you edit the three most commonly modified areas in any Genesis theme: the post-info, the post-meta, and the footer area.
7
+ * Author: StudioPress
8
+ * Author URI: https://www.studiopress.com/
9
+ *
10
+ * Version: 2.2.2
11
+ *
12
+ * Text Domain: genesis-simple-edits
13
+ * Domain Path: /languages
14
+ * License: GNU General Public License v2.0 (or later)
15
+ * License URI: https://www.opensource.org/licenses/gpl-license.php
16
+ *
17
+ * @package genesis-simple-edits
18
+ */
19
 
20
+ require_once plugin_dir_path( __FILE__ ) . 'genesis-simple-edits.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: nathanrice, studiopress, wpmuguru
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
4
  Tags: shortcodes, genesis, genesiswp, studiopress
5
- Requires at least: 4.9.0
6
- Tested up to: 4.9.4
7
- Stable tag: 2.2.1
8
 
9
  This plugin lets you edit the three most commonly modified areas in any Genesis theme: the post-info (byline), the post-meta, and the footer area.
10
 
@@ -33,6 +33,9 @@ You must have Genesis (2.4.2+) or a Genesis child theme installed and activated
33
 
34
  == Changelog ==
35
 
 
 
 
36
  = 2.2.1 =
37
  * Genesis 2.6+ compatibility (prevents white screen).
38
 
@@ -41,22 +44,22 @@ You must have Genesis (2.4.2+) or a Genesis child theme installed and activated
41
  * Update Author and Author URI.
42
 
43
  = 2.1.3 =
44
- * add textdomain loader
45
- * add plugin header i18n
46
 
47
  = 2.1.2 =
48
- * Generate POT
49
 
50
  = 2.1.1 =
51
- * Prevent fatal error when Genesis 2.1 not active
52
 
53
  = 2.1.0 =
54
- * Genesis 2.1+ compatibility
55
 
56
  = 1.7.1 =
57
- * Increased installation requirement to Genesis 1.7.1
58
- * Removed PHP4 constructor
59
- * Whitespace, standards, and documentation
60
 
61
  = 1.0 =
62
- * Initial Release
2
  Contributors: nathanrice, studiopress, wpmuguru
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
4
  Tags: shortcodes, genesis, genesiswp, studiopress
5
+ Requires at least: 4.7.2
6
+ Tested up to: 5.2.2
7
+ Stable tag: 2.2.2
8
 
9
  This plugin lets you edit the three most commonly modified areas in any Genesis theme: the post-info (byline), the post-meta, and the footer area.
10
 
33
 
34
  == Changelog ==
35
 
36
+ = 2.2.2 =
37
+ * Add compatibility with WordPress Coding Standards.
38
+
39
  = 2.2.1 =
40
  * Genesis 2.6+ compatibility (prevents white screen).
41
 
44
  * Update Author and Author URI.
45
 
46
  = 2.1.3 =
47
+ * add textdomain loader.
48
+ * add plugin header i18n.
49
 
50
  = 2.1.2 =
51
+ * Generate POT.
52
 
53
  = 2.1.1 =
54
+ * Prevent fatal error when Genesis 2.1 not active.
55
 
56
  = 2.1.0 =
57
+ * Genesis 2.1+ compatibility.
58
 
59
  = 1.7.1 =
60
+ * Increased installation requirement to Genesis 1.7.1.
61
+ * Removed PHP4 constructor.
62
+ * Whitespace, standards, and documentation.
63
 
64
  = 1.0 =
65
+ * Initial Release.