Version Description
- In the settings_page.php, on the line 21, fixed typo.
- Removed extra rules in style.css file.
- All images are moved to the directory "images".
- Image "btn_donateCC_LG.gif" is now located in the "images" directory.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | My Custom Functions |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1
- LICENSE.txt +0 -0
- inc/codemirror/LICENSE +0 -0
- inc/codemirror/README.md +0 -0
- inc/codemirror/codemirror.css +0 -0
- inc/{author.png → images/author.png} +0 -0
- inc/images/btn_donateCC_LG.gif +0 -0
- inc/{thanks.png → images/thanks.png} +0 -0
- inc/settings_page.php +6 -6
- inc/style.css +1 -27
- languages/MCFunctions-ru_RU.mo +0 -0
- languages/MCFunctions-ru_RU.po +10 -7
- languages/MCFunctions.pot +5 -5
- my-custom-functions.php +4 -5
- readme.txt +13 -17
LICENSE.txt
CHANGED
File without changes
|
inc/codemirror/LICENSE
CHANGED
File without changes
|
inc/codemirror/README.md
CHANGED
File without changes
|
inc/codemirror/codemirror.css
CHANGED
File without changes
|
inc/{author.png → images/author.png}
RENAMED
File without changes
|
inc/images/btn_donateCC_LG.gif
ADDED
Binary file
|
inc/{thanks.png → images/thanks.png}
RENAMED
File without changes
|
inc/settings_page.php
CHANGED
@@ -10,7 +10,7 @@ defined('ABSPATH') or die("Restricted access!");
|
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
-
* @since 2.
|
14 |
*/
|
15 |
function MCFunctions_render_submenu_page() {
|
16 |
|
@@ -18,7 +18,7 @@ function MCFunctions_render_submenu_page() {
|
|
18 |
if ( isset( $_GET['settings-updated'] ) ) :
|
19 |
?>
|
20 |
<div id="message" class="updated">
|
21 |
-
<p><?php _e( 'Custom functions updated successfully.', '
|
22 |
</div>
|
23 |
<?php
|
24 |
endif;
|
@@ -78,10 +78,10 @@ function MCFunctions_render_submenu_page() {
|
|
78 |
<div id="donate" class="postbox">
|
79 |
<h3 class="title"><?php _e( 'Donate', 'MCFunctions' ) ?></h3>
|
80 |
<div class="inside">
|
81 |
-
<img src="<?php echo plugins_url('thanks.png', __FILE__); ?>">
|
82 |
<p><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'MCFunctions' ) ?></p>
|
83 |
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
|
84 |
-
<img src="
|
85 |
</a>
|
86 |
<p><?php _e( 'Thanks for your support!', 'MCFunctions' ) ?></p>
|
87 |
</div>
|
@@ -90,7 +90,7 @@ function MCFunctions_render_submenu_page() {
|
|
90 |
<div id="freelance" class="postbox">
|
91 |
<h3 class="title"><?php _e( 'Freelance', 'MCFunctions' ) ?></h3>
|
92 |
<div class="inside">
|
93 |
-
<img src="<?php echo plugins_url('author.png', __FILE__); ?>">
|
94 |
<p><?php _e( 'Hello, my name is Arthur and I\'m a freelance web designer and developer.', 'MCFunctions' ) ?></p>
|
95 |
<p><?php _e( 'Share your thoughts with me. You may have a brilliant idea in your mind and I can make it happen, so let’s get started!', 'MCFunctions' ) ?></p>
|
96 |
<p><a href="http://www.arthurgareginyan.com/" target="_blank">www.arthurgareginyan.com</a></p>
|
@@ -126,11 +126,11 @@ function MCFunctions_render_submenu_page() {
|
|
126 |
<?php submit_button( __( 'Save Changes', 'MCFunctions' ), 'primary', 'submit', true ); ?>
|
127 |
|
128 |
</form>
|
129 |
-
<!-- END-FORM -->
|
130 |
|
131 |
</div>
|
132 |
</div>
|
133 |
</div>
|
|
|
134 |
|
135 |
</div>
|
136 |
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
+
* @since 2.1
|
14 |
*/
|
15 |
function MCFunctions_render_submenu_page() {
|
16 |
|
18 |
if ( isset( $_GET['settings-updated'] ) ) :
|
19 |
?>
|
20 |
<div id="message" class="updated">
|
21 |
+
<p><?php _e( 'Custom functions updated successfully.', 'MCFunctions' ); ?></p>
|
22 |
</div>
|
23 |
<?php
|
24 |
endif;
|
78 |
<div id="donate" class="postbox">
|
79 |
<h3 class="title"><?php _e( 'Donate', 'MCFunctions' ) ?></h3>
|
80 |
<div class="inside">
|
81 |
+
<img src="<?php echo plugins_url('images/thanks.png', __FILE__); ?>">
|
82 |
<p><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'MCFunctions' ) ?></p>
|
83 |
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
|
84 |
+
<img src="<?php echo plugins_url('images/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
|
85 |
</a>
|
86 |
<p><?php _e( 'Thanks for your support!', 'MCFunctions' ) ?></p>
|
87 |
</div>
|
90 |
<div id="freelance" class="postbox">
|
91 |
<h3 class="title"><?php _e( 'Freelance', 'MCFunctions' ) ?></h3>
|
92 |
<div class="inside">
|
93 |
+
<img src="<?php echo plugins_url('images/author.png', __FILE__); ?>">
|
94 |
<p><?php _e( 'Hello, my name is Arthur and I\'m a freelance web designer and developer.', 'MCFunctions' ) ?></p>
|
95 |
<p><?php _e( 'Share your thoughts with me. You may have a brilliant idea in your mind and I can make it happen, so let’s get started!', 'MCFunctions' ) ?></p>
|
96 |
<p><a href="http://www.arthurgareginyan.com/" target="_blank">www.arthurgareginyan.com</a></p>
|
126 |
<?php submit_button( __( 'Save Changes', 'MCFunctions' ), 'primary', 'submit', true ); ?>
|
127 |
|
128 |
</form>
|
|
|
129 |
|
130 |
</div>
|
131 |
</div>
|
132 |
</div>
|
133 |
+
<!-- END-FORM -->
|
134 |
|
135 |
</div>
|
136 |
|
inc/style.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
* My Custom Functions
|
3 |
* Style sheet for plugin's page
|
4 |
-
* @since 2.
|
5 |
* @agareginyan
|
6 |
*/
|
7 |
|
@@ -51,14 +51,6 @@ td.help-text {
|
|
51 |
text-decoration: none;
|
52 |
}
|
53 |
|
54 |
-
.hide {
|
55 |
-
display: none;
|
56 |
-
}
|
57 |
-
|
58 |
-
.show {
|
59 |
-
display: inline !important;
|
60 |
-
}
|
61 |
-
|
62 |
.CodeMirror {
|
63 |
height: 100% !important;
|
64 |
border: 1px solid grey;
|
@@ -66,24 +58,6 @@ td.help-text {
|
|
66 |
margin-right: 5px;
|
67 |
}
|
68 |
|
69 |
-
button.button-primary.showHide {
|
70 |
-
float:right;
|
71 |
-
margin-right: 10px;
|
72 |
-
font-family: Helvetica;
|
73 |
-
}
|
74 |
-
|
75 |
-
button.button-primary.deleteSection {
|
76 |
-
float:right;
|
77 |
-
margin-right: 10px;
|
78 |
-
font-family: Helvetica;
|
79 |
-
}
|
80 |
-
|
81 |
-
button.button-primary.addSection {
|
82 |
-
float: left;
|
83 |
-
margin-right: 15px;
|
84 |
-
margin-top: 10px;
|
85 |
-
}
|
86 |
-
|
87 |
#side-sortables {
|
88 |
position: relative;
|
89 |
}
|
1 |
/*
|
2 |
* My Custom Functions
|
3 |
* Style sheet for plugin's page
|
4 |
+
* @since 2.1
|
5 |
* @agareginyan
|
6 |
*/
|
7 |
|
51 |
text-decoration: none;
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
.CodeMirror {
|
55 |
height: 100% !important;
|
56 |
border: 1px solid grey;
|
58 |
margin-right: 5px;
|
59 |
}
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
#side-sortables {
|
62 |
position: relative;
|
63 |
}
|
languages/MCFunctions-ru_RU.mo
CHANGED
Binary file
|
languages/MCFunctions-ru_RU.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: My Custom Functions\n"
|
4 |
-
"POT-Creation-Date: 2016-04-
|
5 |
-
"PO-Revision-Date: 2016-04-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: ru\n"
|
@@ -35,7 +35,7 @@ msgid "Please, check the code and try again."
|
|
35 |
msgstr "Пожалуйста, проверьте код и попробуйте еще раз."
|
36 |
|
37 |
#. Plugin Name of the plugin/theme
|
38 |
-
#: inc/settings_page.php:43 my-custom-functions.php:
|
39 |
msgid "My Custom Functions"
|
40 |
msgstr ""
|
41 |
|
@@ -122,11 +122,11 @@ msgstr "Функции"
|
|
122 |
msgid "Save Changes"
|
123 |
msgstr "Сохранить изменения"
|
124 |
|
125 |
-
#: my-custom-functions.php:
|
126 |
msgid "Settings"
|
127 |
msgstr "Настройки"
|
128 |
|
129 |
-
#: my-custom-functions.php:
|
130 |
msgid "Custom Functions"
|
131 |
msgstr "Пользовательские Функции"
|
132 |
|
@@ -144,13 +144,16 @@ msgstr ""
|
|
144 |
"необходимости во внешнем редакторе."
|
145 |
|
146 |
#. Author of the plugin/theme
|
147 |
-
msgid "Arthur
|
148 |
-
msgstr "Артур
|
149 |
|
150 |
#. Author URI of the plugin/theme
|
151 |
msgid "http://www.arthurgareginyan.com"
|
152 |
msgstr ""
|
153 |
|
|
|
|
|
|
|
154 |
#~ msgid ""
|
155 |
#~ "EASILY and SAFELY add your own functions, snippets or any custom codes "
|
156 |
#~ "directly out of your WordPress Dashboard without need of an external "
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: My Custom Functions\n"
|
4 |
+
"POT-Creation-Date: 2016-04-07 14:58+0300\n"
|
5 |
+
"PO-Revision-Date: 2016-04-07 14:58+0300\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: ru\n"
|
35 |
msgstr "Пожалуйста, проверьте код и попробуйте еще раз."
|
36 |
|
37 |
#. Plugin Name of the plugin/theme
|
38 |
+
#: inc/settings_page.php:43 my-custom-functions.php:82
|
39 |
msgid "My Custom Functions"
|
40 |
msgstr ""
|
41 |
|
122 |
msgid "Save Changes"
|
123 |
msgstr "Сохранить изменения"
|
124 |
|
125 |
+
#: my-custom-functions.php:70
|
126 |
msgid "Settings"
|
127 |
msgstr "Настройки"
|
128 |
|
129 |
+
#: my-custom-functions.php:82
|
130 |
msgid "Custom Functions"
|
131 |
msgstr "Пользовательские Функции"
|
132 |
|
144 |
"необходимости во внешнем редакторе."
|
145 |
|
146 |
#. Author of the plugin/theme
|
147 |
+
msgid "Arthur Gareginyan"
|
148 |
+
msgstr "Артур Гарегинян"
|
149 |
|
150 |
#. Author URI of the plugin/theme
|
151 |
msgid "http://www.arthurgareginyan.com"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#~ msgid "Arthur \"Berserkr\" Gareginyan"
|
155 |
+
#~ msgstr "Артур “Берсерк” Гарегинян"
|
156 |
+
|
157 |
#~ msgid ""
|
158 |
#~ "EASILY and SAFELY add your own functions, snippets or any custom codes "
|
159 |
#~ "directly out of your WordPress Dashboard without need of an external "
|
languages/MCFunctions.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: My Custom Functions\n"
|
6 |
-
"POT-Creation-Date: 2016-04-
|
7 |
"PO-Revision-Date: 2015-08-30 16:22+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
@@ -33,7 +33,7 @@ msgid "Please, check the code and try again."
|
|
33 |
msgstr ""
|
34 |
|
35 |
#. Plugin Name of the plugin/theme
|
36 |
-
#: inc/settings_page.php:43 my-custom-functions.php:
|
37 |
msgid "My Custom Functions"
|
38 |
msgstr ""
|
39 |
|
@@ -108,11 +108,11 @@ msgstr ""
|
|
108 |
msgid "Save Changes"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: my-custom-functions.php:
|
112 |
msgid "Settings"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: my-custom-functions.php:
|
116 |
msgid "Custom Functions"
|
117 |
msgstr ""
|
118 |
|
@@ -127,7 +127,7 @@ msgid ""
|
|
127 |
msgstr ""
|
128 |
|
129 |
#. Author of the plugin/theme
|
130 |
-
msgid "Arthur
|
131 |
msgstr ""
|
132 |
|
133 |
#. Author URI of the plugin/theme
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: My Custom Functions\n"
|
6 |
+
"POT-Creation-Date: 2016-04-07 14:58+0300\n"
|
7 |
"PO-Revision-Date: 2015-08-30 16:22+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
33 |
msgstr ""
|
34 |
|
35 |
#. Plugin Name of the plugin/theme
|
36 |
+
#: inc/settings_page.php:43 my-custom-functions.php:82
|
37 |
msgid "My Custom Functions"
|
38 |
msgstr ""
|
39 |
|
108 |
msgid "Save Changes"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: my-custom-functions.php:70
|
112 |
msgid "Settings"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: my-custom-functions.php:82
|
116 |
msgid "Custom Functions"
|
117 |
msgstr ""
|
118 |
|
127 |
msgstr ""
|
128 |
|
129 |
#. Author of the plugin/theme
|
130 |
+
msgid "Arthur Gareginyan"
|
131 |
msgstr ""
|
132 |
|
133 |
#. Author URI of the plugin/theme
|
my-custom-functions.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: My Custom Functions
|
4 |
* Plugin URI: https://github.com/ArthurGareginyan/my-custom-functions
|
5 |
* Description: Easily and safely add your own functions, snippets or any custom codes directly out of your WordPress Dashboard without need of an external editor.
|
6 |
-
* Author: Arthur
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
-
* Version: 2.
|
9 |
* License: GPL3
|
10 |
* Text Domain: MCFunctions
|
11 |
* Domain Path: /languages/
|
12 |
*
|
13 |
-
* Copyright 2014-
|
14 |
*
|
15 |
* This file is part of "My Custom Functions".
|
16 |
*
|
@@ -86,7 +86,7 @@ add_action( 'admin_menu', 'MCFunctions_register_submenu_page' );
|
|
86 |
/**
|
87 |
* Attach Settings Page
|
88 |
*
|
89 |
-
* @since 0
|
90 |
*/
|
91 |
require_once( MCFUNC_PATH . 'inc/settings_page.php' );
|
92 |
|
@@ -163,5 +163,4 @@ function MCFunctions_uninstall() {
|
|
163 |
}
|
164 |
register_uninstall_hook( __FILE__, 'MCFunctions_uninstall' );
|
165 |
|
166 |
-
/* That's all folks! */
|
167 |
?>
|
3 |
* Plugin Name: My Custom Functions
|
4 |
* Plugin URI: https://github.com/ArthurGareginyan/my-custom-functions
|
5 |
* Description: Easily and safely add your own functions, snippets or any custom codes directly out of your WordPress Dashboard without need of an external editor.
|
6 |
+
* Author: Arthur Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
+
* Version: 2.1
|
9 |
* License: GPL3
|
10 |
* Text Domain: MCFunctions
|
11 |
* Domain Path: /languages/
|
12 |
*
|
13 |
+
* Copyright 2014-2016 Arthur "Berserkr" Gareginyan (email : arthurgareginyan@gmail.com)
|
14 |
*
|
15 |
* This file is part of "My Custom Functions".
|
16 |
*
|
86 |
/**
|
87 |
* Attach Settings Page
|
88 |
*
|
89 |
+
* @since 2.0
|
90 |
*/
|
91 |
require_once( MCFUNC_PATH . 'inc/settings_page.php' );
|
92 |
|
163 |
}
|
164 |
register_uninstall_hook( __FILE__, 'MCFunctions_uninstall' );
|
165 |
|
|
|
166 |
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: code, php, function, snippet, custom, execute, edit, editing, editor, func
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag:
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -39,13 +39,13 @@ This is a simple and perfect tool to use as your site's functionality plugin.
|
|
39 |
* Trigger to temporary disable the custom code
|
40 |
* Backuping the custom code to a file
|
41 |
|
42 |
-
**
|
43 |
-
|
44 |
-
If you
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
|
50 |
|
51 |
== Installation ==
|
@@ -126,15 +126,6 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
126 |
|
127 |
[CodeMirror](https://codemirror.net/) is an open-source project shared under an [MIT license](https://codemirror.net/LICENSE).
|
128 |
|
129 |
-
**Support**
|
130 |
-
|
131 |
-
* Did you enjoy this plugin? Please [donate to support ongoing development](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS). Your contribution would be greatly appreciated.
|
132 |
-
* Do you have any ideas or suggestions to make the plugin better? I can’t wait to hear them! Please share! [arthurgareginyan@gmail.com](mailto:arthurgareginyan@gmail.com)
|
133 |
-
|
134 |
-
**Please Vote and Enjoy**
|
135 |
-
|
136 |
-
* Your votes really make a difference! Thanks.
|
137 |
-
|
138 |
**Links**
|
139 |
|
140 |
* [Developer Website](http://www.arthurgareginyan.com)
|
@@ -142,6 +133,11 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
142 |
|
143 |
|
144 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
145 |
= 2.0 =
|
146 |
* New design of settings page (new layout).
|
147 |
* Constants variables added.
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 2.0
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
39 |
* Trigger to temporary disable the custom code
|
40 |
* Backuping the custom code to a file
|
41 |
|
42 |
+
>**Contribution**
|
43 |
+
>
|
44 |
+
>Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to:
|
45 |
+
>
|
46 |
+
>* Please [donate](http://www.arthurgareginyan.com/donate.html) to support ongoing development. Your contribution would be greatly appreciated.
|
47 |
+
>* Please take the time to [rate and review](https://wordpress.org/support/view/plugin-reviews/my-custom-functions?rate=5#postform) this plugin.
|
48 |
+
>* Please [share with me](mailto:arthurgareginyan@gmail.com) if you have any ideas or suggestions to make this plugin better.
|
49 |
|
50 |
|
51 |
== Installation ==
|
126 |
|
127 |
[CodeMirror](https://codemirror.net/) is an open-source project shared under an [MIT license](https://codemirror.net/LICENSE).
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
**Links**
|
130 |
|
131 |
* [Developer Website](http://www.arthurgareginyan.com)
|
133 |
|
134 |
|
135 |
== Changelog ==
|
136 |
+
= 2.1 =
|
137 |
+
* In the settings_page.php, on the line 21, fixed typo.
|
138 |
+
* Removed extra rules in style.css file.
|
139 |
+
* All images are moved to the directory "images".
|
140 |
+
* Image "btn_donateCC_LG.gif" is now located in the "images" directory.
|
141 |
= 2.0 =
|
142 |
* New design of settings page (new layout).
|
143 |
* Constants variables added.
|