AddQuicktag - Version 2.2.0

Version Description

  • Add checkboxes for different post type, use also filter for custom post type
  • Change script on HTML editor, only include buttons, there have an active checkbox on options for his post type
  • Add more data in JSON
  • Fix for custom post types; works now also on settings page
  • Change function to add button in html editor --> QTags.addButton()
  • Update im/export function for use with custmo post type
  • Fix settings page on network for WP 3.5
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.2.0

addquicktag.php CHANGED
@@ -5,13 +5,13 @@
5
  * Text Domain: addquicktag
6
  * Domain Path: /languages
7
  * Description: Allows you to easily add custom Quicktags to the html- and visual-editor.
8
- * Version: 2.1.0
9
  * Author: Frank Bültge
10
  * Author URI: http://bueltge.de
11
  * License: GPLv3
12
- */
13
-
14
- /**
15
  License:
16
  ==============================================================================
17
  Copyright 2011 Frank Bültge (email : frank@bueltge.de)
@@ -33,9 +33,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33
  Requirements:
34
  ==============================================================================
35
  This plugin requires WordPress >= 3.3 and tested with PHP Interpreter >= 5.3
36
- */
37
-
38
- /**
39
  * Add Quicktag Plugin class
40
  *
41
  * @since 2.0.0
@@ -46,9 +46,13 @@ class Add_Quicktag {
46
 
47
  static private $option_string = 'rmnlQuicktagSettings';
48
  // use filter 'addquicktag_pages' for add custom pages
49
- static private $admin_pages_for_js = array( 'post.php', 'comment.php' );
 
 
50
  // use filter 'addquicktag_post_types' for add custom post_types
51
- static private $post_types_for_js = array( 'post', 'page', 'comment' );
 
 
52
 
53
  static private $plugin;
54
 
@@ -73,15 +77,29 @@ class Add_Quicktag {
73
 
74
  // load translation files
75
  add_action( 'admin_init', array( $this, 'localize_plugin' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  // Include settings
77
  require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'inc/class-settings.php';
78
  // Include solution for TinyMCE
79
  require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'inc/class-tinymce.php';
80
 
81
- // filter for custom post types
82
- self::$post_types_for_js = apply_filters( 'addquicktag_post_types', self::$post_types_for_js );
83
- $admin_pages_for_js = apply_filters( 'addquicktag_pages', self::$admin_pages_for_js );
84
- foreach ( $admin_pages_for_js as $page ) {
85
  add_action( 'admin_print_scripts-' . $page, array( $this, 'print_scripts' ) );
86
  add_action( 'admin_print_scripts-' . $page, array( $this, 'admin_enqueue_scripts') );
87
  }
@@ -111,7 +129,7 @@ class Add_Quicktag {
111
  if ( isset( $current_screen->id ) &&
112
  ! in_array(
113
  $current_screen->id,
114
- self :: $post_types_for_js
115
  )
116
  )
117
  return NULL;
@@ -137,7 +155,9 @@ class Add_Quicktag {
137
  }
138
  ?>
139
  <script type="text/javascript">
140
- var addquicktag_tags = <?php echo json_encode( $options ); ?>;
 
 
141
  </script>
142
  <?php
143
  }
@@ -156,7 +176,7 @@ class Add_Quicktag {
156
  if ( isset( $current_screen->id ) &&
157
  ! in_array(
158
  $current_screen->id,
159
- self :: $post_types_for_js
160
  )
161
  )
162
  return NULL;
@@ -241,7 +261,31 @@ class Add_Quicktag {
241
  */
242
  public function get_plugin_string() {
243
 
244
- return self :: $plugin;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  }
246
 
247
  /**
@@ -253,7 +297,7 @@ class Add_Quicktag {
253
  */
254
  public function get_textdomain() {
255
 
256
- return self :: get_plugin_data( 'TextDomain' );
257
  }
258
 
259
  /**
5
  * Text Domain: addquicktag
6
  * Domain Path: /languages
7
  * Description: Allows you to easily add custom Quicktags to the html- and visual-editor.
8
+ * Version: 2.2.0
9
  * Author: Frank Bültge
10
  * Author URI: http://bueltge.de
11
  * License: GPLv3
12
+ *
13
+ *
14
+ *
15
  License:
16
  ==============================================================================
17
  Copyright 2011 Frank Bültge (email : frank@bueltge.de)
33
  Requirements:
34
  ==============================================================================
35
  This plugin requires WordPress >= 3.3 and tested with PHP Interpreter >= 5.3
36
+ *
37
+ *
38
+ *
39
  * Add Quicktag Plugin class
40
  *
41
  * @since 2.0.0
46
 
47
  static private $option_string = 'rmnlQuicktagSettings';
48
  // use filter 'addquicktag_pages' for add custom pages
49
+ static private $admin_pages_for_js = array(
50
+ 'post.php', 'post-new.php', 'comment.php', 'edit-comments.php'
51
+ );
52
  // use filter 'addquicktag_post_types' for add custom post_types
53
+ static private $post_types_for_js = array(
54
+ 'post', 'page', 'comment', 'edit-comments'
55
+ );
56
 
57
  static private $plugin;
58
 
77
 
78
  // load translation files
79
  add_action( 'admin_init', array( $this, 'localize_plugin' ) );
80
+ // on init register post type for addquicktag and print js
81
+ add_action( 'init', array( $this, 'on_admin_init' ) );
82
+
83
+ }
84
+
85
+
86
+ /**
87
+ * Include other files and print JS
88
+ *
89
+ * @since 07/16/2012
90
+ * @return void
91
+ */
92
+ public function on_admin_init() {
93
+
94
+ if ( ! is_admin() )
95
+ return NULL;
96
+
97
  // Include settings
98
  require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'inc/class-settings.php';
99
  // Include solution for TinyMCE
100
  require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'inc/class-tinymce.php';
101
 
102
+ foreach ( $this->get_admin_pages_for_js() as $page ) {
 
 
 
103
  add_action( 'admin_print_scripts-' . $page, array( $this, 'print_scripts' ) );
104
  add_action( 'admin_print_scripts-' . $page, array( $this, 'admin_enqueue_scripts') );
105
  }
129
  if ( isset( $current_screen->id ) &&
130
  ! in_array(
131
  $current_screen->id,
132
+ $this->get_post_types_for_js()
133
  )
134
  )
135
  return NULL;
155
  }
156
  ?>
157
  <script type="text/javascript">
158
+ var addquicktag_tags = <?php echo json_encode( $options ); ?>,
159
+ addquicktag_post_type = <?php echo json_encode( $current_screen->id ); ?>,
160
+ addquicktag_pt_for_js = <?php echo json_encode( $this->get_post_types_for_js() ); ?>;
161
  </script>
162
  <?php
163
  }
176
  if ( isset( $current_screen->id ) &&
177
  ! in_array(
178
  $current_screen->id,
179
+ $this->get_post_types_for_js()
180
  )
181
  )
182
  return NULL;
261
  */
262
  public function get_plugin_string() {
263
 
264
+ return self::$plugin;
265
+ }
266
+
267
+ /**
268
+ * Retrun allowed post types for include scripts
269
+ *
270
+ * @since 2.1.1
271
+ * @access public
272
+ * @return Array
273
+ */
274
+ public function get_post_types_for_js() {
275
+
276
+ return apply_filters( 'addquicktag_post_types', self::$post_types_for_js );
277
+ }
278
+
279
+ /**
280
+ * Retrun allowed post types for include scripts
281
+ *
282
+ * @since 2.1.1
283
+ * @access public
284
+ * @return Array
285
+ */
286
+ public function get_admin_pages_for_js() {
287
+
288
+ return apply_filters( 'addquicktag_pages', self::$admin_pages_for_js );
289
  }
290
 
291
  /**
297
  */
298
  public function get_textdomain() {
299
 
300
+ return self::get_plugin_data( 'TextDomain' );
301
  }
302
 
303
  /**
addquicktag_cpt.php.example CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Plugin Name: Example: AddQuicktag for CPT
4
  * Plugin URI: http://bueltge.de/
5
  * Description: Add custom post type 'my_custom_post_type' to AddQuicktag plugin
6
  * Author: Frank Bültge
1
  <?php
2
  /**
3
+ * Plugin Name: AddQuicktag Example for CPT
4
  * Plugin URI: http://bueltge.de/
5
  * Description: Add custom post type 'my_custom_post_type' to AddQuicktag plugin
6
  * Author: Frank Bültge
addquicktag_quickedit_comment.php.example CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
  * Plugin Name: Use AddQuicktag on Quickedit of comments
4
- * Plugin URI: http://bueltge.de/
5
- * Description: Add the quicktags fomr AddQuicktag plugin to the editor of Quickedit on comments
6
- * Author: Frank Bültge
7
- * Version: 0.0.1
8
- * Licence: GPLv3
9
- * Author URI: http://bueltge.de
10
  */
11
 
12
  // This file is not called from WordPress. We don't like that.
@@ -19,7 +19,7 @@ if ( ! function_exists( 'my_addquicktag_post_types' ) ) {
19
 
20
  // add custom function to filter hook 'addquicktag_post_types'
21
  add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' );
22
-
23
  /**
24
  * Return array $post_types with custom post types strings
25
  *
@@ -27,9 +27,9 @@ if ( ! function_exists( 'my_addquicktag_post_types' ) ) {
27
  * @return $post_type Array
28
  */
29
  function my_addquicktag_post_types( $post_types ) {
30
-
31
  $post_types[] = 'edit-comments';
32
-
33
  return $post_types;
34
  }
35
 
1
  <?php
2
  /**
3
  * Plugin Name: Use AddQuicktag on Quickedit of comments
4
+ * Plugin URI: http://bueltge.de/
5
+ * Description: Add the quicktags fomr AddQuicktag plugin to the editor of Quickedit on comments
6
+ * Author: Frank Bültge
7
+ * Version: 0.0.1
8
+ * Licence: GPLv3
9
+ * Author URI: http://bueltge.de
10
  */
11
 
12
  // This file is not called from WordPress. We don't like that.
19
 
20
  // add custom function to filter hook 'addquicktag_post_types'
21
  add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' );
22
+
23
  /**
24
  * Return array $post_types with custom post types strings
25
  *
27
  * @return $post_type Array
28
  */
29
  function my_addquicktag_post_types( $post_types ) {
30
+
31
  $post_types[] = 'edit-comments';
32
+
33
  return $post_types;
34
  }
35
 
inc/class-imexport.php CHANGED
@@ -1,9 +1,11 @@
1
  <?php
2
  /**
3
  * AddQuicktag - Settings
4
- * @license GPLv3
5
- * @package AddQuicktag
 
6
  * @subpackage AddQuicktag Settings
 
7
  */
8
 
9
  if ( ! function_exists( 'add_action' ) ) {
@@ -14,6 +16,8 @@ if ( ! function_exists( 'add_action' ) ) {
14
  class Add_Quicktag_Im_Export extends Add_Quicktag_Settings {
15
 
16
  static private $classobj = NULL;
 
 
17
 
18
  /**
19
  * Handler for the action 'init'. Instantiates this class.
@@ -41,6 +45,8 @@ class Add_Quicktag_Im_Export extends Add_Quicktag_Settings {
41
  */
42
  public function __construct() {
43
 
 
 
44
  if ( isset( $_GET['addquicktag_download'] ) && check_admin_referer( parent :: $nonce_string ) )
45
  add_action( 'init', array( $this, 'get_export_file' ) );
46
 
@@ -196,6 +202,7 @@ class Add_Quicktag_Im_Export extends Add_Quicktag_Settings {
196
  $options['buttons'] = $button;
197
  // validate the values from xml
198
  $options = parent :: validate_settings($options);
 
199
  // update settings in database
200
  if ( is_multisite() && is_plugin_active_for_network( parent :: get_plugin_string() ) )
201
  update_site_option( parent :: get_option_string(), $options );
1
  <?php
2
  /**
3
  * AddQuicktag - Settings
4
+ *
5
+ * @license GPLv3
6
+ * @package AddQuicktag
7
  * @subpackage AddQuicktag Settings
8
+ * @author Frank Bueltge <frank@bueltge.de>
9
  */
10
 
11
  if ( ! function_exists( 'add_action' ) ) {
16
  class Add_Quicktag_Im_Export extends Add_Quicktag_Settings {
17
 
18
  static private $classobj = NULL;
19
+ // post types for the settings
20
+ static private $post_types_for_js;
21
 
22
  /**
23
  * Handler for the action 'init'. Instantiates this class.
45
  */
46
  public function __construct() {
47
 
48
+ $this->post_types_for_js = parent::get_post_types_for_js();
49
+
50
  if ( isset( $_GET['addquicktag_download'] ) && check_admin_referer( parent :: $nonce_string ) )
51
  add_action( 'init', array( $this, 'get_export_file' ) );
52
 
202
  $options['buttons'] = $button;
203
  // validate the values from xml
204
  $options = parent :: validate_settings($options);
205
+
206
  // update settings in database
207
  if ( is_multisite() && is_plugin_active_for_network( parent :: get_plugin_string() ) )
208
  update_site_option( parent :: get_option_string(), $options );
inc/class-settings.php CHANGED
@@ -1,9 +1,13 @@
1
  <?php
2
  /**
3
  * AddQuicktag - Settings
4
- * @license GPLv3
5
- * @package AddQuicktag
 
6
  * @subpackage AddQuicktag Settings
 
 
 
7
  */
8
 
9
  if ( ! function_exists( 'add_action' ) ) {
@@ -15,13 +19,15 @@ class Add_Quicktag_Settings extends Add_Quicktag {
15
 
16
  static private $classobj = NULL;
17
  // string for translation
18
- static public $textdomain;
19
  // string for options in table options
20
  static private $option_string;
21
  // string for plugin file
22
  static private $plugin;
 
 
23
  // string for nonce fields
24
- static public $nonce_string;
25
 
26
  /**
27
  * Handler for the action 'init'. Instantiates this class.
@@ -53,19 +59,20 @@ class Add_Quicktag_Settings extends Add_Quicktag {
53
  return NULL;
54
 
55
  // textdomain from parent class
56
- self :: $textdomain = parent :: get_textdomain();
57
- $this -> option_string = parent :: get_option_string();
58
- $this -> plugin = parent :: get_plugin_string();
59
- $this -> nonce_string = 'addquicktag_nonce';
 
60
 
61
  register_uninstall_hook( __FILE__, array( 'Add_Quicktag_Settings', 'unregister_settings' ) );
62
  // settings for an active multisite
63
- if ( is_multisite() && is_plugin_active_for_network( $this -> plugin ) ) {
64
  add_action( 'network_admin_menu', array( $this, 'add_settings_page' ) );
65
  // add settings link
66
  add_filter( 'network_admin_plugin_action_links', array( $this, 'network_admin_plugin_action_links' ), 10, 2 );
67
  // save settings on network
68
- add_action( 'network_admin_edit_' . $this -> option_string, array( $this, 'save_network_settings_page' ) );
69
  // return message for update settings
70
  add_action( 'network_admin_notices', array( $this, 'get_network_admin_notices' ) );
71
  } else {
@@ -82,6 +89,17 @@ class Add_Quicktag_Settings extends Add_Quicktag {
82
  require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-imexport.php';
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  /**
87
  * Return Textdomain string
@@ -107,7 +125,7 @@ class Add_Quicktag_Settings extends Add_Quicktag {
107
  public function plugin_action_links( $links, $file ) {
108
 
109
  if ( parent :: get_plugin_string() == $file )
110
- $links[] = '<a href="options-general.php?page=addquicktag/inc/class-settings.php">' . __('Settings') . '</a>';
111
 
112
  return $links;
113
  }
@@ -124,7 +142,7 @@ class Add_Quicktag_Settings extends Add_Quicktag {
124
  public function network_admin_plugin_action_links( $links, $file ) {
125
 
126
  if ( parent :: get_plugin_string() == $file )
127
- $links[] = '<a href="settings.php?page=addquicktag/inc/class-settings.php">' . __('Settings') . '</a>';
128
 
129
  return $links;
130
  }
@@ -139,10 +157,10 @@ class Add_Quicktag_Settings extends Add_Quicktag {
139
  */
140
  public function add_settings_page () {
141
 
142
- if ( is_multisite() && is_plugin_active_for_network( $this -> plugin ) ) {
143
  add_submenu_page(
144
  'settings.php',
145
- parent :: get_plugin_data( 'Name' ) . ' ' . __( 'Settings', $this -> get_textdomain() ),
146
  parent :: get_plugin_data( 'Name' ),
147
  'manage_options',
148
  plugin_basename(__FILE__),
@@ -150,7 +168,7 @@ class Add_Quicktag_Settings extends Add_Quicktag {
150
  );
151
  } else {
152
  add_options_page(
153
- parent :: get_plugin_data( 'Name' ) . ' ' . __( 'Settings', $this -> get_textdomain() ),
154
  parent :: get_plugin_data( 'Name' ),
155
  'manage_options',
156
  plugin_basename(__FILE__),
@@ -175,21 +193,22 @@ class Add_Quicktag_Settings extends Add_Quicktag {
175
  <?php screen_icon('options-general'); ?>
176
  <h2><?php echo parent :: get_plugin_data( 'Name' ); ?></h2>
177
 
178
- <h3><?php _e('Add or delete Quicktag buttons', $this -> get_textdomain() ); ?></h3>
179
  <?php
180
- if ( is_multisite() && is_plugin_active_for_network( $this -> plugin ) )
181
- $action = 'edit.php?action=' . $this -> option_string;
182
  else
183
  $action = 'options.php';
184
  ?>
185
  <form method="post" action="<?php echo $action; ?>">
186
  <?php
187
- settings_fields( $this -> option_string . '_group' );
188
-
189
- if ( is_multisite() && is_plugin_active_for_network( $this -> plugin ) )
190
- $options = get_site_option( $this -> option_string );
191
- else
192
- $options = get_option( $this -> option_string );
 
193
 
194
  if ( ! $options )
195
  $options['buttons'] = array();
@@ -205,17 +224,25 @@ class Add_Quicktag_Settings extends Add_Quicktag {
205
  }
206
  array_multisort( $tmp, SORT_ASC, $options['buttons'] );
207
  }
 
 
 
 
 
 
 
208
  ?>
209
 
210
  <table class="widefat">
211
  <tr>
212
- <th class="row-title"><?php _e('Button Label*', $this -> get_textdomain() ); ?></th>
213
- <th class="row-title"><?php _e('Title Attribute', $this -> get_textdomain() ); ?></th>
214
- <th class="row-title"><?php _e('Start Tag(s)*', $this -> get_textdomain() ); ?></th>
215
- <th class="row-title"><?php _e('End Tag(s)', $this -> get_textdomain() ); ?></th>
216
- <th class="row-title" style="width:5%;"><?php _e('Access Key', $this -> get_textdomain() ); ?></th>
217
- <th class="row-title" style="width:5%;"><?php _e('Order', $this -> get_textdomain() ); ?></th>
218
- <th class="row-title" style="width:5%;"><?php _e('Visual', $this -> get_textdomain() ); ?></th>
 
219
  </tr>
220
  <?php
221
  if ( empty($options['buttons']) )
@@ -241,39 +268,78 @@ class Add_Quicktag_Settings extends Add_Quicktag {
241
  $checked = ' checked="checked"';
242
  else
243
  $checked = '';
244
- $nr = $i + 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  echo '
246
  <tr>
247
- <td><input type="text" name="' . $this -> option_string . '[buttons][' . $i
248
  . '][text]" value="' . $b['text'] . '" style="width: 95%;" /></td>
249
- <td><input type="text" name="' . $this -> option_string . '[buttons][' . $i . '][title]" value="'
250
  . $b['title'] . '" style="width: 95%;" /></td>
251
- <td><textarea class="code" name="' . $this -> option_string . '[buttons][' . $i
252
  . '][start]" rows="2" cols="25" style="width: 95%;">' . $b['start'] . '</textarea></td>
253
- <td><textarea class="code" name="' . $this -> option_string . '[buttons][' . $i
254
  . '][end]" rows="2" cols="25" style="width: 95%;">' . $b['end'] . '</textarea></td>
255
- <td><input type="text" name="' . $this -> option_string . '[buttons][' . $i
256
  . '][access]" value="' . $b['access'] . '" style="width: 95%;" /></td>
257
- <td><input type="text" name="' . $this -> option_string . '[buttons][' . $i
258
  . '][order]" value="' . $b['order'] . '" style="width: 95%;" /></td>
259
- <td><input type="checkbox" name="' . $this -> option_string . '[buttons][' . $i
260
- . '][visual]" value="1"' . $checked . ' style="width: 95%;" /></td>
 
261
  </tr>
262
  ';
263
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  ?>
265
  <tr>
266
- <td><input type="text" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][text]" value="" style="width: 95%;" /></td>
267
- <td><input type="text" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][title]" value="" style="width: 95%;" /></td>
268
- <td><textarea class="code" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][start]" rows="2" cols="25" style="width: 95%;"></textarea></td>
269
- <td><textarea class="code" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][end]" rows="2" cols="25" style="width: 95%;"></textarea></td>
270
- <td><input type="text" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][access]" value="" class="code" style="width: 95%;" /></td>
271
- <td><input type="text" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][order]" value="" style="width: 95%;" /></td>
272
- <td><input type="checkbox" name="<?php echo $this -> option_string; ?>[buttons][<?php echo $i; ?>][visual]" value="1" style="width: 95%;" /></td>
 
273
  </tr>
274
  </table>
275
 
276
- <p><?php _e( 'Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields.', $this -> get_textdomain() ); ?></p>
277
  <p class="submit">
278
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
279
  </p>
@@ -310,13 +376,14 @@ class Add_Quicktag_Settings extends Add_Quicktag {
310
  ?>
311
  <div class="postbox">
312
 
313
- <h3><span><?php _e( 'Like this plugin?', $this -> get_textdomain() ); ?></span></h3>
314
  <div class="inside">
315
- <p><?php _e( 'Here\'s how you can give back:', $this -> get_textdomain() ); ?></p>
316
  <ul>
317
- <li><a href="http://wordpress.org/extend/plugins/addquicktag/" title="<?php esc_attr_e( 'The Plugin on the WordPress plugin repository', $this -> get_textdomain() ); ?>"><?php _e( 'Give the plugin a good rating.', $this -> get_textdomain() ); ?></a></li>
318
- <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6069955" title="<?php esc_attr_e( 'Donate via PayPal', $this -> get_textdomain() ); ?>"><?php _e( 'Donate a few euros.', $this -> get_textdomain() ); ?></a></li>
319
- <li><a href="http://www.amazon.de/gp/registry/3NTOGEK181L23/ref=wl_s_3" title="<?php esc_attr_e( 'Frank Bültge\'s Amazon Wish List', $this -> get_textdomain() ); ?>"><?php _e( 'Get me something from my wish list.', $this -> get_textdomain() ); ?></a></li>
 
320
  </ul>
321
  </div>
322
  </div>
@@ -335,17 +402,18 @@ class Add_Quicktag_Settings extends Add_Quicktag {
335
  ?>
336
  <div class="postbox">
337
 
338
- <h3><span><?php _e( 'About this plugin', $this -> get_textdomain() ); ?></span></h3>
339
  <div class="inside">
340
  <p>
341
- <strong><?php _e( 'Version:', $this -> get_textdomain() ); ?></strong>
342
  <?php echo parent :: get_plugin_data( 'Version' ); ?>
343
  </p>
344
  <p>
345
- <strong><?php _e( 'Description:', $this -> get_textdomain() ); ?></strong>
346
  <?php echo parent :: get_plugin_data( 'Description' ); ?>
347
  </p>
348
  </div>
 
349
  </div>
350
  <?php
351
  }
@@ -359,14 +427,19 @@ class Add_Quicktag_Settings extends Add_Quicktag {
359
  * @return void
360
  */
361
  public function save_network_settings_page() {
 
 
 
 
362
  // validate options
363
- $value = $this -> validate_settings( $_POST[$this -> option_string] );
 
364
  // update options
365
- update_site_option( $this -> option_string, $value );
366
  // redirect to settings page in network
367
  wp_redirect(
368
- add_query_arg(
369
- array('page' => 'addquicktag/inc/class-settings.php', 'updated' => 'true'),
370
  network_admin_url( 'settings.php' )
371
  )
372
  );
@@ -387,7 +460,7 @@ class Add_Quicktag_Settings extends Add_Quicktag {
387
  if ( isset( $_GET['updated'] ) &&
388
  'settings_page_addquicktag/inc/class-settings-network' === $GLOBALS['current_screen'] -> id
389
  ) {
390
- $message = __( 'Options saved.', $this -> get_textdomain() );
391
  $notice = '<div id="message" class="updated"><p>' .$message . '</p></div>';
392
  echo $notice;
393
  }
@@ -404,8 +477,28 @@ class Add_Quicktag_Settings extends Add_Quicktag {
404
  */
405
  public function validate_settings( $value ) {
406
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  $buttons = array();
408
  for ( $i = 0; $i < count( $value['buttons']); $i++ ) {
 
409
  $b = $value['buttons'][$i];
410
  if ($b['text'] != '' && $b['start'] != '') {
411
  $b['text'] = esc_html( $b['text'] );
@@ -416,12 +509,22 @@ class Add_Quicktag_Settings extends Add_Quicktag {
416
  $b['access'] = esc_html( $b['access'] );
417
  if ( isset( $b['order'] ) )
418
  $b['order'] = intval( $b['order'] );
 
419
  if ( isset( $b['visual'] ) )
420
  $b['visual'] = intval( $b['visual'] );
421
  else
422
  $b['visual'] = 0;
 
 
 
 
 
 
 
 
423
  $buttons[] = $b;
424
  }
 
425
  }
426
  $value['buttons'] = $buttons;
427
 
@@ -438,7 +541,7 @@ class Add_Quicktag_Settings extends Add_Quicktag {
438
  */
439
  public function register_settings() {
440
 
441
- register_setting( $this -> option_string . '_group', $this -> option_string, array( $this, 'validate_settings' ) );
442
  }
443
 
444
  /**
@@ -451,8 +554,8 @@ class Add_Quicktag_Settings extends Add_Quicktag {
451
  */
452
  public function unregister_settings() {
453
 
454
- unregister_setting( $this -> option_string . '_group', $this -> option_string );
455
- delete_option( $this -> option_string );
456
  }
457
 
458
  /**
@@ -467,7 +570,7 @@ class Add_Quicktag_Settings extends Add_Quicktag {
467
  */
468
  public function contextual_help( $contextual_help, $screen_id, $screen ) {
469
 
470
- if ( 'settings_page_' . $this -> option_string . '_group' !== $screen_id )
471
  return $contextual_help;
472
 
473
  $contextual_help =
1
  <?php
2
  /**
3
  * AddQuicktag - Settings
4
+ *
5
+ * @license GPLv3
6
+ * @package AddQuicktag
7
  * @subpackage AddQuicktag Settings
8
+ * @author Frank Bueltge <frank@bueltge.de>
9
+ * @version 07/10/2012
10
+ * @since 2.0.0
11
  */
12
 
13
  if ( ! function_exists( 'add_action' ) ) {
19
 
20
  static private $classobj = NULL;
21
  // string for translation
22
+ static public $textdomain;
23
  // string for options in table options
24
  static private $option_string;
25
  // string for plugin file
26
  static private $plugin;
27
+ // post types for the settings
28
+ static private $post_types_for_js;
29
  // string for nonce fields
30
+ static public $nonce_string;
31
 
32
  /**
33
  * Handler for the action 'init'. Instantiates this class.
59
  return NULL;
60
 
61
  // textdomain from parent class
62
+ self::$textdomain = parent::get_textdomain();
63
+ self::$option_string = parent::get_option_string();
64
+ self::$plugin = parent::get_plugin_string();
65
+ self::$post_types_for_js = parent::get_post_types_for_js();
66
+ self::$nonce_string = 'addquicktag_nonce';
67
 
68
  register_uninstall_hook( __FILE__, array( 'Add_Quicktag_Settings', 'unregister_settings' ) );
69
  // settings for an active multisite
70
+ if ( is_multisite() && is_plugin_active_for_network( self::$plugin ) ) {
71
  add_action( 'network_admin_menu', array( $this, 'add_settings_page' ) );
72
  // add settings link
73
  add_filter( 'network_admin_plugin_action_links', array( $this, 'network_admin_plugin_action_links' ), 10, 2 );
74
  // save settings on network
75
+ add_action( 'network_admin_edit_' . self::$option_string, array( $this, 'save_network_settings_page' ) );
76
  // return message for update settings
77
  add_action( 'network_admin_notices', array( $this, 'get_network_admin_notices' ) );
78
  } else {
89
  require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-imexport.php';
90
  }
91
 
92
+ /**
93
+ * Retrun allowed post types for include scripts
94
+ *
95
+ * @since 2.1.1
96
+ * @access public
97
+ * @return Array
98
+ */
99
+ public function get_post_types_for_js() {
100
+
101
+ return self::$post_types_for_js;
102
+ }
103
 
104
  /**
105
  * Return Textdomain string
125
  public function plugin_action_links( $links, $file ) {
126
 
127
  if ( parent :: get_plugin_string() == $file )
128
+ $links[] = '<a href="options-general.php?page=' . plugin_basename( __FILE__ ) . '">' . __('Settings') . '</a>';
129
 
130
  return $links;
131
  }
142
  public function network_admin_plugin_action_links( $links, $file ) {
143
 
144
  if ( parent :: get_plugin_string() == $file )
145
+ $links[] = '<a href="settings.php?page=' . plugin_basename( __FILE__ ) . '">' . __('Settings') . '</a>';
146
 
147
  return $links;
148
  }
157
  */
158
  public function add_settings_page () {
159
 
160
+ if ( is_multisite() && is_plugin_active_for_network( self::$plugin ) ) {
161
  add_submenu_page(
162
  'settings.php',
163
+ parent :: get_plugin_data( 'Name' ) . ' ' . __( 'Settings', $this->get_textdomain() ),
164
  parent :: get_plugin_data( 'Name' ),
165
  'manage_options',
166
  plugin_basename(__FILE__),
168
  );
169
  } else {
170
  add_options_page(
171
+ parent :: get_plugin_data( 'Name' ) . ' ' . __( 'Settings', $this->get_textdomain() ),
172
  parent :: get_plugin_data( 'Name' ),
173
  'manage_options',
174
  plugin_basename(__FILE__),
193
  <?php screen_icon('options-general'); ?>
194
  <h2><?php echo parent :: get_plugin_data( 'Name' ); ?></h2>
195
 
196
+ <h3><?php _e('Add or delete Quicktag buttons', $this->get_textdomain() ); ?></h3>
197
  <?php
198
+ if ( is_multisite() && is_plugin_active_for_network( self::$plugin ) )
199
+ $action = 'edit.php?action=' . self::$option_string;
200
  else
201
  $action = 'options.php';
202
  ?>
203
  <form method="post" action="<?php echo $action; ?>">
204
  <?php
205
+ if ( is_multisite() && is_plugin_active_for_network( self::$plugin ) ) {
206
+ wp_nonce_field( self::$nonce_string );
207
+ $options = get_site_option( self::$option_string );
208
+ } else {
209
+ settings_fields( self::$option_string . '_group' );
210
+ $options = get_option( self::$option_string );
211
+ }
212
 
213
  if ( ! $options )
214
  $options['buttons'] = array();
224
  }
225
  array_multisort( $tmp, SORT_ASC, $options['buttons'] );
226
  }
227
+
228
+ // loop about the post types, create html an values for title in table
229
+ $pt_title = '';
230
+ foreach ( $this->get_post_types_for_js() as $post_type ) {
231
+
232
+ $pt_title .= '<th class="row-title" title="Post Type"><code>' . $post_type . '</code></th>' . "\n";
233
+ }
234
  ?>
235
 
236
  <table class="widefat">
237
  <tr>
238
+ <th class="row-title"><?php _e( 'Button Label*', $this->get_textdomain() ); ?></th>
239
+ <th class="row-title"><?php _e( 'Title Attribute', $this->get_textdomain() ); ?></th>
240
+ <th class="row-title"><?php _e( 'Start Tag(s)*', $this->get_textdomain() ); ?></th>
241
+ <th class="row-title"><?php _e( 'End Tag(s)', $this->get_textdomain() ); ?></th>
242
+ <th class="row-title"><?php _e( 'Access Key', $this->get_textdomain() ); ?></th>
243
+ <th class="row-title"><?php _e( 'Order', $this->get_textdomain() ); ?></th>
244
+ <th class="row-title"><?php _e( 'Visual', $this->get_textdomain() ); ?></th>
245
+ <?php echo $pt_title ?>
246
  </tr>
247
  <?php
248
  if ( empty($options['buttons']) )
268
  $checked = ' checked="checked"';
269
  else
270
  $checked = '';
271
+ // loop about the post types, create html an values
272
+ $pt_checkboxes = '';
273
+ foreach ( $this->get_post_types_for_js() as $post_type ) {
274
+ if ( ! isset( $b[$post_type] ) )
275
+ $b[$post_type] = 0;
276
+
277
+ $b[$post_type] = intval( $b[$post_type] );
278
+
279
+ if ( 1 == $b[$post_type] )
280
+ $pt_checked = ' checked="checked"';
281
+ else
282
+ $pt_checked = '';
283
+
284
+ $pt_checkboxes .= '<td><input type="checkbox" name="' .
285
+ self::$option_string . '[buttons][' .
286
+ $i . '][' . $post_type . ']" value="1"' .
287
+ $pt_checked . '/></td>' . "\n";
288
+ }
289
+
290
+ $nr = $i + 1;
291
  echo '
292
  <tr>
293
+ <td><input type="text" name="' . self::$option_string . '[buttons][' . $i
294
  . '][text]" value="' . $b['text'] . '" style="width: 95%;" /></td>
295
+ <td><input type="text" name="' . self::$option_string . '[buttons][' . $i . '][title]" value="'
296
  . $b['title'] . '" style="width: 95%;" /></td>
297
+ <td><textarea class="code" name="' . self::$option_string . '[buttons][' . $i
298
  . '][start]" rows="2" cols="25" style="width: 95%;">' . $b['start'] . '</textarea></td>
299
+ <td><textarea class="code" name="' . self::$option_string . '[buttons][' . $i
300
  . '][end]" rows="2" cols="25" style="width: 95%;">' . $b['end'] . '</textarea></td>
301
+ <td><input type="text" name="' . self::$option_string . '[buttons][' . $i
302
  . '][access]" value="' . $b['access'] . '" style="width: 95%;" /></td>
303
+ <td><input type="text" name="' . self::$option_string . '[buttons][' . $i
304
  . '][order]" value="' . $b['order'] . '" style="width: 95%;" /></td>
305
+ <td><input type="checkbox" name="' . self::$option_string . '[buttons][' . $i
306
+ . '][visual]" value="1"' . $checked . '/></td>' .
307
+ $pt_checkboxes . '
308
  </tr>
309
  ';
310
  }
311
+
312
+ // loop about the post types, create html an values for empty new checkboxes
313
+ $pt_new_boxes = '';
314
+ foreach ( $this->get_post_types_for_js() as $post_type ) {
315
+ if ( ! isset( $b[$post_type] ) )
316
+ $b[$post_type] = 0;
317
+
318
+ $b[$post_type] = intval( $b[$post_type] );
319
+
320
+ if ( 1 == $b[$post_type] )
321
+ $pt_checked = ' checked="checked"';
322
+ else
323
+ $pt_checked = '';
324
+
325
+ $pt_new_boxes .= '<td><input type="checkbox" name="' .
326
+ self::$option_string . '[buttons][' .
327
+ $i . '][' . $post_type . ']" value="1" /></td>' . "\n";
328
+ }
329
  ?>
330
  <tr>
331
+ <td><input type="text" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][text]" value="" style="width: 95%;" /></td>
332
+ <td><input type="text" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][title]" value="" style="width: 95%;" /></td>
333
+ <td><textarea class="code" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][start]" rows="2" cols="25" style="width: 95%;"></textarea></td>
334
+ <td><textarea class="code" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][end]" rows="2" cols="25" style="width: 95%;"></textarea></td>
335
+ <td><input type="text" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][access]" value="" class="code" style="width: 95%;" /></td>
336
+ <td><input type="text" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][order]" value="" style="width: 95%;" /></td>
337
+ <td><input type="checkbox" name="<?php echo self::$option_string; ?>[buttons][<?php echo $i; ?>][visual]" value="1" /></td>
338
+ <?php echo $pt_new_boxes; ?>
339
  </tr>
340
  </table>
341
 
342
+ <p><?php _e( 'Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields.', $this->get_textdomain() ); ?></p>
343
  <p class="submit">
344
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
345
  </p>
376
  ?>
377
  <div class="postbox">
378
 
379
+ <h3><span><?php _e( 'Like this plugin?', $this->get_textdomain() ); ?></span></h3>
380
  <div class="inside">
381
+ <p><?php _e( 'Here\'s how you can give back:', $this->get_textdomain() ); ?></p>
382
  <ul>
383
+ <li><a href="http://wordpress.org/extend/plugins/addquicktag/" title="<?php esc_attr_e( 'The Plugin on the WordPress plugin repository', $this->get_textdomain() ); ?>"><?php _e( 'Give the plugin a good rating.', $this->get_textdomain() ); ?></a></li>
384
+ <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6069955" title="<?php esc_attr_e( 'Donate via PayPal', $this->get_textdomain() ); ?>"><?php _e( 'Donate a few euros.', $this->get_textdomain() ); ?></a></li>
385
+ <li><a href="http://www.amazon.de/gp/registry/3NTOGEK181L23/ref=wl_s_3" title="<?php esc_attr_e( 'Frank Bültge\'s Amazon Wish List', $this->get_textdomain() ); ?>"><?php _e( 'Get me something from my wish list.', $this->get_textdomain() ); ?></a></li>
386
+ <li><a href="https://github.com/bueltge/AddQuicktag" title="<?php _e( 'Please give me feedback, contribute and file technical bugs on this GitHub Repo, use Issues.', $this->get_textdomain() ); ?>"><?php _e( 'Github Repo for Contribute, Issues & Bugs', $this->get_textdomain() ); ?></a></li>
387
  </ul>
388
  </div>
389
  </div>
402
  ?>
403
  <div class="postbox">
404
 
405
+ <h3><span><?php _e( 'About this plugin', $this->get_textdomain() ); ?></span></h3>
406
  <div class="inside">
407
  <p>
408
+ <strong><?php _e( 'Version:', $this->get_textdomain() ); ?></strong>
409
  <?php echo parent :: get_plugin_data( 'Version' ); ?>
410
  </p>
411
  <p>
412
+ <strong><?php _e( 'Description:', $this->get_textdomain() ); ?></strong>
413
  <?php echo parent :: get_plugin_data( 'Description' ); ?>
414
  </p>
415
  </div>
416
+
417
  </div>
418
  <?php
419
  }
427
  * @return void
428
  */
429
  public function save_network_settings_page() {
430
+
431
+ if ( ! wp_verify_nonce( $_REQUEST[ '_wpnonce' ], self::$nonce_string ) )
432
+ wp_die( 'Sorry, you failed the nonce test.' );
433
+
434
  // validate options
435
+ $value = $this->validate_settings( $_POST[self::$option_string] );
436
+
437
  // update options
438
+ update_site_option( self::$option_string, $value );
439
  // redirect to settings page in network
440
  wp_redirect(
441
+ add_query_arg(
442
+ array( 'page' => plugin_basename( __FILE__ ), 'updated' => 'true' ),
443
  network_admin_url( 'settings.php' )
444
  )
445
  );
460
  if ( isset( $_GET['updated'] ) &&
461
  'settings_page_addquicktag/inc/class-settings-network' === $GLOBALS['current_screen'] -> id
462
  ) {
463
+ $message = __( 'Options saved.', $this->get_textdomain() );
464
  $notice = '<div id="message" class="updated"><p>' .$message . '</p></div>';
465
  echo $notice;
466
  }
477
  */
478
  public function validate_settings( $value ) {
479
 
480
+ // set allowd values for import, only the defaults of plugin and custom post types
481
+ $allowed_settings = (array) array_merge(
482
+ $this->get_post_types_for_js(),
483
+ array( 'text', 'title', 'start', 'end', 'access', 'order', 'visual' )
484
+ );
485
+ // filter for allowed values
486
+ foreach ( $value['buttons'] as $key => $button ) {
487
+
488
+ foreach ($button as $key => $val) {
489
+
490
+ if ( ! in_array( $key, $allowed_settings) )
491
+ unset( $button[$key] );
492
+ }
493
+ $buttons[] = $button;
494
+ }
495
+ // return filtered array
496
+ $filtered_values['buttons'] = $buttons;
497
+ $value = $filtered_values;
498
+
499
  $buttons = array();
500
  for ( $i = 0; $i < count( $value['buttons']); $i++ ) {
501
+
502
  $b = $value['buttons'][$i];
503
  if ($b['text'] != '' && $b['start'] != '') {
504
  $b['text'] = esc_html( $b['text'] );
509
  $b['access'] = esc_html( $b['access'] );
510
  if ( isset( $b['order'] ) )
511
  $b['order'] = intval( $b['order'] );
512
+ // visual settings
513
  if ( isset( $b['visual'] ) )
514
  $b['visual'] = intval( $b['visual'] );
515
  else
516
  $b['visual'] = 0;
517
+ // post types
518
+ foreach ( $this->get_post_types_for_js() as $post_type ) {
519
+ if ( isset( $b[$post_type] ) )
520
+ $b[$post_type] = intval( $b[$post_type] );
521
+ else
522
+ $b[$post_type] = 0;
523
+ }
524
+
525
  $buttons[] = $b;
526
  }
527
+
528
  }
529
  $value['buttons'] = $buttons;
530
 
541
  */
542
  public function register_settings() {
543
 
544
+ register_setting( self::$option_string . '_group', self::$option_string, array( $this, 'validate_settings' ) );
545
  }
546
 
547
  /**
554
  */
555
  public function unregister_settings() {
556
 
557
+ unregister_setting( self::$option_string . '_group', self::$option_string );
558
+ delete_option( self::$option_string );
559
  }
560
 
561
  /**
570
  */
571
  public function contextual_help( $contextual_help, $screen_id, $screen ) {
572
 
573
+ if ( 'settings_page_' . self::$option_string . '_group' !== $screen_id )
574
  return $contextual_help;
575
 
576
  $contextual_help =
inc/class-tinymce.php CHANGED
@@ -1,9 +1,11 @@
1
  <?php
2
  /**
3
  * AddQuicktag - to TinyMCE Editor
4
- * @license GPLv3
5
- * @package AddQuicktag
 
6
  * @subpackage AddQuicktag 2 TinyMce
 
7
  */
8
 
9
  if ( ! function_exists( 'add_action' ) ) {
1
  <?php
2
  /**
3
  * AddQuicktag - to TinyMCE Editor
4
+ *
5
+ * @license GPLv3
6
+ * @package AddQuicktag
7
  * @subpackage AddQuicktag 2 TinyMce
8
+ * @author Frank Bueltge <frank@bueltge.de>
9
  */
10
 
11
  if ( ! function_exists( 'add_action' ) ) {
inc/tinymce/editor_plugin.dev.js CHANGED
@@ -1,23 +1,43 @@
1
  /**
2
  * AddQuicktag Script to add listbox to visual-editor
3
- * @since 2.0.0
4
  * @package AddQuicktag Plugin
 
 
 
5
  */
6
 
7
- (function() {
8
 
9
  if ( typeof addquicktag_tags == 'undefined' )
10
  return;
11
 
12
- // if not visual button
13
- var visual = 0;
14
- for ( i=0; i < addquicktag_tags.buttons.length; i++ ) {
15
- if ( 0 != addquicktag_tags.buttons[i]['visual'] )
 
 
 
 
 
 
 
 
 
 
 
 
16
  visual = addquicktag_tags.buttons[i]['visual'];
 
 
 
17
  }
18
- if ( 0 == visual )
19
  return;
20
-
 
 
21
  // Load plugin specific language pack
22
  tinymce.PluginManager.requireLangPack( 'rmnlQuicktagSettings_tmce' );
23
 
@@ -28,25 +48,28 @@
28
  createControl: function(n, cm) {
29
  switch (n) {
30
  case 'rmnlQuicktagSettings_tmce':
31
- var tiny_tags = addquicktag_tags['buttons'];
32
- var i = 0;
33
- var rmnlQuicktagSettings_tmce_options = '';
34
- var mlb = cm.createListBox('rmnlQuicktagSettings_tmce', {
35
  title : 'Quicktags',
36
  onselect : function(v) {
37
- var selection = tinyMCE.activeEditor.selection.getContent();
38
- var marked = true;
39
 
40
  switch (v) {
41
  case 'null' :
42
- var marked = false;
43
  break;
44
  default :
45
  break;
46
  }
47
 
48
  if ( marked == true ) {
49
- if ( typeof tiny_tags[v].end == 'undefined' ) tiny_tags[v].end = '';
 
 
 
50
  tinyMCE.activeEditor.selection.setContent(
51
  tiny_tags[v].start + selection + tiny_tags[v].end
52
  );
@@ -57,8 +80,13 @@
57
  // add values to the listbox
58
  if ( typeof tiny_tags !== 'undefined' ) {
59
  for ( i = 0; i < tiny_tags.length; i++ ) {
60
- if ( 1 == tiny_tags[i].visual )
61
- mlb.add( tiny_tags[i].text, String(i) );
 
 
 
 
 
62
  }
63
  } else {
64
  mlb.add('rmnlQuicktagSettings_tmce.addquicktag_select_error', 'null');
@@ -84,4 +112,4 @@
84
 
85
  // Register plugin
86
  tinymce.PluginManager.add( 'rmnlQuicktagSettings_tmce', tinymce.plugins.AddQuicktag );
87
- })();
1
  /**
2
  * AddQuicktag Script to add listbox to visual-editor
3
+ *
4
  * @package AddQuicktag Plugin
5
+ * @author Frank Bueltge <frank@bueltge.de>
6
+ * @version 07/11/2012
7
+ * @since 2.0.0
8
  */
9
 
10
+ jQuery( document ).ready( function( $ ) {
11
 
12
  if ( typeof addquicktag_tags == 'undefined' )
13
  return;
14
 
15
+ if ( typeof addquicktag_post_type == 'undefined' )
16
+ return;
17
+
18
+ if ( typeof addquicktag_pt_for_js == 'undefined' )
19
+ return;
20
+
21
+ // wrong post type
22
+ if ( -1 == $.inArray( addquicktag_post_type, addquicktag_pt_for_js ) )
23
+ return;
24
+
25
+ // break, if not an button for visual and post type
26
+ var visual = 0;
27
+ var post_type = 0;
28
+ for ( i = 0; i < addquicktag_tags.buttons.length; i++ ) {
29
+ // if not visual button in the list, return
30
+ if ( 1 === parseInt( addquicktag_tags.buttons[i]['visual'] ) )
31
  visual = addquicktag_tags.buttons[i]['visual'];
32
+ // check for active on this post type on each buttons
33
+ if ( 1 === parseInt( addquicktag_tags.buttons[i][addquicktag_post_type] ) )
34
+ post_type = addquicktag_tags.buttons[i][addquicktag_post_type];
35
  }
36
+ if ( 1 !== parseInt( visual ) )
37
  return;
38
+ if ( 1 !== parseInt( post_type ) )
39
+ return;
40
+
41
  // Load plugin specific language pack
42
  tinymce.PluginManager.requireLangPack( 'rmnlQuicktagSettings_tmce' );
43
 
48
  createControl: function(n, cm) {
49
  switch (n) {
50
  case 'rmnlQuicktagSettings_tmce':
51
+ var tiny_tags = addquicktag_tags['buttons'],
52
+ i = 0,
53
+ rmnlQuicktagSettings_tmce_options = '',
54
+ mlb = cm.createListBox('rmnlQuicktagSettings_tmce', {
55
  title : 'Quicktags',
56
  onselect : function(v) {
57
+ var selection = tinyMCE.activeEditor.selection.getContent(),
58
+ marked = true;
59
 
60
  switch (v) {
61
  case 'null' :
62
+ marked = false;
63
  break;
64
  default :
65
  break;
66
  }
67
 
68
  if ( marked == true ) {
69
+
70
+ if ( typeof tiny_tags[v].end == 'undefined' )
71
+ tiny_tags[v].end = '';
72
+
73
  tinyMCE.activeEditor.selection.setContent(
74
  tiny_tags[v].start + selection + tiny_tags[v].end
75
  );
80
  // add values to the listbox
81
  if ( typeof tiny_tags !== 'undefined' ) {
82
  for ( i = 0; i < tiny_tags.length; i++ ) {
83
+
84
+ // check for active on this post type
85
+ if ( 1 === parseInt( tiny_tags[i][addquicktag_post_type] ) ) {
86
+
87
+ if ( 1 == tiny_tags[i].visual )
88
+ mlb.add( tiny_tags[i].text, String(i) );
89
+ }
90
  }
91
  } else {
92
  mlb.add('rmnlQuicktagSettings_tmce.addquicktag_select_error', 'null');
112
 
113
  // Register plugin
114
  tinymce.PluginManager.add( 'rmnlQuicktagSettings_tmce', tinymce.plugins.AddQuicktag );
115
+ });
inc/tinymce/editor_plugin.js CHANGED
@@ -1,7 +1,10 @@
1
  /**
2
  * AddQuicktag Script to add listbox to visual-editor
3
- * @since 2.0.0
4
  * @package AddQuicktag Plugin
 
 
 
5
  */
6
 
7
- (function(){if(typeof addquicktag_tags=="undefined")return;var a=0;for(i=0;i<addquicktag_tags.buttons.length;i++){if(0!=addquicktag_tags.buttons[i]["visual"])a=addquicktag_tags.buttons[i]["visual"]}if(0==a)return;tinymce.PluginManager.requireLangPack("rmnlQuicktagSettings_tmce");tinymce.create("tinymce.plugins.AddQuicktag",{createControl:function(a,b){switch(a){case"rmnlQuicktagSettings_tmce":var c=addquicktag_tags["buttons"];var d=0;var e="";var f=b.createListBox("rmnlQuicktagSettings_tmce",{title:"Quicktags",onselect:function(a){var b=tinyMCE.activeEditor.selection.getContent();var d=true;switch(a){case"null":var d=false;break;default:break}if(d==true){if(typeof c[a].end=="undefined")c[a].end="";tinyMCE.activeEditor.selection.setContent(c[a].start+b+c[a].end)}}});if(typeof c!=="undefined"){for(d=0;d<c.length;d++){if(1==c[d].visual)f.add(c[d].text,String(d))}}else{f.add("rmnlQuicktagSettings_tmce.addquicktag_select_error","null")}return f;break}return null},getInfo:function(){return{longname:"AddQuicktag Plugin for TinyMCE in WordPress",author:"Frank Bueltge",authorurl:"http://bueltge.de/",infourl:"http://wordpress.org/extend/plugins/addquicktag/",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("rmnlQuicktagSettings_tmce",tinymce.plugins.AddQuicktag)})()
1
  /**
2
  * AddQuicktag Script to add listbox to visual-editor
3
+ *
4
  * @package AddQuicktag Plugin
5
+ * @author Frank Bueltge <frank@bueltge.de>
6
+ * @version 07/11/2012
7
+ * @since 2.0.0
8
  */
9
 
10
+ jQuery(document).ready(function(a){if(typeof addquicktag_tags=="undefined")return;if(typeof addquicktag_post_type=="undefined")return;if(typeof addquicktag_pt_for_js=="undefined")return;if(-1==a.inArray(addquicktag_post_type,addquicktag_pt_for_js))return;var b=0;var c=0;for(i=0;i<addquicktag_tags.buttons.length;i++){if(1===parseInt(addquicktag_tags.buttons[i]["visual"]))b=addquicktag_tags.buttons[i]["visual"];if(1===parseInt(addquicktag_tags.buttons[i][addquicktag_post_type]))c=addquicktag_tags.buttons[i][addquicktag_post_type]}if(1!==parseInt(b))return;if(1!==parseInt(c))return;tinymce.PluginManager.requireLangPack("rmnlQuicktagSettings_tmce");tinymce.create("tinymce.plugins.AddQuicktag",{createControl:function(a,b){switch(a){case"rmnlQuicktagSettings_tmce":var c=addquicktag_tags["buttons"],d=0,e="",f=b.createListBox("rmnlQuicktagSettings_tmce",{title:"Quicktags",onselect:function(a){var b=tinyMCE.activeEditor.selection.getContent(),d=true;switch(a){case"null":d=false;break;default:break}if(d==true){if(typeof c[a].end=="undefined")c[a].end="";tinyMCE.activeEditor.selection.setContent(c[a].start+b+c[a].end)}}});if(typeof c!=="undefined"){for(d=0;d<c.length;d++){if(1===parseInt(c[d][addquicktag_post_type])){if(1==c[d].visual)f.add(c[d].text,String(d))}}}else{f.add("rmnlQuicktagSettings_tmce.addquicktag_select_error","null")}return f;break}return null},getInfo:function(){return{longname:"AddQuicktag Plugin for TinyMCE in WordPress",author:"Frank Bueltge",authorurl:"http://bueltge.de/",infourl:"http://wordpress.org/extend/plugins/addquicktag/",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("rmnlQuicktagSettings_tmce",tinymce.plugins.AddQuicktag)})
js/add-quicktags.dev.js CHANGED
@@ -1,29 +1,70 @@
1
  /**
2
  * AddQuicktag Script to add buttons to html-editor
3
- * @since 2.0.0
4
  * @package AddQuicktag Plugin
 
 
 
5
  */
6
 
7
  jQuery( document ).ready( function( $ ) {
8
 
9
- if ( typeof addquicktag_tags == 'undefined' )
 
 
 
 
 
 
10
  return;
11
 
12
  var tags = addquicktag_tags['buttons'];
 
 
13
 
14
- if ( typeof tags !== 'undefined' ) {
 
15
 
16
  for ( var i = 0; i < tags.length; i++ ) {
17
- if ( typeof tags[i].title == 'undefined' ) tags[i].title = ' ';
18
- if ( typeof tags[i].end == 'undefined' ) tags[i].end = '';
19
- if ( typeof tags[i].access == 'undefined' ) tags[i].access = '';
20
-
21
- edButtons[edButtons.length] = new edButton(
22
- // id, display, tagStart, tagEnd, access_key, title
23
- tags[i].text.toLowerCase(), tags[i].text, tags[i].start, tags[i].end, tags[i].access, tags[i].title
24
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  }
26
 
27
- } // end if tags
28
 
29
  });
1
  /**
2
  * AddQuicktag Script to add buttons to html-editor
3
+ *
4
  * @package AddQuicktag Plugin
5
+ * @author Frank Bueltge <frank@bueltge.de>
6
+ * @version 07/11/2012
7
+ * @since 2.0.0
8
  */
9
 
10
  jQuery( document ).ready( function( $ ) {
11
 
12
+ if ( typeof addquicktag_tags == 'undefined' )
13
+ return;
14
+
15
+ if ( typeof addquicktag_post_type == 'undefined' )
16
+ return;
17
+
18
+ if ( typeof addquicktag_pt_for_js == 'undefined' )
19
  return;
20
 
21
  var tags = addquicktag_tags['buttons'];
22
+ if ( typeof tags == 'undefined' )
23
+ return;
24
 
25
+ // check post type
26
+ if ( $.inArray( "addquicktag_post_type", addquicktag_pt_for_js ) ) {
27
 
28
  for ( var i = 0; i < tags.length; i++ ) {
29
+ // check for active on this post type
30
+ if ( 1 === parseInt( tags[i][addquicktag_post_type] ) ) {
31
+
32
+ if ( typeof tags[i].title == 'undefined' ) tags[i].title = ' ';
33
+ if ( typeof tags[i].end == 'undefined' ) tags[i].end = '';
34
+ if ( typeof tags[i].access == 'undefined' ) tags[i].access = '';
35
+
36
+ /**
37
+ * @param id string required Button HTML ID
38
+ * @param display string required Button's value="..."
39
+ * @param arg1 string || function required Either a starting tag to be inserted like "<span>" or a callback that is executed when the button is clicked.
40
+ * @param arg2 string optional Ending tag like "</span>"
41
+ * @param access_key string optional Access key for the button.
42
+ * @param title string optional Button's title="..."
43
+ * @param priority int optional Number representing the desired position of the button in the toolbar. 1 - 9 = first, 11 - 19 = second, 21 - 29 = third, etc.
44
+ * @param instance string optional Limit the button to a specifric instance of Quicktags, add to all instances if not present.
45
+ */
46
+ QTags.addButton(
47
+ tags[i].text.toLowerCase(),
48
+ tags[i].text,
49
+ tags[i].start,
50
+ tags[i].end,
51
+ tags[i].access,
52
+ tags[i].title
53
+ );
54
+ /* old function
55
+ edButtons[edButtons.length] = new edButton(
56
+ // id, display, tagStart, tagEnd, access_key, title
57
+ tags[i].text.toLowerCase(),
58
+ tags[i].text,
59
+ tags[i].start,
60
+ tags[i].end,
61
+ tags[i].access,
62
+ tags[i].title
63
+ );
64
+ */
65
+ }
66
  }
67
 
68
+ } // end check post type
69
 
70
  });
js/add-quicktags.js CHANGED
@@ -1,7 +1,10 @@
1
  /**
2
  * AddQuicktag Script to add buttons to html-editor
3
- * @since 2.0.0
4
  * @package AddQuicktag Plugin
 
 
 
5
  */
6
 
7
- jQuery(document).ready(function(a){if(typeof addquicktag_tags=="undefined")return;var b=addquicktag_tags["buttons"];if(typeof b!=="undefined"){for(var c=0;c<b.length;c++){if(typeof b[c].title=="undefined")b[c].title=" ";if(typeof b[c].end=="undefined")b[c].end="";if(typeof b[c].access=="undefined")b[c].access="";edButtons[edButtons.length]=new edButton(b[c].text.toLowerCase(),b[c].text,b[c].start,b[c].end,b[c].access,b[c].title)}}})
1
  /**
2
  * AddQuicktag Script to add buttons to html-editor
3
+ *
4
  * @package AddQuicktag Plugin
5
+ * @author Frank Bueltge <frank@bueltge.de>
6
+ * @version 07/11/2012
7
+ * @since 2.0.0
8
  */
9
 
10
+ jQuery(document).ready(function(a){if(typeof addquicktag_tags=="undefined")return;if(typeof addquicktag_post_type=="undefined")return;if(typeof addquicktag_pt_for_js=="undefined")return;var b=addquicktag_tags["buttons"];if(typeof b=="undefined")return;if(a.inArray("addquicktag_post_type",addquicktag_pt_for_js)){for(var c=0;c<b.length;c++){if(1===parseInt(b[c][addquicktag_post_type])){if(typeof b[c].title=="undefined")b[c].title=" ";if(typeof b[c].end=="undefined")b[c].end="";if(typeof b[c].access=="undefined")b[c].access="";QTags.addButton(b[c].text.toLowerCase(),b[c].text,b[c].start,b[c].end,b[c].access,b[c].title)}}}})
languages/addquicktag-de_DE.mo CHANGED
Binary file
languages/addquicktag-de_DE.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -43,116 +43,116 @@ msgstr ""
43
  msgid "http://bueltge.de"
44
  msgstr ""
45
 
46
- #: inc/class-settings.php:110
47
- #: inc/class-settings.php:127
48
  #: inc/class-settings.php:145
49
- #: inc/class-settings.php:153
 
50
  #@ default
51
  #@ addquicktag
52
  msgid "Settings"
53
  msgstr "Einstellungen"
54
 
55
- #: inc/class-settings.php:178
56
  #@ addquicktag
57
  msgid "Add or delete Quicktag buttons"
58
  msgstr "Ergänze oder lösche Quicktag Buttons"
59
 
60
- #: inc/class-settings.php:209
61
  #@ addquicktag
62
  msgid "Button Label*"
63
  msgstr "Button Name*"
64
 
65
- #: inc/class-settings.php:210
66
  #@ addquicktag
67
  msgid "Title Attribute"
68
  msgstr "Title Attribut"
69
 
70
- #: inc/class-settings.php:211
71
  #@ addquicktag
72
  msgid "Start Tag(s)*"
73
  msgstr "Start Tag(s)*"
74
 
75
- #: inc/class-settings.php:212
76
  #@ addquicktag
77
  msgid "End Tag(s)"
78
  msgstr "Ende Tag(s)"
79
 
80
- #: inc/class-settings.php:213
81
  #@ addquicktag
82
  msgid "Access Key"
83
  msgstr "Zugriffstaste"
84
 
85
- #: inc/class-settings.php:273
86
  #@ addquicktag
87
  msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
88
  msgstr "Ergänze neue Buttons, in dem die unteren Felder ausgefüllt werden. Felder mit * sind Pflichtfelder, müssen ausgefüllt werden. Um einen Button zu löschen, einfach die Felder des Buttons leeren und speichern."
89
 
90
- #: inc/class-settings.php:275
91
  #@ default
92
  msgid "Save Changes"
93
  msgstr ""
94
 
95
- #: inc/class-settings.php:310
96
  #@ addquicktag
97
  msgid "Like this plugin?"
98
  msgstr "Du magst das Plugin?"
99
 
100
- #: inc/class-settings.php:312
101
  #@ addquicktag
102
  msgid "Here's how you can give back:"
103
  msgstr "Über folgende Möglichkeiten kannst du etwas zurück geben:"
104
 
105
- #: inc/class-settings.php:314
106
  #@ addquicktag
107
  msgid "The Plugin on the WordPress plugin repository"
108
  msgstr "Das Plugin im offiziellen WordPress Repository"
109
 
110
- #: inc/class-settings.php:314
111
  #@ addquicktag
112
  msgid "Give the plugin a good rating."
113
  msgstr "Gib dem Plugin eine gute Wertung"
114
 
115
- #: inc/class-settings.php:315
116
  #@ addquicktag
117
  msgid "Donate via PayPal"
118
  msgstr "Spende via Paypal"
119
 
120
- #: inc/class-settings.php:315
121
  #@ addquicktag
122
  msgid "Donate a few euros."
123
  msgstr "Spende einige Euros"
124
 
125
- #: inc/class-settings.php:316
126
  #@ addquicktag
127
  msgid "Frank Bültge's Amazon Wish List"
128
  msgstr "Frank Bültge's Amazon Wunschliste"
129
 
130
- #: inc/class-settings.php:316
131
  #@ addquicktag
132
  msgid "Get me something from my wish list."
133
  msgstr "Suche dir was aus und lass mir ein Objekt meiner Wunschliste zukommen."
134
 
135
- #: inc/class-settings.php:335
136
  #@ addquicktag
137
  msgid "About this plugin"
138
  msgstr "Über das Plugin"
139
 
140
- #: inc/class-settings.php:338
141
  #@ addquicktag
142
  msgid "Version:"
143
  msgstr "Version:"
144
 
145
- #: inc/class-settings.php:342
146
  #@ addquicktag
147
  msgid "Description:"
148
  msgstr "Beschreibung:"
149
 
150
- #: inc/class-settings.php:214
151
  #@ addquicktag
152
  msgid "Order"
153
  msgstr "Reihenfolge"
154
 
155
- #: inc/class-settings.php:215
156
  #@ addquicktag
157
  msgid "Visual"
158
  msgstr "Visuell"
@@ -163,59 +163,69 @@ msgstr "Visuell"
163
  msgid "Allows you to easily add custom Quicktags to the html- and visual-editor."
164
  msgstr "Erlaubt das einfache Hinzufügen von Quicktags zum html- und visuellen Editor."
165
 
166
- #. translators: plugin header field 'Version'
167
- #: addquicktag.php:0
168
- #@ addquicktag
169
- msgid "2.0.0"
170
- msgstr ""
171
-
172
- #: inc/class-imexport.php:64
173
  #@ addquicktag
174
  msgid "Export"
175
  msgstr "Exportieren"
176
 
177
- #: inc/class-imexport.php:66
178
  #@ addquicktag
179
  msgid "When you click the button below the plugin will create an XML file for you to save to your computer."
180
  msgstr "Wenn du unten auf Export-Datei herunterladen klickst, wird das Plugin eine XML-Datei für dich erstellen, die du auf deinem Computer speichern kannst."
181
 
182
- #: inc/class-imexport.php:67
183
  #@ addquicktag
184
  msgid "This format, a custom XML, will contain your options from quicktags."
185
  msgstr "Dieses Format, ein benutzerdefniertes XML, beinhaltet Einstellungen der Quicktags."
186
 
187
- #: inc/class-imexport.php:68
188
  #@ addquicktag
189
  msgid "Once you’ve saved the download file, you can use the Import function in another WordPress installation to import this site."
190
  msgstr "Nachdem die heruntergeladene Datei gespeichert wurde, kannst du die Import-Funktion in einer anderen WordPress Installation nutzen."
191
 
192
- #: inc/class-imexport.php:72
193
  #@ addquicktag
194
  msgid "Download Export File"
195
  msgstr "Export-Datei herunterladen"
196
 
197
- #: inc/class-imexport.php:80
198
  #@ addquicktag
199
  msgid "Import"
200
  msgstr "Importieren"
201
 
202
- #: inc/class-imexport.php:82
203
  #@ addquicktag
204
  msgid "If you have quicktags from other installs, the plugin can import those into this site. To get started, choose a file to import."
205
  msgstr "Wenn du Quicktags von einer anderen WordPress Installation hast, dann kann das Plugin diese Einstellungen importieren. Zum Starten des Imports wähle eine Datei und klicke auf Datei aktualisieren und importieren."
206
 
207
- #: inc/class-imexport.php:87
208
  #@ addquicktag
209
  msgid "Upload file and import"
210
  msgstr "Datei aktualisieren und importieren"
211
 
212
- #: inc/class-imexport.php:178
213
  #@ addquicktag
214
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
215
  msgstr "Einstellungen wurden nicht aktualisiert - du hast keine ausreichenden Rechte um dies zu tun!"
216
 
217
- #: inc/class-settings.php:387
218
  #@ addquicktag
219
  msgid "Options saved."
220
  msgstr "Einstellungen gespeichert."
221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: AddQuicktag v2.2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2012-07-16 14:38:53+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
43
  msgid "http://bueltge.de"
44
  msgstr ""
45
 
46
+ #: inc/class-settings.php:128
 
47
  #: inc/class-settings.php:145
48
+ #: inc/class-settings.php:163
49
+ #: inc/class-settings.php:171
50
  #@ default
51
  #@ addquicktag
52
  msgid "Settings"
53
  msgstr "Einstellungen"
54
 
55
+ #: inc/class-settings.php:196
56
  #@ addquicktag
57
  msgid "Add or delete Quicktag buttons"
58
  msgstr "Ergänze oder lösche Quicktag Buttons"
59
 
60
+ #: inc/class-settings.php:237
61
  #@ addquicktag
62
  msgid "Button Label*"
63
  msgstr "Button Name*"
64
 
65
+ #: inc/class-settings.php:238
66
  #@ addquicktag
67
  msgid "Title Attribute"
68
  msgstr "Title Attribut"
69
 
70
+ #: inc/class-settings.php:239
71
  #@ addquicktag
72
  msgid "Start Tag(s)*"
73
  msgstr "Start Tag(s)*"
74
 
75
+ #: inc/class-settings.php:240
76
  #@ addquicktag
77
  msgid "End Tag(s)"
78
  msgstr "Ende Tag(s)"
79
 
80
+ #: inc/class-settings.php:241
81
  #@ addquicktag
82
  msgid "Access Key"
83
  msgstr "Zugriffstaste"
84
 
85
+ #: inc/class-settings.php:341
86
  #@ addquicktag
87
  msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
88
  msgstr "Ergänze neue Buttons, in dem die unteren Felder ausgefüllt werden. Felder mit * sind Pflichtfelder, müssen ausgefüllt werden. Um einen Button zu löschen, einfach die Felder des Buttons leeren und speichern."
89
 
90
+ #: inc/class-settings.php:343
91
  #@ default
92
  msgid "Save Changes"
93
  msgstr ""
94
 
95
+ #: inc/class-settings.php:378
96
  #@ addquicktag
97
  msgid "Like this plugin?"
98
  msgstr "Du magst das Plugin?"
99
 
100
+ #: inc/class-settings.php:380
101
  #@ addquicktag
102
  msgid "Here's how you can give back:"
103
  msgstr "Über folgende Möglichkeiten kannst du etwas zurück geben:"
104
 
105
+ #: inc/class-settings.php:382
106
  #@ addquicktag
107
  msgid "The Plugin on the WordPress plugin repository"
108
  msgstr "Das Plugin im offiziellen WordPress Repository"
109
 
110
+ #: inc/class-settings.php:382
111
  #@ addquicktag
112
  msgid "Give the plugin a good rating."
113
  msgstr "Gib dem Plugin eine gute Wertung"
114
 
115
+ #: inc/class-settings.php:383
116
  #@ addquicktag
117
  msgid "Donate via PayPal"
118
  msgstr "Spende via Paypal"
119
 
120
+ #: inc/class-settings.php:383
121
  #@ addquicktag
122
  msgid "Donate a few euros."
123
  msgstr "Spende einige Euros"
124
 
125
+ #: inc/class-settings.php:384
126
  #@ addquicktag
127
  msgid "Frank Bültge's Amazon Wish List"
128
  msgstr "Frank Bültge's Amazon Wunschliste"
129
 
130
+ #: inc/class-settings.php:384
131
  #@ addquicktag
132
  msgid "Get me something from my wish list."
133
  msgstr "Suche dir was aus und lass mir ein Objekt meiner Wunschliste zukommen."
134
 
135
+ #: inc/class-settings.php:404
136
  #@ addquicktag
137
  msgid "About this plugin"
138
  msgstr "Über das Plugin"
139
 
140
+ #: inc/class-settings.php:407
141
  #@ addquicktag
142
  msgid "Version:"
143
  msgstr "Version:"
144
 
145
+ #: inc/class-settings.php:411
146
  #@ addquicktag
147
  msgid "Description:"
148
  msgstr "Beschreibung:"
149
 
150
+ #: inc/class-settings.php:242
151
  #@ addquicktag
152
  msgid "Order"
153
  msgstr "Reihenfolge"
154
 
155
+ #: inc/class-settings.php:243
156
  #@ addquicktag
157
  msgid "Visual"
158
  msgstr "Visuell"
163
  msgid "Allows you to easily add custom Quicktags to the html- and visual-editor."
164
  msgstr "Erlaubt das einfache Hinzufügen von Quicktags zum html- und visuellen Editor."
165
 
166
+ #: inc/class-imexport.php:70
 
 
 
 
 
 
167
  #@ addquicktag
168
  msgid "Export"
169
  msgstr "Exportieren"
170
 
171
+ #: inc/class-imexport.php:72
172
  #@ addquicktag
173
  msgid "When you click the button below the plugin will create an XML file for you to save to your computer."
174
  msgstr "Wenn du unten auf Export-Datei herunterladen klickst, wird das Plugin eine XML-Datei für dich erstellen, die du auf deinem Computer speichern kannst."
175
 
176
+ #: inc/class-imexport.php:73
177
  #@ addquicktag
178
  msgid "This format, a custom XML, will contain your options from quicktags."
179
  msgstr "Dieses Format, ein benutzerdefniertes XML, beinhaltet Einstellungen der Quicktags."
180
 
181
+ #: inc/class-imexport.php:74
182
  #@ addquicktag
183
  msgid "Once you’ve saved the download file, you can use the Import function in another WordPress installation to import this site."
184
  msgstr "Nachdem die heruntergeladene Datei gespeichert wurde, kannst du die Import-Funktion in einer anderen WordPress Installation nutzen."
185
 
186
+ #: inc/class-imexport.php:78
187
  #@ addquicktag
188
  msgid "Download Export File"
189
  msgstr "Export-Datei herunterladen"
190
 
191
+ #: inc/class-imexport.php:86
192
  #@ addquicktag
193
  msgid "Import"
194
  msgstr "Importieren"
195
 
196
+ #: inc/class-imexport.php:88
197
  #@ addquicktag
198
  msgid "If you have quicktags from other installs, the plugin can import those into this site. To get started, choose a file to import."
199
  msgstr "Wenn du Quicktags von einer anderen WordPress Installation hast, dann kann das Plugin diese Einstellungen importieren. Zum Starten des Imports wähle eine Datei und klicke auf Datei aktualisieren und importieren."
200
 
201
+ #: inc/class-imexport.php:93
202
  #@ addquicktag
203
  msgid "Upload file and import"
204
  msgstr "Datei aktualisieren und importieren"
205
 
206
+ #: inc/class-imexport.php:184
207
  #@ addquicktag
208
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
209
  msgstr "Einstellungen wurden nicht aktualisiert - du hast keine ausreichenden Rechte um dies zu tun!"
210
 
211
+ #: inc/class-settings.php:456
212
  #@ addquicktag
213
  msgid "Options saved."
214
  msgstr "Einstellungen gespeichert."
215
 
216
+ #. translators: plugin header field 'Version'
217
+ #: addquicktag.php:0
218
+ #@ addquicktag
219
+ msgid "2.2.0"
220
+ msgstr ""
221
+
222
+ #: inc/class-settings.php:385
223
+ #@ addquicktag
224
+ msgid "Please give me feedback, contribute and file technical bugs on this GitHub Repo, use Issues."
225
+ msgstr "Bitte gib Feedback, Erweiterungen und Hinweis im Github Repo, nutze Issues."
226
+
227
+ #: inc/class-settings.php:385
228
+ #@ addquicktag
229
+ msgid "Github Repo for Contribute, Issues & Bugs"
230
+ msgstr "Github Repo für Erweiterungen, Hinweise & Fehler"
231
+
languages/addquicktag-fr_FR.mo CHANGED
Binary file
languages/addquicktag-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AddQuicktag v1.5.7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-06-28 10:02+0100\n"
6
- "PO-Revision-Date: 2012-06-28 10:08+0100\n"
7
  "Last-Translator: Li-An <lian00@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -19,148 +19,156 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  # @ addquicktag
22
- #: inc/class-imexport.php:64
23
  msgid "Export"
24
  msgstr "Exporter"
25
 
26
  # @ addquicktag
27
- #: inc/class-imexport.php:66
28
  msgid "When you click the button below the plugin will create an XML file for you to save to your computer."
29
  msgstr "Quand vous cliquez sur le bouton ci-dessous, le plugin va créer un fichier XML à sauvegarder sur votre ordinateur."
30
 
31
  # @ addquicktag
32
- #: inc/class-imexport.php:67
33
  msgid "This format, a custom XML, will contain your options from quicktags."
34
  msgstr "Ce format, un XML personnalisé, contiendra vos options de quicktags."
35
 
36
  # @ addquicktag
37
- #: inc/class-imexport.php:68
38
  msgid "Once you’ve saved the download file, you can use the Import function in another WordPress installation to import this site."
39
  msgstr "Une fois le fichier téléchargé, vous pouvez utiliser la fonction d'importation dans une autre installation Wordpress pour importer ces réglages."
40
 
41
  # @ addquicktag
42
- #: inc/class-imexport.php:72
43
  msgid "Download Export File"
44
  msgstr "Télécharger le fichier d'exportation"
45
 
46
  # @ addquicktag
47
- #: inc/class-imexport.php:80
48
  msgid "Import"
49
  msgstr "Importer"
50
 
51
  # @ addquicktag
52
- #: inc/class-imexport.php:82
53
  msgid "If you have quicktags from other installs, the plugin can import those into this site. To get started, choose a file to import."
54
  msgstr "Si vous avez des quicktags d'autres installations, le plugin peut les importer dans ce site. Pour commencer, veuillez choisir un fichier à importer."
55
 
56
  # @ addquicktag
57
- #: inc/class-imexport.php:87
58
  msgid "Upload file and import"
59
  msgstr "Uploader et importer fichier"
60
 
61
  # @ secure_wp
62
- #: inc/class-imexport.php:178
63
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
64
  msgstr "Options pas mises à jour - vous n'avez pas les droits pour réaliser cette action !"
65
 
66
- #: inc/class-settings.php:110
67
- #: inc/class-settings.php:127
68
  #: inc/class-settings.php:145
69
- #: inc/class-settings.php:153
 
70
  msgid "Settings"
71
  msgstr "Réglages"
72
 
73
  # @ addquicktag
74
- #: inc/class-settings.php:178
75
  msgid "Add or delete Quicktag buttons"
76
  msgstr "Ajouter ou supprimer des boutons Quicktag"
77
 
78
  # @ addquicktag
79
- #: inc/class-settings.php:211
80
  msgid "Button Label*"
81
  msgstr "Label du bouton*"
82
 
83
  # @ addquicktag
84
- #: inc/class-settings.php:212
85
  msgid "Title Attribute"
86
  msgstr "Attribut de titre"
87
 
88
  # @ addquicktag
89
- #: inc/class-settings.php:213
90
  msgid "Start Tag(s)*"
91
  msgstr "Début du/des tag(s)*"
92
 
93
  # @ addquicktag
94
- #: inc/class-settings.php:214
95
  msgid "End Tag(s)"
96
  msgstr "Fin du(des) tag(s)"
97
 
98
  # @ addquicktag
99
- #: inc/class-settings.php:215
100
  msgid "Access Key"
101
  msgstr "Clef d'accès"
102
 
103
  # @ addquicktag
104
- #: inc/class-settings.php:216
105
  msgid "Order"
106
  msgstr "Ordre"
107
 
108
  # @ addquicktag
109
- #: inc/class-settings.php:217
110
  msgid "Visual"
111
  msgstr "Visuel"
112
 
113
  # @ addquicktag
114
- #: inc/class-settings.php:275
115
  msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
116
  msgstr "Remplissez les champs ci-dessous ou éditez les quicktags. Les champs marqués d'un * sont obligatoires. Pour effacer un tag, videz simplement tous les champs."
117
 
118
  # @ default
119
- #: inc/class-settings.php:277
120
  msgid "Save Changes"
121
  msgstr "Sauvegarder les modifications"
122
 
123
  # @ addquicktag
124
- #: inc/class-settings.php:312
125
  msgid "Like this plugin?"
126
  msgstr "Vous aimez ce plugin ?"
127
 
128
  # @ addquicktag
129
- #: inc/class-settings.php:314
130
  msgid "Here's how you can give back:"
131
  msgstr "Voici comment le soutenir:"
132
 
133
  # @ addquicktag
134
- #: inc/class-settings.php:316
135
  msgid "Give the plugin a good rating."
136
  msgstr "Donner au plugin une bonne note."
137
 
138
  # @ addquicktag
139
- #: inc/class-settings.php:317
140
  msgid "Donate a few euros."
141
  msgstr "Donner quelques euros."
142
 
143
  # @ addquicktag
144
- #: inc/class-settings.php:318
145
  msgid "Get me something from my wish list."
146
  msgstr "Offrez moi quelque chose de ma liste d'envies."
147
 
 
 
 
 
 
 
 
 
148
  # @ addquicktag
149
- #: inc/class-settings.php:337
150
  msgid "About this plugin"
151
  msgstr "À propos de ce plugin"
152
 
153
- #: inc/class-settings.php:340
154
  msgid "Version:"
155
  msgstr "Version:"
156
 
157
  # @ addquicktag
158
- #: inc/class-settings.php:344
159
  msgid "Description:"
160
  msgstr "Description:"
161
 
162
  # @ addquicktag
163
- #: inc/class-settings.php:389
164
  msgid "Options saved."
165
  msgstr "Options sauvegardées."
166
 
2
  msgstr ""
3
  "Project-Id-Version: AddQuicktag v1.5.7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-19 09:41+0100\n"
6
+ "PO-Revision-Date: 2012-07-19 09:44+0100\n"
7
  "Last-Translator: Li-An <lian00@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  # @ addquicktag
22
+ #: inc/class-imexport.php:70
23
  msgid "Export"
24
  msgstr "Exporter"
25
 
26
  # @ addquicktag
27
+ #: inc/class-imexport.php:72
28
  msgid "When you click the button below the plugin will create an XML file for you to save to your computer."
29
  msgstr "Quand vous cliquez sur le bouton ci-dessous, le plugin va créer un fichier XML à sauvegarder sur votre ordinateur."
30
 
31
  # @ addquicktag
32
+ #: inc/class-imexport.php:73
33
  msgid "This format, a custom XML, will contain your options from quicktags."
34
  msgstr "Ce format, un XML personnalisé, contiendra vos options de quicktags."
35
 
36
  # @ addquicktag
37
+ #: inc/class-imexport.php:74
38
  msgid "Once you’ve saved the download file, you can use the Import function in another WordPress installation to import this site."
39
  msgstr "Une fois le fichier téléchargé, vous pouvez utiliser la fonction d'importation dans une autre installation Wordpress pour importer ces réglages."
40
 
41
  # @ addquicktag
42
+ #: inc/class-imexport.php:78
43
  msgid "Download Export File"
44
  msgstr "Télécharger le fichier d'exportation"
45
 
46
  # @ addquicktag
47
+ #: inc/class-imexport.php:86
48
  msgid "Import"
49
  msgstr "Importer"
50
 
51
  # @ addquicktag
52
+ #: inc/class-imexport.php:88
53
  msgid "If you have quicktags from other installs, the plugin can import those into this site. To get started, choose a file to import."
54
  msgstr "Si vous avez des quicktags d'autres installations, le plugin peut les importer dans ce site. Pour commencer, veuillez choisir un fichier à importer."
55
 
56
  # @ addquicktag
57
+ #: inc/class-imexport.php:93
58
  msgid "Upload file and import"
59
  msgstr "Uploader et importer fichier"
60
 
61
  # @ secure_wp
62
+ #: inc/class-imexport.php:184
63
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
64
  msgstr "Options pas mises à jour - vous n'avez pas les droits pour réaliser cette action !"
65
 
66
+ #: inc/class-settings.php:128
 
67
  #: inc/class-settings.php:145
68
+ #: inc/class-settings.php:163
69
+ #: inc/class-settings.php:171
70
  msgid "Settings"
71
  msgstr "Réglages"
72
 
73
  # @ addquicktag
74
+ #: inc/class-settings.php:196
75
  msgid "Add or delete Quicktag buttons"
76
  msgstr "Ajouter ou supprimer des boutons Quicktag"
77
 
78
  # @ addquicktag
79
+ #: inc/class-settings.php:238
80
  msgid "Button Label*"
81
  msgstr "Label du bouton*"
82
 
83
  # @ addquicktag
84
+ #: inc/class-settings.php:239
85
  msgid "Title Attribute"
86
  msgstr "Attribut de titre"
87
 
88
  # @ addquicktag
89
+ #: inc/class-settings.php:240
90
  msgid "Start Tag(s)*"
91
  msgstr "Début du/des tag(s)*"
92
 
93
  # @ addquicktag
94
+ #: inc/class-settings.php:241
95
  msgid "End Tag(s)"
96
  msgstr "Fin du(des) tag(s)"
97
 
98
  # @ addquicktag
99
+ #: inc/class-settings.php:242
100
  msgid "Access Key"
101
  msgstr "Clef d'accès"
102
 
103
  # @ addquicktag
104
+ #: inc/class-settings.php:243
105
  msgid "Order"
106
  msgstr "Ordre"
107
 
108
  # @ addquicktag
109
+ #: inc/class-settings.php:244
110
  msgid "Visual"
111
  msgstr "Visuel"
112
 
113
  # @ addquicktag
114
+ #: inc/class-settings.php:342
115
  msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
116
  msgstr "Remplissez les champs ci-dessous ou éditez les quicktags. Les champs marqués d'un * sont obligatoires. Pour effacer un tag, videz simplement tous les champs."
117
 
118
  # @ default
119
+ #: inc/class-settings.php:344
120
  msgid "Save Changes"
121
  msgstr "Sauvegarder les modifications"
122
 
123
  # @ addquicktag
124
+ #: inc/class-settings.php:379
125
  msgid "Like this plugin?"
126
  msgstr "Vous aimez ce plugin ?"
127
 
128
  # @ addquicktag
129
+ #: inc/class-settings.php:381
130
  msgid "Here's how you can give back:"
131
  msgstr "Voici comment le soutenir:"
132
 
133
  # @ addquicktag
134
+ #: inc/class-settings.php:383
135
  msgid "Give the plugin a good rating."
136
  msgstr "Donner au plugin une bonne note."
137
 
138
  # @ addquicktag
139
+ #: inc/class-settings.php:384
140
  msgid "Donate a few euros."
141
  msgstr "Donner quelques euros."
142
 
143
  # @ addquicktag
144
+ #: inc/class-settings.php:385
145
  msgid "Get me something from my wish list."
146
  msgstr "Offrez moi quelque chose de ma liste d'envies."
147
 
148
+ #: inc/class-settings.php:386
149
+ msgid "Please give me feedback, contribute and file technical bugs on this GitHub Repo, use Issues."
150
+ msgstr "Veuillez m'envoyer un retour, contribuer et trouver les bugs sur le site de dépôt GitHub, et utilisez Issues."
151
+
152
+ #: inc/class-settings.php:386
153
+ msgid "Github Repo for Contribute, Issues & Bugs"
154
+ msgstr "Dépôt Github pour contribuer, soumettre bugs et problèmes"
155
+
156
  # @ addquicktag
157
+ #: inc/class-settings.php:405
158
  msgid "About this plugin"
159
  msgstr "À propos de ce plugin"
160
 
161
+ #: inc/class-settings.php:408
162
  msgid "Version:"
163
  msgstr "Version:"
164
 
165
  # @ addquicktag
166
+ #: inc/class-settings.php:412
167
  msgid "Description:"
168
  msgstr "Description:"
169
 
170
  # @ addquicktag
171
+ #: inc/class-settings.php:463
172
  msgid "Options saved."
173
  msgstr "Options sauvegardées."
174
 
languages/addquicktag-xx_XX.pot CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -43,116 +43,116 @@ msgstr ""
43
  msgid "http://bueltge.de"
44
  msgstr ""
45
 
46
- #: inc/class-settings.php:110
47
- #: inc/class-settings.php:127
48
  #: inc/class-settings.php:145
49
- #: inc/class-settings.php:153
 
50
  #@ default
51
  #@ addquicktag
52
  msgid "Settings"
53
  msgstr "Einstellungen"
54
 
55
- #: inc/class-settings.php:178
56
  #@ addquicktag
57
  msgid "Add or delete Quicktag buttons"
58
  msgstr "Ergänze oder lösche Quicktag Buttons"
59
 
60
- #: inc/class-settings.php:209
61
  #@ addquicktag
62
  msgid "Button Label*"
63
  msgstr "Button Name*"
64
 
65
- #: inc/class-settings.php:210
66
  #@ addquicktag
67
  msgid "Title Attribute"
68
  msgstr "Title Attribut"
69
 
70
- #: inc/class-settings.php:211
71
  #@ addquicktag
72
  msgid "Start Tag(s)*"
73
  msgstr "Start Tag(s)*"
74
 
75
- #: inc/class-settings.php:212
76
  #@ addquicktag
77
  msgid "End Tag(s)"
78
  msgstr "Ende Tag(s)"
79
 
80
- #: inc/class-settings.php:213
81
  #@ addquicktag
82
  msgid "Access Key"
83
  msgstr "Zugriffstaste"
84
 
85
- #: inc/class-settings.php:273
86
  #@ addquicktag
87
  msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
88
  msgstr "Ergänze neue Buttons, in dem die unteren Felder ausgefüllt werden. Felder mit * sind Pflichtfelder, müssen ausgefüllt werden. Um einen Button zu löschen, einfach die Felder des Buttons leeren und speichern."
89
 
90
- #: inc/class-settings.php:275
91
  #@ default
92
  msgid "Save Changes"
93
  msgstr ""
94
 
95
- #: inc/class-settings.php:310
96
  #@ addquicktag
97
  msgid "Like this plugin?"
98
  msgstr "Du magst das Plugin?"
99
 
100
- #: inc/class-settings.php:312
101
  #@ addquicktag
102
  msgid "Here's how you can give back:"
103
  msgstr "Über folgende Möglichkeiten kannst du etwas zurück geben:"
104
 
105
- #: inc/class-settings.php:314
106
  #@ addquicktag
107
  msgid "The Plugin on the WordPress plugin repository"
108
  msgstr "Das Plugin im offiziellen WordPress Repository"
109
 
110
- #: inc/class-settings.php:314
111
  #@ addquicktag
112
  msgid "Give the plugin a good rating."
113
  msgstr "Gib dem Plugin eine gute Wertung"
114
 
115
- #: inc/class-settings.php:315
116
  #@ addquicktag
117
  msgid "Donate via PayPal"
118
  msgstr "Spende via Paypal"
119
 
120
- #: inc/class-settings.php:315
121
  #@ addquicktag
122
  msgid "Donate a few euros."
123
  msgstr "Spende einige Euros"
124
 
125
- #: inc/class-settings.php:316
126
  #@ addquicktag
127
  msgid "Frank Bültge's Amazon Wish List"
128
  msgstr "Frank Bültge's Amazon Wunschliste"
129
 
130
- #: inc/class-settings.php:316
131
  #@ addquicktag
132
  msgid "Get me something from my wish list."
133
  msgstr "Suche dir was aus und lass mir ein Objekt meiner Wunschliste zukommen."
134
 
135
- #: inc/class-settings.php:335
136
  #@ addquicktag
137
  msgid "About this plugin"
138
  msgstr "Über das Plugin"
139
 
140
- #: inc/class-settings.php:338
141
  #@ addquicktag
142
  msgid "Version:"
143
  msgstr "Version:"
144
 
145
- #: inc/class-settings.php:342
146
  #@ addquicktag
147
  msgid "Description:"
148
  msgstr "Beschreibung:"
149
 
150
- #: inc/class-settings.php:214
151
  #@ addquicktag
152
  msgid "Order"
153
  msgstr "Reihenfolge"
154
 
155
- #: inc/class-settings.php:215
156
  #@ addquicktag
157
  msgid "Visual"
158
  msgstr "Visuell"
@@ -163,59 +163,69 @@ msgstr "Visuell"
163
  msgid "Allows you to easily add custom Quicktags to the html- and visual-editor."
164
  msgstr "Erlaubt das einfache Hinzufügen von Quicktags zum html- und visuellen Editor."
165
 
166
- #. translators: plugin header field 'Version'
167
- #: addquicktag.php:0
168
- #@ addquicktag
169
- msgid "2.0.0"
170
- msgstr ""
171
-
172
- #: inc/class-imexport.php:64
173
  #@ addquicktag
174
  msgid "Export"
175
  msgstr "Exportieren"
176
 
177
- #: inc/class-imexport.php:66
178
  #@ addquicktag
179
  msgid "When you click the button below the plugin will create an XML file for you to save to your computer."
180
  msgstr "Wenn du unten auf Export-Datei herunterladen klickst, wird das Plugin eine XML-Datei für dich erstellen, die du auf deinem Computer speichern kannst."
181
 
182
- #: inc/class-imexport.php:67
183
  #@ addquicktag
184
  msgid "This format, a custom XML, will contain your options from quicktags."
185
  msgstr "Dieses Format, ein benutzerdefniertes XML, beinhaltet Einstellungen der Quicktags."
186
 
187
- #: inc/class-imexport.php:68
188
  #@ addquicktag
189
  msgid "Once you’ve saved the download file, you can use the Import function in another WordPress installation to import this site."
190
  msgstr "Nachdem die heruntergeladene Datei gespeichert wurde, kannst du die Import-Funktion in einer anderen WordPress Installation nutzen."
191
 
192
- #: inc/class-imexport.php:72
193
  #@ addquicktag
194
  msgid "Download Export File"
195
  msgstr "Export-Datei herunterladen"
196
 
197
- #: inc/class-imexport.php:80
198
  #@ addquicktag
199
  msgid "Import"
200
  msgstr "Importieren"
201
 
202
- #: inc/class-imexport.php:82
203
  #@ addquicktag
204
  msgid "If you have quicktags from other installs, the plugin can import those into this site. To get started, choose a file to import."
205
  msgstr "Wenn du Quicktags von einer anderen WordPress Installation hast, dann kann das Plugin diese Einstellungen importieren. Zum Starten des Imports wähle eine Datei und klicke auf Datei aktualisieren und importieren."
206
 
207
- #: inc/class-imexport.php:87
208
  #@ addquicktag
209
  msgid "Upload file and import"
210
  msgstr "Datei aktualisieren und importieren"
211
 
212
- #: inc/class-imexport.php:178
213
  #@ addquicktag
214
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
215
  msgstr "Einstellungen wurden nicht aktualisiert - du hast keine ausreichenden Rechte um dies zu tun!"
216
 
217
- #: inc/class-settings.php:387
218
  #@ addquicktag
219
  msgid "Options saved."
220
  msgstr "Einstellungen gespeichert."
221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: AddQuicktag v2.2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2012-07-16 14:38:53+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
43
  msgid "http://bueltge.de"
44
  msgstr ""
45
 
46
+ #: inc/class-settings.php:128
 
47
  #: inc/class-settings.php:145
48
+ #: inc/class-settings.php:163
49
+ #: inc/class-settings.php:171
50
  #@ default
51
  #@ addquicktag
52
  msgid "Settings"
53
  msgstr "Einstellungen"
54
 
55
+ #: inc/class-settings.php:196
56
  #@ addquicktag
57
  msgid "Add or delete Quicktag buttons"
58
  msgstr "Ergänze oder lösche Quicktag Buttons"
59
 
60
+ #: inc/class-settings.php:237
61
  #@ addquicktag
62
  msgid "Button Label*"
63
  msgstr "Button Name*"
64
 
65
+ #: inc/class-settings.php:238
66
  #@ addquicktag
67
  msgid "Title Attribute"
68
  msgstr "Title Attribut"
69
 
70
+ #: inc/class-settings.php:239
71
  #@ addquicktag
72
  msgid "Start Tag(s)*"
73
  msgstr "Start Tag(s)*"
74
 
75
+ #: inc/class-settings.php:240
76
  #@ addquicktag
77
  msgid "End Tag(s)"
78
  msgstr "Ende Tag(s)"
79
 
80
+ #: inc/class-settings.php:241
81
  #@ addquicktag
82
  msgid "Access Key"
83
  msgstr "Zugriffstaste"
84
 
85
+ #: inc/class-settings.php:341
86
  #@ addquicktag
87
  msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
88
  msgstr "Ergänze neue Buttons, in dem die unteren Felder ausgefüllt werden. Felder mit * sind Pflichtfelder, müssen ausgefüllt werden. Um einen Button zu löschen, einfach die Felder des Buttons leeren und speichern."
89
 
90
+ #: inc/class-settings.php:343
91
  #@ default
92
  msgid "Save Changes"
93
  msgstr ""
94
 
95
+ #: inc/class-settings.php:378
96
  #@ addquicktag
97
  msgid "Like this plugin?"
98
  msgstr "Du magst das Plugin?"
99
 
100
+ #: inc/class-settings.php:380
101
  #@ addquicktag
102
  msgid "Here's how you can give back:"
103
  msgstr "Über folgende Möglichkeiten kannst du etwas zurück geben:"
104
 
105
+ #: inc/class-settings.php:382
106
  #@ addquicktag
107
  msgid "The Plugin on the WordPress plugin repository"
108
  msgstr "Das Plugin im offiziellen WordPress Repository"
109
 
110
+ #: inc/class-settings.php:382
111
  #@ addquicktag
112
  msgid "Give the plugin a good rating."
113
  msgstr "Gib dem Plugin eine gute Wertung"
114
 
115
+ #: inc/class-settings.php:383
116
  #@ addquicktag
117
  msgid "Donate via PayPal"
118
  msgstr "Spende via Paypal"
119
 
120
+ #: inc/class-settings.php:383
121
  #@ addquicktag
122
  msgid "Donate a few euros."
123
  msgstr "Spende einige Euros"
124
 
125
+ #: inc/class-settings.php:384
126
  #@ addquicktag
127
  msgid "Frank Bültge's Amazon Wish List"
128
  msgstr "Frank Bültge's Amazon Wunschliste"
129
 
130
+ #: inc/class-settings.php:384
131
  #@ addquicktag
132
  msgid "Get me something from my wish list."
133
  msgstr "Suche dir was aus und lass mir ein Objekt meiner Wunschliste zukommen."
134
 
135
+ #: inc/class-settings.php:404
136
  #@ addquicktag
137
  msgid "About this plugin"
138
  msgstr "Über das Plugin"
139
 
140
+ #: inc/class-settings.php:407
141
  #@ addquicktag
142
  msgid "Version:"
143
  msgstr "Version:"
144
 
145
+ #: inc/class-settings.php:411
146
  #@ addquicktag
147
  msgid "Description:"
148
  msgstr "Beschreibung:"
149
 
150
+ #: inc/class-settings.php:242
151
  #@ addquicktag
152
  msgid "Order"
153
  msgstr "Reihenfolge"
154
 
155
+ #: inc/class-settings.php:243
156
  #@ addquicktag
157
  msgid "Visual"
158
  msgstr "Visuell"
163
  msgid "Allows you to easily add custom Quicktags to the html- and visual-editor."
164
  msgstr "Erlaubt das einfache Hinzufügen von Quicktags zum html- und visuellen Editor."
165
 
166
+ #: inc/class-imexport.php:70
 
 
 
 
 
 
167
  #@ addquicktag
168
  msgid "Export"
169
  msgstr "Exportieren"
170
 
171
+ #: inc/class-imexport.php:72
172
  #@ addquicktag
173
  msgid "When you click the button below the plugin will create an XML file for you to save to your computer."
174
  msgstr "Wenn du unten auf Export-Datei herunterladen klickst, wird das Plugin eine XML-Datei für dich erstellen, die du auf deinem Computer speichern kannst."
175
 
176
+ #: inc/class-imexport.php:73
177
  #@ addquicktag
178
  msgid "This format, a custom XML, will contain your options from quicktags."
179
  msgstr "Dieses Format, ein benutzerdefniertes XML, beinhaltet Einstellungen der Quicktags."
180
 
181
+ #: inc/class-imexport.php:74
182
  #@ addquicktag
183
  msgid "Once you’ve saved the download file, you can use the Import function in another WordPress installation to import this site."
184
  msgstr "Nachdem die heruntergeladene Datei gespeichert wurde, kannst du die Import-Funktion in einer anderen WordPress Installation nutzen."
185
 
186
+ #: inc/class-imexport.php:78
187
  #@ addquicktag
188
  msgid "Download Export File"
189
  msgstr "Export-Datei herunterladen"
190
 
191
+ #: inc/class-imexport.php:86
192
  #@ addquicktag
193
  msgid "Import"
194
  msgstr "Importieren"
195
 
196
+ #: inc/class-imexport.php:88
197
  #@ addquicktag
198
  msgid "If you have quicktags from other installs, the plugin can import those into this site. To get started, choose a file to import."
199
  msgstr "Wenn du Quicktags von einer anderen WordPress Installation hast, dann kann das Plugin diese Einstellungen importieren. Zum Starten des Imports wähle eine Datei und klicke auf Datei aktualisieren und importieren."
200
 
201
+ #: inc/class-imexport.php:93
202
  #@ addquicktag
203
  msgid "Upload file and import"
204
  msgstr "Datei aktualisieren und importieren"
205
 
206
+ #: inc/class-imexport.php:184
207
  #@ addquicktag
208
  msgid "Options not update - you don&lsquo;t have the privilidges to do this!"
209
  msgstr "Einstellungen wurden nicht aktualisiert - du hast keine ausreichenden Rechte um dies zu tun!"
210
 
211
+ #: inc/class-settings.php:456
212
  #@ addquicktag
213
  msgid "Options saved."
214
  msgstr "Einstellungen gespeichert."
215
 
216
+ #. translators: plugin header field 'Version'
217
+ #: addquicktag.php:0
218
+ #@ addquicktag
219
+ msgid "2.2.0"
220
+ msgstr ""
221
+
222
+ #: inc/class-settings.php:385
223
+ #@ addquicktag
224
+ msgid "Please give me feedback, contribute and file technical bugs on this GitHub Repo, use Issues."
225
+ msgstr "Bitte gib Feedback, Erweiterungen und Hinweis im Github Repo, nutze Issues."
226
+
227
+ #: inc/class-settings.php:385
228
+ #@ addquicktag
229
+ msgid "Github Repo for Contribute, Issues & Bugs"
230
+ msgstr "Github Repo für Erweiterungen, Hinweise & Fehler"
231
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: quicktag, editor, tinymce, add buttons, button, buttons, visual editor
5
  Requires at least: 3.0
6
  Tested up to: 3.5-Alpha
7
- Stable tag: 2.1.0
8
 
9
  This plugin make it easy, Quicktags add to the html - and visual-editor.
10
 
@@ -97,6 +97,15 @@ The plugin comes with various translations, please refer to the [WordPress Codex
97
 
98
 
99
  == Changelog ==
 
 
 
 
 
 
 
 
 
100
  = 2.1.0 =
101
  * Add fix, see [Forum thread 'array_multisort error'](http://wordpress.org/support/topic/plugin-addquicktag-array_multisort-error#post-2920394)
102
  * See Quicktag button in visual editor, onbly if an button is actove for visual
4
  Tags: quicktag, editor, tinymce, add buttons, button, buttons, visual editor
5
  Requires at least: 3.0
6
  Tested up to: 3.5-Alpha
7
+ Stable tag: 2.2.0
8
 
9
  This plugin make it easy, Quicktags add to the html - and visual-editor.
10
 
97
 
98
 
99
  == Changelog ==
100
+ = 2.2.0 =
101
+ * Add checkboxes for different post type, use also filter for custom post type
102
+ * Change script on HTML editor, only include buttons, there have an active checkbox on options for his post type
103
+ * Add more data in JSON
104
+ * Fix for custom post types; works now also on settings page
105
+ * Change function to add button in html editor --> `QTags.addButton()`
106
+ * Update im/export function for use with custmo post type
107
+ * Fix settings page on network for WP 3.5
108
+
109
  = 2.1.0 =
110
  * Add fix, see [Forum thread 'array_multisort error'](http://wordpress.org/support/topic/plugin-addquicktag-array_multisort-error#post-2920394)
111
  * See Quicktag button in visual editor, onbly if an button is actove for visual
screenshot-1.png CHANGED
Binary file