FV Top Level Categories - Version 1.6

Version Description

Download this release

Release Info

Developer FolioVision
Plugin Icon 128x128 FV Top Level Categories
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

languages/fv_tlc-sk_SK.mo ADDED
Binary file
languages/fv_tlc-sk_SK.po ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: FV-topl-level-categories\n"
4
+ "POT-Creation-Date: 2014-09-19 11:37+0100\n"
5
+ "PO-Revision-Date: 2014-09-19 11:49+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: sk_SK\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.9\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../top-level-cats.php:374
19
+ msgid "Adjust categories in your post URLs"
20
+ msgstr "Nastavenie kategórií v URL adresách postov"
21
+
22
+ #: ../top-level-cats.php:382
23
+ msgid "Only use top-level catogories in URLs."
24
+ msgstr "Použiť iba hlavné kategórie v adresách URL."
25
+
26
+ #: ../top-level-cats.php:390
27
+ msgid "Only allow following categories in URLs:"
28
+ msgstr "V URL adresách povoliť iba nasledujúce kategórie:"
29
+
30
+ #: ../top-level-cats.php:397
31
+ msgid "Save Changes"
32
+ msgstr "Uložiť zmeny"
33
+
34
+ #: ../top-level-cats.php:401
35
+ msgid ""
36
+ "Are you having any problems or questions? Use our <a target=\"_blank\" href="
37
+ "\"http://foliovision.com/support/fv-top-level-categories/\">support forums</"
38
+ "a>."
39
+ msgstr ""
40
+ "Máte nejaké problémy alebo otázky? Použite naše <a target=\"_blank\" href="
41
+ "\"http://foliovision.com/support/fv-top-level-categories/\">forúm podpory</"
42
+ "a>."
43
+
44
+ #: ../top-level-cats.php:406
45
+ msgid ""
46
+ "Since you are not using %category% in your post permalinks, there is nothing "
47
+ "to adjust."
48
+ msgstr ""
49
+ "Keďže vo svojích post permalinkoch nepoužívate %category% nie je tu nič čo "
50
+ "by ste mohli nastaviť."
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: FolioVision
3
  Donate link: http://foliovision.com/seo-tools/wordpress/plugins/fv-top-level-categories
4
  Tags: categories, permalink
5
  Requires at least: 3.2.1
6
- Tested up to: 4.0
7
  Stable tag: trunk
8
 
9
  This is a fix of Top Level Categories plugin for Wordpress 3.1. and above.
@@ -45,6 +45,9 @@ Make sure your categories have unique slugs - watch out for pages with the same
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = Version 1.5 - July 22nd, 2014 =
49
  * Settings screen added!
50
  * Category restrictions for post permalinks added! If you use post permalink structure with category in it, you can now restrict which categories will be allowed in the URL. Wordpress always picks the category with lowest category ID and that often causes inappropriate categories to show up in URLs - like /featured-content/2014/07/my-post"
3
  Donate link: http://foliovision.com/seo-tools/wordpress/plugins/fv-top-level-categories
4
  Tags: categories, permalink
5
  Requires at least: 3.2.1
6
+ Tested up to: 4.1
7
  Stable tag: trunk
8
 
9
  This is a fix of Top Level Categories plugin for Wordpress 3.1. and above.
45
 
46
  == Changelog ==
47
 
48
+ = Version 1.6 - September 19th, 2014 =
49
+ * Adding support for translations ( Slovak language added )
50
+
51
  = Version 1.5 - July 22nd, 2014 =
52
  * Settings screen added!
53
  * Category restrictions for post permalinks added! If you use post permalink structure with category in it, you can now restrict which categories will be allowed in the URL. Wordpress always picks the category with lowest category ID and that often causes inappropriate categories to show up in URLs - like /featured-content/2014/07/my-post"
top-level-cats.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FV Top Level Categories
4
  Plugin URI: http://foliovision.com/seo-tools/wordpress/plugins/fv-top-level-categories
5
  Description: Removes the prefix from the URL for a category. For instance, if your old category link was <code>/category/catname</code> it will now be <code>/catname</code>
6
- Version: 1.5
7
  Author: Foliovision
8
  Author URI: http://foliovision.com/
9
  */
@@ -258,9 +258,10 @@ class FV_Top_Level_Cats {
258
 
259
  public function __construct() {
260
  add_action( 'admin_menu', array($this, 'admin_menu') );
 
261
  }
262
 
263
-
264
 
265
 
266
  function admin_menu() {
@@ -293,6 +294,14 @@ class FV_Top_Level_Cats {
293
 
294
 
295
 
 
 
 
 
 
 
 
 
296
 
297
  public static function is_top_level_only() {
298
  $options = get_option( 'fv_top_level_cats' );
@@ -366,7 +375,7 @@ class FV_Top_Level_Cats {
366
  <div id="poststuff" class="ui-sortable">
367
  <div class="postbox">
368
  <h3>
369
- <?php _e('Adjust categories in your post URLs') ?>
370
  </h3>
371
  <div class="inside">
372
  <table class="form-table">
@@ -374,7 +383,7 @@ class FV_Top_Level_Cats {
374
  <td>
375
  <label for="top-level-only">
376
  <input type="checkbox" name="top-level-only" id="top-level-only" value="1" <?php if( $options['top-level-only'] ) echo 'checked="checked"'; ?> />
377
- Only use top-level catogories in URLs.
378
  </label>
379
  </td>
380
  </tr>
@@ -382,23 +391,23 @@ class FV_Top_Level_Cats {
382
  <td>
383
  <label for="category-allow-enabled">
384
  <input type="checkbox" name="category-allow-enabled" id="category-allow-enabled" value="1" <?php if( $options['category-allow-enabled'] ) echo 'checked="checked"'; ?> />
385
- Only allow following categories in URLs:
386
  </label>
387
  <blockquote><ul id="category-allow"><?php wp_category_checklist( 0, 0, $options['category-allow'], false, null, false ); ?></ul></blockquote>
388
  </td>
389
  </tr>
390
  </table>
391
  <p>
392
- <input type="submit" name="fv_top_level_cats_submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
393
  </p>
394
  </div>
395
  </div>
396
- <p><?php echo __('Are you having any problems or questions? Use our <a target="_blank" href="http://foliovision.com/support/fv-top-level-categories/">support forums</a>.'); ?></p>
397
  </div>
398
 
399
  </form>
400
  <?php else : ?>
401
- <p>Since you are not using %category% in your post permalinks, there is nothing to adjust.</p>
402
  <?php endif; ?>
403
 
404
  </div>
@@ -410,5 +419,4 @@ class FV_Top_Level_Cats {
410
 
411
  }
412
 
413
-
414
  $FV_Top_Level_Cats = new FV_Top_Level_Cats;
3
  Plugin Name: FV Top Level Categories
4
  Plugin URI: http://foliovision.com/seo-tools/wordpress/plugins/fv-top-level-categories
5
  Description: Removes the prefix from the URL for a category. For instance, if your old category link was <code>/category/catname</code> it will now be <code>/catname</code>
6
+ Version: 1.6
7
  Author: Foliovision
8
  Author URI: http://foliovision.com/
9
  */
258
 
259
  public function __construct() {
260
  add_action( 'admin_menu', array($this, 'admin_menu') );
261
+ add_action('init',array($this,'load_languages'));
262
  }
263
 
264
+
265
 
266
 
267
  function admin_menu() {
294
 
295
 
296
 
297
+
298
+ function load_languages(){
299
+ // Localization
300
+ load_plugin_textdomain('fv_tlc', false, dirname(plugin_basename(__FILE__)) . "/languages");
301
+ }
302
+
303
+
304
+
305
 
306
  public static function is_top_level_only() {
307
  $options = get_option( 'fv_top_level_cats' );
375
  <div id="poststuff" class="ui-sortable">
376
  <div class="postbox">
377
  <h3>
378
+ <?php _e('Adjust categories in your post URLs','fv_tlc') ?>
379
  </h3>
380
  <div class="inside">
381
  <table class="form-table">
383
  <td>
384
  <label for="top-level-only">
385
  <input type="checkbox" name="top-level-only" id="top-level-only" value="1" <?php if( $options['top-level-only'] ) echo 'checked="checked"'; ?> />
386
+ <?php _e('Only use top-level catogories in URLs.','fv_tlc') ; ?>
387
  </label>
388
  </td>
389
  </tr>
391
  <td>
392
  <label for="category-allow-enabled">
393
  <input type="checkbox" name="category-allow-enabled" id="category-allow-enabled" value="1" <?php if( $options['category-allow-enabled'] ) echo 'checked="checked"'; ?> />
394
+ <?php _e('Only allow following categories in URLs:','fv_tlc' );?>
395
  </label>
396
  <blockquote><ul id="category-allow"><?php wp_category_checklist( 0, 0, $options['category-allow'], false, null, false ); ?></ul></blockquote>
397
  </td>
398
  </tr>
399
  </table>
400
  <p>
401
+ <input type="submit" name="fv_top_level_cats_submit" class="button-primary" value="<?php _e('Save Changes','fv_tlc'); ?>" />
402
  </p>
403
  </div>
404
  </div>
405
+ <p><?php echo __('Are you having any problems or questions? Use our <a target="_blank" href="http://foliovision.com/support/fv-top-level-categories/">support forums</a>.','fv_tlc'); ?></p>
406
  </div>
407
 
408
  </form>
409
  <?php else : ?>
410
+ <p><?php _e('Since you are not using %category% in your post permalinks, there is nothing to adjust.','fv_tlc'); ?></p>
411
  <?php endif; ?>
412
 
413
  </div>
419
 
420
  }
421
 
 
422
  $FV_Top_Level_Cats = new FV_Top_Level_Cats;