AddQuicktag - Version 1.6.5

Version Description

Download this release

Release Info

Developer Bueltge
Plugin Icon wp plugin AddQuicktag
Version 1.6.5
Comparing to
See all releases

Code changes from version 1.6.3 to 1.6.5

addquicktag.php CHANGED
@@ -2,7 +2,6 @@
2
  /**
3
  * @package AddQuicktag
4
  * @author Roel Meurders, Frank Bültge
5
- * @version 1.6.4
6
  */
7
 
8
  /**
@@ -11,9 +10,9 @@ Plugin URI: http://bueltge.de/wp-addquicktags-de-plugin/120/
11
  Description: Allows you to easily add custom Quicktags to the editor. You can also export and import your Quicktags.
12
  Author: Roel Meurders, Frank Bültge
13
  Author URI: http://bueltge.de/
14
- Version: 1.6.4
15
  License: GNU General Public License
16
- Last Change: 01.12.2010 13:00:47
17
 
18
  This program is free software; you can redistribute it and/or modify
19
  it under the terms of the GNU General Public License as published by
@@ -185,6 +184,8 @@ function wpaq_import() {
185
  } else {
186
  // path for file
187
  $str_ziel = WP_CONTENT_DIR . '/' . $_FILES['datei']['name'];
 
 
188
  // transfer
189
  move_uploaded_file($_FILES['datei']['tmp_name'], $str_ziel);
190
  // access authorisation
@@ -211,7 +212,7 @@ function wpaq_import() {
211
  function wpaq_options_page() {
212
  global $wp_version;
213
 
214
- if ($_POST['wpaq']) {
215
  if ( current_user_can('edit_plugins') ) {
216
  check_admin_referer('rmnl_nonce');
217
 
@@ -236,7 +237,7 @@ function wpaq_options_page() {
236
  }
237
 
238
  // Uninstall options
239
- if ( ($_POST['action'] == 'uninstall') ) {
240
  if ( current_user_can('edit_plugins') ) {
241
 
242
  check_admin_referer('rmnl_nonce');
@@ -281,7 +282,7 @@ function wpaq_options_page() {
281
  $info2 = __('You want to thank me? Visit my <a href=\'http://bueltge.de/wunschliste/\'>wishlist</a> or donate.', FB_WPAQ_TEXTDOMAIN );
282
 
283
  // message for import, after redirect
284
- if ( strpos($_SERVER['REQUEST_URI'], 'addquicktag.php') && $_GET['update'] && !$_POST['uninstall'] ) {
285
  $message_export = '<br class="clear" /><div class="updated fade"><p>';
286
  if ( $_GET['update'] == 'true' ) {
287
  $message_export .= __('AddQuicktag options imported!', FB_WPAQ_TEXTDOMAIN );
@@ -298,7 +299,7 @@ function wpaq_options_page() {
298
  ?>
299
  <div class="wrap">
300
  <h2><?php _e('WP-Quicktag Management', FB_WPAQ_TEXTDOMAIN ); ?></h2>
301
- <?php echo $message . $message_export; ?>
302
  <br class="clear" />
303
  <div id="poststuff" class="ui-sortable meta-box-sortables">
304
  <div class="postbox">
@@ -319,22 +320,25 @@ function wpaq_options_page() {
319
  </thead>
320
  <tbody>
321
  <?php
322
- for ($i = 0; $i < count($o['buttons']); $i++) {
323
- $class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
324
- $b = $o['buttons'][$i];
325
- $b['text'] = htmlentities(stripslashes($b['text']), ENT_COMPAT, get_option('blog_charset'));
326
- $b['title'] = htmlentities(stripslashes($b['title']), ENT_COMPAT, get_option('blog_charset'));
327
- $b['start'] = htmlentities($b['start'], ENT_COMPAT, get_option('blog_charset'));
328
- $b['end'] = htmlentities($b['end'], ENT_COMPAT, get_option('blog_charset'));
329
- $nr = $i + 1;
330
- echo '
331
- <tr valign="top"' . $class . '>
332
- <td><input type="text" name="wpaq[buttons][' . $i . '][text]" value="' . $b['text'] . '" style="width: 95%;" /></td>
333
- <td><input type="text" name="wpaq[buttons][' . $i . '][title]" value="' . $b['title'] . '" style="width: 95%;" /></td>
334
- <td><textarea class="code" name="wpaq[buttons][' . $i . '][start]" rows="2" cols="25" style="width: 95%;">' . $b['start'] . '</textarea></td>
335
- <td><textarea class="code" name="wpaq[buttons][' . $i . '][end]" rows="2" cols="25" style="width: 95%;">' . $b['end'] . '</textarea></td>
336
- </tr>
337
- ';
 
 
 
338
  }
339
  ?>
340
  <tr valign="top" class="alternate">
2
  /**
3
  * @package AddQuicktag
4
  * @author Roel Meurders, Frank B&uuml;ltge
 
5
  */
6
 
7
  /**
10
  Description: Allows you to easily add custom Quicktags to the editor. You can also export and import your Quicktags.
11
  Author: Roel Meurders, Frank B&uuml;ltge
12
  Author URI: http://bueltge.de/
13
+ Version: 1.6.5
14
  License: GNU General Public License
15
+ Last Change: 02.02.2011
16
 
17
  This program is free software; you can redistribute it and/or modify
18
  it under the terms of the GNU General Public License as published by
184
  } else {
185
  // path for file
186
  $str_ziel = WP_CONTENT_DIR . '/' . $_FILES['datei']['name'];
187
+ // ToDO
188
+ // check for rights 0777
189
  // transfer
190
  move_uploaded_file($_FILES['datei']['tmp_name'], $str_ziel);
191
  // access authorisation
212
  function wpaq_options_page() {
213
  global $wp_version;
214
 
215
+ if ( isset($_POST['wpaq']) && $_POST['wpaq']) {
216
  if ( current_user_can('edit_plugins') ) {
217
  check_admin_referer('rmnl_nonce');
218
 
237
  }
238
 
239
  // Uninstall options
240
+ if ( ( isset($_POST['action']) && $_POST['action'] == 'uninstall') ) {
241
  if ( current_user_can('edit_plugins') ) {
242
 
243
  check_admin_referer('rmnl_nonce');
282
  $info2 = __('You want to thank me? Visit my <a href=\'http://bueltge.de/wunschliste/\'>wishlist</a> or donate.', FB_WPAQ_TEXTDOMAIN );
283
 
284
  // message for import, after redirect
285
+ if ( strpos($_SERVER['REQUEST_URI'], 'addquicktag.php') && isset($_GET['update']) && $_GET['update'] && isset($_POST['uninstall']) && !$_POST['uninstall'] ) {
286
  $message_export = '<br class="clear" /><div class="updated fade"><p>';
287
  if ( $_GET['update'] == 'true' ) {
288
  $message_export .= __('AddQuicktag options imported!', FB_WPAQ_TEXTDOMAIN );
299
  ?>
300
  <div class="wrap">
301
  <h2><?php _e('WP-Quicktag Management', FB_WPAQ_TEXTDOMAIN ); ?></h2>
302
+ <?php if ( isset($message) ) echo $message; if ( isset($message_export) ) echo $message_export; ?>
303
  <br class="clear" />
304
  <div id="poststuff" class="ui-sortable meta-box-sortables">
305
  <div class="postbox">
320
  </thead>
321
  <tbody>
322
  <?php
323
+ if ( isset($o['buttons']) ) {
324
+ $class = '';
325
+ for ($i = 0; $i < count($o['buttons']); $i++) {
326
+ $class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
327
+ $b = $o['buttons'][$i];
328
+ $b['text'] = htmlentities(stripslashes($b['text']), ENT_COMPAT, get_option('blog_charset'));
329
+ $b['title'] = htmlentities(stripslashes($b['title']), ENT_COMPAT, get_option('blog_charset'));
330
+ $b['start'] = htmlentities($b['start'], ENT_COMPAT, get_option('blog_charset'));
331
+ $b['end'] = htmlentities($b['end'], ENT_COMPAT, get_option('blog_charset'));
332
+ $nr = $i + 1;
333
+ echo '
334
+ <tr valign="top"' . $class . '>
335
+ <td><input type="text" name="wpaq[buttons][' . $i . '][text]" value="' . $b['text'] . '" style="width: 95%;" /></td>
336
+ <td><input type="text" name="wpaq[buttons][' . $i . '][title]" value="' . $b['title'] . '" style="width: 95%;" /></td>
337
+ <td><textarea class="code" name="wpaq[buttons][' . $i . '][start]" rows="2" cols="25" style="width: 95%;">' . $b['start'] . '</textarea></td>
338
+ <td><textarea class="code" name="wpaq[buttons][' . $i . '][end]" rows="2" cols="25" style="width: 95%;">' . $b['end'] . '</textarea></td>
339
+ </tr>
340
+ ';
341
+ }
342
  }
343
  ?>
344
  <tr valign="top" class="alternate">
languages/addquicktag-cs_CZ.mo CHANGED
File without changes
languages/addquicktag-cs_CZ.po CHANGED
File without changes
languages/addquicktag-de_DE.mo CHANGED
File without changes
languages/addquicktag-de_DE.po CHANGED
File without changes
languages/addquicktag-es_ES.mo CHANGED
File without changes
languages/addquicktag-es_ES.po CHANGED
File without changes
languages/addquicktag-fr_FR.mo CHANGED
File without changes
languages/addquicktag-fr_FR.po CHANGED
File without changes
languages/addquicktag-it_IT.mo CHANGED
Binary file
languages/addquicktag-it_IT.po CHANGED
@@ -3,8 +3,8 @@ msgstr ""
3
  "Project-Id-Version: AddQuicktag in italiano\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2009-06-12 20:34+0100\n"
6
- "PO-Revision-Date: 2009-06-16 14:13+0100\n"
7
- "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
8
  "Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -18,7 +18,7 @@ msgstr ""
18
 
19
  #: addquicktag.php:172
20
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
21
- msgstr "Einstellungen wurden nicht aktuallisiert - du hast nicht ausreichend Rechte!"
22
 
23
  #: addquicktag.php:231
24
  msgid "Options saved."
@@ -47,7 +47,7 @@ msgstr "Etichetta del pulsante*"
47
 
48
  #: addquicktag.php:256
49
  msgid "Title Attribute"
50
- msgstr "Title Attribut"
51
 
52
  #: addquicktag.php:257
53
  msgid "Start Tag(s)*"
@@ -83,7 +83,7 @@ msgstr "Carica il file e importa &raquo;"
83
 
84
  #: addquicktag.php:269
85
  msgid "Import"
86
- msgstr "Import"
87
 
88
  #: addquicktag.php:270
89
  msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
@@ -138,7 +138,7 @@ msgstr "Gestione WP-Quicktag"
138
  #: addquicktag.php:393
139
  #: addquicktag.php:412
140
  msgid "Click to toggle"
141
- msgstr "Zum umschalten klicken"
142
 
143
  #: addquicktag.php:525
144
  #: addquicktag.php:547
@@ -163,14 +163,18 @@ msgstr "Autore"
163
 
164
  #~ msgid "Can not open for write!"
165
  #~ msgstr "Non é possibile la scrittura!"
 
166
  #~ msgid "Can not write!"
167
  #~ msgstr "Non é possibile la scrittura!"
 
168
  #~ msgid "AddQuicktag options saved!"
169
  #~ msgstr "Le opzioni di AddQuicktag sono state salvate!"
 
170
  #~ msgid "Saved in: "
171
  #~ msgstr "Salvate in:"
 
172
  #~ msgid "/wpaq_export.wpaq</em>"
173
  #~ msgstr "/wpaq_export.wpaq</em>"
 
174
  #~ msgid "Import Quicktag buttons options"
175
  #~ msgstr "Importa le opzioni dei pulsanti Quicktag"
176
-
3
  "Project-Id-Version: AddQuicktag in italiano\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2009-06-12 20:34+0100\n"
6
+ "PO-Revision-Date: 2011-02-02 20:47+0100\n"
7
+ "Last-Translator: Gianni Diurno (aka gidibao) <gidibao[at]gmail[dot]com>\n"
8
  "Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
18
 
19
  #: addquicktag.php:172
20
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
21
+ msgstr "Opzioni non aggiornate - non hai il permesso per potere compiere questa operazione!"
22
 
23
  #: addquicktag.php:231
24
  msgid "Options saved."
47
 
48
  #: addquicktag.php:256
49
  msgid "Title Attribute"
50
+ msgstr "Atttributo titolo"
51
 
52
  #: addquicktag.php:257
53
  msgid "Start Tag(s)*"
83
 
84
  #: addquicktag.php:269
85
  msgid "Import"
86
+ msgstr "Importa"
87
 
88
  #: addquicktag.php:270
89
  msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
138
  #: addquicktag.php:393
139
  #: addquicktag.php:412
140
  msgid "Click to toggle"
141
+ msgstr "Clicca per commutare"
142
 
143
  #: addquicktag.php:525
144
  #: addquicktag.php:547
163
 
164
  #~ msgid "Can not open for write!"
165
  #~ msgstr "Non é possibile la scrittura!"
166
+
167
  #~ msgid "Can not write!"
168
  #~ msgstr "Non é possibile la scrittura!"
169
+
170
  #~ msgid "AddQuicktag options saved!"
171
  #~ msgstr "Le opzioni di AddQuicktag sono state salvate!"
172
+
173
  #~ msgid "Saved in: "
174
  #~ msgstr "Salvate in:"
175
+
176
  #~ msgid "/wpaq_export.wpaq</em>"
177
  #~ msgstr "/wpaq_export.wpaq</em>"
178
+
179
  #~ msgid "Import Quicktag buttons options"
180
  #~ msgstr "Importa le opzioni dei pulsanti Quicktag"
 
languages/addquicktag-ja.mo CHANGED
File without changes
languages/addquicktag-ja.po CHANGED
File without changes
languages/addquicktag-pl_PL.mo CHANGED
File without changes
languages/addquicktag-pl_PL.po CHANGED
File without changes
languages/addquicktag-ro_RO.mo CHANGED
File without changes
languages/addquicktag-ro_RO.po CHANGED
File without changes
languages/addquicktag-ru_RU.mo CHANGED
File without changes
languages/addquicktag-ru_RU.po CHANGED
File without changes
languages/addquicktag-zh_TW.mo CHANGED
File without changes
languages/addquicktag-zh_TW.po CHANGED
File without changes
languages/addquicktag.pot CHANGED
File without changes
license.txt CHANGED
File without changes
readme.txt CHANGED
@@ -3,12 +3,16 @@ Contributors: Bueltge
3
  Donate link: http://bueltge.de/wunschliste/
4
  Tags: quicktag, editor
5
  Requires at least: 1.5
6
- Tested up to: 3.1
7
- Stable tag: 1.6.3
8
 
9
  This plugin make it easy, Quicktags add to the editor. It is possible to ex- and import your Quicktags.
10
 
11
  == Description ==
 
 
 
 
12
  This plugin make it easy, Quicktags add to the editor. It is possible to ex- and import your Quicktags.
13
 
14
  WP-AddQuicktag for WordPress is in originally by [Roel Meurders](http://roel.meurders.nl/ "Roel Meurders"). AddQuicktag is an newer version with more functions and worked in WP 2.1 and higher.
@@ -38,7 +42,7 @@ See on [the official website](http://bueltge.de/wp-addquicktags-de-plugin/120 "A
38
  == Other Notes ==
39
  = Acknowledgements =
40
  * Thanks to Yuuich on [www.u-1.net](http://www.u-1.net/ "Yuuich") for translate the plugin in japanese, Neil on [www.wmfield.idv.tw](http://www.wmfield.idv.tw/ "Yuuich") for translate the plugin in chinese, [Jean-Michel MEYER](http://www.li-an.fr/blog "Jean-Michel MEYER") for translate in french, italien translation by [Gianni Diurno](http://gidibao.net/ "Gianni Diurno"), Josef Klimosz on [http://blog.rudice.cz/](http://blog.rudice.cz/ "Josef Klimosz") for the czech language file, [Lagg3r](lagg3r.com.ar "Lagg3r") for spanish translation and Michal Maciejewski for polish translation.
41
- * Thanks to [Fat Cow](http://www.fatcow.com/ "Fat Cow") for the belarussian language files.
42
 
43
  = Licence =
44
  Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
@@ -56,10 +60,14 @@ Please visit [the official website](http://bueltge.de/wp-addquicktags-de-plugin/
56
 
57
 
58
  == Changelog ==
 
 
 
 
59
  = v1.6.4 (12/22/2010) =
60
  * small changes for depreaced WP functions
61
 
62
  = v1.6.3 (16/06/2009) =
63
- * Add belarussian language file, thanks to [Fat Cow](http://www.fatcow.com/ "Fat Cow")
64
 
65
  Please see the older changes on version on the [the official website](http://bueltge.de/wp-addquicktags-de-plugin/120/#historie "AddQuicktag")!
3
  Donate link: http://bueltge.de/wunschliste/
4
  Tags: quicktag, editor
5
  Requires at least: 1.5
6
+ Tested up to: 3.2.1
7
+ Stable tag: 1.6.5
8
 
9
  This plugin make it easy, Quicktags add to the editor. It is possible to ex- and import your Quicktags.
10
 
11
  == Description ==
12
+
13
+ _This plugin dont work with WP 3.3; please test the new [version 2.0.0](http://wordpress.org/extend/plugins/addquicktag/download/); if you test WP 3.3 and give me feedback. I have write a new plugin, form the first line with same functions and also use the same database entries and work with the data of older version of this pluign._
14
+ = THANKS =
15
+
16
  This plugin make it easy, Quicktags add to the editor. It is possible to ex- and import your Quicktags.
17
 
18
  WP-AddQuicktag for WordPress is in originally by [Roel Meurders](http://roel.meurders.nl/ "Roel Meurders"). AddQuicktag is an newer version with more functions and worked in WP 2.1 and higher.
42
  == Other Notes ==
43
  = Acknowledgements =
44
  * Thanks to Yuuich on [www.u-1.net](http://www.u-1.net/ "Yuuich") for translate the plugin in japanese, Neil on [www.wmfield.idv.tw](http://www.wmfield.idv.tw/ "Yuuich") for translate the plugin in chinese, [Jean-Michel MEYER](http://www.li-an.fr/blog "Jean-Michel MEYER") for translate in french, italien translation by [Gianni Diurno](http://gidibao.net/ "Gianni Diurno"), Josef Klimosz on [http://blog.rudice.cz/](http://blog.rudice.cz/ "Josef Klimosz") for the czech language file, [Lagg3r](lagg3r.com.ar "Lagg3r") for spanish translation and Michal Maciejewski for polish translation.
45
+ * Thanks to Fat Cow for the belarussian language files.
46
 
47
  = Licence =
48
  Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
60
 
61
 
62
  == Changelog ==
63
+ = v1.6.5 (02/02/2011) =
64
+ * changes for admin-hints
65
+ * kill php warnings on debug-mode
66
+
67
  = v1.6.4 (12/22/2010) =
68
  * small changes for depreaced WP functions
69
 
70
  = v1.6.3 (16/06/2009) =
71
+ * Add belarussian language file, thanks to Fat Cow
72
 
73
  Please see the older changes on version on the [the official website](http://bueltge.de/wp-addquicktags-de-plugin/120/#historie "AddQuicktag")!
screenshot-1.png CHANGED
File without changes
screenshot-2.png CHANGED
File without changes
screenshot-3.png CHANGED
File without changes