Version Description
- Included Swedish translation.
- Added TextDomain functionality for I18n.
Download this release
Release Info
Developer | artstorm |
Plugin | Post Snippets |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- languages/post-snippets-sv_SE.mo +0 -0
- languages/post-snippets-sv_SE.po +97 -0
- languages/post-snippets.pot +107 -0
- post-snippets.php +17 -16
- readme.txt +21 -5
- tinymce/window.php +3 -3
languages/post-snippets-sv_SE.mo
ADDED
Binary file
|
languages/post-snippets-sv_SE.po
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation Template for Post Snippets.
|
2 |
+
# Copyright (C) 2009 Johan Steen
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
#
|
5 |
+
msgid ""
|
6 |
+
msgstr ""
|
7 |
+
"Project-Id-Version: Post Snippets\n"
|
8 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
|
9 |
+
"POT-Creation-Date: 2009-03-24 09:38+0000\n"
|
10 |
+
"PO-Revision-Date: 2009-03-24 11:57+0100\n"
|
11 |
+
"Last-Translator: Johan Steen <artstorm@gmail.com>\n"
|
12 |
+
"Language-Team: <artstorm@gmail.com>\n"
|
13 |
+
"MIME-Version: 1.0\n"
|
14 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
15 |
+
"Content-Transfer-Encoding: 8bit\n"
|
16 |
+
"X-Poedit-Language: Swedish\n"
|
17 |
+
"X-Poedit-Country: SWEDEN\n"
|
18 |
+
|
19 |
+
#: post-snippets.php:75
|
20 |
+
msgid "A snippet named Untitled has been added."
|
21 |
+
msgstr "Ett nytt avsnitt med namnet Untitled har lagts till."
|
22 |
+
|
23 |
+
#: post-snippets.php:88
|
24 |
+
msgid "Snippets have been updated."
|
25 |
+
msgstr "Avsnitten har uppdaterats."
|
26 |
+
|
27 |
+
#: post-snippets.php:104
|
28 |
+
msgid "Selected snippets have been deleted."
|
29 |
+
msgstr "Valda avsnitt har raderats."
|
30 |
+
|
31 |
+
#: post-snippets.php:116
|
32 |
+
msgid "Add New Snippet"
|
33 |
+
msgstr "Lägg Till Nytt Avsnitt"
|
34 |
+
|
35 |
+
#: post-snippets.php:117
|
36 |
+
msgid "Delete Selected"
|
37 |
+
msgstr "Radera Valda"
|
38 |
+
|
39 |
+
#: post-snippets.php:126
|
40 |
+
#: post-snippets.php:135
|
41 |
+
msgid "Title"
|
42 |
+
msgstr "Titel"
|
43 |
+
|
44 |
+
#: post-snippets.php:127
|
45 |
+
#: post-snippets.php:136
|
46 |
+
msgid "Variables"
|
47 |
+
msgstr "Variabler"
|
48 |
+
|
49 |
+
#: post-snippets.php:128
|
50 |
+
#: post-snippets.php:137
|
51 |
+
msgid "Snippet"
|
52 |
+
msgstr "Avsnitt"
|
53 |
+
|
54 |
+
#: post-snippets.php:159
|
55 |
+
msgid "Update Snippets"
|
56 |
+
msgstr "Uppdatera Avsnitt"
|
57 |
+
|
58 |
+
#: post-snippets.php:161
|
59 |
+
msgid "Help"
|
60 |
+
msgstr "Hjälp"
|
61 |
+
|
62 |
+
#: post-snippets.php:162
|
63 |
+
msgid "<strong>Title</strong><br/>Give the snippet a title that helps you identify it in the post editor.<br/><br/><strong>Variables</strong><br/>A comma separated list of custom variables you can reference in your snippet.<br/><br/>Example:<br/>url,name<br/><br/><strong>Snippet</strong><br/>This is the block of text or HTML to insert in the post when you select the snippet from the insert button in the TinyMCE panel in the post editor. If you have entered predefined variables you can reference them from the snippet by enclosing them in {} brackets.<br/><br/>Example:<br/>To reference the variables in the example above, you would enter {url} and {name}.<br/><br/>So if you enter this snippet:<br/><i>This is the website of <a href=\"{url}\">{name}</a></i><br/>You will get the option to replace url and name on insert if they are defined as variables."
|
64 |
+
msgstr "<strong>Titel</strong><br/>Ge avsnittet en titel som hjälper dig att identifiera det i inläggsredigeraren.<br/><br/><strong>Variabler</strong><br/>En kommaseparerad lista av egendefinerade variabler som du kan referera i ditt avsnitt.<br/><br/>Exempel:<br/>url,namn<br/><br/><strong>Avsnitt</strong><br/>Detta är blocket med text eller HTML att lägga till inlägget när du väljer ett avsnitt med insättnings knappen i TinyMCE panelen i inläggsredigeraren. Om du har definerat egna variabler kan du referera dem i avnittet genom att omsluta dem med {}.<br/><br/>Exempel:<br/>För att referera variabler i exemplet ovan, skulle du skriva {url} and {namn}.<br/><br/>Så om du har det här avsnittet:<br/><i>Det är websidan till <a href=\"{url}\">{namn}</a></i><br/>När du infogar avsnittet i ditt inlägg kan du fylla i vad som ska ersätta url och namn."
|
65 |
+
|
66 |
+
#: tinymce/window.php:9
|
67 |
+
msgid "You are not allowed to be here"
|
68 |
+
msgstr "Du har inte tillåtelse att vara här"
|
69 |
+
|
70 |
+
#: tinymce/window.php:109
|
71 |
+
msgid "Cancel"
|
72 |
+
msgstr "Avbryt"
|
73 |
+
|
74 |
+
#: tinymce/window.php:113
|
75 |
+
msgid "Insert"
|
76 |
+
msgstr "Infoga"
|
77 |
+
|
78 |
+
#. Plugin Name of an extension
|
79 |
+
msgid "Post Snippets"
|
80 |
+
msgstr "Post Snippets"
|
81 |
+
|
82 |
+
#. Plugin URI of an extension
|
83 |
+
msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
|
84 |
+
msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
|
85 |
+
|
86 |
+
#. Description of an extension
|
87 |
+
msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button."
|
88 |
+
msgstr "Lagrar avsnitt (snippets) av HTML kod eller återkommande text som du ofta använder i dina inlägg. Du kan använda fördefinerade variabler för att ersätta delar av ditt avsnitt vid infogning. All avsnitt är tillgängliga i inläggsredigeraren via en TinyMCE knapp."
|
89 |
+
|
90 |
+
#. Author of an extension
|
91 |
+
msgid "Johan Steen"
|
92 |
+
msgstr "Johan Steen"
|
93 |
+
|
94 |
+
#. Author URI of an extension
|
95 |
+
msgid "http://coding.cglounge.com/"
|
96 |
+
msgstr "http://coding.cglounge.com/"
|
97 |
+
|
languages/post-snippets.pot
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation Template for Post Snippets.
|
2 |
+
# Copyright (C) 2009 Johan Steen
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
#
|
5 |
+
#, fuzzy
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: Post Snippets\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
|
10 |
+
"POT-Creation-Date: 2009-03-24 09:38+0000\n"
|
11 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: <artstorm@gmail.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=CHARSET\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
|
18 |
+
#: post-snippets.php:75
|
19 |
+
msgid "A snippet named Untitled has been added."
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: post-snippets.php:88
|
23 |
+
msgid "Snippets have been updated."
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: post-snippets.php:104
|
27 |
+
msgid "Selected snippets have been deleted."
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: post-snippets.php:116
|
31 |
+
msgid "Add New Snippet"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: post-snippets.php:117
|
35 |
+
msgid "Delete Selected"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: post-snippets.php:126 post-snippets.php:135
|
39 |
+
msgid "Title"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: post-snippets.php:127 post-snippets.php:136
|
43 |
+
msgid "Variables"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: post-snippets.php:128 post-snippets.php:137
|
47 |
+
msgid "Snippet"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: post-snippets.php:159
|
51 |
+
msgid "Update Snippets"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: post-snippets.php:161
|
55 |
+
msgid "Help"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: post-snippets.php:162
|
59 |
+
msgid ""
|
60 |
+
"<strong>Title</strong><br/>Give the snippet a title that helps you identify "
|
61 |
+
"it in the post editor.<br/><br/><strong>Variables</strong><br/>A comma "
|
62 |
+
"separated list of custom variables you can reference in your snippet.<br/"
|
63 |
+
"><br/>Example:<br/>url,name<br/><br/><strong>Snippet</strong><br/>This is "
|
64 |
+
"the block of text or HTML to insert in the post when you select the snippet "
|
65 |
+
"from the insert button in the TinyMCE panel in the post editor. If you have "
|
66 |
+
"entered predefined variables you can reference them from the snippet by "
|
67 |
+
"enclosing them in {} brackets.<br/><br/>Example:<br/>To reference the "
|
68 |
+
"variables in the example above, you would enter {url} and {name}.<br/><br/"
|
69 |
+
">So if you enter this snippet:<br/><i>This is the website of <a href="
|
70 |
+
"\"{url}\">{name}</a></i><br/>You will get the option to replace url "
|
71 |
+
"and name on insert if they are defined as variables."
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: tinymce/window.php:9
|
75 |
+
msgid "You are not allowed to be here"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: tinymce/window.php:109
|
79 |
+
msgid "Cancel"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: tinymce/window.php:113
|
83 |
+
msgid "Insert"
|
84 |
+
msgstr ""
|
85 |
+
|
86 |
+
#. Plugin Name of an extension
|
87 |
+
msgid "Post Snippets"
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#. Plugin URI of an extension
|
91 |
+
msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#. Description of an extension
|
95 |
+
msgid ""
|
96 |
+
"Stores snippets of HTML code or reoccurring text that you often use in your "
|
97 |
+
"posts. You can use predefined variables to replace parts of the snippet on "
|
98 |
+
"insert. All snippets are available in the post editor with a TinyMCE button."
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#. Author of an extension
|
102 |
+
msgid "Johan Steen"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#. Author URI of an extension
|
106 |
+
msgid "http://coding.cglounge.com/"
|
107 |
+
msgstr ""
|
post-snippets.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
Plugin Name: Post Snippets
|
4 |
Plugin URI: http://coding.cglounge.com/wordpress-plugins/post-snippets/
|
5 |
Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button.
|
6 |
-
Version: 1.
|
7 |
Author: Johan Steen
|
8 |
Author URI: http://coding.cglounge.com/
|
9 |
-
|
10 |
|
11 |
Copyright 2009 Johan Steen (email : artstorm [at] gmail [dot] com)
|
12 |
|
@@ -40,6 +40,7 @@ class postSnippets {
|
|
40 |
}
|
41 |
|
42 |
function init_hooks(){
|
|
|
43 |
add_action('admin_menu', array(&$this,'wp_admin'));
|
44 |
}
|
45 |
|
@@ -71,7 +72,7 @@ class postSnippets {
|
|
71 |
'vars' => "",
|
72 |
'snippet' => ""));
|
73 |
update_option($this->plugin_options, $snippets);
|
74 |
-
$this->admin_message( __('A snippet named Untitled has been added.') );
|
75 |
}
|
76 |
|
77 |
// Update Snippets
|
@@ -84,7 +85,7 @@ class postSnippets {
|
|
84 |
$snippets[$i]['snippet'] = trim(stripslashes($_POST[$i.'_snippet']));
|
85 |
}
|
86 |
update_option($this->plugin_options, $snippets);
|
87 |
-
$this->admin_message( __('Snippets have been updated.') );
|
88 |
}
|
89 |
}
|
90 |
|
@@ -100,7 +101,7 @@ class postSnippets {
|
|
100 |
}
|
101 |
}
|
102 |
update_option($this->plugin_options, $newsnippets);
|
103 |
-
$this->admin_message( __('Selected snippets have been deleted.') );
|
104 |
}
|
105 |
}
|
106 |
?>
|
@@ -112,8 +113,8 @@ class postSnippets {
|
|
112 |
|
113 |
<div class="tablenav">
|
114 |
<div class="alignleft actions">
|
115 |
-
<input type="submit" name="add-snippet" value="<?php _e('Add New Snippet') ?>" class="button-secondary" />
|
116 |
-
<input type="submit" name="delete-selected" value="<?php _e('Delete Selected') ?>" class="button-secondary" />
|
117 |
</div>
|
118 |
</div>
|
119 |
<div class="clear"></div>
|
@@ -122,18 +123,18 @@ class postSnippets {
|
|
122 |
<thead>
|
123 |
<tr>
|
124 |
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
125 |
-
<th scope="col" style="width: 180px;"><?php _e('Title') ?></th>
|
126 |
-
<th scope="col" style="width: 180px;"><?php _e('Variables') ?></th>
|
127 |
-
<th scope="col"><?php _e('Snippet') ?></th>
|
128 |
</tr>
|
129 |
</thead>
|
130 |
|
131 |
<tfoot>
|
132 |
<tr>
|
133 |
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
134 |
-
<th scope="col"><?php _e('Title') ?></th>
|
135 |
-
<th scope="col"><?php _e('Variables') ?></th>
|
136 |
-
<th scope="col"><?php _e('Snippet') ?></th>
|
137 |
</tr>
|
138 |
</tfoot>
|
139 |
|
@@ -155,10 +156,10 @@ class postSnippets {
|
|
155 |
</tbody>
|
156 |
</table>
|
157 |
<div class="submit">
|
158 |
-
<input type="submit" name="update-post-snippets" value="<?php _e('Update Snippets') ?>" class="button-primary" /></div>
|
159 |
</form>
|
160 |
-
<h3><?php _e('Help'); ?></h3>
|
161 |
-
<p><?php _e('<strong>Title</strong><br/>Give the snippet a title that helps you identify it in the post editor.<br/><br/><strong>Variables</strong><br/>A comma separated list of custom variables you can reference in your snippet.<br/><br/>Example:<br/>url,name<br/><br/><strong>Snippet</strong><br/>This is the block of text or HTML to insert in the post when you select the snippet from the insert button in the TinyMCE panel in the post editor. If you have entered predefined variables you can reference them from the snippet by enclosing them in {} brackets.<br/><br/>Example:<br/>To reference the variables in the example above, you would enter {url} and {name}.<br/><br/>So if you enter this snippet:<br/><i>This is the website of <a href="{url}">{name}</a></i><br/>You will get the option to replace url and name on insert if they are defined as variables.'); ?></p>
|
162 |
</div>
|
163 |
<?php
|
164 |
}
|
3 |
Plugin Name: Post Snippets
|
4 |
Plugin URI: http://coding.cglounge.com/wordpress-plugins/post-snippets/
|
5 |
Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button.
|
6 |
+
Version: 1.1
|
7 |
Author: Johan Steen
|
8 |
Author URI: http://coding.cglounge.com/
|
9 |
+
Text Domain: post-snippets
|
10 |
|
11 |
Copyright 2009 Johan Steen (email : artstorm [at] gmail [dot] com)
|
12 |
|
40 |
}
|
41 |
|
42 |
function init_hooks(){
|
43 |
+
load_plugin_textdomain( 'post-snippets', false, dirname(plugin_basename(__FILE__)) . '/languages/');
|
44 |
add_action('admin_menu', array(&$this,'wp_admin'));
|
45 |
}
|
46 |
|
72 |
'vars' => "",
|
73 |
'snippet' => ""));
|
74 |
update_option($this->plugin_options, $snippets);
|
75 |
+
$this->admin_message( __( 'A snippet named Untitled has been added.', 'post-snippets' ) );
|
76 |
}
|
77 |
|
78 |
// Update Snippets
|
85 |
$snippets[$i]['snippet'] = trim(stripslashes($_POST[$i.'_snippet']));
|
86 |
}
|
87 |
update_option($this->plugin_options, $snippets);
|
88 |
+
$this->admin_message( __( 'Snippets have been updated.', 'post-snippets' ) );
|
89 |
}
|
90 |
}
|
91 |
|
101 |
}
|
102 |
}
|
103 |
update_option($this->plugin_options, $newsnippets);
|
104 |
+
$this->admin_message( __( 'Selected snippets have been deleted.', 'post-snippets' ) );
|
105 |
}
|
106 |
}
|
107 |
?>
|
113 |
|
114 |
<div class="tablenav">
|
115 |
<div class="alignleft actions">
|
116 |
+
<input type="submit" name="add-snippet" value="<?php _e( 'Add New Snippet', 'post-snippets' ) ?>" class="button-secondary" />
|
117 |
+
<input type="submit" name="delete-selected" value="<?php _e( 'Delete Selected', 'post-snippets' ) ?>" class="button-secondary" />
|
118 |
</div>
|
119 |
</div>
|
120 |
<div class="clear"></div>
|
123 |
<thead>
|
124 |
<tr>
|
125 |
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
126 |
+
<th scope="col" style="width: 180px;"><?php _e( 'Title', 'post-snippets' ) ?></th>
|
127 |
+
<th scope="col" style="width: 180px;"><?php _e( 'Variables', 'post-snippets' ) ?></th>
|
128 |
+
<th scope="col"><?php _e( 'Snippet', 'post-snippets' ) ?></th>
|
129 |
</tr>
|
130 |
</thead>
|
131 |
|
132 |
<tfoot>
|
133 |
<tr>
|
134 |
<th scope="col" class="check-column"><input type="checkbox" /></th>
|
135 |
+
<th scope="col"><?php _e( 'Title', 'post-snippets' ) ?></th>
|
136 |
+
<th scope="col"><?php _e( 'Variables', 'post-snippets' ) ?></th>
|
137 |
+
<th scope="col"><?php _e( 'Snippet', 'post-snippets' ) ?></th>
|
138 |
</tr>
|
139 |
</tfoot>
|
140 |
|
156 |
</tbody>
|
157 |
</table>
|
158 |
<div class="submit">
|
159 |
+
<input type="submit" name="update-post-snippets" value="<?php _e( 'Update Snippets', 'post-snippets' ) ?>" class="button-primary" /></div>
|
160 |
</form>
|
161 |
+
<h3><?php _e( 'Help', 'post-snippets' ); ?></h3>
|
162 |
+
<p><?php _e( '<strong>Title</strong><br/>Give the snippet a title that helps you identify it in the post editor.<br/><br/><strong>Variables</strong><br/>A comma separated list of custom variables you can reference in your snippet.<br/><br/>Example:<br/>url,name<br/><br/><strong>Snippet</strong><br/>This is the block of text or HTML to insert in the post when you select the snippet from the insert button in the TinyMCE panel in the post editor. If you have entered predefined variables you can reference them from the snippet by enclosing them in {} brackets.<br/><br/>Example:<br/>To reference the variables in the example above, you would enter {url} and {name}.<br/><br/>So if you enter this snippet:<br/><i>This is the website of <a href="{url}">{name}</a></i><br/>You will get the option to replace url and name on insert if they are defined as variables.', 'post-snippets' ); ?></p>
|
163 |
</div>
|
164 |
<?php
|
165 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://coding.cglounge.com/wordpress-plugins/post-snippets/
|
|
4 |
Tags: post, admin, snippet, snippets, html, custom, page, dynamic
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.7.1
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Store snippets of HTML code or reoccurring text that you often use in your posts.
|
10 |
|
@@ -14,6 +14,13 @@ This admin plugin stores snippets of HTML code or reoccurring text that you ofte
|
|
14 |
|
15 |
For complete usage instructions see: [Post Snippets](http://coding.cglounge.com/wordpress-plugins/post-snippets/ "Complete Usage Instructions for Post Snippets")
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
== Installation ==
|
19 |
|
@@ -24,12 +31,21 @@ For complete usage instructions see: [Post Snippets](http://coding.cglounge.com/
|
|
24 |
|
25 |
== Frequently Asked Questions ==
|
26 |
|
27 |
-
=
|
28 |
|
29 |
-
|
30 |
|
31 |
== Screenshots ==
|
32 |
|
33 |
1. The Admin page where you set up new snippets.
|
34 |
-
2. The TinyMCE button for Post
|
35 |
-
3. The Post Snippet Insert Window.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
Tags: post, admin, snippet, snippets, html, custom, page, dynamic
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.7.1
|
7 |
+
Stable tag: 1.1
|
8 |
|
9 |
Store snippets of HTML code or reoccurring text that you often use in your posts.
|
10 |
|
14 |
|
15 |
For complete usage instructions see: [Post Snippets](http://coding.cglounge.com/wordpress-plugins/post-snippets/ "Complete Usage Instructions for Post Snippets")
|
16 |
|
17 |
+
Some features:
|
18 |
+
|
19 |
+
* **Insert** All defined snippets are available through a window via a TinyMCE button in the post editor.
|
20 |
+
* **Admin** Easy to use administration panel where you can add, edit and remove snippets.
|
21 |
+
* **Variables** Each snippet can have as many custom variables as you like, which can used on insert.
|
22 |
+
* **Uninstall** If you delete the plugin from your plugins panel it cleans up all data it has created in the Wordpress database.
|
23 |
+
|
24 |
|
25 |
== Installation ==
|
26 |
|
31 |
|
32 |
== Frequently Asked Questions ==
|
33 |
|
34 |
+
= Guru? =
|
35 |
|
36 |
+
Meditation.
|
37 |
|
38 |
== Screenshots ==
|
39 |
|
40 |
1. The Admin page where you set up new snippets.
|
41 |
+
2. The TinyMCE button for Post Snippets.
|
42 |
+
3. The Post Snippet Insert Window.
|
43 |
+
|
44 |
+
== Changelog ==
|
45 |
+
|
46 |
+
= 1.1 =
|
47 |
+
* Included Swedish translation.
|
48 |
+
* Added TextDomain functionality for I18n.
|
49 |
+
|
50 |
+
= 1.0 =
|
51 |
+
* Initial Release
|
tinymce/window.php
CHANGED
@@ -6,7 +6,7 @@ global $wpdb;
|
|
6 |
|
7 |
// check for rights
|
8 |
if ( !is_user_logged_in() || !current_user_can('edit_posts') )
|
9 |
-
wp_die(__("You are not allowed to be here"));
|
10 |
|
11 |
?>
|
12 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
@@ -106,11 +106,11 @@ if ( !is_user_logged_in() || !current_user_can('edit_posts') )
|
|
106 |
|
107 |
<div class="mceActionPanel">
|
108 |
<div style="float: left">
|
109 |
-
<input type="button" id="cancel" name="cancel" value="<?php _e(
|
110 |
</div>
|
111 |
|
112 |
<div style="float: right">
|
113 |
-
<input type="submit" id="insert" name="insert" value="<?php _e(
|
114 |
</div>
|
115 |
</div>
|
116 |
</form>
|
6 |
|
7 |
// check for rights
|
8 |
if ( !is_user_logged_in() || !current_user_can('edit_posts') )
|
9 |
+
wp_die(__( "You are not allowed to be here", 'post-snippets' ));
|
10 |
|
11 |
?>
|
12 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
106 |
|
107 |
<div class="mceActionPanel">
|
108 |
<div style="float: left">
|
109 |
+
<input type="button" id="cancel" name="cancel" value="<?php _e( 'Cancel', 'post-snippets' ); ?>" onclick="tinyMCEPopup.close();" />
|
110 |
</div>
|
111 |
|
112 |
<div style="float: right">
|
113 |
+
<input type="submit" id="insert" name="insert" value="<?php _e( 'Insert', 'post-snippets' ); ?>" onclick="insertSnippet();" />
|
114 |
</div>
|
115 |
</div>
|
116 |
</form>
|