Remove Footer Credit - Version 1.0.5

Version Description

  • update translation file
Download this release

Release Info

Developer giucu91
Plugin Icon 128x128 Remove Footer Credit
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.5

assets/css/admin.css CHANGED
@@ -1,136 +1,136 @@
1
- .get-help {
2
- margin-top: 10px;
3
- padding: 0 1.5% 1.5% 1.5%;
4
- background-color: #eee;
5
- height: 100%;
6
- border: 1px solid #e4e4e4;
7
- box-sizing: border-box;
8
- }
9
-
10
- .rfc-leftside {
11
- float: left;
12
- width:65%;
13
- }
14
- .rfc-right-side {
15
- width: 33%;
16
- float: right;
17
- }
18
-
19
- /* Feedback Box */
20
- .feedback-box {
21
- border: 1px dashed #555;
22
- background: #fff;
23
- padding: 20px;
24
- text-align: center;
25
- margin-top: 15px;
26
- box-sizing: border-box;
27
- }
28
- .feedback-box .button.button-feedback {
29
- padding: 10px 40px;
30
- height: initial;
31
- }
32
-
33
- #rfc-current-image img {
34
- max-width: 130px;
35
- height: auto;
36
- }
37
- .feedback-box h3 {
38
- font-weight: 700;
39
- }
40
- .feedback-box h3 > img {
41
- width: 30px;
42
- }
43
- .feedback-box > p {
44
- max-width: 720px;
45
- margin: 0 auto;
46
- }
47
-
48
- .rfc-recomended-plugin .plugin-image img {
49
- margin: 0;
50
- max-width: 100%;
51
- height: auto;
52
- vertical-align: middle;
53
- }
54
-
55
- .rfc-recomended-plugins {
56
- border: 1px solid #e5e5e5;
57
- box-shadow: 0 1px 1px rgba(0,0,0,.04);
58
- margin-top: 1em;
59
- }
60
- .rfc-recomended-plugins .rfc-recomended-plugin {
61
- background-color: #fff;
62
- display: flex;
63
- align-items: center;
64
- padding: 2em 1em;
65
- }
66
- .rfc-recomended-plugins .rfc-recomended-plugin:nth-child( even ) {
67
- background-color: #fcfcfc;
68
- border-top: 1px solid #e5e5e5;
69
- border-bottom: 1px solid #e5e5e5;
70
- }
71
- .rfc-recomended-plugins .rfc-recomended-plugin .plugin-image {
72
- width: 128px;
73
- }
74
- .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information {
75
- padding-left: 30px;
76
- box-sizing: border-box;
77
- width: calc( 100% - 128px );
78
- }
79
-
80
- .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information .plugin-name,
81
- .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information .plugin-description {
82
- margin: 0;
83
- }
84
-
85
- .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information .plugin-description {
86
- margin-bottom: 10px;
87
- }
88
-
89
- .rfc-recomended-plugins .rfc-recomended-plugin .rfc-plugin-button.rfc-updating:before {
90
- font: normal 20px/1 dashicons;
91
- display: inline-block;
92
- content: "\f463";
93
- -webkit-animation: rotation 2s infinite linear;
94
- animation: rotation 2s infinite linear;
95
- margin: 3px 5px 0 -2px;
96
- vertical-align: top;
97
- }
98
-
99
-
100
-
101
- @-webkit-keyframes rotation {
102
- 0% {
103
- -webkit-transform: rotate(0deg);
104
- transform: rotate(0deg);
105
- }
106
- 100% {
107
- -webkit-transform: rotate(359deg);
108
- transform: rotate(359deg);
109
- }
110
- }
111
-
112
- @keyframes rotation {
113
- 0% {
114
- -webkit-transform: rotate(0deg);
115
- transform: rotate(0deg);
116
- }
117
- 100% {
118
- -webkit-transform: rotate(359deg);
119
- transform: rotate(359deg);
120
- }
121
- }
122
-
123
- .about-wrap .remove-footer-credit {
124
- display: flex;
125
- align-items: center;
126
- justify-content: center;
127
- padding-top: 0;
128
- min-height: 160px;
129
- background-image: none;
130
- background-color: #27ae60;
131
- }
132
- .about-wrap .remove-footer-credit span {
133
- font-size: 60px;
134
- width: auto;
135
- height: auto;
136
  }
1
+ .get-help {
2
+ margin-top: 10px;
3
+ padding: 0 1.5% 1.5% 1.5%;
4
+ background-color: #eee;
5
+ height: 100%;
6
+ border: 1px solid #e4e4e4;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ .rfc-leftside {
11
+ float: left;
12
+ width:65%;
13
+ }
14
+ .rfc-right-side {
15
+ width: 33%;
16
+ float: right;
17
+ }
18
+
19
+ /* Feedback Box */
20
+ .feedback-box {
21
+ border: 1px dashed #555;
22
+ background: #fff;
23
+ padding: 20px;
24
+ text-align: center;
25
+ margin-top: 15px;
26
+ box-sizing: border-box;
27
+ }
28
+ .feedback-box .button.button-feedback {
29
+ padding: 10px 40px;
30
+ height: initial;
31
+ }
32
+
33
+ #rfc-current-image img {
34
+ max-width: 130px;
35
+ height: auto;
36
+ }
37
+ .feedback-box h3 {
38
+ font-weight: 700;
39
+ }
40
+ .feedback-box h3 > img {
41
+ width: 30px;
42
+ }
43
+ .feedback-box > p {
44
+ max-width: 720px;
45
+ margin: 0 auto;
46
+ }
47
+
48
+ .rfc-recomended-plugin .plugin-image img {
49
+ margin: 0;
50
+ max-width: 100%;
51
+ height: auto;
52
+ vertical-align: middle;
53
+ }
54
+
55
+ .rfc-recomended-plugins {
56
+ border: 1px solid #e5e5e5;
57
+ box-shadow: 0 1px 1px rgba(0,0,0,.04);
58
+ margin-top: 1em;
59
+ }
60
+ .rfc-recomended-plugins .rfc-recomended-plugin {
61
+ background-color: #fff;
62
+ display: flex;
63
+ align-items: center;
64
+ padding: 2em 1em;
65
+ }
66
+ .rfc-recomended-plugins .rfc-recomended-plugin:nth-child( even ) {
67
+ background-color: #fcfcfc;
68
+ border-top: 1px solid #e5e5e5;
69
+ border-bottom: 1px solid #e5e5e5;
70
+ }
71
+ .rfc-recomended-plugins .rfc-recomended-plugin .plugin-image {
72
+ width: 128px;
73
+ }
74
+ .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information {
75
+ padding-left: 30px;
76
+ box-sizing: border-box;
77
+ width: calc( 100% - 128px );
78
+ }
79
+
80
+ .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information .plugin-name,
81
+ .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information .plugin-description {
82
+ margin: 0;
83
+ }
84
+
85
+ .rfc-recomended-plugins .rfc-recomended-plugin .plugin-information .plugin-description {
86
+ margin-bottom: 10px;
87
+ }
88
+
89
+ .rfc-recomended-plugins .rfc-recomended-plugin .rfc-plugin-button.rfc-updating:before {
90
+ font: normal 20px/1 dashicons;
91
+ display: inline-block;
92
+ content: "\f463";
93
+ -webkit-animation: rotation 2s infinite linear;
94
+ animation: rotation 2s infinite linear;
95
+ margin: 3px 5px 0 -2px;
96
+ vertical-align: top;
97
+ }
98
+
99
+
100
+
101
+ @-webkit-keyframes rotation {
102
+ 0% {
103
+ -webkit-transform: rotate(0deg);
104
+ transform: rotate(0deg);
105
+ }
106
+ 100% {
107
+ -webkit-transform: rotate(359deg);
108
+ transform: rotate(359deg);
109
+ }
110
+ }
111
+
112
+ @keyframes rotation {
113
+ 0% {
114
+ -webkit-transform: rotate(0deg);
115
+ transform: rotate(0deg);
116
+ }
117
+ 100% {
118
+ -webkit-transform: rotate(359deg);
119
+ transform: rotate(359deg);
120
+ }
121
+ }
122
+
123
+ .about-wrap .remove-footer-credit {
124
+ display: flex;
125
+ align-items: center;
126
+ justify-content: center;
127
+ padding-top: 0;
128
+ min-height: 160px;
129
+ background-image: none;
130
+ background-color: #27ae60;
131
+ }
132
+ .about-wrap .remove-footer-credit span {
133
+ font-size: 60px;
134
+ width: auto;
135
+ height: auto;
136
  }
languages/remove-footer-credit.po ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2019 MachoThemes
2
+ # This file is distributed under the GPLv3 or later.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Remove Footer Credit 1.0.5\n"
6
+ "Report-Msgid-Bugs-To: "
7
+ "https://wordpress.org/support/plugin/remove-footer-credit\n"
8
+ "POT-Creation-Date: 2019-10-09 14:44:32+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=utf-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "Language: en\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Poedit-Country: United States\n"
18
+ "X-Poedit-SourceCharset: UTF-8\n"
19
+ "X-Poedit-KeywordsList: "
20
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
21
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
22
+ "X-Poedit-Basepath: ../\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+ "X-Poedit-Bookmarks: \n"
25
+ "X-Textdomain-Support: yes\n"
26
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
27
+
28
+ #: remove-footer-credit.php:56
29
+ msgid "Settings"
30
+ msgstr ""
31
+
32
+ #: remove-footer-credit.php:60
33
+ msgid "Other Great Plugins"
34
+ msgstr ""
35
+
36
+ #: remove-footer-credit.php:64 sections/plugin-info.php:2
37
+ msgid "Get Help"
38
+ msgstr ""
39
+
40
+ #: remove-footer-credit.php:117
41
+ msgid "Get WordPress help, plugins, themes and tips at "
42
+ msgstr ""
43
+
44
+ #: remove-footer-credit.php:117
45
+ msgid "MachoThemes.com"
46
+ msgstr ""
47
+
48
+ #. Plugin Name of the plugin/theme
49
+ msgid "Remove Footer Credit"
50
+ msgstr ""
51
+
52
+ #: remove-footer-credit.php:161
53
+ msgid "Settings Saved"
54
+ msgstr ""
55
+
56
+ #: remove-footer-credit.php:174
57
+ #. Translators: Welcome Screen Description.
58
+ msgid ""
59
+ "Remove or replace footer credits (or any text or HTML in page) before page "
60
+ "is rendered. With this plugin there is no need to modify code such as "
61
+ "footer.php which if done incorrectly can cause your site to break or new "
62
+ "theme updates will stomp over your changes requiring you to remove footer "
63
+ "credits on each update."
64
+ msgstr ""
65
+
66
+ #: sections/plugin-info.php:3
67
+ msgid "Need help using this plugin or want to report a bug? Contact me"
68
+ msgstr ""
69
+
70
+ #: sections/plugin-info.php:3
71
+ msgid "here"
72
+ msgstr ""
73
+
74
+ #: sections/plugin-info.php:5
75
+ msgid "Learn"
76
+ msgstr ""
77
+
78
+ #: sections/plugin-info.php:6
79
+ msgid "Click here"
80
+ msgstr ""
81
+
82
+ #: sections/plugin-info.php:6
83
+ msgid "to view instructions on how to use this plugin."
84
+ msgstr ""
85
+
86
+ #: sections/plugins.php:5
87
+ msgid "Modula - A WordPress Gallery Plugin"
88
+ msgstr ""
89
+
90
+ #: sections/plugins.php:6
91
+ msgid ""
92
+ "Modula is currently the easiest and fastest photo gallery plugin for "
93
+ "WordPress. With its wizard you are able to build an image gallery in a few "
94
+ "seconds, unlike many other WordPress gallery plugins."
95
+ msgstr ""
96
+
97
+ #: sections/plugins.php:11
98
+ msgid "Simple Author Box"
99
+ msgstr ""
100
+
101
+ #: sections/plugins.php:12
102
+ msgid ""
103
+ "Simple Author Box adds a responsive author box at the end of your posts, "
104
+ "showing the author name, author gravatar and author description. It also "
105
+ "adds over 30 social profile fields on WordPress user profile screen, "
106
+ "allowing to display the author social icons."
107
+ msgstr ""
108
+
109
+ #: sections/plugins.php:40
110
+ msgid "Install & Activate"
111
+ msgstr ""
112
+
113
+ #: sections/plugins.php:49 sections/plugins.php:74
114
+ msgid "Activated"
115
+ msgstr ""
116
+
117
+ #: sections/plugins.php:53
118
+ msgid "Activate"
119
+ msgstr ""
120
+
121
+ #: sections/plugins.php:76
122
+ msgid "Find out more"
123
+ msgstr ""
124
+
125
+ #: sections/settings.php:7
126
+ msgid "Step 1: Enter text/HTML to remove (one per line)"
127
+ msgstr ""
128
+
129
+ #: sections/settings.php:9
130
+ msgid "Step 2: Enter your own footer credit (one per line)"
131
+ msgstr ""
132
+
133
+ #: sections/settings.php:11
134
+ msgid "Step 3: Please support my work and spread the word (optional)"
135
+ msgstr ""
136
+
137
+ #: sections/settings.php:12
138
+ msgid ""
139
+ "Help keep this plugin free by providing one link back at the bottom of one "
140
+ "of your posts/pages."
141
+ msgstr ""
142
+
143
+ #: sections/settings.php:13
144
+ msgid "No, thanks."
145
+ msgstr ""
146
+
147
+ #: sections/settings.php:14
148
+ msgid "Yes, I will support you!"
149
+ msgstr ""
150
+
151
+ #: sections/settings.php:36
152
+ msgid "Select a post/page:"
153
+ msgstr ""
154
+
155
+ #: sections/settings.php:39
156
+ msgid "-- Posts --"
157
+ msgstr ""
158
+
159
+ #: sections/settings.php:45
160
+ msgid "-- Pages --"
161
+ msgstr ""
162
+
163
+ #: sections/settings.php:53
164
+ msgid "The text below will appear at the bottom of the selected post/page."
165
+ msgstr ""
166
+
167
+ #: sections/settings.php:54
168
+ msgid "Get WordPress help, plugins, themes and tips at"
169
+ msgstr ""
170
+
171
+ #. Plugin URI of the plugin/theme
172
+ msgid "https://upwerd.com/remove-footer-credit"
173
+ msgstr ""
174
+
175
+ #. Description of the plugin/theme
176
+ msgid "A simple plugin to remove footer credits"
177
+ msgstr ""
178
+
179
+ #. Author of the plugin/theme
180
+ msgid "MachoThemes"
181
+ msgstr ""
182
+
183
+ #. Author URI of the plugin/theme
184
+ msgid "https://www.machothemes.com/"
185
+ msgstr ""
readme.txt CHANGED
@@ -1,44 +1,52 @@
1
- === Remove Footer Credit ===
2
- Contributors: machothemes, silkalns
3
- Tags: footer, credit, change, modify, replace, remove, link, HTML, text, remove footer credit
4
- Requires at least: 4.6
5
- Tested up to: 5.1
6
- Stable tag: trunk
7
- Requires PHP: 5.6
8
- License: GPLv3 or later
9
-
10
- Remove or change footer credits or any text or HTML without modifying code.
11
-
12
- == Description ==
13
-
14
- **Remove Footer Credit** is a standalone plugin built, maintained & operated by the friendly folks over at [MachoThemes](https://www.machothemes.com/)
15
-
16
- Remove or replace footer credits (or any text or HTML in page) before page is rendered. With this plugin there is no need to modify code such as footer.php which if done incorrectly can cause your site to break or new theme updates will stomp over your changes requiring you to remove footer credits on each update.
17
-
18
- This plugin has very minimal options to keep things simple and easier to use. You enter the text or HTML that you would like to find in one text box and the text or HTML that you would like to replace in another text box (or nothing to remove). Go [here](https://www.machothemes.com/blog/remove-powered-by-wordpress/) to view my step by step tutorial with screenshots and video.
19
-
20
- **About us:**
21
- We are a young team of WordPress aficionados who love building WordPress plugins & <a href="https://www.machothemes.com/" target="_blank" title="Premium WordPress themes">Premium WordPress themes</a> over on our theme shop. We’re also blogging and wish to help our users find the <a href="https://www.machothemes.com/blog/cheapest-wordpress-hosting/" target="_blank" title="Best Cheap WordPress Hosting">Cheap WordPress Hosting</a> available on the market. Check out our blog.
22
-
23
-
24
- == Installation ==
25
-
26
- 1. From WordPress Admin, go to Plugins -> Add New
27
- 2. Search for plugin "Remove Footer Credit"
28
- 3. Install and Activate
29
- 4. Go to Tools -> Remove Footer Credit
30
- 5. Enter text you would like to change in first text box
31
- 6. Enter text you would like to replace in second text box
32
- 7. Click Save
33
-
34
- == Screenshots ==
35
-
36
- 1. Remove footer credit
37
-
38
- == Changelog ==
39
-
40
- = 1.0.3 =
41
- * minor tweak & version bump
42
-
43
- = 1.0 =
44
- * Initial release.
 
 
 
 
 
 
 
 
1
+ === Remove Footer Credit ===
2
+ Contributors: machothemes, silkalns
3
+ Tags: footer, credit, change, modify, replace, remove, link, HTML, text, remove footer credit
4
+ Requires at least: 4.6
5
+ Tested up to: 5.2
6
+ Stable tag: 1.0.5
7
+ Requires PHP: 5.6
8
+ License: GPLv3 or later
9
+
10
+ Remove or change footer credits or any text or HTML without modifying code.
11
+
12
+ == Description ==
13
+
14
+ **Remove Footer Credit** is a standalone plugin built, maintained & operated by the friendly folks over at [MachoThemes](https://www.machothemes.com/)
15
+
16
+ Remove or replace footer credits (or any text or HTML in page) before page is rendered. With this plugin there is no need to modify code such as footer.php which if done incorrectly can cause your site to break or new theme updates will stomp over your changes requiring you to remove footer credits on each update.
17
+
18
+ This plugin has very minimal options to keep things simple and easier to use. You enter the text or HTML that you would like to find in one text box and the text or HTML that you would like to replace in another text box (or nothing to remove). Go [here](https://www.machothemes.com/blog/remove-powered-by-wordpress/) to view my step by step tutorial with screenshots and video.
19
+
20
+ **About us:**
21
+ We are a young team of WordPress aficionados who love building WordPress plugins & <a href="https://www.machothemes.com/" target="_blank" title="Premium WordPress themes">Premium WordPress themes</a> over on our theme shop. We’re also blogging and wish to help our users find the <a href="https://www.machothemes.com/blog/cheapest-wordpress-hosting/" target="_blank" title="Best Cheap WordPress Hosting">Cheap WordPress Hosting</a> available on the market. Check out our blog.
22
+
23
+
24
+ == Installation ==
25
+
26
+ 1. From WordPress Admin, go to Plugins -> Add New
27
+ 2. Search for plugin "Remove Footer Credit"
28
+ 3. Install and Activate
29
+ 4. Go to Tools -> Remove Footer Credit
30
+ 5. Enter text you would like to change in first text box
31
+ 6. Enter text you would like to replace in second text box
32
+ 7. Click Save
33
+
34
+ == Screenshots ==
35
+
36
+ 1. Remove footer credit
37
+
38
+ == Changelog ==
39
+
40
+ = 1.0.5 =
41
+ * update translation file
42
+
43
+ = 1.0.4 =
44
+ * minor textdomain update
45
+ * version bump
46
+ * translation ready
47
+
48
+ = 1.0.3 =
49
+ * minor tweak & version bump
50
+
51
+ = 1.0 =
52
+ * Initial release.
remove-footer-credit.php CHANGED
@@ -1,204 +1,216 @@
1
- <?php
2
- /**
3
- * Plugin Name: Remove Footer Credit
4
- * Description: A simple plugin to remove footer credits
5
- * Version: 1.0.3
6
- * Author: MachoThemes
7
- * Author URI: https://www.machothemes.com/
8
- * Requires: 4.6 or higher
9
- * License: GPLv3 or later
10
- * License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
- * Requires PHP: 5.6
12
- * Text Domain: remove-footer-credit
13
- *
14
- * Copyright 2016-2017 Joe Bill joe@upwerd.com
15
- * Copyright 2017-2019 MachoThemes office@machothemes.com
16
- *
17
- * Original Plugin URI: https://upwerd.com/remove-footer-credit
18
- * Original Author URI: https://upwerd.com/
19
- * Original Author: https://profiles.wordpress.org/upwerd/
20
- *
21
- * NOTE:
22
- * Joe Bill transferred ownership rights on: 11/13/2017 05:12:22 PM when ownership was handed over to MachoThemes
23
- * The MachoThemes ownership period started on: 11/13/2017 05:12:23 PM
24
- * SVN commit proof of ownership transferral: https://plugins.trac.wordpress.org/changeset/1765266/remove-footer-credit
25
- *
26
- * This program is free software; you can redistribute it and/or modify
27
- * it under the terms of the GNU General Public License, version 3, as
28
- * published by the Free Software Foundation.
29
- *
30
- * This program is distributed in the hope that it will be useful,
31
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33
- * GNU General Public License for more details.
34
- *
35
- * You should have received a copy of the GNU General Public License
36
- * along with this program; if not, write to the Free Software
37
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
38
- */
39
-
40
- //Exit if accessed directly
41
- if ( ! defined( 'ABSPATH' ) ) {
42
- exit;
43
- }
44
-
45
- class RFC_Plugin {
46
-
47
- private $tabs;
48
- private $options;
49
- private $assets_path;
50
-
51
- function __construct() {
52
-
53
- $this->tabs = array(
54
- 'settings' => array(
55
- 'label' => esc_html__( 'Settings', 'remove-footer-credit' ),
56
- 'path' => 'settings.php',
57
- ),
58
- 'plugins' => array(
59
- 'label' => esc_html__( 'Other Great Plugins', 'remove-footer-credit' ),
60
- 'path' => 'plugins.php',
61
- ),
62
- 'help' => array(
63
- 'label' => esc_html__( 'Get Help', 'remove-footer-credit' ),
64
- 'path' => 'plugin-info.php',
65
- ),
66
- );
67
-
68
- $this->options = get_option( 'jabrfc_text' );
69
- $this->assets_path = plugin_dir_url( __FILE__ ) . 'assets/';
70
-
71
- $this->public_hooks();
72
- $this->admin_hooks();
73
-
74
- }
75
-
76
- private function public_hooks() {
77
-
78
- add_filter( 'the_content', array( $this, 'jabrfc_the_content' ) );
79
-
80
- //Handles find and replace for public pages
81
- add_action( 'template_redirect', array( $this, 'jabrfc_template_redirect' ) );
82
-
83
- }
84
-
85
- private function admin_hooks() {
86
-
87
- if ( ! is_admin() ) {
88
- return;
89
- }
90
-
91
- // Add style
92
- add_action( 'admin_enqueue_scripts', array( $this, 'jabrfc_admin_enqueue_scripts' ) );
93
-
94
- //Add left menu item in admin
95
- add_action( 'admin_menu', array( $this, 'jabrfc_admin_menu' ) );
96
-
97
- }
98
-
99
- private function generate_url( $tab = 'settings' ){
100
- return admin_url( 'tools.php?page=remove-footer-credit&tab=' . $tab );
101
- }
102
-
103
- public function jabrfc_the_content( $content ) {
104
- global $post;
105
- $data = get_option( 'jabrfc_text' );
106
- if ( $data['willLinkback'] == 'yes' && is_singular() && $data['linkbackPostId'] == $post->ID ) {
107
- $content = $content . 'Get WordPress help, plugins, themes and tips at <a href="https://www.machothemes.com?utm_source=remove-footer-credit&utm_medium=front&utm_campaign=credit-link">MachoThemes.com</a>';
108
- }
109
- return $content;
110
- }
111
-
112
- /*
113
- * Add a submenu under Tools
114
- */
115
- public function jabrfc_admin_menu() {
116
- add_submenu_page( 'tools.php', esc_html__('Remove Footer Credit', 'remove-footer-credit'), esc_html__('Remove Footer Credit', 'remove-footer-credit'), 'activate_plugins', 'remove-footer-credit', array( $this, 'jabrfc_options_page' ) );
117
- }
118
-
119
- public function jabrfc_admin_enqueue_scripts( $hook ) {
120
-
121
- if ( 'tools_page_remove-footer-credit' != $hook ) {
122
- return;
123
- }
124
-
125
- wp_enqueue_style( 'jabrfc-styles', $this->assets_path . 'css/admin.css' );
126
- wp_enqueue_script( 'jabrfc-plugin-install', $this->assets_path . 'js/plugin-install.js', array( 'jquery', 'updates' ), '1.0.0', 'all' );
127
-
128
- }
129
-
130
- public function jabrfc_template_redirect() {
131
- ob_start();
132
- ob_start( 'jabrfc_ob_call' );
133
- }
134
-
135
- public function jabrfc_options_page() {
136
-
137
- if ($_SERVER['REQUEST_METHOD'] == 'POST') {
138
- $_POST = stripslashes_deep( $_POST );
139
-
140
- $data = array(
141
- 'find' => explode("\n", str_replace("\r", "", $_POST['find'])),
142
- 'replace' => explode("\n", str_replace("\r", "", $_POST['replace'])),
143
- 'willLinkback' => $_POST['willLinkback'],
144
- 'linkbackPostId' => $_POST['linkbackPostId']
145
- );
146
-
147
- update_option( 'jabrfc_text', $data );
148
- $this->options = $data;
149
-
150
- echo '<div id="message" class="updated fade">';
151
- echo '<p><strong>' . esc_html__( 'Settings Saved', 'remove-footer-credit' ) . '</strong></p>';
152
- echo '</div>';
153
- }
154
-
155
- $current_tab = 'settings';
156
- if ( isset($_GET['tab']) && isset( $this->tabs[ $_GET['tab'] ] ) ) {
157
- $current_tab = $_GET['tab'];
158
- }
159
-
160
- echo '<div class="wrap about-wrap epsilon-wrap">';
161
- echo '<h1>' . esc_html__( 'Remove Footer Credit', 'remove-footer-credit' ) . '</h1>';
162
- echo '<div class="about-text">';
163
- /* Translators: Welcome Screen Description. */
164
- echo esc_html__( 'Remove or replace footer credits (or any text or HTML in page) before page is rendered. With this plugin there is no need to modify code such as footer.php which if done incorrectly can cause your site to break or new theme updates will stomp over your changes requiring you to remove footer credits on each update.', 'remove-footer-credit' );
165
- echo '</div>';
166
- echo '<div class="wp-badge remove-footer-credit"><span class="dashicons dashicons-editor-unlink"></span></div>';
167
- echo '<h2 class="nav-tab-wrapper wp-clearfix">';
168
- foreach ( $this->tabs as $tab_id => $tab ) {
169
- echo '<a class="nav-tab ' . ( $tab_id === $current_tab ? 'nav-tab-active' : '' ) . '" href="' . esc_url( $this->generate_url( $tab_id ) ) . '">' . esc_html( $tab['label'] ) . '</a>';
170
- }
171
- echo '</h2>';
172
- include 'sections/' . $this->tabs[ $current_tab ]['path'];
173
- echo '</div>';
174
-
175
- }
176
-
177
- }
178
-
179
- new RFC_Plugin();
180
-
181
-
182
- /*
183
- * Apply find and replace rules
184
- */
185
- function jabrfc_ob_call( $buffer ) { // $buffer contains entire page
186
-
187
- $data = get_option( 'jabrfc_text' );
188
-
189
- if ( is_array( $data['find']) ) {
190
- $i = 0;
191
- foreach ( $data['find'] as &$value ) {
192
- $buffer = str_replace( $value, (array_key_exists($i, $data['replace']) ? $data['replace'][$i] : ''), $buffer );
193
- $i++;
194
- }
195
- }
196
- return $buffer;
197
- }
198
-
199
-
200
-
201
-
202
-
203
-
204
-
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: Remove Footer Credit
4
+ * Description: A simple plugin to remove footer credits
5
+ * Version: 1.0.5
6
+ * Author: MachoThemes
7
+ * Author URI: https://www.machothemes.com/
8
+ * Requires: 4.6 or higher
9
+ * License: GPLv3 or later
10
+ * License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
+ * Requires PHP: 5.6
12
+ * Text Domain: remove-footer-credit
13
+ * Tested up to: 5.2
14
+ *
15
+ * Copyright 2016-2017 Joe Bill joe@upwerd.com
16
+ * Copyright 2017-2019 MachoThemes office@machothemes.com
17
+ *
18
+ * Original Plugin URI: https://upwerd.com/remove-footer-credit
19
+ * Original Author URI: https://upwerd.com/
20
+ * Original Author: https://profiles.wordpress.org/upwerd/
21
+ *
22
+ * NOTE:
23
+ * Joe Bill transferred ownership rights on: 11/13/2017 05:12:22 PM when ownership was handed over to MachoThemes
24
+ * The MachoThemes ownership period started on: 11/13/2017 05:12:23 PM
25
+ * SVN commit proof of ownership transferral: https://plugins.trac.wordpress.org/changeset/1765266/remove-footer-credit
26
+ *
27
+ * This program is free software; you can redistribute it and/or modify
28
+ * it under the terms of the GNU General Public License, version 3, as
29
+ * published by the Free Software Foundation.
30
+ *
31
+ * This program is distributed in the hope that it will be useful,
32
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
33
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
+ * GNU General Public License for more details.
35
+ *
36
+ * You should have received a copy of the GNU General Public License
37
+ * along with this program; if not, write to the Free Software
38
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
39
+ */
40
+
41
+ //Exit if accessed directly
42
+ if ( ! defined( 'ABSPATH' ) ) {
43
+ exit;
44
+ }
45
+
46
+ class RFC_Plugin {
47
+
48
+ private $tabs;
49
+ private $options;
50
+ private $assets_path;
51
+
52
+ function __construct() {
53
+
54
+ $this->tabs = array(
55
+ 'settings' => array(
56
+ 'label' => esc_html__( 'Settings', 'remove-footer-credit' ),
57
+ 'path' => 'settings.php',
58
+ ),
59
+ 'plugins' => array(
60
+ 'label' => esc_html__( 'Other Great Plugins', 'remove-footer-credit' ),
61
+ 'path' => 'plugins.php',
62
+ ),
63
+ 'help' => array(
64
+ 'label' => esc_html__( 'Get Help', 'remove-footer-credit' ),
65
+ 'path' => 'plugin-info.php',
66
+ ),
67
+ );
68
+
69
+ $this->options = get_option( 'jabrfc_text' );
70
+ $this->assets_path = plugin_dir_url( __FILE__ ) . 'assets/';
71
+
72
+ $this->public_hooks();
73
+ $this->admin_hooks();
74
+
75
+ }
76
+
77
+ private function public_hooks() {
78
+
79
+ add_filter( 'the_content', array( $this, 'jabrfc_the_content' ) );
80
+
81
+ //Handles find and replace for public pages
82
+ add_action( 'template_redirect', array( $this, 'jabrfc_template_redirect' ) );
83
+
84
+ }
85
+
86
+ private function admin_hooks() {
87
+
88
+ if ( ! is_admin() ) {
89
+ return;
90
+ }
91
+
92
+ // Add style
93
+ add_action( 'admin_enqueue_scripts', array( $this, 'jabrfc_admin_enqueue_scripts' ) );
94
+
95
+ //Add left menu item in admin
96
+ add_action( 'admin_menu', array( $this, 'jabrfc_admin_menu' ) );
97
+
98
+ add_action('plugins_loaded',array($this,'load_textdomain'));
99
+
100
+ }
101
+
102
+ private function generate_url( $tab = 'settings' ){
103
+ return admin_url( 'tools.php?page=remove-footer-credit&tab=' . $tab );
104
+ }
105
+
106
+ /**
107
+ * Load plugin textdomain
108
+ */
109
+ public function load_textdomain(){
110
+ load_plugin_textdomain( 'remove-footer-credit', false, plugin_dir_path( __FILE__ ). '/languages' );
111
+ }
112
+
113
+ public function jabrfc_the_content( $content ) {
114
+ global $post;
115
+ $data = get_option( 'jabrfc_text' );
116
+ if ( $data['willLinkback'] == 'yes' && is_singular() && $data['linkbackPostId'] == $post->ID ) {
117
+ $content = $content . esc_html__('Get WordPress help, plugins, themes and tips at ','remove-footer-credit'). '<a href="https://www.machothemes.com?utm_source=remove-footer-credit&utm_medium=front&utm_campaign=credit-link">'. esc_html__('MachoThemes.com','remove-footer-credit').'</a>';
118
+ }
119
+ return $content;
120
+ }
121
+
122
+ /*
123
+ * Add a submenu under Tools
124
+ */
125
+ public function jabrfc_admin_menu() {
126
+ add_submenu_page( 'tools.php', esc_html__('Remove Footer Credit', 'remove-footer-credit'), esc_html__('Remove Footer Credit', 'remove-footer-credit'), 'activate_plugins', 'remove-footer-credit', array( $this, 'jabrfc_options_page' ) );
127
+ }
128
+
129
+ public function jabrfc_admin_enqueue_scripts( $hook ) {
130
+
131
+ if ( 'tools_page_remove-footer-credit' != $hook ) {
132
+ return;
133
+ }
134
+
135
+ wp_enqueue_style( 'jabrfc-styles', $this->assets_path . 'css/admin.css' );
136
+ wp_enqueue_script( 'jabrfc-plugin-install', $this->assets_path . 'js/plugin-install.js', array( 'jquery', 'updates' ), '1.0.0', 'all' );
137
+
138
+ }
139
+
140
+ public function jabrfc_template_redirect() {
141
+ ob_start();
142
+ ob_start( 'jabrfc_ob_call' );
143
+ }
144
+
145
+ public function jabrfc_options_page() {
146
+
147
+ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
148
+ $_POST = stripslashes_deep( $_POST );
149
+
150
+ $data = array(
151
+ 'find' => explode("\n", str_replace("\r", "", $_POST['find'])),
152
+ 'replace' => explode("\n", str_replace("\r", "", $_POST['replace'])),
153
+ 'willLinkback' => $_POST['willLinkback'],
154
+ 'linkbackPostId' => $_POST['linkbackPostId']
155
+ );
156
+
157
+ update_option( 'jabrfc_text', $data );
158
+ $this->options = $data;
159
+
160
+ echo '<div id="message" class="updated fade">';
161
+ echo '<p><strong>' . esc_html__( 'Settings Saved', 'remove-footer-credit' ) . '</strong></p>';
162
+ echo '</div>';
163
+ }
164
+
165
+ $current_tab = 'settings';
166
+ if ( isset($_GET['tab']) && isset( $this->tabs[ $_GET['tab'] ] ) ) {
167
+ $current_tab = $_GET['tab'];
168
+ }
169
+
170
+ echo '<div class="wrap about-wrap epsilon-wrap">';
171
+ echo '<h1>' . esc_html__( 'Remove Footer Credit', 'remove-footer-credit' ) . '</h1>';
172
+ echo '<div class="about-text">';
173
+ /* Translators: Welcome Screen Description. */
174
+ echo esc_html__( 'Remove or replace footer credits (or any text or HTML in page) before page is rendered. With this plugin there is no need to modify code such as footer.php which if done incorrectly can cause your site to break or new theme updates will stomp over your changes requiring you to remove footer credits on each update.', 'remove-footer-credit' );
175
+ echo '</div>';
176
+ echo '<div class="wp-badge remove-footer-credit"><span class="dashicons dashicons-editor-unlink"></span></div>';
177
+ echo '<h2 class="nav-tab-wrapper wp-clearfix">';
178
+ foreach ( $this->tabs as $tab_id => $tab ) {
179
+ echo '<a class="nav-tab ' . ( $tab_id === $current_tab ? 'nav-tab-active' : '' ) . '" href="' . esc_url( $this->generate_url( $tab_id ) ) . '">' . esc_html( $tab['label'] ) . '</a>';
180
+ }
181
+ echo '</h2>';
182
+ include 'sections/' . $this->tabs[ $current_tab ]['path'];
183
+ echo '</div>';
184
+
185
+ }
186
+
187
+ }
188
+
189
+ new RFC_Plugin();
190
+
191
+
192
+
193
+
194
+ /*
195
+ * Apply find and replace rules
196
+ */
197
+ function jabrfc_ob_call( $buffer ) { // $buffer contains entire page
198
+
199
+ $data = get_option( 'jabrfc_text' );
200
+
201
+ if ( is_array( $data['find']) ) {
202
+ $i = 0;
203
+ foreach ( $data['find'] as &$value ) {
204
+ $buffer = str_replace( $value, (array_key_exists($i, $data['replace']) ? $data['replace'][$i] : ''), $buffer );
205
+ $i++;
206
+ }
207
+ }
208
+ return $buffer;
209
+ }
210
+
211
+
212
+
213
+
214
+
215
+
216
+
sections/plugin-info.php CHANGED
@@ -1,7 +1,7 @@
1
- <div class="get-help">
2
- <h3><?php esc_html_e('Get Help', 'remove-footer-credit') ?></h3>
3
- <p><?php esc_html_e('Need help using this plugin or want to report a bug? Contact me', 'remove-footer-credit') ?> <a href="https://www.machothemes.com/contact-us-now/?utm_source=remove-footer-credit&utm_medium=about-page&utm_campaign=support-button" target="_blank"><?php esc_html_e('here', 'remove-footer-credit') ?></a>.</p>
4
- <hr>
5
- <h3><?php esc_html_e('Learn', 'remove-footer-credit') ?></h3>
6
- <p><a href="https://www.machothemes.com/blog/remove-powered-by-wordpress/?utm_source=remove-footer-credit&utm_medium=about-page&utm_campaign=docs-button" target="_blank"><?php esc_html_e('Click here', 'remove-footer-credit') ?></a> <?php esc_html_e('to view instructions on how to use this plugin.', 'remove-footer-credit') ?></p>
7
  </div>
1
+ <div class="get-help">
2
+ <h3><?php esc_html_e('Get Help', 'remove-footer-credit') ?></h3>
3
+ <p><?php esc_html_e('Need help using this plugin or want to report a bug? Contact me', 'remove-footer-credit') ?> <a href="https://www.machothemes.com/contact-us-now/?utm_source=remove-footer-credit&utm_medium=about-page&utm_campaign=support-button" target="_blank"><?php esc_html_e('here', 'remove-footer-credit') ?></a>.</p>
4
+ <hr>
5
+ <h3><?php esc_html_e('Learn', 'remove-footer-credit') ?></h3>
6
+ <p><a href="https://www.machothemes.com/blog/remove-powered-by-wordpress/?utm_source=remove-footer-credit&utm_medium=about-page&utm_campaign=docs-button" target="_blank"><?php esc_html_e('Click here', 'remove-footer-credit') ?></a> <?php esc_html_e('to view instructions on how to use this plugin.', 'remove-footer-credit') ?></p>
7
  </div>
sections/plugins.php CHANGED
@@ -13,18 +13,6 @@ $plugins = array(
13
  'more' => 'https://wordpress.org/plugins/simple-author-box/',
14
  'image' => 'sab.png',
15
  ),
16
- 'kiwi-social-share' => array(
17
- 'title' => esc_html__( 'Kiwi Social Share – Social Media Share Buttons & Icons', 'remove-footer-credit' ),
18
- 'description' => esc_html__( 'This is by far the best & easiest to use WordPress social media share plugin. A WordPress share plugin with custom icons built-in.', 'remove-footer-credit' ),
19
- 'more' => 'https://wordpress.org/plugins/kiwi-social-share/',
20
- 'image' => 'kiwi.png',
21
- ),
22
- 'speed-booster-pack' => array(
23
- 'title' => esc_html__( 'Speed Booster Pack', 'remove-footer-credit' ),
24
- 'description' => esc_html__( 'Speed Booster Pack is a lightweight, frequently updated, easy to use and well supported plugin which allows you to improve your website’s loading speed.', 'remove-footer-credit' ),
25
- 'more' => 'https://wordpress.org/plugins/speed-booster-pack/',
26
- 'image' => 'speed.png',
27
- ),
28
  );
29
 
30
  if ( ! function_exists( 'get_plugins' ) || ! function_exists( 'is_plugin_active' ) ) {
13
  'more' => 'https://wordpress.org/plugins/simple-author-box/',
14
  'image' => 'sab.png',
15
  ),
 
 
 
 
 
 
 
 
 
 
 
 
16
  );
17
 
18
  if ( ! function_exists( 'get_plugins' ) || ! function_exists( 'is_plugin_active' ) ) {
sections/settings.php CHANGED
@@ -1,66 +1,66 @@
1
- <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>" class="settings-form">
2
-
3
- <?php $replace = ""; if ($this->options['replace']) $replace = implode("\n",$this->options['replace']); ?>
4
- <?php $willLinkback = "no"; if ($this->options['willLinkback']) $willLinkback = $this->options['willLinkback']; ?>
5
- <?php $linkbackPostId = ""; if ($this->options['linkbackPostId']) $linkbackPostId = $this->options['linkbackPostId']; ?>
6
-
7
- <h3>Step 1: Enter text/HTML to remove (one per line)</h3>
8
- <p><textarea name="find" id="find" class="small-text code" rows="6" style="width: 100%;"><?php if ($this->options['find']) echo htmlentities(implode("\n",$this->options['find'])); ?></textarea></p>
9
- <h3>Step 2: Enter your own footer credit (one per line)</h3>
10
- <?php wp_editor( $replace, 'replace', $settings = array('quicktags' => true, 'wpautop' => false,'editor_height' => '100', 'teeny' => false) ); ?>
11
- <h3>Step 3: Please support my work and spread the word (optional)</h3>
12
- <p>Help keep this plugin free by providing one link back at the bottom of one of your posts/pages.</p>
13
- <label><input type="radio" name="willLinkback" value="no" class="js-linkback" <?php if ($willLinkback == 'no') echo 'checked="checked"' ?>> No, thanks.</label><br>
14
- <label><input type="radio" name="willLinkback" value="yes" class="js-linkback" <?php if ($willLinkback == 'yes') echo 'checked="checked"' ?>> Yes, I will support you!</label>
15
-
16
- <div class="js-linkback-panel" style="<?php if ($willLinkback == 'no') echo 'display: none;' ?> margin-top: 15px;">
17
- <?php $post_args = array(
18
- 'posts_per_page' => -1,
19
- 'orderby' => 'title',
20
- 'order' => 'asc',
21
- 'post_type' => 'post',
22
- 'post_status' => 'publish',
23
- 'suppress_filters' => true
24
- );
25
- $page_args = array(
26
- 'posts_per_page' => -1,
27
- 'orderby' => 'title',
28
- 'order' => 'asc',
29
- 'post_type' => 'page',
30
- 'post_status' => 'publish',
31
- 'suppress_filters' => true
32
- );
33
- $posts_array = get_posts( $post_args );
34
- $pages_array = get_posts( $page_args );
35
- ?>
36
- <strong>Select a post/page:</strong><br>
37
- <select name="linkbackPostId" style="margin-bottom: 15px;">
38
- <?php if (sizeof($posts_array) > 0) { ?>
39
- <option disabled>-- Posts --</option>
40
- <?php foreach ($posts_array as $item) { ?>
41
- <option value="<?php echo $item->ID ?>" <?php if ($linkbackPostId == $item->ID) echo 'selected=selected'?>><?php echo $item->post_title ?></option>
42
- <?php } ?>
43
- <?php } ?>
44
- <?php if (sizeof($pages_array) > 0) { ?>
45
- <option disabled>-- Pages --</option>
46
- <?php foreach ($pages_array as $item) { ?>
47
- <option value="<?php echo $item->ID ?>" <?php if ($linkbackPostId == $item->ID) echo 'selected=selected'?>><?php echo $item->post_title ?></option>
48
- <?php } ?>
49
- <?php } ?>
50
- </select>
51
-
52
- <div>
53
- <strong>The text below will appear at the bottom of the selected post/page.</strong><br>
54
- Get WordPress help, plugins, themes and tips at <a href="https://www.machothemes.com">MachoThemes.com</a>.
55
- </div>
56
- </div>
57
- <div style="margin-top: 20px;">
58
- <input type="submit" class="button" value="Save" />
59
- </div>
60
- </form>
61
- <script>
62
- jQuery('.js-linkback').change(function() {
63
- jQuery('.js-linkback-panel').toggle();
64
- });
65
-
66
  </script>
1
+ <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>" class="settings-form">
2
+
3
+ <?php $replace = ""; if ($this->options['replace']) $replace = implode("\n",$this->options['replace']); ?>
4
+ <?php $willLinkback = "no"; if ($this->options['willLinkback']) $willLinkback = $this->options['willLinkback']; ?>
5
+ <?php $linkbackPostId = ""; if ($this->options['linkbackPostId']) $linkbackPostId = $this->options['linkbackPostId']; ?>
6
+
7
+ <h3><?php echo esc_html__('Step 1: Enter text/HTML to remove (one per line)','remove-footer-credit'); ?></h3>
8
+ <p><textarea name="find" id="find" class="small-text code" rows="6" style="width: 100%;"><?php if ($this->options['find']) echo htmlentities(implode("\n",$this->options['find'])); ?></textarea></p>
9
+ <h3><?php echo esc_html__('Step 2: Enter your own footer credit (one per line)','remove-footer-credit'); ?></h3>
10
+ <?php wp_editor( $replace, 'replace', $settings = array('quicktags' => true, 'wpautop' => false,'editor_height' => '100', 'teeny' => false) ); ?>
11
+ <h3><?php echo esc_html__('Step 3: Please support my work and spread the word (optional)','remove-footer-credit'); ?></h3>
12
+ <p><?php echo esc_html__('Help keep this plugin free by providing one link back at the bottom of one of your posts/pages.','remove-footer-credit'); ?></p>
13
+ <label><input type="radio" name="willLinkback" value="no" class="js-linkback" <?php if ($willLinkback == 'no') echo 'checked="checked"' ?>> <?php echo esc_html__('No, thanks.','remove-footer-credit'); ?></label><br>
14
+ <label><input type="radio" name="willLinkback" value="yes" class="js-linkback" <?php if ($willLinkback == 'yes') echo 'checked="checked"' ?>> <?php echo esc_html__('Yes, I will support you!','remove-footer-credit'); ?></label>
15
+
16
+ <div class="js-linkback-panel" style="<?php if ($willLinkback == 'no') echo 'display: none;' ?> margin-top: 15px;">
17
+ <?php $post_args = array(
18
+ 'posts_per_page' => -1,
19
+ 'orderby' => 'title',
20
+ 'order' => 'asc',
21
+ 'post_type' => 'post',
22
+ 'post_status' => 'publish',
23
+ 'suppress_filters' => true
24
+ );
25
+ $page_args = array(
26
+ 'posts_per_page' => -1,
27
+ 'orderby' => 'title',
28
+ 'order' => 'asc',
29
+ 'post_type' => 'page',
30
+ 'post_status' => 'publish',
31
+ 'suppress_filters' => true
32
+ );
33
+ $posts_array = get_posts( $post_args );
34
+ $pages_array = get_posts( $page_args );
35
+ ?>
36
+ <strong><?php echo esc_html__('Select a post/page:','remove-footer-credit'); ?></strong><br>
37
+ <select name="linkbackPostId" style="margin-bottom: 15px;">
38
+ <?php if (sizeof($posts_array) > 0) { ?>
39
+ <option disabled><?php echo esc_html__('-- Posts --','remove-footer-credit'); ?></option>
40
+ <?php foreach ($posts_array as $item) { ?>
41
+ <option value="<?php echo $item->ID ?>" <?php if ($linkbackPostId == $item->ID) echo 'selected=selected'?>><?php echo $item->post_title ?></option>
42
+ <?php } ?>
43
+ <?php } ?>
44
+ <?php if (sizeof($pages_array) > 0) { ?>
45
+ <option disabled><?php echo esc_html__('-- Pages --','remove-footer-credit'); ?></option>
46
+ <?php foreach ($pages_array as $item) { ?>
47
+ <option value="<?php echo $item->ID ?>" <?php if ($linkbackPostId == $item->ID) echo 'selected=selected'?>><?php echo $item->post_title ?></option>
48
+ <?php } ?>
49
+ <?php } ?>
50
+ </select>
51
+
52
+ <div>
53
+ <strong><?php echo esc_html__('The text below will appear at the bottom of the selected post/page.','remove-footer-credit'); ?></strong><br>
54
+ <?php echo esc_html__('Get WordPress help, plugins, themes and tips at','remove-footer-credit'); ?> <a href="https://www.machothemes.com">MachoThemes.com</a>.
55
+ </div>
56
+ </div>
57
+ <div style="margin-top: 20px;">
58
+ <input type="submit" class="button" value="Save" />
59
+ </div>
60
+ </form>
61
+ <script>
62
+ jQuery('.js-linkback').change(function() {
63
+ jQuery('.js-linkback-panel').toggle();
64
+ });
65
+
66
  </script>