Post Snippets - Version 1.9.1

Version Description

Download this release

Release Info

Developer artstorm
Plugin Icon 128x128 Post Snippets
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9 to 1.9.1

classes/help.php CHANGED
@@ -12,13 +12,14 @@ class Post_Snippets_Help
12
  {
13
  /**
14
  * Constructor.
 
15
  * @since Post Snippets 1.8.9
16
  * @param string The option page to load the help text on
17
  */
18
  public function __construct( $option_page )
19
  {
20
  // If WordPress is 3.3 or higher, use the new Help API, otherwise call
21
- // the old pre 3.3 help function.
22
  global $wp_version;
23
  if ( version_compare($wp_version, '3.3', '>=') ) {
24
  add_action( 'load-' . $option_page, array(&$this,'add_help_tabs') );
@@ -29,17 +30,32 @@ class Post_Snippets_Help
29
 
30
  /**
31
  * Setup the help tabs and sidebar.
 
32
  * @since Post Snippets 1.8.9
33
  */
34
  public function add_help_tabs() {
35
- $screen = get_current_screen();
36
  $screen->set_help_sidebar( $this->help_sidebar() );
37
- $screen->add_help_tab( array(
38
- 'id' => 'additional-plugin-help', // This should be unique for the screen.
39
- 'title' => 'Plugin Usage',
40
- 'content' => $this->contextual_help_wp_pre33()
41
- // Use 'callback' instead of 'content' for a function callback that renders the tab content.
42
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }
44
 
45
  /**
@@ -50,61 +66,192 @@ class Post_Snippets_Help
50
  */
51
  public function help_sidebar()
52
  {
53
- $content = '<p><strong>'.__('For more information:').'</strong></p>';
54
- $content .= '<p><a href="http://wpstorm.net/wordpress-plugins/post-snippets/" target="_blank">'.__('Post Snippets Documentation').'</a></p>';
55
- $content .= '<p><a href="http://wordpress.org/tags/post-snippets?forum_id=10" target="_blank">'.__('Support Forums').'</a></p>';
56
- return $content;
 
 
 
 
 
 
 
57
  }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
- // -------------------------------------------------------------------------
61
- // Deprecated Methods
62
- // -------------------------------------------------------------------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  /**
65
- * Display contextual help in the help drop down menu at the options page.
66
- *
67
- * @deprecated Since WordPress 3.3
68
- * @since Post Snippets 1.7.1
69
- * @return string The Contextual Help
70
  */
71
- public function add_help($contextual_help, $screen_id, $screen) {
72
- if ( $screen->id == 'settings_page_post-snippets/post-snippets' ) {
73
- $contextual_help = $this->contextual_help_wp_pre33();
74
- }
75
- return $contextual_help;
 
 
 
 
 
 
 
76
  }
77
 
78
  /**
79
- * The contextual help text displayed in WordPress older than 3.3.
80
- *
81
- * @deprecated Since WordPress 3.3
82
- * @since Post Snippets 1.8.
83
- * @return string The Contextual Help
84
  */
85
- public function contextual_help_wp_pre33()
86
  {
87
- $contextual_help =
88
- '<p><strong>' . __('Title', 'post-snippets') . '</strong></p>' .
89
- '<p>' . __('Give the snippet a title that helps you identify it in the post editor. If you make it into a shortcode, this is the name of the shortcode as well.', 'post-snippets') . '</p>' .
 
 
 
 
 
 
 
 
90
 
91
- '<p><strong>' . __('Variables', 'post-snippets') . '</strong></p>' .
92
- '<p>' . __('A comma separated list of custom variables you can reference in your snippet.<br/><br/>Example:<br/>url,name', 'post-snippets') . '</p>' .
 
93
 
94
- '<p><strong>' . __('Snippet', 'post-snippets') . '</strong></p>' .
95
- '<p>' . __('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 &lt;a href="{url}"&gt;{name}&lt;/a&gt;</i><br/>You will get the option to replace url and name on insert if they are defined as variables.', 'post-snippets') . '</p>' .
96
 
97
- '<p><strong>' . __('Description', 'post-snippets') . '</strong></p>' .
98
- '<p>' . __('An optional description for the Snippet. If entered it will be displayed in the snippets popup window in the post editor.', 'post-snippets') . '</p>' .
 
 
 
 
 
99
 
100
- '<p><strong>' . __('Shortcode', 'post-snippets') . '</strong></p>' .
101
- '<p>' . __('Treats the snippet as a shortcode. The name for the shortcode is the same as the title of the snippet (spaces not allowed) and will be used on insert. If you enclose the shortcode in your posts, you can access the enclosed content by using the variable {content} in your snippet. The content variable is reserved, so don\'t use it in the variables field.', 'post-snippets') . '</p>' .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
- '<p><strong>' . __('Advanced', 'post-snippets') . '</strong></p>' .
104
- '<p>' . __('The snippets can be retrieved directly from PHP, in a theme for instance, with the get_post_snippet() function. Visit the Post Snippets link under more information for instructions.', 'post-snippets') . '</p>' .
105
 
106
- '<p><strong>' . __('For more information:', 'post-snippets') . '</strong></p>' .
107
- '<p>' . __('Visit my <a href="http://wpstorm.net/wordpress-plugins/post-snippets/">Post Snippets</a> page for additional information.', 'post-snippets') . '</p>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  return $contextual_help;
109
  }
110
  }
12
  {
13
  /**
14
  * Constructor.
15
+ *
16
  * @since Post Snippets 1.8.9
17
  * @param string The option page to load the help text on
18
  */
19
  public function __construct( $option_page )
20
  {
21
  // If WordPress is 3.3 or higher, use the new Help API, otherwise call
22
+ // the old contextual help action.
23
  global $wp_version;
24
  if ( version_compare($wp_version, '3.3', '>=') ) {
25
  add_action( 'load-' . $option_page, array(&$this,'add_help_tabs') );
30
 
31
  /**
32
  * Setup the help tabs and sidebar.
33
+ *
34
  * @since Post Snippets 1.8.9
35
  */
36
  public function add_help_tabs() {
37
+ $screen = get_current_screen();
38
  $screen->set_help_sidebar( $this->help_sidebar() );
39
+ $screen->add_help_tab( array(
40
+ 'id' => 'basic-plugin-help',
41
+ 'title' => __( 'Basic', 'post-snippets' ),
42
+ 'content' => $this->help_basic()
43
+ ) );
44
+ $screen->add_help_tab( array(
45
+ 'id' => 'shortcode-plugin-help',
46
+ 'title' => __( 'Shortcode', 'post-snippets' ),
47
+ 'content' => $this->help_shortcode()
48
+ ) );
49
+ $screen->add_help_tab( array(
50
+ 'id' => 'php-plugin-help',
51
+ 'title' => __( 'PHP', 'post-snippets' ),
52
+ 'content' => $this->help_php()
53
+ ) );
54
+ $screen->add_help_tab( array(
55
+ 'id' => 'advanced-plugin-help',
56
+ 'title' => __( 'Advanced', 'post-snippets' ),
57
+ 'content' => $this->help_advanced()
58
+ ) );
59
  }
60
 
61
  /**
66
  */
67
  public function help_sidebar()
68
  {
69
+ return '<p><strong>'.
70
+ __( 'For more information:', 'post-snippets' ).
71
+ '</strong></p>
72
+
73
+ <p><a href="http://wpstorm.net/wordpress-plugins/post-snippets/" target="_blank">'.
74
+ __( 'Post Snippets Documentation', 'post-snippets' ).
75
+ '</a></p>
76
+
77
+ <p><a href="http://wordpress.org/tags/post-snippets?forum_id=10" target="_blank">'.
78
+ __( 'Support Forums', 'post-snippets' ).
79
+ '</a></p>';
80
  }
81
 
82
+ /**
83
+ * The basic help tab.
84
+ *
85
+ * @since Post Snippets 1.9.1
86
+ * @return string The help text
87
+ */
88
+ public function help_basic()
89
+ {
90
+ return '<h2>'.
91
+ __( 'Title', 'post-snippets' ).
92
+ '</h2>
93
+ <p>'.
94
+ __( 'Give the snippet a title that helps you identify it in the post editor. This also becomes the name of the shortcode if you enable that option', 'post-snippets' ).
95
+ '</p>
96
 
97
+ <h2>'.
98
+ __( 'Variables', 'post-snippets' ).
99
+ '</h2>
100
+ <p>'.
101
+ __( 'A comma separated list of custom variables you can reference in your snippet.', 'post-snippets' ).
102
+ '</p>
103
+ <p><strong>'.
104
+ __( 'Example', 'post-snippets' ).
105
+ '</strong><br/>
106
+ <code>url,name</code></p>'.
107
+
108
+ '<h2>'.
109
+ __( 'Snippet', 'post-snippets' ).
110
+ '</h2>
111
+ <p>'.
112
+ __('This is the block of text, HTML or PHP to insert in the post or as a shortcode. If you have entered predefined variables you can reference them from the snippet by enclosing them in {} brackets.', 'post-snippets' ).
113
+ '</p>
114
+ <p><strong>'.
115
+ __( 'Example', 'post-snippets' ).
116
+ '</strong><br/>'.
117
+ __( 'To reference the variables in the example above, you would enter {url} and {name}. So if you enter this snippet:', 'post-snippets' ).
118
+ '<br/>
119
+ <code>This is the website of &lt;a href="{url}"&gt;{name}&lt;/a&gt;</code>
120
+ <br/>'.
121
+ __( 'You will get the option to replace url and name on insert if they are defined as variables.', 'post-snippets').
122
+ '</p>
123
+
124
+ <h2>'
125
+ . __( 'Description', 'post-snippets' ).
126
+ '</h2>
127
+ <p>'.
128
+ __( 'An optional description for the Snippet. If filled out, the description will be displayed in the snippets insert window in the post editor.', 'post-snippets').
129
+ '</p>';
130
+ }
131
 
132
  /**
133
+ * The shortcode help tab.
134
+ *
135
+ * @since Post Snippets 1.9.1
136
+ * @return string The help text
 
137
  */
138
+ public function help_shortcode()
139
+ {
140
+ return '<p>'.
141
+ __( 'When enabling the shortcode checkbox, the snippet is no longer inserted directly but instead inserted as a shortcode. The obvious advantage of this is of course that you can insert a block of text or code in many places on the site, and update the content from one single place.', 'post-snippets' ).
142
+ '</p>
143
+
144
+ <p>'.
145
+ __( 'The name to use the shortcode is the same as the title of the snippet (spaces are not allowed). When inserting a shortcode snippet, the shortcode and not the content will be inserted in the post.', 'post-snippets' ).
146
+ '</p>
147
+ <p>'.
148
+ __( 'If you enclose the shortcode in your posts, you can access the enclosed content by using the variable {content} in your snippet. The {content} variable is reserved, so don\'t use it in the variables field.', 'post-snippets' ).
149
+ '</p>';
150
  }
151
 
152
  /**
153
+ * The PHP help tab.
154
+ *
155
+ * @since Post Snippets 1.9.1
156
+ * @return string The help text
 
157
  */
158
+ public function help_php()
159
  {
160
+ return '<p>'.
161
+ __('Snippets defined as shortcodes can optionally also be evaluated as PHP Code by enabling the PHP checkbox. PHP snippets is only available when treating the snippet as a shortcode.', 'post-snippets' ).
162
+ '</p>
163
+ <p><strong>'.
164
+ __( 'Example PHP Snippet', 'post-snippets' ).
165
+ '</strong><br/>
166
+ <code>
167
+ for ($i=1; $i<5; $i++) {<br/>
168
+ echo "{loop_me}&lt;br/&gt;";<br/>
169
+ };
170
+ </code></p>
171
 
172
+ <p>'.
173
+ __( 'With a snippet defined like the one above, you can call it with its shortcode definition in a post. Let\'s pretend that the example snippet is named phpcode and have one variable defined loop_me, then it would be called like this from a post:' , 'post-snippets' ).
174
+ '</p>
175
 
176
+ <code>[phpcode loop_me="post snippet with PHP!"]</code>
 
177
 
178
+ <p>'.
179
+ __( 'When the shortcode is executed the loop_me variable will be replaced with the string supplied in the shortcode and then the PHP code will be evaluated. (Outputting the string five times in this case. Wow!)', 'post-snippets' ).
180
+ '</p>
181
+ <p>'.
182
+ __( 'Note the evaluation order, any snippet variables will be replaced before the snippet is evaluated as PHP code. Also note that a PHP snippet don\'t need to be wrapped in &lt;?php #code; ?&gt;.', 'post-snippets' ).
183
+ '</p>';
184
+ }
185
 
186
+ /**
187
+ * The advanced help tab.
188
+ *
189
+ * @since Post Snippets 1.9.1
190
+ * @return string The help text
191
+ */
192
+ public function help_advanced()
193
+ {
194
+ return '<p>'.
195
+ __('You can retrieve a Post Snippet directly from PHP, in a theme for instance, by using the get_post_snippet() function.', 'post-snippets').
196
+ '</p>
197
+
198
+ <h2>'.
199
+ __('Usage', 'post-snippets').
200
+ '</h2>
201
+ <p>'.
202
+ '<code>
203
+ &lt;?php $my_snippet = get_post_snippet( $snippet_name, $snippet_vars ); ?&gt;
204
+ </code></p>
205
+
206
+ <h2>'.
207
+ __('Parameters', 'post-snippets').
208
+ '</h2>
209
+ <p>
210
+ <code>$snippet_name</code><br/>'.
211
+ __('(string) (required) The name of the snippet to retrieve.', 'post-snippets').
212
+
213
+ '<br/><br/><code>'.
214
+ '$snippet_vars
215
+ </code><br/>'.
216
+ __('(string) The variables to pass to the snippet, formatted as a query string.', 'post-snippets').
217
+ '</p>
218
+
219
+ <h2>'.
220
+ __('Example', 'post-snippets').
221
+ '</h2>
222
+ <p><code>
223
+ &lt;?php<br/>
224
+ $my_snippet = get_post_snippet( \'internal-link\', \'title=Awesome&url=2011/02/awesome/\' );<br/>
225
+ echo $my_snippet;<br/>
226
+ ?&gt;
227
+ </code></p>';
228
+ }
229
 
 
 
230
 
231
+ // -------------------------------------------------------------------------
232
+ // For compability with WordPress before v3.3.
233
+ // -------------------------------------------------------------------------
234
+
235
+ /**
236
+ * Contextual Help for WP < v3.3.
237
+ *
238
+ * Combines the help tabs above into one long help text for the help tab
239
+ * when run on WordPress versions before v3.3.
240
+ *
241
+ * @since Post Snippets 1.7.1
242
+ * @return string The Contextual Help
243
+ */
244
+ public function add_help($contextual_help, $screen_id, $screen) {
245
+ if ( $screen->id == 'settings_page_post-snippets/post-snippets' ) {
246
+ $contextual_help = '<h1>'.__( 'Basic', 'post-snippets' ).'</h1>';
247
+ $contextual_help .= $this->help_basic();
248
+ $contextual_help .= '<h1>'.__( 'Shortcode', 'post-snippets' ).'</h1>';
249
+ $contextual_help .= $this->help_shortcode();
250
+ $contextual_help .= '<h1>'.__( 'PHP', 'post-snippets' ).'</h1>';
251
+ $contextual_help .= $this->help_php();
252
+ $contextual_help .= '<h1>'.__( 'Advanced', 'post-snippets' ).'</h1>';
253
+ $contextual_help .= $this->help_advanced();
254
+ }
255
  return $contextual_help;
256
  }
257
  }
languages/post-snippets-sv_SE.mo CHANGED
Binary file
languages/post-snippets-sv_SE.po CHANGED
@@ -6,8 +6,8 @@ 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: 2012-01-10 14:00:40+00:00\n"
10
- "PO-Revision-Date: 2012-01-10 20:32+0100\n"
11
  "Last-Translator: Johan Steen <artstorm@gmail.com>\n"
12
  "Language-Team: <artstorm@gmail.com>\n"
13
  "MIME-Version: 1.0\n"
@@ -30,143 +30,217 @@ msgstr "(Se hjälpmenyn ovan för mer information.)"
30
 
31
  #: classes/settings.php:44
32
  #: classes/settings.php:53
33
- #: post-snippets.php:495
34
  msgid "Title"
35
  msgstr "Titel"
36
 
37
  #: classes/settings.php:45
38
  #: classes/settings.php:54
39
- #: post-snippets.php:498
40
  msgid "Variables"
41
  msgstr "Variabler"
42
 
43
  #: classes/settings.php:46
44
  #: classes/settings.php:55
45
- #: post-snippets.php:501
46
  msgid "Snippet"
47
  msgstr "Snippet"
48
 
49
  #: classes/settings.php:74
50
- #: post-snippets.php:507
 
51
  msgid "Shortcode"
52
  msgstr "Shortcode"
53
 
54
- #: classes/settings.php:81
55
- #: post-snippets.php:504
 
 
 
 
56
  msgid "Description"
57
  msgstr "Beskrivning"
58
 
59
- #: classes/settings.php:92
60
  msgid "Update Snippets"
61
  msgstr "Uppdatera snippets"
62
 
63
- #: post-snippets.php:87
64
- msgid "Settings"
65
- msgstr "Inställningar"
 
66
 
67
- #: post-snippets.php:354
68
- msgid "This snippet is insert only, no variables defined."
69
- msgstr "Denna snippet saknar variabler, så den infogas som den är."
 
70
 
71
- #: post-snippets.php:496
72
- msgid "Give the snippet a title that helps you identify it in the post editor. If you make it into a shortcode, this is the name of the shortcode as well."
73
- msgstr "Ge snippeten en titel som hjälper till att identifiera den i inläggsredigeraren. Om du väljer att snippeten ska fungera som en shortcode, blir titeln även shortcode namnet."
 
74
 
75
- #: post-snippets.php:499
76
- msgid "A comma separated list of custom variables you can reference in your snippet.<br/><br/>Example:<br/>url,name"
77
- msgstr "En kommaseparerad lista av egendefinerade variabler som du kan referera i ditt avsnitt.<br/><br/>Exempel:<br/>url,namn"
78
 
79
- #: post-snippets.php:502
80
- msgid "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 &lt;a href=\"{url}\"&gt;{name}&lt;/a&gt;</i><br/>You will get the option to replace url and name on insert if they are defined as variables."
81
- msgstr "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 &lt;a href=\"{url}\"&gt;{namn}&lt;/a&gt;</i><br/>När du infogar avsnittet i ditt inlägg kan du fylla i vad som ska ersätta url och namn."
82
 
83
- #: post-snippets.php:505
84
- msgid "An optional description for the Snippet. If entered it will be displayed in the snippets popup window in the post editor."
85
- msgstr "En valfri beskrivning för snippeten. Om den är ifylld, så kommer den synas i popup fönstret i inläggsredigeraren."
86
 
87
- #: post-snippets.php:508
88
- msgid "Treats the snippet as a shortcode. The name for the shortcode is the same as the title of the snippet (spaces not allowed) and will be used on insert. If you enclose the shortcode in your posts, you can access the enclosed content by using the variable {content} in your snippet. The content variable is reserved, so don't use it in the variables field."
89
- msgstr "Definera snippeten som en shortcode. Namnet för shortcoden blir detsamma som snippetsens titel (mellanslag är inte tillåtet) och kommer användas vid infogning. Om du innesluter text med shortcoden i dina inlägg, så kan du komma åt det inneslutna innehålet genom att använda variabeln {content} i din snippet. Content variablen är reserverade, så använd inte det namnet i variabel fältet."
90
 
91
- #: post-snippets.php:510
92
- msgid "Advanced"
93
- msgstr "Avancerat"
94
 
95
- #: post-snippets.php:511
96
- msgid "The snippets can be retrieved directly from PHP, in a theme for instance, with the get_post_snippet() function. Visit the Post Snippets link under more information for instructions."
97
- msgstr "En snippet kan hämtas direkt via PHP, till exempel i ett tema, med get_post_snippet() funktionen. Besök Post Snippets länken under mer information för instruktioner."
 
 
98
 
99
- #: post-snippets.php:513
100
- msgid "For more information:"
101
- msgstr "För mer information:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
- #: post-snippets.php:514
104
- msgid "Visit my <a href=\"http://wpstorm.net/wordpress-plugins/post-snippets/\">Post Snippets</a> page for additional information."
105
- msgstr "Besök <a href=\"http://wpstorm.net/wordpress-plugins/post-snippets/\">Post Snippets</a> sidan för mer information."
106
 
107
- #: post-snippets.php:533
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  msgid "A snippet named Untitled has been added."
109
  msgstr "En ny snippet med namnet Untitled har lagts till."
110
 
111
- #: post-snippets.php:550
112
- #: post-snippets.php:700
113
  msgid "Snippets have been updated."
114
  msgstr "Ändrade snippets har uppdaterats."
115
 
116
- #: post-snippets.php:566
117
  msgid "Selected snippets have been deleted."
118
  msgstr "Valda snippets har raderats."
119
 
120
- #: post-snippets.php:580
121
  msgid "Import/Export"
122
  msgstr "Importera/Exportera"
123
 
124
- #: post-snippets.php:581
125
  msgid "Export"
126
  msgstr "Exportera"
127
 
128
- #: post-snippets.php:583
129
  msgid "Export your snippets for backup or to import them on another site."
130
  msgstr "Exportera dina snippets för backup eller för att importera dem till en annan sajt."
131
 
132
- #: post-snippets.php:584
133
  msgid "Export Snippets"
134
  msgstr "Exportera snippets"
135
 
136
- #: post-snippets.php:670
137
  msgid "Import"
138
  msgstr "Importera"
139
 
140
- #: post-snippets.php:672
141
  msgid "Import snippets from a post-snippets-export.zip file. Importing overwrites any existing snippets."
142
  msgstr "Importera snippets från en post-snippets-export.zip fil. Importen skriver över eventuella snippets som redan finns."
143
 
144
- #: post-snippets.php:676
145
  msgid "Import Snippets"
146
  msgstr "Importera snippets"
147
 
148
- #: post-snippets.php:702
149
  msgid "Snippets successfully imported."
150
  msgstr "Importeringen av snippets lyckades."
151
 
152
- #: post-snippets.php:704
153
- #: post-snippets.php:708
154
- #: post-snippets.php:710
155
  msgid "Snippets could not be imported:"
156
  msgstr "Snippets kunde inte importeras:"
157
 
158
- #: post-snippets.php:704
159
  msgid "Unzipping failed."
160
  msgstr "Uppackningen misslyckades."
161
 
162
- #: post-snippets.php:710
163
  msgid "Upload failed."
164
  msgstr "Uppladdningen misslyckades."
165
 
166
- #: post-snippets.php:836
167
- msgid "Error: Post Snippets requires WordPress Version %s or higher."
168
- msgstr "Fel: Post Snippets kräver WordPress version %s eller nyare!"
169
-
170
  #. Plugin Name of the plugin/theme
171
  msgid "Post Snippets"
172
  msgstr "Post Snippets"
@@ -187,6 +261,36 @@ msgstr "Johan Steen"
187
  msgid "http://johansteen.se/"
188
  msgstr "http://johansteen.se/"
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  #~ msgid "Help"
191
  #~ msgstr "Hjälp"
192
 
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: 2012-01-22 15:13:10+00:00\n"
10
+ "PO-Revision-Date: 2012-01-22 16:38+0100\n"
11
  "Last-Translator: Johan Steen <artstorm@gmail.com>\n"
12
  "Language-Team: <artstorm@gmail.com>\n"
13
  "MIME-Version: 1.0\n"
30
 
31
  #: classes/settings.php:44
32
  #: classes/settings.php:53
33
+ #: classes/help.php:91
34
  msgid "Title"
35
  msgstr "Titel"
36
 
37
  #: classes/settings.php:45
38
  #: classes/settings.php:54
39
+ #: classes/help.php:98
40
  msgid "Variables"
41
  msgstr "Variabler"
42
 
43
  #: classes/settings.php:46
44
  #: classes/settings.php:55
45
+ #: classes/help.php:109
46
  msgid "Snippet"
47
  msgstr "Snippet"
48
 
49
  #: classes/settings.php:74
50
+ #: classes/help.php:46
51
+ #: classes/help.php:248
52
  msgid "Shortcode"
53
  msgstr "Shortcode"
54
 
55
+ #: classes/settings.php:77
56
+ msgid "PHP Code"
57
+ msgstr "PHP kod"
58
+
59
+ #: classes/settings.php:83
60
+ #: classes/help.php:125
61
  msgid "Description"
62
  msgstr "Beskrivning"
63
 
64
+ #: classes/settings.php:94
65
  msgid "Update Snippets"
66
  msgstr "Uppdatera snippets"
67
 
68
+ #: classes/help.php:41
69
+ #: classes/help.php:246
70
+ msgid "Basic"
71
+ msgstr "Grundläggande"
72
 
73
+ #: classes/help.php:51
74
+ #: classes/help.php:250
75
+ msgid "PHP"
76
+ msgstr "PHP"
77
 
78
+ #: classes/help.php:56
79
+ #: classes/help.php:252
80
+ msgid "Advanced"
81
+ msgstr "Avancerat"
82
 
83
+ #: classes/help.php:70
84
+ msgid "For more information:"
85
+ msgstr "För mer information:"
86
 
87
+ #: classes/help.php:74
88
+ msgid "Post Snippets Documentation"
89
+ msgstr "Post Snippets Dokumentation"
90
 
91
+ #: classes/help.php:78
92
+ msgid "Support Forums"
93
+ msgstr "Supportforum"
94
 
95
+ #: classes/help.php:94
96
+ msgid "Give the snippet a title that helps you identify it in the post editor. This also becomes the name of the shortcode if you enable that option"
97
+ msgstr "Ge snippeten en titel som hjälper till att identifiera den i inläggsredigeraren. Titeln blir också namnet shortcoden om du aktiverar det valet."
98
 
99
+ #: classes/help.php:101
100
+ msgid "A comma separated list of custom variables you can reference in your snippet."
101
+ msgstr "En kommaseparerad lista av egendefinerade variabler som du kan referera i din snippet."
102
 
103
+ #: classes/help.php:104
104
+ #: classes/help.php:115
105
+ #: classes/help.php:220
106
+ msgid "Example"
107
+ msgstr "Exempel"
108
 
109
+ #: classes/help.php:112
110
+ msgid "This is the block of text, HTML or PHP to insert in the post or as a shortcode. If you have entered predefined variables you can reference them from the snippet by enclosing them in {} brackets."
111
+ msgstr "Detta är blocket med text, HTML eller PHP att infoga i inläggen eller som en shortcode. Om du har definerat variabler kan du referera dem från snippeten genom att skriva dem inom {} tecken."
112
+
113
+ #: classes/help.php:117
114
+ msgid "To reference the variables in the example above, you would enter {url} and {name}. So if you enter this snippet:"
115
+ msgstr "För att referera variablerna i exemplet ovan, skulle du använda {url} och {name}. So om du skapar denna snippeten:"
116
+
117
+ #: classes/help.php:121
118
+ msgid "You will get the option to replace url and name on insert if they are defined as variables."
119
+ msgstr "Du har möjligheten att ersätta url och name vid infogning om de är definerade som variabler."
120
+
121
+ #: classes/help.php:128
122
+ msgid "An optional description for the Snippet. If filled out, the description will be displayed in the snippets insert window in the post editor."
123
+ msgstr "En valfri beskrivning för snippeten. Om den är ifylld, så kommer den synas i Post Snippets infogningsfönster i inläggsredigeraren."
124
+
125
+ #: classes/help.php:141
126
+ msgid "When enabling the shortcode checkbox, the snippet is no longer inserted directly but instead inserted as a shortcode. The obvious advantage of this is of course that you can insert a block of text or code in many places on the site, and update the content from one single place."
127
+ msgstr "Genom att aktivera shortcode kryssrutan, så infogas inte längre snippeten rakt av utan sätts in som en shortcode. The uppenbara fördelen med detta är naturligtvis att du kan infoga ett block med text eller kod på många ställen på sajten, och uppdatera dem från ett ställe."
128
+
129
+ #: classes/help.php:145
130
+ msgid "The name to use the shortcode is the same as the title of the snippet (spaces are not allowed). When inserting a shortcode snippet, the shortcode and not the content will be inserted in the post."
131
+ msgstr "Titeln på snippeten blir även namnet för att komma åt den som en shortcode (mellanslag är inte tillåtet). När man infogar en shortcode snippet, så blir shortcoden det som hamnar i inlägget och inte själva innehållet i snippeten."
132
+
133
+ #: classes/help.php:148
134
+ msgid "If you enclose the shortcode in your posts, you can access the enclosed content by using the variable {content} in your snippet. The {content} variable is reserved, so don't use it in the variables field."
135
+ msgstr "Om du innesluter text med shortcoden i dina inlägg, så kan du komma åt det inneslutna innehålet genom att använda variabeln {content} i din snippet. {content} variablen är reserverad, så använd inte det namnet content i variabel fältet."
136
+
137
+ #: classes/help.php:161
138
+ msgid "Snippets defined as shortcodes can optionally also be evaluated as PHP Code by enabling the PHP checkbox. PHP snippets is only available when treating the snippet as a shortcode."
139
+ msgstr "Snippets som är definerade som shortcodes, kan om så önskas bli evaluerade som PHP kod genom att aktivera PHP kryssrutan. PHP snippets fungerar endast när snippet är aktiverad som en shortcode."
140
+
141
+ #: classes/help.php:164
142
+ msgid "Example PHP Snippet"
143
+ msgstr "Exempel PHP Snippet"
144
+
145
+ #: classes/help.php:173
146
+ msgid "With a snippet defined like the one above, you can call it with its shortcode definition in a post. Let's pretend that the example snippet is named phpcode and have one variable defined loop_me, then it would be called like this from a post:"
147
+ msgstr "Med en snippet definerad som den ovan, kan du komma åt den via dess shortcode namn i ett inlägg. Låt oss säga att exempel snippeten har fått namnet phpcode och att den har en variabel definerad loop_me, då skulle man komma åt den från ett inlägg så här:"
148
 
149
+ #: classes/help.php:179
150
+ msgid "When the shortcode is executed the loop_me variable will be replaced with the string supplied in the shortcode and then the PHP code will be evaluated. (Outputting the string five times in this case. Wow!)"
151
+ msgstr "När shortcoden körs kommer loop_me variabeln bli ersatt med strängen som definerad från shortcoden och efter det så evalueras PHP koden. (Skriver strängen 5 gånger i detta fallet. Wow!)"
152
 
153
+ #: classes/help.php:182
154
+ msgid "Note the evaluation order, any snippet variables will be replaced before the snippet is evaluated as PHP code. Also note that a PHP snippet don't need to be wrapped in &lt;?php #code; ?&gt;."
155
+ msgstr "Notera evaluerings ordningen, variabler för snippet kommer ersättas innan snippeten evalueras som PHP kod. Notera också att en PHP snippet inte ska omslutas med &lt;?php #code; ?&gt;."
156
+
157
+ #: classes/help.php:195
158
+ msgid "You can retrieve a Post Snippet directly from PHP, in a theme for instance, by using the get_post_snippet() function."
159
+ msgstr "En snippet kan hämtas direkt via PHP, till exempel i ett tema, med get_post_snippet() funktionen."
160
+
161
+ #: classes/help.php:199
162
+ msgid "Usage"
163
+ msgstr "Användning"
164
+
165
+ #: classes/help.php:207
166
+ msgid "Parameters"
167
+ msgstr "Parametrar"
168
+
169
+ #: classes/help.php:211
170
+ msgid "(string) (required) The name of the snippet to retrieve."
171
+ msgstr "(sträng) (krävs) Namnet på snippeten att hämta."
172
+
173
+ #: classes/help.php:216
174
+ msgid "(string) The variables to pass to the snippet, formatted as a query string."
175
+ msgstr "(sträng) Variablerna att skicka till snippeten, formatterat som en query sträng."
176
+
177
+ #: post-snippets.php:85
178
+ msgid "Settings"
179
+ msgstr "Inställningar"
180
+
181
+ #: post-snippets.php:345
182
+ msgid "This snippet is insert only, no variables defined."
183
+ msgstr "Denna snippet saknar variabler, så den infogas som den är."
184
+
185
+ #: post-snippets.php:507
186
  msgid "A snippet named Untitled has been added."
187
  msgstr "En ny snippet med namnet Untitled har lagts till."
188
 
189
+ #: post-snippets.php:524
190
+ #: post-snippets.php:674
191
  msgid "Snippets have been updated."
192
  msgstr "Ändrade snippets har uppdaterats."
193
 
194
+ #: post-snippets.php:540
195
  msgid "Selected snippets have been deleted."
196
  msgstr "Valda snippets har raderats."
197
 
198
+ #: post-snippets.php:554
199
  msgid "Import/Export"
200
  msgstr "Importera/Exportera"
201
 
202
+ #: post-snippets.php:555
203
  msgid "Export"
204
  msgstr "Exportera"
205
 
206
+ #: post-snippets.php:557
207
  msgid "Export your snippets for backup or to import them on another site."
208
  msgstr "Exportera dina snippets för backup eller för att importera dem till en annan sajt."
209
 
210
+ #: post-snippets.php:558
211
  msgid "Export Snippets"
212
  msgstr "Exportera snippets"
213
 
214
+ #: post-snippets.php:644
215
  msgid "Import"
216
  msgstr "Importera"
217
 
218
+ #: post-snippets.php:646
219
  msgid "Import snippets from a post-snippets-export.zip file. Importing overwrites any existing snippets."
220
  msgstr "Importera snippets från en post-snippets-export.zip fil. Importen skriver över eventuella snippets som redan finns."
221
 
222
+ #: post-snippets.php:650
223
  msgid "Import Snippets"
224
  msgstr "Importera snippets"
225
 
226
+ #: post-snippets.php:676
227
  msgid "Snippets successfully imported."
228
  msgstr "Importeringen av snippets lyckades."
229
 
230
+ #: post-snippets.php:678
231
+ #: post-snippets.php:682
232
+ #: post-snippets.php:684
233
  msgid "Snippets could not be imported:"
234
  msgstr "Snippets kunde inte importeras:"
235
 
236
+ #: post-snippets.php:678
237
  msgid "Unzipping failed."
238
  msgstr "Uppackningen misslyckades."
239
 
240
+ #: post-snippets.php:684
241
  msgid "Upload failed."
242
  msgstr "Uppladdningen misslyckades."
243
 
 
 
 
 
244
  #. Plugin Name of the plugin/theme
245
  msgid "Post Snippets"
246
  msgstr "Post Snippets"
261
  msgid "http://johansteen.se/"
262
  msgstr "http://johansteen.se/"
263
 
264
+ #~ msgid ""
265
+ #~ "This is the block of text or HTML to insert in the post when you select "
266
+ #~ "the snippet from the insert button in the TinyMCE panel in the post "
267
+ #~ "editor. If you have entered predefined variables you can reference them "
268
+ #~ "from the snippet by enclosing them in {} brackets.<br/><br/>Example:<br/"
269
+ #~ ">To reference the variables in the example above, you would enter {url} "
270
+ #~ "and {name}.<br/><br/>So if you enter this snippet:<br/><i>This is the "
271
+ #~ "website of &lt;a href=\"{url}\"&gt;{name}&lt;/a&gt;</i><br/>You will get "
272
+ #~ "the option to replace url and name on insert if they are defined as "
273
+ #~ "variables."
274
+ #~ msgstr ""
275
+ #~ "Detta är blocket med text eller HTML att lägga till inlägget när du "
276
+ #~ "väljer ett avsnitt med insättnings knappen i TinyMCE panelen i "
277
+ #~ "inläggsredigeraren. Om du har definerat egna variabler kan du referera "
278
+ #~ "dem i avnittet genom att omsluta dem med {}.<br/><br/>Exempel:<br/>För "
279
+ #~ "att referera variabler i exemplet ovan, skulle du skriva {url} and {namn}."
280
+ #~ "<br/><br/>Så om du har det här avsnittet:<br/><i>Det är websidan till &lt;"
281
+ #~ "a href=\"{url}\"&gt;{namn}&lt;/a&gt;</i><br/>När du infogar avsnittet i "
282
+ #~ "ditt inlägg kan du fylla i vad som ska ersätta url och namn."
283
+
284
+ #~ msgid ""
285
+ #~ "Visit my <a href=\"http://wpstorm.net/wordpress-plugins/post-snippets/"
286
+ #~ "\">Post Snippets</a> page for additional information."
287
+ #~ msgstr ""
288
+ #~ "Besök <a href=\"http://wpstorm.net/wordpress-plugins/post-snippets/"
289
+ #~ "\">Post Snippets</a> sidan för mer information."
290
+
291
+ #~ msgid "Error: Post Snippets requires WordPress Version %s or higher."
292
+ #~ msgstr "Fel: Post Snippets kräver WordPress version %s eller nyare!"
293
+
294
  #~ msgid "Help"
295
  #~ msgstr "Hjälp"
296
 
languages/post-snippets.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Post Snippets package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Post Snippets 1.8.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
7
- "POT-Creation-Date: 2012-01-10 14:00:40+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -24,160 +24,242 @@ msgstr ""
24
  msgid "(Use the help dropdown button above for additional information.)"
25
  msgstr ""
26
 
27
- #: classes/settings.php:44 classes/settings.php:53 post-snippets.php:495
28
  msgid "Title"
29
  msgstr ""
30
 
31
- #: classes/settings.php:45 classes/settings.php:54 post-snippets.php:498
32
  msgid "Variables"
33
  msgstr ""
34
 
35
- #: classes/settings.php:46 classes/settings.php:55 post-snippets.php:501
36
  msgid "Snippet"
37
  msgstr ""
38
 
39
- #: classes/settings.php:74 post-snippets.php:507
40
  msgid "Shortcode"
41
  msgstr ""
42
 
43
- #: classes/settings.php:81 post-snippets.php:504
 
 
 
 
44
  msgid "Description"
45
  msgstr ""
46
 
47
- #: classes/settings.php:92
48
  msgid "Update Snippets"
49
  msgstr ""
50
 
51
- #: post-snippets.php:87
52
- msgid "Settings"
53
  msgstr ""
54
 
55
- #: post-snippets.php:354
56
- msgid "This snippet is insert only, no variables defined."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  msgstr ""
58
 
59
- #: post-snippets.php:496
60
  msgid ""
61
- "Give the snippet a title that helps you identify it in the post editor. If "
62
- "you make it into a shortcode, this is the name of the shortcode as well."
63
  msgstr ""
64
 
65
- #: post-snippets.php:499
66
  msgid ""
67
  "A comma separated list of custom variables you can reference in your snippet."
68
- "<br/><br/>Example:<br/>url,name"
69
  msgstr ""
70
 
71
- #: post-snippets.php:502
 
 
 
 
72
  msgid ""
73
- "This is the block of text or HTML to insert in the post when you select the "
74
- "snippet from the insert button in the TinyMCE panel in the post editor. If "
75
- "you have entered predefined variables you can reference them from the "
76
- "snippet by enclosing them in {} brackets.<br/><br/>Example:<br/>To reference "
77
- "the variables in the example above, you would enter {url} and {name}.<br/"
78
- "><br/>So if you enter this snippet:<br/><i>This is the website of &lt;a href="
79
- "\"{url}\"&gt;{name}&lt;/a&gt;</i><br/>You will get the option to replace url "
80
- "and name on insert if they are defined as variables."
81
  msgstr ""
82
 
83
- #: post-snippets.php:505
84
  msgid ""
85
- "An optional description for the Snippet. If entered it will be displayed in "
86
- "the snippets popup window in the post editor."
87
  msgstr ""
88
 
89
- #: post-snippets.php:508
90
  msgid ""
91
- "Treats the snippet as a shortcode. The name for the shortcode is the same as "
92
- "the title of the snippet (spaces not allowed) and will be used on insert. If "
93
- "you enclose the shortcode in your posts, you can access the enclosed content "
94
- "by using the variable {content} in your snippet. The content variable is "
95
- "reserved, so don't use it in the variables field."
96
  msgstr ""
97
 
98
- #: post-snippets.php:510
99
- msgid "Advanced"
 
 
100
  msgstr ""
101
 
102
- #: post-snippets.php:511
103
  msgid ""
104
- "The snippets can be retrieved directly from PHP, in a theme for instance, "
105
- "with the get_post_snippet() function. Visit the Post Snippets link under "
106
- "more information for instructions."
 
107
  msgstr ""
108
 
109
- #: post-snippets.php:513
110
- msgid "For more information:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  msgstr ""
112
 
113
- #: post-snippets.php:514
114
  msgid ""
115
- "Visit my <a href=\"http://wpstorm.net/wordpress-plugins/post-snippets/"
116
- "\">Post Snippets</a> page for additional information."
 
 
117
  msgstr ""
118
 
119
- #: post-snippets.php:533
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  msgid "A snippet named Untitled has been added."
121
  msgstr ""
122
 
123
- #: post-snippets.php:550 post-snippets.php:700
124
  msgid "Snippets have been updated."
125
  msgstr ""
126
 
127
- #: post-snippets.php:566
128
  msgid "Selected snippets have been deleted."
129
  msgstr ""
130
 
131
- #: post-snippets.php:580
132
  msgid "Import/Export"
133
  msgstr ""
134
 
135
- #: post-snippets.php:581
136
  msgid "Export"
137
  msgstr ""
138
 
139
- #: post-snippets.php:583
140
  msgid "Export your snippets for backup or to import them on another site."
141
  msgstr ""
142
 
143
- #: post-snippets.php:584
144
  msgid "Export Snippets"
145
  msgstr ""
146
 
147
- #: post-snippets.php:670
148
  msgid "Import"
149
  msgstr ""
150
 
151
- #: post-snippets.php:672
152
  msgid ""
153
  "Import snippets from a post-snippets-export.zip file. Importing overwrites "
154
  "any existing snippets."
155
  msgstr ""
156
 
157
- #: post-snippets.php:676
158
  msgid "Import Snippets"
159
  msgstr ""
160
 
161
- #: post-snippets.php:702
162
  msgid "Snippets successfully imported."
163
  msgstr ""
164
 
165
- #: post-snippets.php:704 post-snippets.php:708 post-snippets.php:710
166
  msgid "Snippets could not be imported:"
167
  msgstr ""
168
 
169
- #: post-snippets.php:704
170
  msgid "Unzipping failed."
171
  msgstr ""
172
 
173
- #: post-snippets.php:710
174
  msgid "Upload failed."
175
  msgstr ""
176
 
177
- #: post-snippets.php:836
178
- msgid "Error: Post Snippets requires WordPress Version %s or higher."
179
- msgstr ""
180
-
181
  #. Plugin Name of the plugin/theme
182
  msgid "Post Snippets"
183
  msgstr ""
2
  # This file is distributed under the same license as the Post Snippets package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Post Snippets 1.9\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
7
+ "POT-Creation-Date: 2012-01-22 15:13:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
24
  msgid "(Use the help dropdown button above for additional information.)"
25
  msgstr ""
26
 
27
+ #: classes/settings.php:44 classes/settings.php:53 classes/help.php:91
28
  msgid "Title"
29
  msgstr ""
30
 
31
+ #: classes/settings.php:45 classes/settings.php:54 classes/help.php:98
32
  msgid "Variables"
33
  msgstr ""
34
 
35
+ #: classes/settings.php:46 classes/settings.php:55 classes/help.php:109
36
  msgid "Snippet"
37
  msgstr ""
38
 
39
+ #: classes/settings.php:74 classes/help.php:46 classes/help.php:248
40
  msgid "Shortcode"
41
  msgstr ""
42
 
43
+ #: classes/settings.php:77
44
+ msgid "PHP Code"
45
+ msgstr ""
46
+
47
+ #: classes/settings.php:83 classes/help.php:125
48
  msgid "Description"
49
  msgstr ""
50
 
51
+ #: classes/settings.php:94
52
  msgid "Update Snippets"
53
  msgstr ""
54
 
55
+ #: classes/help.php:41 classes/help.php:246
56
+ msgid "Basic"
57
  msgstr ""
58
 
59
+ #: classes/help.php:51 classes/help.php:250
60
+ msgid "PHP"
61
+ msgstr ""
62
+
63
+ #: classes/help.php:56 classes/help.php:252
64
+ msgid "Advanced"
65
+ msgstr ""
66
+
67
+ #: classes/help.php:70
68
+ msgid "For more information:"
69
+ msgstr ""
70
+
71
+ #: classes/help.php:74
72
+ msgid "Post Snippets Documentation"
73
+ msgstr ""
74
+
75
+ #: classes/help.php:78
76
+ msgid "Support Forums"
77
  msgstr ""
78
 
79
+ #: classes/help.php:94
80
  msgid ""
81
+ "Give the snippet a title that helps you identify it in the post editor. This "
82
+ "also becomes the name of the shortcode if you enable that option"
83
  msgstr ""
84
 
85
+ #: classes/help.php:101
86
  msgid ""
87
  "A comma separated list of custom variables you can reference in your snippet."
 
88
  msgstr ""
89
 
90
+ #: classes/help.php:104 classes/help.php:115 classes/help.php:220
91
+ msgid "Example"
92
+ msgstr ""
93
+
94
+ #: classes/help.php:112
95
  msgid ""
96
+ "This is the block of text, HTML or PHP to insert in the post or as a "
97
+ "shortcode. If you have entered predefined variables you can reference them "
98
+ "from the snippet by enclosing them in {} brackets."
 
 
 
 
 
99
  msgstr ""
100
 
101
+ #: classes/help.php:117
102
  msgid ""
103
+ "To reference the variables in the example above, you would enter {url} and "
104
+ "{name}. So if you enter this snippet:"
105
  msgstr ""
106
 
107
+ #: classes/help.php:121
108
  msgid ""
109
+ "You will get the option to replace url and name on insert if they are "
110
+ "defined as variables."
 
 
 
111
  msgstr ""
112
 
113
+ #: classes/help.php:128
114
+ msgid ""
115
+ "An optional description for the Snippet. If filled out, the description will "
116
+ "be displayed in the snippets insert window in the post editor."
117
  msgstr ""
118
 
119
+ #: classes/help.php:141
120
  msgid ""
121
+ "When enabling the shortcode checkbox, the snippet is no longer inserted "
122
+ "directly but instead inserted as a shortcode. The obvious advantage of this "
123
+ "is of course that you can insert a block of text or code in many places on "
124
+ "the site, and update the content from one single place."
125
  msgstr ""
126
 
127
+ #: classes/help.php:145
128
+ msgid ""
129
+ "The name to use the shortcode is the same as the title of the snippet "
130
+ "(spaces are not allowed). When inserting a shortcode snippet, the shortcode "
131
+ "and not the content will be inserted in the post."
132
+ msgstr ""
133
+
134
+ #: classes/help.php:148
135
+ msgid ""
136
+ "If you enclose the shortcode in your posts, you can access the enclosed "
137
+ "content by using the variable {content} in your snippet. The {content} "
138
+ "variable is reserved, so don't use it in the variables field."
139
+ msgstr ""
140
+
141
+ #: classes/help.php:161
142
+ msgid ""
143
+ "Snippets defined as shortcodes can optionally also be evaluated as PHP Code "
144
+ "by enabling the PHP checkbox. PHP snippets is only available when treating "
145
+ "the snippet as a shortcode."
146
+ msgstr ""
147
+
148
+ #: classes/help.php:164
149
+ msgid "Example PHP Snippet"
150
  msgstr ""
151
 
152
+ #: classes/help.php:173
153
  msgid ""
154
+ "With a snippet defined like the one above, you can call it with its "
155
+ "shortcode definition in a post. Let's pretend that the example snippet is "
156
+ "named phpcode and have one variable defined loop_me, then it would be called "
157
+ "like this from a post:"
158
  msgstr ""
159
 
160
+ #: classes/help.php:179
161
+ msgid ""
162
+ "When the shortcode is executed the loop_me variable will be replaced with "
163
+ "the string supplied in the shortcode and then the PHP code will be "
164
+ "evaluated. (Outputting the string five times in this case. Wow!)"
165
+ msgstr ""
166
+
167
+ #: classes/help.php:182
168
+ msgid ""
169
+ "Note the evaluation order, any snippet variables will be replaced before the "
170
+ "snippet is evaluated as PHP code. Also note that a PHP snippet don't need to "
171
+ "be wrapped in &lt;?php #code; ?&gt;."
172
+ msgstr ""
173
+
174
+ #: classes/help.php:195
175
+ msgid ""
176
+ "You can retrieve a Post Snippet directly from PHP, in a theme for instance, "
177
+ "by using the get_post_snippet() function."
178
+ msgstr ""
179
+
180
+ #: classes/help.php:199
181
+ msgid "Usage"
182
+ msgstr ""
183
+
184
+ #: classes/help.php:207
185
+ msgid "Parameters"
186
+ msgstr ""
187
+
188
+ #: classes/help.php:211
189
+ msgid "(string) (required) The name of the snippet to retrieve."
190
+ msgstr ""
191
+
192
+ #: classes/help.php:216
193
+ msgid ""
194
+ "(string) The variables to pass to the snippet, formatted as a query string."
195
+ msgstr ""
196
+
197
+ #: post-snippets.php:85
198
+ msgid "Settings"
199
+ msgstr ""
200
+
201
+ #: post-snippets.php:345
202
+ msgid "This snippet is insert only, no variables defined."
203
+ msgstr ""
204
+
205
+ #: post-snippets.php:507
206
  msgid "A snippet named Untitled has been added."
207
  msgstr ""
208
 
209
+ #: post-snippets.php:524 post-snippets.php:674
210
  msgid "Snippets have been updated."
211
  msgstr ""
212
 
213
+ #: post-snippets.php:540
214
  msgid "Selected snippets have been deleted."
215
  msgstr ""
216
 
217
+ #: post-snippets.php:554
218
  msgid "Import/Export"
219
  msgstr ""
220
 
221
+ #: post-snippets.php:555
222
  msgid "Export"
223
  msgstr ""
224
 
225
+ #: post-snippets.php:557
226
  msgid "Export your snippets for backup or to import them on another site."
227
  msgstr ""
228
 
229
+ #: post-snippets.php:558
230
  msgid "Export Snippets"
231
  msgstr ""
232
 
233
+ #: post-snippets.php:644
234
  msgid "Import"
235
  msgstr ""
236
 
237
+ #: post-snippets.php:646
238
  msgid ""
239
  "Import snippets from a post-snippets-export.zip file. Importing overwrites "
240
  "any existing snippets."
241
  msgstr ""
242
 
243
+ #: post-snippets.php:650
244
  msgid "Import Snippets"
245
  msgstr ""
246
 
247
+ #: post-snippets.php:676
248
  msgid "Snippets successfully imported."
249
  msgstr ""
250
 
251
+ #: post-snippets.php:678 post-snippets.php:682 post-snippets.php:684
252
  msgid "Snippets could not be imported:"
253
  msgstr ""
254
 
255
+ #: post-snippets.php:678
256
  msgid "Unzipping failed."
257
  msgstr ""
258
 
259
+ #: post-snippets.php:684
260
  msgid "Upload failed."
261
  msgstr ""
262
 
 
 
 
 
263
  #. Plugin Name of the plugin/theme
264
  msgid "Post Snippets"
265
  msgstr ""
post-snippets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://wpstorm.net/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 or Quicktags.
6
- Version: 1.9
7
  Author: Johan Steen
8
  Author URI: http://johansteen.se/
9
  Text Domain: post-snippets
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://wpstorm.net/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 or Quicktags.
6
+ Version: 1.9.1
7
  Author: Johan Steen
8
  Author URI: http://johansteen.se/
9
  Text Domain: post-snippets
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Post Snippets ===
2
  Contributors: artstorm
3
  Donate link: http://wpstorm.net/wordpress-plugins/post-snippets/#donation
4
- Tags: post, admin, snippet, shortcode, html, custom, page, dynamic, editor, php
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 1.9
8
 
9
  Keep a snippet library of text, HTML or PHP code to be used in posts. Variables
10
  can be set for more flexibility. Inserts directly or as shortcodes.
@@ -91,6 +91,10 @@ for questions, answers, support and feature requests.
91
 
92
  == Changelog ==
93
 
 
 
 
 
94
  = Version 1.9 - 17 Jan 2012 =
95
  * Initial implementation to allow snippets to be evaluated as PHP code.
96
  [Read more](http://wpstorm.net/wordpress-plugins/post-snippets/#php).
1
  === Post Snippets ===
2
  Contributors: artstorm
3
  Donate link: http://wpstorm.net/wordpress-plugins/post-snippets/#donation
4
+ Tags: post, admin, snippet, shortcode, html, custom, page, dynamic, editor, php, code
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 1.9.1
8
 
9
  Keep a snippet library of text, HTML or PHP code to be used in posts. Variables
10
  can be set for more flexibility. Inserts directly or as shortcodes.
91
 
92
  == Changelog ==
93
 
94
+ = Version 1.9.1 - 22 Jan 2012 =
95
+ * Updated the built in help text to include all the latest features added so it
96
+ is up to date.
97
+
98
  = Version 1.9 - 17 Jan 2012 =
99
  * Initial implementation to allow snippets to be evaluated as PHP code.
100
  [Read more](http://wpstorm.net/wordpress-plugins/post-snippets/#php).