Version Description
- New design of settings page (new layout).
- Constants variables added.
- editor.js deleted.
- js-functions.js (file with all js functions) created.
- Prefixes changed to "MCFunctions".
- Text domain changed to "MCFunctions".
- Plugin URI changed to GitHub repository.
- Added my personal ad about freelance.
- .pot file updated.
- Russian translation updated.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | My Custom Functions |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 2.0
- LICENSE.txt +0 -0
- inc/author.png +0 -0
- inc/codemirror/LICENSE +0 -0
- inc/codemirror/README.md +0 -0
- inc/codemirror/codemirror.css +0 -0
- inc/editor.js +0 -20
- inc/js-functions.js +30 -0
- inc/settings_page.php +118 -63
- inc/style.css +69 -16
- inc/thanks.png +0 -0
- languages/MCFunctions-ru_RU.mo +0 -0
- languages/MCFunctions-ru_RU.po +192 -0
- languages/{mcfunctions.pot → MCFunctions.pot} +64 -20
- languages/mcfunctions-ru_RU.mo +0 -0
- languages/mcfunctions-ru_RU.po +0 -112
- my-custom-functions.php +44 -31
- readme.txt +50 -53
LICENSE.txt
CHANGED
File without changes
|
inc/author.png
ADDED
Binary file
|
inc/codemirror/LICENSE
CHANGED
File without changes
|
inc/codemirror/README.md
CHANGED
File without changes
|
inc/codemirror/codemirror.css
CHANGED
File without changes
|
inc/editor.js
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* My Custom Functions
|
3 |
-
* CodeMirror editor
|
4 |
-
* @since 1.8
|
5 |
-
* @agareginyan
|
6 |
-
*/
|
7 |
-
|
8 |
-
|
9 |
-
// Change editor to CodeMirror
|
10 |
-
var editor = CodeMirror.fromTextArea(document.getElementById('anarcho_cfunctions_settings[anarcho_cfunctions-content]'), {
|
11 |
-
lineNumbers: true,
|
12 |
-
matchBrackets: true,
|
13 |
-
mode: 'text/x-php', // PHP='text/x-php', HTML+PHP='application/x-httpd-php'.
|
14 |
-
indentUnit: 4
|
15 |
-
});
|
16 |
-
|
17 |
-
// Refresh CodeMirror editor after 1 second
|
18 |
-
setTimeout(function() {
|
19 |
-
editor.refresh();
|
20 |
-
},1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/js-functions.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* My Custom Functions
|
3 |
+
* JS functions
|
4 |
+
* @since 2.0
|
5 |
+
* @agareginyan
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
(function(){
|
10 |
+
jQuery(document).ready(function($) {
|
11 |
+
|
12 |
+
// Find all textareas on page
|
13 |
+
$('textarea').each(function(index, elements) {
|
14 |
+
|
15 |
+
// Change textarea to CodeMirror editor
|
16 |
+
var editor = CodeMirror.fromTextArea( elements , {
|
17 |
+
lineNumbers: true,
|
18 |
+
firstLineNumber: 1,
|
19 |
+
matchBrackets: true,
|
20 |
+
indentUnit: 4,
|
21 |
+
mode: 'text/x-php'
|
22 |
+
});
|
23 |
+
|
24 |
+
// Refresh CodeMirror editor after 1 second
|
25 |
+
setTimeout(function() {
|
26 |
+
editor.refresh();
|
27 |
+
},1);
|
28 |
+
});
|
29 |
+
});
|
30 |
+
}());
|
inc/settings_page.php
CHANGED
@@ -2,83 +2,138 @@
|
|
2 |
|
3 |
/**
|
4 |
* Prevent Direct Access
|
|
|
|
|
5 |
*/
|
6 |
defined('ABSPATH') or die("Restricted access!");
|
7 |
|
8 |
/**
|
9 |
* Render Settings Page
|
10 |
*
|
11 |
-
* @since
|
12 |
*/
|
13 |
-
function
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
if ( $error == '1' ) :
|
33 |
-
?>
|
34 |
-
<div id="message" class="error">
|
35 |
-
<p>
|
36 |
-
<?php _e( 'Sorry, but your code causes a "Fatal error", so it is not applied!', 'mcfunctions' ); ?><br/>
|
37 |
-
<?php _e( 'Please, check the code and try again.', 'mcfunctions' ); ?>
|
38 |
-
</p>
|
39 |
-
</div>
|
40 |
-
<?php
|
41 |
-
endif;
|
42 |
|
43 |
// Page
|
44 |
?>
|
45 |
-
|
46 |
-
|
47 |
-
<?php _e( 'My Custom Functions', '
|
48 |
<br/>
|
49 |
<span>
|
50 |
-
<?php _e( 'by <a href="http://www.arthurgareginyan.com" target="_blank">Arthur "Berserkr" Gareginyan</a>', '
|
51 |
<span/>
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
<?php
|
84 |
}
|
2 |
|
3 |
/**
|
4 |
* Prevent Direct Access
|
5 |
+
*
|
6 |
+
* @since 0.1
|
7 |
*/
|
8 |
defined('ABSPATH') or die("Restricted access!");
|
9 |
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
+
* @since 2.0
|
14 |
*/
|
15 |
+
function MCFunctions_render_submenu_page() {
|
16 |
|
17 |
+
// Settings update message
|
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;
|
25 |
|
26 |
+
// Error message
|
27 |
+
$error = get_option( 'anarcho_cfunctions_error' );
|
28 |
+
if ( $error == '1' ) :
|
29 |
+
?>
|
30 |
+
<div id="message" class="error">
|
31 |
+
<p>
|
32 |
+
<?php _e( 'Sorry, but your code causes a "Fatal error", so it is not applied!', 'MCFunctions' ); ?><br/>
|
33 |
+
<?php _e( 'Please, check the code and try again.', 'MCFunctions' ); ?>
|
34 |
+
</p>
|
35 |
+
</div>
|
36 |
+
<?php
|
37 |
+
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
// Page
|
40 |
?>
|
41 |
+
<div class="wrap">
|
42 |
+
<h2>
|
43 |
+
<?php _e( 'My Custom Functions', 'MCFunctions' ); ?>
|
44 |
<br/>
|
45 |
<span>
|
46 |
+
<?php _e( 'by <a href="http://www.arthurgareginyan.com" target="_blank">Arthur "Berserkr" Gareginyan</a>', 'MCFunctions' ); ?>
|
47 |
<span/>
|
48 |
+
</h2>
|
49 |
+
|
50 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
51 |
+
|
52 |
+
<!-- SIDEBAR -->
|
53 |
+
<div class="inner-sidebar">
|
54 |
+
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
|
55 |
+
|
56 |
+
<div id="about" class="postbox">
|
57 |
+
<h3 class="title"><?php _e( 'About', 'MCFunctions' ) ?></a></h3>
|
58 |
+
<div class="inside">
|
59 |
+
<p><?php _e( 'This plugin allows you to easily and safely add your own functions, snippets or any custom code to your website.', 'MCFunctions' ) ?></p>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
|
63 |
+
<div id="using" class="postbox">
|
64 |
+
<h3 class="title"><?php _e( 'Using', 'MCFunctions' ) ?></a></h3>
|
65 |
+
<div class="inside">
|
66 |
+
<p><?php _e( 'To use, enter your custom functions, then click "Save Changes". It\'s that simple!', 'MCFunctions' ) ?></p>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<div id="help" class="postbox">
|
71 |
+
<h3 class="title"><?php _e( 'Help', 'MCFunctions' ); ?></h3>
|
72 |
+
<div class="inside">
|
73 |
+
<p><?php _e( 'If you want more options then tell me and I will be happy to add it.', 'MCFunctions' ); ?></p>
|
74 |
+
<p><a href="mailto:arthurgareginyan@gmail.com">arthurgareginyan@gmail.com</a></p>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
|
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="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Make a donation">
|
85 |
+
</a>
|
86 |
+
<p><?php _e( 'Thanks for your support!', 'MCFunctions' ) ?></p>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
|
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>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
<!-- END-SIDEBAR -->
|
103 |
+
|
104 |
+
<!-- FORM -->
|
105 |
+
<div class="has-sidebar sm-padded">
|
106 |
+
<div id="post-body-content" class="has-sidebar-content">
|
107 |
+
<div class="meta-box-sortabless">
|
108 |
+
|
109 |
+
<form name="anarcho_cfunctions-form" action="options.php" method="post" enctype="multipart/form-data">
|
110 |
+
<?php settings_fields( 'anarcho_cfunctions_settings_group' ); ?>
|
111 |
+
|
112 |
+
<?php
|
113 |
+
// Declare variables
|
114 |
+
$options = get_option( 'anarcho_cfunctions_settings' );
|
115 |
+
$content = isset( $options['anarcho_cfunctions-content'] ) && ! empty( $options['anarcho_cfunctions-content'] ) ? $options['anarcho_cfunctions-content'] : '/* Enter Your Custom Functions Here */';
|
116 |
+
?>
|
117 |
+
<div class="postbox">
|
118 |
+
<h3 class="title">
|
119 |
+
<label for="anarcho_cfunctions_settings[anarcho_cfunctions-content]" ><?php _e( 'Functions', 'MCFunctions' ) ?></label>
|
120 |
+
</h3>
|
121 |
+
<div class="inside">
|
122 |
+
<textarea name="anarcho_cfunctions_settings[anarcho_cfunctions-content]" id="anarcho_cfunctions_settings[anarcho_cfunctions-content]" ><?php echo esc_attr( $content ); ?></textarea>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
|
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 |
+
|
137 |
+
</div>
|
138 |
<?php
|
139 |
}
|
inc/style.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
* My Custom Functions
|
3 |
* Style sheet for plugin's page
|
4 |
-
* @since
|
5 |
* @agareginyan
|
6 |
*/
|
7 |
|
@@ -28,29 +28,82 @@ h2 span a {
|
|
28 |
padding: 0;
|
29 |
}
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
-
|
37 |
-
|
38 |
}
|
39 |
|
40 |
.CodeMirror {
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
-
|
50 |
-
margin-top: 20px;
|
51 |
-
border: 1px solid rgb(184, 186, 184);
|
52 |
-
border-radius: 5px;
|
53 |
-
padding: 3px;
|
54 |
text-align: center;
|
55 |
-
background: rgb(234, 234, 234);
|
56 |
}
|
1 |
/*
|
2 |
* My Custom Functions
|
3 |
* Style sheet for plugin's page
|
4 |
+
* @since 2.0
|
5 |
* @agareginyan
|
6 |
*/
|
7 |
|
28 |
padding: 0;
|
29 |
}
|
30 |
|
31 |
+
h3.title {
|
32 |
+
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
33 |
+
border-bottom: 1px solid #eee;
|
34 |
+
}
|
35 |
+
|
36 |
+
.inner-sidebar h3.title {
|
37 |
+
text-align: center;
|
38 |
+
}
|
39 |
+
|
40 |
+
td.help-text {
|
41 |
+
font-style: italic;
|
42 |
+
font-size: 12px !important;
|
43 |
+
float: left;
|
44 |
+
clear: left;
|
45 |
+
color: #797979;
|
46 |
+
line-height: 15px;
|
47 |
+
padding-top: 0px !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
.postbox a {
|
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;
|
65 |
+
margin-left: 5px;
|
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 |
+
}
|
90 |
+
|
91 |
+
#about {
|
92 |
+
text-align: center;
|
93 |
+
}
|
94 |
+
|
95 |
+
#using {
|
96 |
+
text-align: center;
|
97 |
+
}
|
98 |
+
|
99 |
+
#help {
|
100 |
+
text-align: center;
|
101 |
+
}
|
102 |
+
|
103 |
+
#donate {
|
104 |
+
text-align: center;
|
105 |
}
|
106 |
|
107 |
+
#freelance {
|
|
|
|
|
|
|
|
|
108 |
text-align: center;
|
|
|
109 |
}
|
inc/thanks.png
ADDED
Binary file
|
languages/MCFunctions-ru_RU.mo
ADDED
Binary file
|
languages/MCFunctions-ru_RU.po
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: My Custom Functions\n"
|
4 |
+
"POT-Creation-Date: 2016-04-03 12:38+0300\n"
|
5 |
+
"PO-Revision-Date: 2016-04-03 12:38+0300\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: ru\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
13 |
+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
14 |
+
"X-Generator: Poedit 1.8.4\n"
|
15 |
+
"X-Poedit-Basepath: ..\n"
|
16 |
+
"X-Poedit-WPHeader: my-custom-functions.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
+
|
24 |
+
#: inc/settings_page.php:21
|
25 |
+
msgid "Custom functions updated successfully."
|
26 |
+
msgstr "Пользовательские функции успешно обновлены."
|
27 |
+
|
28 |
+
#: inc/settings_page.php:32
|
29 |
+
msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
|
30 |
+
msgstr ""
|
31 |
+
"Извините, но ваш код вызывает \"Fatal error\", так что он не будет применён!"
|
32 |
+
|
33 |
+
#: inc/settings_page.php:33
|
34 |
+
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:73
|
39 |
+
msgid "My Custom Functions"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: inc/settings_page.php:46
|
43 |
+
msgid ""
|
44 |
+
"by <a href=\"http://www.arthurgareginyan.com\" target=\"_blank\">Arthur "
|
45 |
+
"\"Berserkr\" Gareginyan</a>"
|
46 |
+
msgstr ""
|
47 |
+
"от <a href=“http://www.arthurgareginyan.com” target=“_blank”>Артур "
|
48 |
+
"“Berserkr” Гарегинян</a>"
|
49 |
+
|
50 |
+
#: inc/settings_page.php:57
|
51 |
+
msgid "About"
|
52 |
+
msgstr "О плагине"
|
53 |
+
|
54 |
+
#: inc/settings_page.php:59
|
55 |
+
msgid ""
|
56 |
+
"This plugin allows you to easily and safely add your own functions, snippets "
|
57 |
+
"or any custom code to your website."
|
58 |
+
msgstr ""
|
59 |
+
"Этот плагин позволяет легко и безопасно добавлять свои собственные функции, "
|
60 |
+
"сниппеты или любой пользовательский код на ваш веб-сайт."
|
61 |
+
|
62 |
+
#: inc/settings_page.php:64
|
63 |
+
msgid "Using"
|
64 |
+
msgstr "Использование:"
|
65 |
+
|
66 |
+
#: inc/settings_page.php:66
|
67 |
+
msgid ""
|
68 |
+
"To use, enter your custom functions, then click \"Save Changes\". It's that "
|
69 |
+
"simple!"
|
70 |
+
msgstr ""
|
71 |
+
"Для использования, введите ваши пользовательские функции, затем нажмите "
|
72 |
+
"кнопку “Сохранить изменения”. Это так просто!"
|
73 |
+
|
74 |
+
#: inc/settings_page.php:71
|
75 |
+
msgid "Help"
|
76 |
+
msgstr "Помощь"
|
77 |
+
|
78 |
+
#: inc/settings_page.php:73
|
79 |
+
msgid "If you want more options then tell me and I will be happy to add it."
|
80 |
+
msgstr ""
|
81 |
+
"Если вы хотите больше опций, то скажите мне об этом и я буду счастлив "
|
82 |
+
"добавить их."
|
83 |
+
|
84 |
+
#: inc/settings_page.php:79
|
85 |
+
msgid "Donate"
|
86 |
+
msgstr "Пожертвование"
|
87 |
+
|
88 |
+
#: inc/settings_page.php:82
|
89 |
+
msgid ""
|
90 |
+
"If you like this plugin and find it useful, help me to make this plugin even "
|
91 |
+
"better and keep it up-to-date."
|
92 |
+
msgstr ""
|
93 |
+
"Если вам нравится этот плагин и вы находите его полезным, то помогите мне "
|
94 |
+
"сделать его ещё лучше."
|
95 |
+
|
96 |
+
#: inc/settings_page.php:86
|
97 |
+
msgid "Thanks for your support!"
|
98 |
+
msgstr "Спасибо за вашу поддержку!"
|
99 |
+
|
100 |
+
#: inc/settings_page.php:91
|
101 |
+
msgid "Freelance"
|
102 |
+
msgstr "Фриланс"
|
103 |
+
|
104 |
+
#: inc/settings_page.php:94
|
105 |
+
msgid ""
|
106 |
+
"Hello, my name is Arthur and I'm a freelance web designer and developer."
|
107 |
+
msgstr "Привет, меня зовут Артур и Я внештатный веб-дизайнер и разработчик."
|
108 |
+
|
109 |
+
#: inc/settings_page.php:95
|
110 |
+
msgid ""
|
111 |
+
"Share your thoughts with me. You may have a brilliant idea in your mind and "
|
112 |
+
"I can make it happen, so let’s get started!"
|
113 |
+
msgstr ""
|
114 |
+
"Поделитесь со мной своими мыслями. У вас может быть блестящая идея в уме, а "
|
115 |
+
"я могу сделать её явью, так что давайте начнём!"
|
116 |
+
|
117 |
+
#: inc/settings_page.php:119
|
118 |
+
msgid "Functions"
|
119 |
+
msgstr "Функции"
|
120 |
+
|
121 |
+
#: inc/settings_page.php:126
|
122 |
+
msgid "Save Changes"
|
123 |
+
msgstr "Сохранить изменения"
|
124 |
+
|
125 |
+
#: my-custom-functions.php:60
|
126 |
+
msgid "Settings"
|
127 |
+
msgstr "Настройки"
|
128 |
+
|
129 |
+
#: my-custom-functions.php:73
|
130 |
+
msgid "Custom Functions"
|
131 |
+
msgstr "Пользовательские Функции"
|
132 |
+
|
133 |
+
#. Plugin URI of the plugin/theme
|
134 |
+
msgid "https://github.com/ArthurGareginyan/my-custom-functions"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#. Description of the plugin/theme
|
138 |
+
msgid ""
|
139 |
+
"Easily and safely add your own functions, snippets or any custom codes "
|
140 |
+
"directly out of your WordPress Dashboard without need of an external editor."
|
141 |
+
msgstr ""
|
142 |
+
"Просто и безопасно добавляйте свои собственные функции, сниппеты или любые "
|
143 |
+
"пользовательские коды непосредственно из вашего WordPress Dashboard без "
|
144 |
+
"необходимости во внешнем редакторе."
|
145 |
+
|
146 |
+
#. Author of the plugin/theme
|
147 |
+
msgid "Arthur \"Berserkr\" Gareginyan"
|
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 "
|
157 |
+
#~ "editor."
|
158 |
+
#~ msgstr ""
|
159 |
+
#~ "ПРОСТО и БЕЗОПАСНО добавляйте свои собственные функции, сниппеты или "
|
160 |
+
#~ "любые пользовательские коды непосредственно из вашего WordPress Dashboard "
|
161 |
+
#~ "без необходимости во внешнем редакторе."
|
162 |
+
|
163 |
+
#~ msgid ""
|
164 |
+
#~ "To use, enter your custom functions, then click \"Update Custom Functions"
|
165 |
+
#~ "\". It's that simple!"
|
166 |
+
#~ msgstr ""
|
167 |
+
#~ "Для использования, введите ваши пользовательские функции, затем нажмите "
|
168 |
+
#~ "кнопку \"Обновить Пользовательские Функции\". Это так просто!"
|
169 |
+
|
170 |
+
#~ msgid ""
|
171 |
+
#~ "This plugin allows you to EASILY and SAFELY add your own functions, "
|
172 |
+
#~ "snippets or any custom code to your site."
|
173 |
+
#~ msgstr ""
|
174 |
+
#~ "Этот плагин позволяет легко и безопасно добавлять свои собственные "
|
175 |
+
#~ "функции, сниппеты или любой пользовательский код на ваш веб-сайт."
|
176 |
+
|
177 |
+
#~ msgid "Update Custom Functions"
|
178 |
+
#~ msgstr "Обновить Пользовательские Функции"
|
179 |
+
|
180 |
+
#~ msgid "If you find it useful, consider making a donation:"
|
181 |
+
#~ msgstr ""
|
182 |
+
#~ "Если вы находите её полезной, рассмотрите возможность сделать "
|
183 |
+
#~ "пожертвование:"
|
184 |
+
|
185 |
+
#~ msgid ""
|
186 |
+
#~ "EASILY and SAFELY add your own functions, snippets or any custom codes "
|
187 |
+
#~ "directly out of your WordPress Dashbord without need of an external "
|
188 |
+
#~ "editor."
|
189 |
+
#~ msgstr ""
|
190 |
+
#~ "ПРОСТО и БЕЗОПАСНО добавляйте свои собственные функции, сниппеты или "
|
191 |
+
#~ "любые пользовательские коды непосредственно из вашего WordPress Dashboard "
|
192 |
+
#~ "без необходимости во внешнем редакторе."
|
languages/{mcfunctions.pot → MCFunctions.pot}
RENAMED
@@ -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-
|
7 |
"PO-Revision-Date: 2015-08-30 16:22+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
@@ -20,65 +20,109 @@ msgstr ""
|
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
|
23 |
-
#: inc/settings_page.php:
|
24 |
msgid "Custom functions updated successfully."
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: inc/settings_page.php:
|
28 |
msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: inc/settings_page.php:
|
32 |
msgid "Please, check the code and try again."
|
33 |
msgstr ""
|
34 |
|
35 |
#. Plugin Name of the plugin/theme
|
36 |
-
#: inc/settings_page.php:
|
37 |
msgid "My Custom Functions"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: inc/settings_page.php:
|
41 |
msgid ""
|
42 |
"by <a href=\"http://www.arthurgareginyan.com\" target=\"_blank\">Arthur "
|
43 |
"\"Berserkr\" Gareginyan</a>"
|
44 |
msgstr ""
|
45 |
|
|
|
|
|
|
|
|
|
46 |
#: inc/settings_page.php:59
|
47 |
msgid ""
|
48 |
-
"This plugin allows you to
|
49 |
-
"or any custom code to your
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: inc/settings_page.php:
|
|
|
|
|
|
|
|
|
53 |
msgid ""
|
54 |
-
"To use, enter your custom functions, then click \"
|
55 |
-
"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: inc/settings_page.php:
|
59 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: inc/settings_page.php:
|
63 |
-
msgid "
|
64 |
msgstr ""
|
65 |
|
66 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
msgid "Settings"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: my-custom-functions.php:
|
71 |
msgid "Custom Functions"
|
72 |
msgstr ""
|
73 |
|
74 |
#. Plugin URI of the plugin/theme
|
75 |
-
msgid ""
|
76 |
-
"http://mycyberuniverse.com/my_programs/wp-plugin-my-custom-functions.html"
|
77 |
msgstr ""
|
78 |
|
79 |
#. Description of the plugin/theme
|
80 |
msgid ""
|
81 |
-
"
|
82 |
"directly out of your WordPress Dashboard without need of an external editor."
|
83 |
msgstr ""
|
84 |
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: My Custom Functions\n"
|
6 |
+
"POT-Creation-Date: 2016-04-03 12:38+0300\n"
|
7 |
"PO-Revision-Date: 2015-08-30 16:22+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
|
23 |
+
#: inc/settings_page.php:21
|
24 |
msgid "Custom functions updated successfully."
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: inc/settings_page.php:32
|
28 |
msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: inc/settings_page.php:33
|
32 |
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:73
|
37 |
msgid "My Custom Functions"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: inc/settings_page.php:46
|
41 |
msgid ""
|
42 |
"by <a href=\"http://www.arthurgareginyan.com\" target=\"_blank\">Arthur "
|
43 |
"\"Berserkr\" Gareginyan</a>"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: inc/settings_page.php:57
|
47 |
+
msgid "About"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
#: inc/settings_page.php:59
|
51 |
msgid ""
|
52 |
+
"This plugin allows you to easily and safely add your own functions, snippets "
|
53 |
+
"or any custom code to your website."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: inc/settings_page.php:64
|
57 |
+
msgid "Using"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: inc/settings_page.php:66
|
61 |
msgid ""
|
62 |
+
"To use, enter your custom functions, then click \"Save Changes\". It's that "
|
63 |
+
"simple!"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: inc/settings_page.php:71
|
67 |
+
msgid "Help"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: inc/settings_page.php:73
|
71 |
+
msgid "If you want more options then tell me and I will be happy to add it."
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: inc/settings_page.php:79
|
75 |
+
msgid "Donate"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: inc/settings_page.php:82
|
79 |
+
msgid ""
|
80 |
+
"If you like this plugin and find it useful, help me to make this plugin even "
|
81 |
+
"better and keep it up-to-date."
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: inc/settings_page.php:86
|
85 |
+
msgid "Thanks for your support!"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: inc/settings_page.php:91
|
89 |
+
msgid "Freelance"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: inc/settings_page.php:94
|
93 |
+
msgid ""
|
94 |
+
"Hello, my name is Arthur and I'm a freelance web designer and developer."
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: inc/settings_page.php:95
|
98 |
+
msgid ""
|
99 |
+
"Share your thoughts with me. You may have a brilliant idea in your mind and "
|
100 |
+
"I can make it happen, so let’s get started!"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: inc/settings_page.php:119
|
104 |
+
msgid "Functions"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: inc/settings_page.php:126
|
108 |
+
msgid "Save Changes"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: my-custom-functions.php:60
|
112 |
msgid "Settings"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: my-custom-functions.php:73
|
116 |
msgid "Custom Functions"
|
117 |
msgstr ""
|
118 |
|
119 |
#. Plugin URI of the plugin/theme
|
120 |
+
msgid "https://github.com/ArthurGareginyan/my-custom-functions"
|
|
|
121 |
msgstr ""
|
122 |
|
123 |
#. Description of the plugin/theme
|
124 |
msgid ""
|
125 |
+
"Easily and safely add your own functions, snippets or any custom codes "
|
126 |
"directly out of your WordPress Dashboard without need of an external editor."
|
127 |
msgstr ""
|
128 |
|
languages/mcfunctions-ru_RU.mo
DELETED
Binary file
|
languages/mcfunctions-ru_RU.po
DELETED
@@ -1,112 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: My Custom Functions\n"
|
4 |
-
"POT-Creation-Date: 2016-02-04 19:35+0300\n"
|
5 |
-
"PO-Revision-Date: 2016-02-04 21:17+0300\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"Language: ru\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
13 |
-
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
14 |
-
"X-Generator: Poedit 1.8.4\n"
|
15 |
-
"X-Poedit-Basepath: ..\n"
|
16 |
-
"X-Poedit-WPHeader: my-custom-functions.php\n"
|
17 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
-
"X-Poedit-SearchPath-0: .\n"
|
22 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
-
|
24 |
-
#: inc/settings_page.php:25
|
25 |
-
msgid "Custom functions updated successfully."
|
26 |
-
msgstr "Пользовательские функции успешно обновлены."
|
27 |
-
|
28 |
-
#: inc/settings_page.php:36
|
29 |
-
msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
|
30 |
-
msgstr ""
|
31 |
-
"Извините, но ваш код вызывает \"Fatal error\", так что он не будет применён!"
|
32 |
-
|
33 |
-
#: inc/settings_page.php:37
|
34 |
-
msgid "Please, check the code and try again."
|
35 |
-
msgstr "Пожалуйста, проверьте код и попробуйте еще раз."
|
36 |
-
|
37 |
-
#. Plugin Name of the plugin/theme
|
38 |
-
#: inc/settings_page.php:47 my-custom-functions.php:71
|
39 |
-
msgid "My Custom Functions"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: inc/settings_page.php:50
|
43 |
-
msgid ""
|
44 |
-
"by <a href=\"http://www.arthurgareginyan.com\" target=\"_blank\">Arthur "
|
45 |
-
"\"Berserkr\" Gareginyan</a>"
|
46 |
-
msgstr ""
|
47 |
-
"от <a href=“http://www.arthurgareginyan.com” target=“_blank”>Артур "
|
48 |
-
"“Berserkr” Гарегинян</a>"
|
49 |
-
|
50 |
-
#: inc/settings_page.php:59
|
51 |
-
msgid ""
|
52 |
-
"This plugin allows you to EASILY and SAFELY add your own functions, snippets "
|
53 |
-
"or any custom code to your site."
|
54 |
-
msgstr ""
|
55 |
-
"Этот плагин позволяет легко и безопасно добавлять свои собственные функции, "
|
56 |
-
"сниппеты или любой пользовательский код на ваш веб-сайт."
|
57 |
-
|
58 |
-
#: inc/settings_page.php:62
|
59 |
-
msgid ""
|
60 |
-
"To use, enter your custom functions, then click \"Update Custom Functions\". "
|
61 |
-
"It's that simple!"
|
62 |
-
msgstr ""
|
63 |
-
"Для использования, введите ваши пользовательские функции, затем нажмите "
|
64 |
-
"кнопку \"Обновить Пользовательские Функции\". Это так просто!"
|
65 |
-
|
66 |
-
#: inc/settings_page.php:64
|
67 |
-
msgid "Update Custom Functions"
|
68 |
-
msgstr "Обновить Пользовательские Функции"
|
69 |
-
|
70 |
-
#: inc/settings_page.php:65
|
71 |
-
msgid "If you find it useful, consider making a donation:"
|
72 |
-
msgstr ""
|
73 |
-
"Если вы находите её полезной, рассмотрите возможность сделать пожертвование:"
|
74 |
-
|
75 |
-
#: my-custom-functions.php:58
|
76 |
-
msgid "Settings"
|
77 |
-
msgstr "Настройки"
|
78 |
-
|
79 |
-
#: my-custom-functions.php:71
|
80 |
-
msgid "Custom Functions"
|
81 |
-
msgstr "Пользовательские Функции"
|
82 |
-
|
83 |
-
#. Plugin URI of the plugin/theme
|
84 |
-
msgid ""
|
85 |
-
"http://mycyberuniverse.com/my_programs/wp-plugin-my-custom-functions.html"
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#. Description of the plugin/theme
|
89 |
-
msgid ""
|
90 |
-
"EASILY and SAFELY add your own functions, snippets or any custom codes "
|
91 |
-
"directly out of your WordPress Dashboard without need of an external editor."
|
92 |
-
msgstr ""
|
93 |
-
"ПРОСТО и БЕЗОПАСНО добавляйте свои собственные функции, сниппеты или любые "
|
94 |
-
"пользовательские коды непосредственно из вашего WordPress Dashboard без "
|
95 |
-
"необходимости во внешнем редакторе."
|
96 |
-
|
97 |
-
#. Author of the plugin/theme
|
98 |
-
msgid "Arthur \"Berserkr\" Gareginyan"
|
99 |
-
msgstr "Артур “Берсерк” Гарегинян"
|
100 |
-
|
101 |
-
#. Author URI of the plugin/theme
|
102 |
-
msgid "http://www.arthurgareginyan.com"
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#~ msgid ""
|
106 |
-
#~ "EASILY and SAFELY add your own functions, snippets or any custom codes "
|
107 |
-
#~ "directly out of your WordPress Dashbord without need of an external "
|
108 |
-
#~ "editor."
|
109 |
-
#~ msgstr ""
|
110 |
-
#~ "ПРОСТО и БЕЗОПАСНО добавляйте свои собственные функции, сниппеты или "
|
111 |
-
#~ "любые пользовательские коды непосредственно из вашего WordPress Dashboard "
|
112 |
-
#~ "без необходимости во внешнем редакторе."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my-custom-functions.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: My Custom Functions
|
4 |
-
* Plugin URI:
|
5 |
-
* Description:
|
6 |
* Author: Arthur "Berserkr" Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
-
* Version:
|
9 |
* License: GPL3
|
10 |
-
* Text Domain:
|
11 |
* Domain Path: /languages/
|
12 |
*
|
13 |
* Copyright 2014-2015 Arthur "Berserkr" Gareginyan (email : arthurgareginyan@gmail.com)
|
@@ -31,18 +31,30 @@
|
|
31 |
|
32 |
/**
|
33 |
* Prevent Direct Access
|
|
|
|
|
34 |
*/
|
35 |
defined('ABSPATH') or die("Restricted access!");
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* Register text domain
|
39 |
*
|
40 |
-
* @since
|
41 |
*/
|
42 |
-
function
|
43 |
-
load_plugin_textdomain( '
|
44 |
}
|
45 |
-
add_action( 'init', '
|
46 |
|
47 |
/**
|
48 |
* Print direct link to Custom Functions admin page
|
@@ -50,52 +62,51 @@ add_action( 'init', 'anarcho_cfunctions_textdomain' );
|
|
50 |
* Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
|
51 |
* and inserts a link to the Custom Functions admin page
|
52 |
*
|
53 |
-
* @since
|
54 |
* @param array $links Array of links generated by WP in Plugin Admin page.
|
55 |
* @return array Array of links to be output on Plugin Admin page.
|
56 |
*/
|
57 |
-
function
|
58 |
-
$settings_page = '<a href="' . admin_url( 'themes.php?page=my-custom-functions.php' ) .'">' . __( 'Settings', '
|
59 |
array_unshift( $links, $settings_page );
|
60 |
return $links;
|
61 |
}
|
62 |
-
|
63 |
-
add_filter( "plugin_action_links_$plugin", 'anarcho_cfunctions_settings_link' );
|
64 |
|
65 |
/**
|
66 |
* Register "Custom Functions" submenu in "Appearance" Admin Menu
|
67 |
*
|
68 |
* @since 1.7
|
69 |
*/
|
70 |
-
function
|
71 |
-
add_theme_page( __( 'My Custom Functions', '
|
72 |
}
|
73 |
-
add_action( 'admin_menu', '
|
74 |
|
75 |
/**
|
76 |
* Attach Settings Page
|
77 |
*
|
78 |
* @since 0.2
|
79 |
*/
|
80 |
-
require_once(
|
81 |
|
82 |
/**
|
83 |
* Register settings
|
84 |
*
|
85 |
-
* @since
|
86 |
*/
|
87 |
-
function
|
88 |
register_setting( 'anarcho_cfunctions_settings_group', 'anarcho_cfunctions_settings' );
|
89 |
register_setting( 'anarcho_cfunctions_settings_group', 'anarcho_cfunctions_pro_error' );
|
90 |
}
|
91 |
-
add_action( 'admin_init', '
|
92 |
|
93 |
/**
|
94 |
* Enqueue the CodeMirror scripts and style sheet for setting's page
|
95 |
*
|
96 |
-
* @since
|
97 |
*/
|
98 |
-
function
|
99 |
|
100 |
// Return if the page is not a settings page of this plugin
|
101 |
if ( 'appearance_page_my-custom-functions' != $hook ) {
|
@@ -103,21 +114,23 @@ function anarcho_enqueue_codemirror_scripts($hook) {
|
|
103 |
}
|
104 |
|
105 |
// CodeMirror
|
106 |
-
wp_enqueue_script('codemirror',
|
107 |
-
wp_enqueue_style('codemirror_style',
|
108 |
-
|
|
|
|
|
109 |
|
110 |
// Style sheet
|
111 |
-
wp_enqueue_style('styles',
|
112 |
}
|
113 |
-
add_action( 'admin_enqueue_scripts', '
|
114 |
|
115 |
/**
|
116 |
* Execute My Custom Functions
|
117 |
*
|
118 |
* @since 1.4
|
119 |
*/
|
120 |
-
function
|
121 |
// Read from BD
|
122 |
$options = get_option( 'anarcho_cfunctions_settings' );
|
123 |
$content = $options['anarcho_cfunctions-content'];
|
@@ -137,18 +150,18 @@ function anarcho_cfunctions_exec() {
|
|
137 |
}
|
138 |
}
|
139 |
}
|
140 |
-
|
141 |
|
142 |
/**
|
143 |
* Delete Options on Uninstall
|
144 |
*
|
145 |
* @since 0.1
|
146 |
*/
|
147 |
-
function
|
148 |
delete_option( 'anarcho_cfunctions_settings' );
|
149 |
delete_option( 'anarcho_cfunctions_error' );
|
150 |
}
|
151 |
-
register_uninstall_hook( __FILE__, '
|
152 |
|
153 |
/* That's all folks! */
|
154 |
?>
|
1 |
<?php
|
2 |
/**
|
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 "Berserkr" Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
+
* Version: 2.0
|
9 |
* License: GPL3
|
10 |
+
* Text Domain: MCFunctions
|
11 |
* Domain Path: /languages/
|
12 |
*
|
13 |
* Copyright 2014-2015 Arthur "Berserkr" Gareginyan (email : arthurgareginyan@gmail.com)
|
31 |
|
32 |
/**
|
33 |
* Prevent Direct Access
|
34 |
+
*
|
35 |
+
* @since 0.1
|
36 |
*/
|
37 |
defined('ABSPATH') or die("Restricted access!");
|
38 |
|
39 |
+
/**
|
40 |
+
* Plugin constants
|
41 |
+
*
|
42 |
+
* @since 2.0
|
43 |
+
*/
|
44 |
+
defined('MCFUNC_DIR') or define('MCFUNC_DIR', dirname(plugin_basename(__FILE__)));
|
45 |
+
defined('MCFUNC_BASE') or define('MCFUNC_BASE', plugin_basename(__FILE__));
|
46 |
+
defined('MCFUNC_URL') or define('MCFUNC_URL', plugin_dir_url(__FILE__));
|
47 |
+
defined('MCFUNC_PATH') or define('MCFUNC_PATH', plugin_dir_path(__FILE__));
|
48 |
+
|
49 |
/**
|
50 |
* Register text domain
|
51 |
*
|
52 |
+
* @since 2.0
|
53 |
*/
|
54 |
+
function MCFunctions_textdomain() {
|
55 |
+
load_plugin_textdomain( 'MCFunctions', false, MCFUNC_DIR . '/languages/' );
|
56 |
}
|
57 |
+
add_action( 'init', 'MCFunctions_textdomain' );
|
58 |
|
59 |
/**
|
60 |
* Print direct link to Custom Functions admin page
|
62 |
* Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
|
63 |
* and inserts a link to the Custom Functions admin page
|
64 |
*
|
65 |
+
* @since 2.0
|
66 |
* @param array $links Array of links generated by WP in Plugin Admin page.
|
67 |
* @return array Array of links to be output on Plugin Admin page.
|
68 |
*/
|
69 |
+
function MCFunctions_settings_link( $links ) {
|
70 |
+
$settings_page = '<a href="' . admin_url( 'themes.php?page=my-custom-functions.php' ) .'">' . __( 'Settings', 'MCFunctions' ) . '</a>';
|
71 |
array_unshift( $links, $settings_page );
|
72 |
return $links;
|
73 |
}
|
74 |
+
add_filter( "plugin_action_links_".MCFUNC_BASE, 'MCFunctions_settings_link' );
|
|
|
75 |
|
76 |
/**
|
77 |
* Register "Custom Functions" submenu in "Appearance" Admin Menu
|
78 |
*
|
79 |
* @since 1.7
|
80 |
*/
|
81 |
+
function MCFunctions_register_submenu_page() {
|
82 |
+
add_theme_page( __( 'My Custom Functions', 'MCFunctions' ), __( 'Custom Functions', 'MCFunctions' ), 'edit_theme_options', basename( __FILE__ ), 'MCFunctions_render_submenu_page' );
|
83 |
}
|
84 |
+
add_action( 'admin_menu', 'MCFunctions_register_submenu_page' );
|
85 |
|
86 |
/**
|
87 |
* Attach Settings Page
|
88 |
*
|
89 |
* @since 0.2
|
90 |
*/
|
91 |
+
require_once( MCFUNC_PATH . 'inc/settings_page.php' );
|
92 |
|
93 |
/**
|
94 |
* Register settings
|
95 |
*
|
96 |
+
* @since 2.0
|
97 |
*/
|
98 |
+
function MCFunctions_register_settings() {
|
99 |
register_setting( 'anarcho_cfunctions_settings_group', 'anarcho_cfunctions_settings' );
|
100 |
register_setting( 'anarcho_cfunctions_settings_group', 'anarcho_cfunctions_pro_error' );
|
101 |
}
|
102 |
+
add_action( 'admin_init', 'MCFunctions_register_settings' );
|
103 |
|
104 |
/**
|
105 |
* Enqueue the CodeMirror scripts and style sheet for setting's page
|
106 |
*
|
107 |
+
* @since 2.0
|
108 |
*/
|
109 |
+
function MCFunctions_enqueue_codemirror_scripts($hook) {
|
110 |
|
111 |
// Return if the page is not a settings page of this plugin
|
112 |
if ( 'appearance_page_my-custom-functions' != $hook ) {
|
114 |
}
|
115 |
|
116 |
// CodeMirror
|
117 |
+
wp_enqueue_script('codemirror', MCFUNC_URL . 'inc/codemirror/codemirror-compressed.js');
|
118 |
+
wp_enqueue_style('codemirror_style', MCFUNC_URL . 'inc/codemirror/codemirror.css');
|
119 |
+
|
120 |
+
// JS functions
|
121 |
+
wp_enqueue_script('js-functions', MCFUNC_URL . 'inc/js-functions.js', array(), false, true);
|
122 |
|
123 |
// Style sheet
|
124 |
+
wp_enqueue_style('styles', MCFUNC_URL . 'inc/style.css');
|
125 |
}
|
126 |
+
add_action( 'admin_enqueue_scripts', 'MCFunctions_enqueue_codemirror_scripts' );
|
127 |
|
128 |
/**
|
129 |
* Execute My Custom Functions
|
130 |
*
|
131 |
* @since 1.4
|
132 |
*/
|
133 |
+
function MCFunctions_exec() {
|
134 |
// Read from BD
|
135 |
$options = get_option( 'anarcho_cfunctions_settings' );
|
136 |
$content = $options['anarcho_cfunctions-content'];
|
150 |
}
|
151 |
}
|
152 |
}
|
153 |
+
MCFunctions_exec();
|
154 |
|
155 |
/**
|
156 |
* Delete Options on Uninstall
|
157 |
*
|
158 |
* @since 0.1
|
159 |
*/
|
160 |
+
function MCFunctions_uninstall() {
|
161 |
delete_option( 'anarcho_cfunctions_settings' );
|
162 |
delete_option( 'anarcho_cfunctions_error' );
|
163 |
}
|
164 |
+
register_uninstall_hook( __FILE__, 'MCFunctions_uninstall' );
|
165 |
|
166 |
/* That's all folks! */
|
167 |
?>
|
readme.txt
CHANGED
@@ -4,15 +4,15 @@ 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: 1.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
|
14 |
== Description ==
|
15 |
-
An easy to use WordPress plugin that lets you
|
16 |
|
17 |
It’s purpose is to provide a familiar experience to WordPress users. No need any more editing the functions.php file of your theme. Just add your code in the field on the page and this plugin will do the rest for you.
|
18 |
|
@@ -22,29 +22,31 @@ And your website will keep on working, no matter how many times you upgrade or s
|
|
22 |
|
23 |
This is a simple and perfect tool to use as your site's functionality plugin.
|
24 |
|
25 |
-
|
26 |
= Features =
|
27 |
|
28 |
**Current features:**
|
29 |
|
30 |
-
* Safety execution code (Checks the entered code for fatal errors)
|
31 |
-
* Syntax highlighting (by CodeMirror)
|
32 |
-
* Line numbering (by CodeMirror)
|
33 |
-
* Input areas allow for tab indentation
|
34 |
-
* Ready for translation (.pot file included)
|
35 |
-
*
|
|
|
36 |
|
37 |
**Coming soon:**
|
38 |
|
39 |
-
* Trigger to temporary disable the custom code
|
40 |
-
* Backuping the custom code to a file
|
41 |
-
|
|
|
42 |
|
43 |
-
|
44 |
|
45 |
**Please Vote and Enjoy**
|
46 |
|
47 |
-
|
|
|
48 |
|
49 |
== Installation ==
|
50 |
Install "My Custom Functions" just as you would any other WordPress Plugin.
|
@@ -70,7 +72,7 @@ After installation, a "`Custom Functions`" menu item will appear in the "`Appear
|
|
70 |
|
71 |
|
72 |
== Frequently Asked Questions ==
|
73 |
-
= Q. Will this Plugin work on my WordPress.
|
74 |
A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.
|
75 |
|
76 |
= Q. How much of PHP code (characters) I can enter in the text field? =
|
@@ -79,20 +81,29 @@ A. I don't limit the number of characters.
|
|
79 |
= Q. Can I use this plugin on my language? =
|
80 |
A. Yes. But If your language is not available then you can make one. This plugin is ready for translation. The `.pot` file is included and placed in "`languages`" folder. Many of plugin users would be delighted if you shared your translation with the community. Just send the translation files (`*.po, *.mo`) to me at the arthurgareginyan@gmail.com and I will include the translation within the next plugin update.
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
= Q. What to do if this plugin caused the white screen? =
|
83 |
A. This plugin is not perfect, so there are times when the entered custom code causes the error and white screen. If this happened with you then do the following.
|
84 |
|
85 |
Your code stored in the Database of your web-site. For getting your code, you can go to the `Database` —> Table "`wp_options`" —> Option "`anarcho_cfunctions_settings`" —> "`option_value`".
|
86 |
|
87 |
Or you can use the FTP method, for access to plugin's settings page. Go to plugin's folder (in `wp-content/plugins/`). Open "`my-custom-functions.php`" file. Find this line of code:
|
88 |
-
`
|
89 |
and comment it by placing two slashes (`//`) in beginning. Then you can go to plugin's settings page and edit your entered custom code. After editing, just delete two slashes which you written before.
|
90 |
|
91 |
= Q. Where to report bug if found? =
|
92 |
A. Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions) and report.
|
93 |
|
94 |
= Q. Where to share any ideas or suggestions to make the plugin better? =
|
95 |
-
A. Please
|
|
|
|
|
|
|
96 |
|
97 |
|
98 |
== Screenshots ==
|
@@ -111,10 +122,14 @@ This plugin is licensed under the [GNU General Public License, version 3 (GPLv3)
|
|
111 |
and is distributed free of charge.
|
112 |
Commercial licensing (e.g. for projects that can’t use an open-source license) is available upon request.
|
113 |
|
|
|
|
|
|
|
|
|
114 |
**Support**
|
115 |
|
116 |
* 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.
|
117 |
-
* Do you have any ideas or suggestions to make the plugin better? I can’t wait to hear them! Please share! [
|
118 |
|
119 |
**Please Vote and Enjoy**
|
120 |
|
@@ -123,11 +138,21 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
123 |
**Links**
|
124 |
|
125 |
* [Developer Website](http://www.arthurgareginyan.com)
|
126 |
-
* [Dedicated Plugin Page](http://mycyberuniverse.com/my_programs/wp-plugin-my-custom-functions.html)
|
127 |
* [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions)
|
128 |
|
129 |
|
130 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
= 1.9 =
|
132 |
* Authors URI changed.
|
133 |
* Donate link changed.
|
@@ -170,37 +195,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
170 |
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
-
=
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
* Russian translation updated.
|
179 |
-
= 1.8 =
|
180 |
-
* The mode of CodeMirror editor changed from 'application/x-httpd-php' (HTML+PHP) to 'text/x-php' (PHP).
|
181 |
-
* Placeholder of <textarea> changed to "/* Enter Your Custom Functions Here */".
|
182 |
-
* Removed more unused do_action() from settings_page.php file.
|
183 |
-
= 1.7 =
|
184 |
-
* The stylesheet of plugin's page moved to separate file.
|
185 |
-
* The javascript from settings_page.php moved to separate file.
|
186 |
-
* Textdomain changed to "mcfunctions".
|
187 |
-
* Changed the style of title in plugin's page.
|
188 |
-
* The LICENSE file renamed to LICENSE.txt
|
189 |
-
= 1.6 =
|
190 |
-
* Fixed the issue due to which nothing appears below line 26 until you click below that line.
|
191 |
-
* Added "register_setting" for error option.
|
192 |
-
* Corrected comments to source code.
|
193 |
-
= 1.5 =
|
194 |
-
CodeMirror scripts are combined and minified.
|
195 |
-
= 1.4 =
|
196 |
-
Please update to new version!
|
197 |
-
= 1.3 =
|
198 |
-
Please update to new version!
|
199 |
-
= 1.2 =
|
200 |
-
Added the syntax highlighting and line numbering.
|
201 |
-
= 1.1 =
|
202 |
-
Fixed positioning of the sidebar at the plugin page.
|
203 |
-
= 1.0 =
|
204 |
-
Please update to first stable release! Added the check for safety execution code.
|
205 |
-
= 0.2 =
|
206 |
Please update to beta version.
|
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: 1.9
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
+
Easily and safely add your own functions, snippets or any custom codes directly out of your WordPress Dashboard without need of an external editor.
|
12 |
|
13 |
|
14 |
== Description ==
|
15 |
+
An easy to use WordPress plugin that lets you easily and safely add your own functions, snippets or any custom codes for execution in WordPress environment directly out of your WordPress Dashboard without any need of an external editor.
|
16 |
|
17 |
It’s purpose is to provide a familiar experience to WordPress users. No need any more editing the functions.php file of your theme. Just add your code in the field on the page and this plugin will do the rest for you.
|
18 |
|
22 |
|
23 |
This is a simple and perfect tool to use as your site's functionality plugin.
|
24 |
|
|
|
25 |
= Features =
|
26 |
|
27 |
**Current features:**
|
28 |
|
29 |
+
* Safety execution code (Checks the entered code for fatal errors)
|
30 |
+
* Syntax highlighting (by CodeMirror)
|
31 |
+
* Line numbering (by CodeMirror)
|
32 |
+
* Input areas allow for tab indentation
|
33 |
+
* Ready for translation (.pot file included)
|
34 |
+
* Russian translation
|
35 |
+
* CodeMirror scripts are combined and minified
|
36 |
|
37 |
**Coming soon:**
|
38 |
|
39 |
+
* Trigger to temporary disable the custom code
|
40 |
+
* Backuping the custom code to a file
|
41 |
+
|
42 |
+
**Got more ideas? Tell me!**
|
43 |
|
44 |
+
If you have any suggestions to make this plugin better, don't hesitate to contact me.
|
45 |
|
46 |
**Please Vote and Enjoy**
|
47 |
|
48 |
+
Your votes really make a difference! Thanks.
|
49 |
+
|
50 |
|
51 |
== Installation ==
|
52 |
Install "My Custom Functions" just as you would any other WordPress Plugin.
|
72 |
|
73 |
|
74 |
== Frequently Asked Questions ==
|
75 |
+
= Q. Will this Plugin work on my WordPress.COM website? =
|
76 |
A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.
|
77 |
|
78 |
= Q. How much of PHP code (characters) I can enter in the text field? =
|
81 |
= Q. Can I use this plugin on my language? =
|
82 |
A. Yes. But If your language is not available then you can make one. This plugin is ready for translation. The `.pot` file is included and placed in "`languages`" folder. Many of plugin users would be delighted if you shared your translation with the community. Just send the translation files (`*.po, *.mo`) to me at the arthurgareginyan@gmail.com and I will include the translation within the next plugin update.
|
83 |
|
84 |
+
= Q. Does this plugin require modification to the theme? =
|
85 |
+
A. Absolutely not. This plugin is added/configured entirely from the website's Admin section.
|
86 |
+
|
87 |
+
= Q. It's not working. What could be wrong? =
|
88 |
+
A. As with every plugin, it's possible that things don't work. The most common reason for this is that the plugin has a conflict with another plugin you're using. It's impossible to tell what could be wrong exactly, but if you post a support request in the plugin's support forum on WordPress.org, I'd be happy to give it a look and try to help out. Please include as much information as possible, including a link to your website where the problem can be seen.
|
89 |
+
|
90 |
= Q. What to do if this plugin caused the white screen? =
|
91 |
A. This plugin is not perfect, so there are times when the entered custom code causes the error and white screen. If this happened with you then do the following.
|
92 |
|
93 |
Your code stored in the Database of your web-site. For getting your code, you can go to the `Database` —> Table "`wp_options`" —> Option "`anarcho_cfunctions_settings`" —> "`option_value`".
|
94 |
|
95 |
Or you can use the FTP method, for access to plugin's settings page. Go to plugin's folder (in `wp-content/plugins/`). Open "`my-custom-functions.php`" file. Find this line of code:
|
96 |
+
`MCFunctions_exec();`
|
97 |
and comment it by placing two slashes (`//`) in beginning. Then you can go to plugin's settings page and edit your entered custom code. After editing, just delete two slashes which you written before.
|
98 |
|
99 |
= Q. Where to report bug if found? =
|
100 |
A. Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions) and report.
|
101 |
|
102 |
= Q. Where to share any ideas or suggestions to make the plugin better? =
|
103 |
+
A. Please send me email [arthurgareginyan@gmail.com](mailto:arthurgareginyan@gmail.com).
|
104 |
+
|
105 |
+
= Q. I love this plugin! Can I help somehow? =
|
106 |
+
A. Yes, any financial contributions are welcome! Just visit my website and click on the donate link, and thank you! [My website](http://www.arthurgareginyan.com/donate.html)
|
107 |
|
108 |
|
109 |
== Screenshots ==
|
122 |
and is distributed free of charge.
|
123 |
Commercial licensing (e.g. for projects that can’t use an open-source license) is available upon request.
|
124 |
|
125 |
+
**Credits**
|
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 |
|
138 |
**Links**
|
139 |
|
140 |
* [Developer Website](http://www.arthurgareginyan.com)
|
|
|
141 |
* [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions)
|
142 |
|
143 |
|
144 |
== Changelog ==
|
145 |
+
= 2.0 =
|
146 |
+
* New design of settings page (new layout).
|
147 |
+
* Constants variables added.
|
148 |
+
* editor.js deleted.
|
149 |
+
* js-functions.js (file with all js functions) created.
|
150 |
+
* Prefixes changed to "MCFunctions".
|
151 |
+
* Text domain changed to "MCFunctions".
|
152 |
+
* Plugin URI changed to GitHub repository.
|
153 |
+
* Added my personal ad about freelance.
|
154 |
+
* .pot file updated.
|
155 |
+
* Russian translation updated.
|
156 |
= 1.9 =
|
157 |
* Authors URI changed.
|
158 |
* Donate link changed.
|
195 |
|
196 |
|
197 |
== Upgrade Notice ==
|
198 |
+
= 2.0 =
|
199 |
+
Please update to new release!
|
200 |
+
= 1.0 =
|
201 |
+
Please update to first stable release!
|
202 |
+
= 0.2 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
Please update to beta version.
|