Content Aware Sidebars – Unlimited Widget Areas - Version 1.2

Version Description

  • Added: polylang support
  • Added: buddypress support
  • Added: managing sidebars now requires edit_theme_options cap
  • Added: bbpress user profile has own rules instead of author rules
  • Added: filter for content recognition
  • Added: auto-select new children of selected taxonomy or post type ancestor
Download this release

Release Info

Developer intoxstudio
Plugin Icon 128x128 Content Aware Sidebars – Unlimited Widget Areas
Version 1.2
Comparing to
See all releases

Code changes from version 1.1.2 to 1.2

content-aware-sidebars.php CHANGED
@@ -7,14 +7,14 @@
7
  Plugin Name: Content Aware Sidebars
8
  Plugin URI: http://www.intox.dk/
9
  Description: Manage and show sidebars according to the content being viewed.
10
- Version: 1.1.2
11
  Author: Joachim Jensen
12
  Author URI: http://www.intox.dk/
13
  Text Domain: content-aware-sidebars
14
  Domain Path: /lang/
15
  License: GPL2
16
 
17
- Copyright 2011-2012 Joachim Jensen (email : jv@intox.dk)
18
 
19
  This program is free software; you can redistribute it and/or modify
20
  it under the terms of the GNU General Public License, version 2, as
@@ -36,6 +36,7 @@ final class ContentAwareSidebars {
36
  const db_version = 1.1;
37
  const prefix = '_cas_';
38
 
 
39
  private $metadata = array();
40
  private $taxonomies = array();
41
  private $sidebar_cache = array();
@@ -49,6 +50,8 @@ final class ContentAwareSidebars {
49
  */
50
  public function __construct() {
51
 
 
 
52
  register_activation_hook(__FILE__, array(&$this,'plugin_activation'));
53
  register_deactivation_hook(__FILE__, array(&$this,'plugin_deactivation'));
54
 
@@ -98,6 +101,8 @@ final class ContentAwareSidebars {
98
  */
99
  public function deploy_modules() {
100
 
 
 
101
  // List modules
102
  $modules = array(
103
  'static' => true,
@@ -106,17 +111,19 @@ final class ContentAwareSidebars {
106
  'page_template' => true,
107
  'taxonomy' => true,
108
  'bbpress' => function_exists('bbp_get_version'), // bbPress
 
 
109
  'qtranslate' => defined('QT_SUPPORTED_WP_VERSION'), // qTranslate
110
- 'transposh' => defined('TRANSPOSH_PLUGIN_VER'), // Transposh Translation Filter
111
- 'wpml' => defined('ICL_LANGUAGE_CODE') // WPML Multilingual Blog/CMS
112
  );
113
 
114
- load_plugin_textdomain('content-aware-sidebars', false, dirname( plugin_basename(__FILE__)).'/lang/');
115
-
116
- // Fire!
117
  foreach($modules as $name => $enabled) {
118
- if($enabled)
119
- $this->modules[$name] = $this->_forge_module($name);
 
 
120
  }
121
 
122
  }
@@ -212,6 +219,15 @@ final class ContentAwareSidebars {
212
  'not_found' => __('No sidebars found', 'content-aware-sidebars'),
213
  'not_found_in_trash' => __('No sidebars found in Trash', 'content-aware-sidebars')
214
  ),
 
 
 
 
 
 
 
 
 
215
  'show_ui' => true,
216
  'query_var' => false,
217
  'rewrite' => false,
@@ -226,7 +242,7 @@ final class ContentAwareSidebars {
226
  *
227
  * Create update messages
228
  *
229
- * @global type $post
230
  * @param array $messages
231
  * @return array
232
  */
@@ -256,11 +272,16 @@ final class ContentAwareSidebars {
256
  *
257
  */
258
  public function clear_admin_menu() {
 
259
  foreach($this->taxonomies as $name) {
260
  remove_submenu_page('edit.php?post_type=sidebar','edit-tags.php?taxonomy='.$name.'&post_type=sidebar');
261
  remove_meta_box('tagsdiv-'.$name, 'sidebar', 'side');
262
  remove_meta_box($name.'div', 'sidebar', 'side');
263
  }
 
 
 
 
264
  }
265
 
266
  /**
@@ -352,7 +373,7 @@ final class ContentAwareSidebars {
352
  *
353
  * @param string $column_name
354
  * @param int $post_id
355
- * @return type
356
  */
357
  public function admin_column_rows($column_name,$post_id) {
358
 
@@ -377,12 +398,12 @@ final class ContentAwareSidebars {
377
  * Remove widget when its sidebar is removed
378
  *
379
  * @param int $post_id
380
- * @return type
381
  */
382
  public function remove_sidebar_widgets($post_id) {
383
 
384
  // Authenticate and only continue on sidebar post type
385
- if(!current_user_can('delete_posts') || get_post_type($post_id) != 'sidebar')
386
  return;
387
 
388
  $id = 'ca-sidebar-'.$post_id;
@@ -444,7 +465,7 @@ final class ContentAwareSidebars {
444
  * Handles content aware sidebars with hosts
445
  *
446
  * @global array $_wp_sidebars_widgets
447
- * @return type
448
  */
449
  public function replace_sidebar() {
450
  global $_wp_sidebars_widgets;
@@ -487,6 +508,66 @@ final class ContentAwareSidebars {
487
  }
488
  }
489
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  /**
491
  *
492
  * Query sidebars according to content
@@ -514,7 +595,7 @@ final class ContentAwareSidebars {
514
 
515
  // Get rules
516
  foreach($this->modules as $module) {
517
- if($module->is_content()) {
518
  $joins[] = apply_filters("cas-db-join-".$module->get_id(), $module->db_join());
519
  $where[] = apply_filters("cas-db-where-".$module->get_id(), $module->db_where());
520
  $where2[] = $module->db_where2();
@@ -599,16 +680,14 @@ final class ContentAwareSidebars {
599
  *
600
  * Hide some meta boxes from start
601
  *
602
- * @global type $wp_version
603
  * @param array $hidden
604
  * @param object $screen
605
  * @return array
606
  */
607
  public function change_default_hidden( $hidden, $screen ) {
608
- global $wp_version;
609
-
610
  //WordPress 3.3 has changed get_hidden_meta_boxes().
611
- if($wp_version < 3.3) {
612
  $condition = $screen->base == 'sidebar';
613
  } else {
614
  $condition = $screen->post_type == 'sidebar';
@@ -627,11 +706,21 @@ final class ContentAwareSidebars {
627
  }
628
 
629
  public function meta_box_rules() {
 
 
 
 
 
 
 
 
 
630
  echo '<div id="cas-accordion">'."\n";
631
  foreach($this->modules as $module) {
632
  $module->meta_box_content();
633
  }
634
  echo '</div>'."\n";
 
635
  }
636
 
637
  /**
@@ -726,12 +815,10 @@ final class ContentAwareSidebars {
726
  *
727
  * Save meta values for post
728
  *
729
- * @global type $wpdb
730
  * @param int $post_id
731
- * @return type
732
  */
733
  public function save_post($post_id) {
734
- global $wpdb;
735
 
736
  // Save button pressed
737
  if(!isset($_POST['original_publish']) && !isset($_POST['save_post']))
@@ -746,7 +833,7 @@ final class ContentAwareSidebars {
746
  return;
747
 
748
  // Check permissions
749
- if (!current_user_can('edit_post', $post_id))
750
  return;
751
 
752
  // Check autosave
@@ -792,6 +879,38 @@ final class ContentAwareSidebars {
792
  }
793
  }
794
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
795
  /**
796
  *
797
  * Database data update module
@@ -804,19 +923,17 @@ final class ContentAwareSidebars {
804
  /**
805
  *
806
  * Load scripts and styles for administration
807
- *
808
- * @global string $pagenow
809
  */
810
  public function load_admin_scripts($hook) {
811
- global $wp_version;
812
 
813
  wp_register_script('cas_admin_script', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/js/cas_admin.js', array('jquery'), '0.1', true);
814
  wp_register_style('cas_admin_style', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/css/style.css', array(), '0.1');
815
 
816
  if($hook == 'post.php' || $hook == 'post-new.php') {
817
  // WordPress < 3.3 does not have jQuery UI accordion
818
- if($wp_version < 3.3) {
819
- //die(var_dump($wp_version < 3.3));
820
  wp_register_script('cas-jquery-ui-accordion', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/js/jquery.ui.accordion.js', array('jquery-ui-core','jquery-ui-widget'), '1.8.9', true);
821
  wp_enqueue_script('cas-jquery-ui-accordion');
822
  } else {
@@ -844,21 +961,6 @@ final class ContentAwareSidebars {
844
 
845
  }
846
 
847
- /**
848
- *
849
- * Forge content module
850
- *
851
- * @param type $module
852
- * @return object
853
- */
854
- private function _forge_module($module) {
855
- if (include_once('modules/'.$module .'.php')) {
856
- $class = 'CASModule_'.$module;
857
- return new $class;
858
- }
859
- return false;
860
- }
861
-
862
  /**
863
  *
864
  * Flush rewrite rules on plugin activation
@@ -886,62 +988,12 @@ $ca_sidebars = new ContentAwareSidebars();
886
 
887
  /**
888
  *
889
- * Template function
890
  *
891
- * @global ContentAwareSidebars $ca_sidebars
892
- * @global array $_wp_sidebars_widgets
893
  * @param array|string $args
894
- * @return type
895
  */
896
  function display_ca_sidebar($args = array()) {
897
- global $ca_sidebars, $_wp_sidebars_widgets;
898
-
899
- // Grab args or defaults
900
- $defaults = array (
901
- 'include' => '',
902
- 'before' => '<div id="sidebar" class="widget-area"><ul class="xoxo">',
903
- 'after' => '</ul></div>'
904
- );
905
- $args = wp_parse_args($args,$defaults);
906
- extract($args,EXTR_SKIP);
907
-
908
- // Get sidebars
909
- $posts = $ca_sidebars->get_sidebars();
910
- if(!$posts)
911
- return;
912
-
913
- // Handle include argument
914
- if(!empty($include)) {
915
- if(!is_array($include))
916
- $include = explode(',',$include);
917
- // Fast lookup
918
- $include = array_flip($include);
919
- }
920
-
921
- $i = $host = 0;
922
- foreach($posts as $post) {
923
-
924
- $id = 'ca-sidebar-'.$post->ID;
925
-
926
- // Check for manual handling, if sidebar exists and if id should be included
927
- if ($post->handle != 2 || !isset($_wp_sidebars_widgets[$id]) || (!empty($include) && !isset($include[$post->ID])))
928
- continue;
929
-
930
- // Merge if more than one. First one is host.
931
- if($i > 0) {
932
- if(get_post_meta($post->ID, ContentAwareSidebars::prefix.'merge-pos', true))
933
- $_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$host],$_wp_sidebars_widgets[$id]);
934
- else
935
- $_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$id],$_wp_sidebars_widgets[$host]);
936
- } else {
937
- $host = $id;
938
- }
939
- $i++;
940
- }
941
-
942
- if ($host) {
943
- echo $before;
944
- dynamic_sidebar($host);
945
- echo $after;
946
- }
947
  }
7
  Plugin Name: Content Aware Sidebars
8
  Plugin URI: http://www.intox.dk/
9
  Description: Manage and show sidebars according to the content being viewed.
10
+ Version: 1.2
11
  Author: Joachim Jensen
12
  Author URI: http://www.intox.dk/
13
  Text Domain: content-aware-sidebars
14
  Domain Path: /lang/
15
  License: GPL2
16
 
17
+ Copyright 2011-2013 Joachim Jensen (email : jv@intox.dk)
18
 
19
  This program is free software; you can redistribute it and/or modify
20
  it under the terms of the GNU General Public License, version 2, as
36
  const db_version = 1.1;
37
  const prefix = '_cas_';
38
 
39
+ private $plugin_url;
40
  private $metadata = array();
41
  private $taxonomies = array();
42
  private $sidebar_cache = array();
50
  */
51
  public function __construct() {
52
 
53
+ $this->plugin_url = WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__));
54
+
55
  register_activation_hook(__FILE__, array(&$this,'plugin_activation'));
56
  register_deactivation_hook(__FILE__, array(&$this,'plugin_deactivation'));
57
 
101
  */
102
  public function deploy_modules() {
103
 
104
+ load_plugin_textdomain('content-aware-sidebars', false, dirname( plugin_basename(__FILE__)).'/lang/');
105
+
106
  // List modules
107
  $modules = array(
108
  'static' => true,
111
  'page_template' => true,
112
  'taxonomy' => true,
113
  'bbpress' => function_exists('bbp_get_version'), // bbPress
114
+ 'bp_member' => defined('BP_VERSION'), // BuddyPress
115
+ 'polylang' => defined('POLYLANG_VERSION'), // Polylang
116
  'qtranslate' => defined('QT_SUPPORTED_WP_VERSION'), // qTranslate
117
+ 'transposh' => defined('TRANSPOSH_PLUGIN_VER'), // Transposh Translation Filter
118
+ 'wpml' => defined('ICL_LANGUAGE_CODE') // WPML Multilingual Blog/CMS
119
  );
120
 
121
+ // Forge modules
 
 
122
  foreach($modules as $name => $enabled) {
123
+ if($enabled && include_once('modules/'.$name .'.php')) {
124
+ $class = 'CASModule_'.$name;
125
+ $this->modules[$name] = new $class;
126
+ }
127
  }
128
 
129
  }
219
  'not_found' => __('No sidebars found', 'content-aware-sidebars'),
220
  'not_found_in_trash' => __('No sidebars found in Trash', 'content-aware-sidebars')
221
  ),
222
+ 'capabilities' => array(
223
+ 'edit_post' => 'edit_theme_options',
224
+ 'read_post' => 'edit_theme_options',
225
+ 'delete_post' => 'edit_theme_options',
226
+ 'edit_posts' => 'edit_theme_options',
227
+ 'edit_others_posts' => 'edit_theme_options',
228
+ 'publish_posts' => 'edit_theme_options',
229
+ 'read_private_posts' => 'edit_theme_options'
230
+ ),
231
  'show_ui' => true,
232
  'query_var' => false,
233
  'rewrite' => false,
242
  *
243
  * Create update messages
244
  *
245
+ * @global object $post
246
  * @param array $messages
247
  * @return array
248
  */
272
  *
273
  */
274
  public function clear_admin_menu() {
275
+ if(current_user_can('edit_theme_options')) {
276
  foreach($this->taxonomies as $name) {
277
  remove_submenu_page('edit.php?post_type=sidebar','edit-tags.php?taxonomy='.$name.'&amp;post_type=sidebar');
278
  remove_meta_box('tagsdiv-'.$name, 'sidebar', 'side');
279
  remove_meta_box($name.'div', 'sidebar', 'side');
280
  }
281
+ } else {
282
+ remove_menu_page('edit.php?post_type=sidebar');
283
+
284
+ }
285
  }
286
 
287
  /**
373
  *
374
  * @param string $column_name
375
  * @param int $post_id
376
+ * @return void
377
  */
378
  public function admin_column_rows($column_name,$post_id) {
379
 
398
  * Remove widget when its sidebar is removed
399
  *
400
  * @param int $post_id
401
+ * @return void
402
  */
403
  public function remove_sidebar_widgets($post_id) {
404
 
405
  // Authenticate and only continue on sidebar post type
406
+ if(!current_user_can('edit_theme_options') || get_post_type($post_id) != 'sidebar')
407
  return;
408
 
409
  $id = 'ca-sidebar-'.$post_id;
465
  * Handles content aware sidebars with hosts
466
  *
467
  * @global array $_wp_sidebars_widgets
468
+ * @return void
469
  */
470
  public function replace_sidebar() {
471
  global $_wp_sidebars_widgets;
508
  }
509
  }
510
 
511
+ /**
512
+ *
513
+ * Show manually handled content aware sidebars
514
+ *
515
+ * @global array $_wp_sidebars_widgets
516
+ * @param string|array $args
517
+ * @return void
518
+ */
519
+ public function manual_sidebar($args) {
520
+ global $_wp_sidebars_widgets;
521
+
522
+ // Grab args or defaults
523
+ $args = wp_parse_args($args,array(
524
+ 'include' => '',
525
+ 'before' => '<div id="sidebar" class="widget-area"><ul class="xoxo">',
526
+ 'after' => '</ul></div>'
527
+ ));
528
+ extract($args,EXTR_SKIP);
529
+
530
+ // Get sidebars
531
+ $posts = $this->get_sidebars();
532
+ if(!$posts)
533
+ return;
534
+
535
+ // Handle include argument
536
+ if(!empty($include)) {
537
+ if(!is_array($include))
538
+ $include = explode(',',$include);
539
+ // Fast lookup
540
+ $include = array_flip($include);
541
+ }
542
+
543
+ $i = $host = 0;
544
+ foreach($posts as $post) {
545
+
546
+ $id = 'ca-sidebar-'.$post->ID;
547
+
548
+ // Check for manual handling, if sidebar exists and if id should be included
549
+ if ($post->handle != 2 || !isset($_wp_sidebars_widgets[$id]) || (!empty($include) && !isset($include[$post->ID])))
550
+ continue;
551
+
552
+ // Merge if more than one. First one is host.
553
+ if($i > 0) {
554
+ if(get_post_meta($post->ID, self::prefix.'merge-pos', true))
555
+ $_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$host],$_wp_sidebars_widgets[$id]);
556
+ else
557
+ $_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$id],$_wp_sidebars_widgets[$host]);
558
+ } else {
559
+ $host = $id;
560
+ }
561
+ $i++;
562
+ }
563
+
564
+ if ($host) {
565
+ echo $before;
566
+ dynamic_sidebar($host);
567
+ echo $after;
568
+ }
569
+ }
570
+
571
  /**
572
  *
573
  * Query sidebars according to content
595
 
596
  // Get rules
597
  foreach($this->modules as $module) {
598
+ if(apply_filters("cas-is-content-".$module->get_id(), $module->is_content())) {
599
  $joins[] = apply_filters("cas-db-join-".$module->get_id(), $module->db_join());
600
  $where[] = apply_filters("cas-db-where-".$module->get_id(), $module->db_where());
601
  $where2[] = $module->db_where2();
680
  *
681
  * Hide some meta boxes from start
682
  *
 
683
  * @param array $hidden
684
  * @param object $screen
685
  * @return array
686
  */
687
  public function change_default_hidden( $hidden, $screen ) {
688
+
 
689
  //WordPress 3.3 has changed get_hidden_meta_boxes().
690
+ if(get_bloginfo('version') < 3.3) {
691
  $condition = $screen->base == 'sidebar';
692
  } else {
693
  $condition = $screen->post_type == 'sidebar';
706
  }
707
 
708
  public function meta_box_rules() {
709
+ // global $pagenow;
710
+ //
711
+ // // New sidebar
712
+ // if($pagenow == 'post-new.php') {
713
+ //
714
+ // } else {
715
+ //
716
+ // }
717
+
718
  echo '<div id="cas-accordion">'."\n";
719
  foreach($this->modules as $module) {
720
  $module->meta_box_content();
721
  }
722
  echo '</div>'."\n";
723
+
724
  }
725
 
726
  /**
815
  *
816
  * Save meta values for post
817
  *
 
818
  * @param int $post_id
819
+ * @return void
820
  */
821
  public function save_post($post_id) {
 
822
 
823
  // Save button pressed
824
  if(!isset($_POST['original_publish']) && !isset($_POST['save_post']))
833
  return;
834
 
835
  // Check permissions
836
+ if (!current_user_can('edit_theme_options', $post_id))
837
  return;
838
 
839
  // Check autosave
879
  }
880
  }
881
 
882
+ /**
883
+ *
884
+ * @param int $term_id
885
+ * @param int $tt_id
886
+ * @param string $taxonomy
887
+ * @return void
888
+ */
889
+ public function term_ancestry_check($term_id, $tt_id, $taxonomy) {
890
+
891
+ if(is_taxonomy_hierarchical($taxonomy)) {
892
+ $term = get_term($term_id, $taxonomy);
893
+ //var_dump($term);
894
+ }
895
+
896
+ // Save button pressed
897
+ // if(!isset($_POST['original_publish']) && !isset($_POST['save_post']))
898
+ // return;
899
+ //
900
+ // // Check autosave
901
+ // if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
902
+ // return;
903
+
904
+ //$post = get_post($post_id);
905
+
906
+ // Only other types than sidebar
907
+ // if(get_post_type($post_id) == 'sidebar')
908
+ // return;
909
+
910
+
911
+
912
+ }
913
+
914
  /**
915
  *
916
  * Database data update module
923
  /**
924
  *
925
  * Load scripts and styles for administration
926
+ *
927
+ * @param string $hook
928
  */
929
  public function load_admin_scripts($hook) {
 
930
 
931
  wp_register_script('cas_admin_script', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/js/cas_admin.js', array('jquery'), '0.1', true);
932
  wp_register_style('cas_admin_style', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/css/style.css', array(), '0.1');
933
 
934
  if($hook == 'post.php' || $hook == 'post-new.php') {
935
  // WordPress < 3.3 does not have jQuery UI accordion
936
+ if(get_bloginfo('version') < 3.3) {
 
937
  wp_register_script('cas-jquery-ui-accordion', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/js/jquery.ui.accordion.js', array('jquery-ui-core','jquery-ui-widget'), '1.8.9', true);
938
  wp_enqueue_script('cas-jquery-ui-accordion');
939
  } else {
961
 
962
  }
963
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
964
  /**
965
  *
966
  * Flush rewrite rules on plugin activation
988
 
989
  /**
990
  *
991
+ * Template wrapper function
992
  *
993
+ * @global object $ca_sidebars
 
994
  * @param array|string $args
 
995
  */
996
  function display_ca_sidebar($args = array()) {
997
+ global $ca_sidebars;
998
+ $ca_sidebars->manual_sidebar($args);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  }
lang/content-aware-sidebars-da_DK.mo CHANGED
Binary file
lang/content-aware-sidebars-da_DK.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Content Aware Sidebars 0.8.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
7
- "POT-Creation-Date: 2012-09-19 11:11:11+00:00\n"
8
- "PO-Revision-Date: 2012-09-19 13:12+0100\n"
9
  "Last-Translator: Intox Studio <jv@intox.dk>\n"
10
  "Language-Team: Intox Studio <jv@intox.dk>\n"
11
  "Language: da_DK\n"
@@ -13,129 +13,129 @@ msgstr ""
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
 
16
- #: content-aware-sidebars.php:145 content-aware-sidebars.php:308
17
  msgid "Exposure"
18
  msgstr "Eksponering"
19
 
20
- #: content-aware-sidebars.php:151
21
  msgid "Singular"
22
  msgstr "Singulær"
23
 
24
- #: content-aware-sidebars.php:152
25
  msgid "Singular & Archive"
26
  msgstr "Singulær og arkiv"
27
 
28
- #: content-aware-sidebars.php:153
29
  msgid "Archive"
30
  msgstr "Arkiv"
31
 
32
- #: content-aware-sidebars.php:157 content-aware-sidebars.php:309
33
  msgctxt "option"
34
  msgid "Handle"
35
  msgstr "Håndtering"
36
 
37
- #: content-aware-sidebars.php:159
38
  msgid "Replace host sidebar, merge with it or add sidebar manually."
39
  msgstr "Erstat værts-sidebar, flet med den eller tilføj denne sidebar manuelt."
40
 
41
- #: content-aware-sidebars.php:163
42
  msgid "Replace"
43
  msgstr "Erstat"
44
 
45
- #: content-aware-sidebars.php:164
46
  msgid "Merge"
47
  msgstr "Flet"
48
 
49
- #: content-aware-sidebars.php:165
50
  msgid "Manual"
51
  msgstr "Manuel"
52
 
53
- #: content-aware-sidebars.php:169
54
  msgid "Host Sidebar"
55
  msgstr "Værts-sidebar"
56
 
57
- #: content-aware-sidebars.php:177 content-aware-sidebars.php:310
58
  msgid "Merge position"
59
  msgstr "Fletteposition"
60
 
61
- #: content-aware-sidebars.php:179
62
  msgid "Place sidebar on top or bottom of host when merging."
63
  msgstr "Flet ind fra oven eller bunden."
64
 
65
- #: content-aware-sidebars.php:183
66
  msgid "Top"
67
  msgstr "Top"
68
 
69
- #: content-aware-sidebars.php:184
70
  msgid "Bottom"
71
  msgstr "Bund"
72
 
73
- #: content-aware-sidebars.php:205
74
  msgid "Sidebars"
75
  msgstr "Sidebars"
76
 
77
- #: content-aware-sidebars.php:206
78
  msgid "Sidebar"
79
  msgstr "Sidebar"
80
 
81
- #: content-aware-sidebars.php:207
82
  msgctxt "sidebar"
83
  msgid "Add New"
84
  msgstr "Tilføj ny"
85
 
86
- #: content-aware-sidebars.php:208
87
  msgid "Add New Sidebar"
88
  msgstr "Tilføj ny sidebar"
89
 
90
- #: content-aware-sidebars.php:209
91
  msgid "Edit Sidebar"
92
  msgstr "Rediger sidebar"
93
 
94
- #: content-aware-sidebars.php:210
95
  msgid "New Sidebar"
96
  msgstr "Ny sidebar"
97
 
98
- #: content-aware-sidebars.php:211
99
  msgid "All Sidebars"
100
  msgstr "Alle sidebars"
101
 
102
- #: content-aware-sidebars.php:212
103
  msgid "View Sidebar"
104
  msgstr "Vis sidebar"
105
 
106
- #: content-aware-sidebars.php:213
107
  msgid "Search Sidebars"
108
  msgstr "Søg sidebars"
109
 
110
- #: content-aware-sidebars.php:214
111
  msgid "No sidebars found"
112
  msgstr "Ingen sidebars fundet"
113
 
114
- #: content-aware-sidebars.php:215
115
  msgid "No sidebars found in Trash"
116
  msgstr "Ingen sidebars fundet i papirkurven"
117
 
118
- #: content-aware-sidebars.php:239
119
  msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
120
  msgstr "Sidebar opdateret. <a href=\"%s\">Håndter widgets</a>"
121
 
122
- #: content-aware-sidebars.php:242
123
  msgid "Sidebar updated."
124
  msgstr "Sidebar opdateret."
125
 
126
- #: content-aware-sidebars.php:244
127
  msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
128
  msgstr "Sidebar udgivet. <a href=\"%s\">Håndter widgets</a>"
129
 
130
- #: content-aware-sidebars.php:245
131
  msgid "Sidebar saved."
132
  msgstr "Sidebar gemt."
133
 
134
- #: content-aware-sidebars.php:246
135
  msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
136
  msgstr "Sidebar indsendt. <a href=\"%s\">Håndter widgets</a>"
137
 
138
- #: content-aware-sidebars.php:247
139
  msgid ""
140
  "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
141
  "widgets</a>"
@@ -144,39 +144,39 @@ msgstr ""
144
  "widgets</a>"
145
 
146
  #. translators: Publish box date format, see http:php.net/date
147
- #: content-aware-sidebars.php:249
148
  msgid "M j, Y @ G:i"
149
  msgstr "j. M, Y @ G:i"
150
 
151
- #: content-aware-sidebars.php:250
152
  msgid "Sidebar draft updated."
153
  msgstr "Sidebar-kladde opdateret."
154
 
155
- #: content-aware-sidebars.php:372
156
  msgid "Please update Host Sidebar"
157
  msgstr "Værts-sidebar skal opdateres"
158
 
159
- #: content-aware-sidebars.php:435
160
  msgid "Manage Widgets"
161
  msgstr "Håndter widgets"
162
 
163
- #: content-aware-sidebars.php:569
164
  msgid "Words from the author"
165
  msgstr "Et par ord fra forfatteren"
166
 
167
- #: content-aware-sidebars.php:579
168
  msgid "Content"
169
  msgstr "Indhold"
170
 
171
- #: content-aware-sidebars.php:589
172
  msgid "Options"
173
  msgstr "Indstillinger"
174
 
175
- #: content-aware-sidebars.php:685
176
  msgid "If you love this plugin, please consider donating."
177
  msgstr "Venligst overvej at donere, hvis du elsker dette plugin."
178
 
179
- #: content-aware-sidebars.php:687
180
  msgid ""
181
  "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
182
  "<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
@@ -184,59 +184,68 @@ msgstr ""
184
  "Glem ikke at <a class=\"button\" href=\"%1$s\" target=\"_blank\">vurdere</a> "
185
  "og <a class=\"button\" href=\"%2$s\" target=\"_blank\">dele</a> det!"
186
 
187
- #: content-aware-sidebars.php:689
188
  msgid "Check out Content Aware Sidebars for %23WordPress! :)"
189
  msgstr "Jeg bruger Content Aware Sidebars til %23WordPress! :)"
190
 
191
- #: content-aware-sidebars.php:691
192
  msgid "Check out Content Aware Sidebars :)"
193
  msgstr "Jeg bruger Content Aware Sidebars :)"
194
 
195
- #: modules/abstract.php:43 modules/post_type.php:75
196
  msgid "Show with All %s"
197
  msgstr "Vis ved alle %s"
198
 
199
- #: modules/abstract.php:47 modules/post_type.php:85 modules/taxonomy.php:114
200
  msgid "View All"
201
  msgstr "Vis alle"
202
 
203
- #: modules/author.php:20
204
  msgid "Authors"
205
  msgstr "Forfattere"
206
 
207
- #: modules/bbpress.php:19
208
- msgid "bbPress"
209
- msgstr "bbPress"
210
 
211
- #: modules/page_template.php:20
 
 
 
 
212
  msgid "Page Templates"
213
  msgstr "Skabeloner"
214
 
215
- #: modules/post_type.php:22
 
 
 
 
 
216
  msgid "Post Types"
217
  msgstr "Indholdstyper"
218
 
219
- #: modules/post_type.php:79 modules/taxonomy.php:108
 
 
 
 
220
  msgid "No items."
221
  msgstr "Ingen elementer."
222
 
223
- #: modules/qtranslate.php:19 modules/transposh.php:19 modules/wpml.php:19
224
- msgid "Languages"
225
- msgstr "Sprog"
226
-
227
- #: modules/static.php:21
228
  msgid "Static Pages"
229
  msgstr "Statiske sider"
230
 
231
- #: modules/static.php:26
232
  msgid "Front Page"
233
  msgstr "Forside"
234
 
235
- #: modules/static.php:27
236
  msgid "Search Results"
237
  msgstr "Søgeresultater"
238
 
239
- #: modules/static.php:28
240
  msgid "404 Page"
241
  msgstr "404-side"
242
 
@@ -244,11 +253,11 @@ msgstr "404-side"
244
  msgid "Taxonomies"
245
  msgstr "Taksonomier"
246
 
247
- #: modules/taxonomy.php:105
248
  msgid "Show with %s"
249
  msgstr "Vis ved %s"
250
 
251
- #: modules/taxonomy.php:113
252
  msgid "Most Used"
253
  msgstr "Mest brugte"
254
 
@@ -256,9 +265,9 @@ msgstr "Mest brugte"
256
  msgid "Content Aware Sidebars"
257
  msgstr "Content Aware Sidebars"
258
 
259
- #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.0) #-#-#-#-#
260
  #. Plugin URI of the plugin/theme
261
- #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.0) #-#-#-#-#
262
  #. Author URI of the plugin/theme
263
  msgid "http://www.intox.dk/"
264
  msgstr "http://www.intox.dk/"
@@ -271,5 +280,8 @@ msgstr "Administrer og vis sidebars i henhold til det indhold, der vises."
271
  msgid "Joachim Jensen"
272
  msgstr "Joachim Jensen"
273
 
 
 
 
274
  #~ msgid "Sidebar draft updated. <a href=\"%s\">Manage widgets</a>"
275
  #~ msgstr "Sidebar-udkast opdateret. <a href=\"%s\">Håndter widgets</a>"
4
  msgstr ""
5
  "Project-Id-Version: Content Aware Sidebars 0.8.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
7
+ "POT-Creation-Date: 2013-01-07 16:09:52+00:00\n"
8
+ "PO-Revision-Date: 2013-01-07 18:19+0100\n"
9
  "Last-Translator: Intox Studio <jv@intox.dk>\n"
10
  "Language-Team: Intox Studio <jv@intox.dk>\n"
11
  "Language: da_DK\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
 
16
+ #: content-aware-sidebars.php:150 content-aware-sidebars.php:327
17
  msgid "Exposure"
18
  msgstr "Eksponering"
19
 
20
+ #: content-aware-sidebars.php:156
21
  msgid "Singular"
22
  msgstr "Singulær"
23
 
24
+ #: content-aware-sidebars.php:157
25
  msgid "Singular & Archive"
26
  msgstr "Singulær og arkiv"
27
 
28
+ #: content-aware-sidebars.php:158
29
  msgid "Archive"
30
  msgstr "Arkiv"
31
 
32
+ #: content-aware-sidebars.php:162 content-aware-sidebars.php:328
33
  msgctxt "option"
34
  msgid "Handle"
35
  msgstr "Håndtering"
36
 
37
+ #: content-aware-sidebars.php:164
38
  msgid "Replace host sidebar, merge with it or add sidebar manually."
39
  msgstr "Erstat værts-sidebar, flet med den eller tilføj denne sidebar manuelt."
40
 
41
+ #: content-aware-sidebars.php:168
42
  msgid "Replace"
43
  msgstr "Erstat"
44
 
45
+ #: content-aware-sidebars.php:169
46
  msgid "Merge"
47
  msgstr "Flet"
48
 
49
+ #: content-aware-sidebars.php:170
50
  msgid "Manual"
51
  msgstr "Manuel"
52
 
53
+ #: content-aware-sidebars.php:174
54
  msgid "Host Sidebar"
55
  msgstr "Værts-sidebar"
56
 
57
+ #: content-aware-sidebars.php:182 content-aware-sidebars.php:329
58
  msgid "Merge position"
59
  msgstr "Fletteposition"
60
 
61
+ #: content-aware-sidebars.php:184
62
  msgid "Place sidebar on top or bottom of host when merging."
63
  msgstr "Flet ind fra oven eller bunden."
64
 
65
+ #: content-aware-sidebars.php:188
66
  msgid "Top"
67
  msgstr "Top"
68
 
69
+ #: content-aware-sidebars.php:189
70
  msgid "Bottom"
71
  msgstr "Bund"
72
 
73
+ #: content-aware-sidebars.php:210
74
  msgid "Sidebars"
75
  msgstr "Sidebars"
76
 
77
+ #: content-aware-sidebars.php:211
78
  msgid "Sidebar"
79
  msgstr "Sidebar"
80
 
81
+ #: content-aware-sidebars.php:212
82
  msgctxt "sidebar"
83
  msgid "Add New"
84
  msgstr "Tilføj ny"
85
 
86
+ #: content-aware-sidebars.php:213
87
  msgid "Add New Sidebar"
88
  msgstr "Tilføj ny sidebar"
89
 
90
+ #: content-aware-sidebars.php:214
91
  msgid "Edit Sidebar"
92
  msgstr "Rediger sidebar"
93
 
94
+ #: content-aware-sidebars.php:215
95
  msgid "New Sidebar"
96
  msgstr "Ny sidebar"
97
 
98
+ #: content-aware-sidebars.php:216
99
  msgid "All Sidebars"
100
  msgstr "Alle sidebars"
101
 
102
+ #: content-aware-sidebars.php:217
103
  msgid "View Sidebar"
104
  msgstr "Vis sidebar"
105
 
106
+ #: content-aware-sidebars.php:218
107
  msgid "Search Sidebars"
108
  msgstr "Søg sidebars"
109
 
110
+ #: content-aware-sidebars.php:219
111
  msgid "No sidebars found"
112
  msgstr "Ingen sidebars fundet"
113
 
114
+ #: content-aware-sidebars.php:220
115
  msgid "No sidebars found in Trash"
116
  msgstr "Ingen sidebars fundet i papirkurven"
117
 
118
+ #: content-aware-sidebars.php:253
119
  msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
120
  msgstr "Sidebar opdateret. <a href=\"%s\">Håndter widgets</a>"
121
 
122
+ #: content-aware-sidebars.php:256
123
  msgid "Sidebar updated."
124
  msgstr "Sidebar opdateret."
125
 
126
+ #: content-aware-sidebars.php:258
127
  msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
128
  msgstr "Sidebar udgivet. <a href=\"%s\">Håndter widgets</a>"
129
 
130
+ #: content-aware-sidebars.php:259
131
  msgid "Sidebar saved."
132
  msgstr "Sidebar gemt."
133
 
134
+ #: content-aware-sidebars.php:260
135
  msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
136
  msgstr "Sidebar indsendt. <a href=\"%s\">Håndter widgets</a>"
137
 
138
+ #: content-aware-sidebars.php:261
139
  msgid ""
140
  "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
141
  "widgets</a>"
144
  "widgets</a>"
145
 
146
  #. translators: Publish box date format, see http:php.net/date
147
+ #: content-aware-sidebars.php:263
148
  msgid "M j, Y @ G:i"
149
  msgstr "j. M, Y @ G:i"
150
 
151
+ #: content-aware-sidebars.php:264
152
  msgid "Sidebar draft updated."
153
  msgstr "Sidebar-kladde opdateret."
154
 
155
+ #: content-aware-sidebars.php:391
156
  msgid "Please update Host Sidebar"
157
  msgstr "Værts-sidebar skal opdateres"
158
 
159
+ #: content-aware-sidebars.php:454
160
  msgid "Manage Widgets"
161
  msgstr "Håndter widgets"
162
 
163
+ #: content-aware-sidebars.php:651
164
  msgid "Words from the author"
165
  msgstr "Et par ord fra forfatteren"
166
 
167
+ #: content-aware-sidebars.php:661
168
  msgid "Content"
169
  msgstr "Indhold"
170
 
171
+ #: content-aware-sidebars.php:671
172
  msgid "Options"
173
  msgstr "Indstillinger"
174
 
175
+ #: content-aware-sidebars.php:766
176
  msgid "If you love this plugin, please consider donating."
177
  msgstr "Venligst overvej at donere, hvis du elsker dette plugin."
178
 
179
+ #: content-aware-sidebars.php:768
180
  msgid ""
181
  "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
182
  "<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
184
  "Glem ikke at <a class=\"button\" href=\"%1$s\" target=\"_blank\">vurdere</a> "
185
  "og <a class=\"button\" href=\"%2$s\" target=\"_blank\">dele</a> det!"
186
 
187
+ #: content-aware-sidebars.php:770
188
  msgid "Check out Content Aware Sidebars for %23WordPress! :)"
189
  msgstr "Jeg bruger Content Aware Sidebars til %23WordPress! :)"
190
 
191
+ #: content-aware-sidebars.php:772
192
  msgid "Check out Content Aware Sidebars :)"
193
  msgstr "Jeg bruger Content Aware Sidebars :)"
194
 
195
+ #: modules/abstract.php:39 modules/post_type.php:78
196
  msgid "Show with All %s"
197
  msgstr "Vis ved alle %s"
198
 
199
+ #: modules/abstract.php:43 modules/post_type.php:88 modules/taxonomy.php:121
200
  msgid "View All"
201
  msgstr "Vis alle"
202
 
203
+ #: modules/author.php:21
204
  msgid "Authors"
205
  msgstr "Forfattere"
206
 
207
+ #: modules/bbpress.php:20
208
+ msgid "bbPress User Profiles"
209
+ msgstr "bbPress brugerprofiler"
210
 
211
+ #: modules/bp_member.php:20
212
+ msgid "BuddyPress Members"
213
+ msgstr "BuddyPress medlemmer"
214
+
215
+ #: modules/page_template.php:21
216
  msgid "Page Templates"
217
  msgstr "Skabeloner"
218
 
219
+ #: modules/polylang.php:20 modules/qtranslate.php:20 modules/transposh.php:20
220
+ #: modules/wpml.php:20
221
+ msgid "Languages"
222
+ msgstr "Sprog"
223
+
224
+ #: modules/post_type.php:23
225
  msgid "Post Types"
226
  msgstr "Indholdstyper"
227
 
228
+ #: modules/post_type.php:73 modules/taxonomy.php:107
229
+ msgid "Automatically select new children of a selected ancestor"
230
+ msgstr "Vælg automatisk nye børn af den valgte forælder"
231
+
232
+ #: modules/post_type.php:82 modules/taxonomy.php:115
233
  msgid "No items."
234
  msgstr "Ingen elementer."
235
 
236
+ #: modules/static.php:22
 
 
 
 
237
  msgid "Static Pages"
238
  msgstr "Statiske sider"
239
 
240
+ #: modules/static.php:27
241
  msgid "Front Page"
242
  msgstr "Forside"
243
 
244
+ #: modules/static.php:28
245
  msgid "Search Results"
246
  msgstr "Søgeresultater"
247
 
248
+ #: modules/static.php:29
249
  msgid "404 Page"
250
  msgstr "404-side"
251
 
253
  msgid "Taxonomies"
254
  msgstr "Taksonomier"
255
 
256
+ #: modules/taxonomy.php:111
257
  msgid "Show with %s"
258
  msgstr "Vis ved %s"
259
 
260
+ #: modules/taxonomy.php:120
261
  msgid "Most Used"
262
  msgstr "Mest brugte"
263
 
265
  msgid "Content Aware Sidebars"
266
  msgstr "Content Aware Sidebars"
267
 
268
+ #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
269
  #. Plugin URI of the plugin/theme
270
+ #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
271
  #. Author URI of the plugin/theme
272
  msgid "http://www.intox.dk/"
273
  msgstr "http://www.intox.dk/"
280
  msgid "Joachim Jensen"
281
  msgstr "Joachim Jensen"
282
 
283
+ #~ msgid "bbPress"
284
+ #~ msgstr "bbPress"
285
+
286
  #~ msgid "Sidebar draft updated. <a href=\"%s\">Manage widgets</a>"
287
  #~ msgstr "Sidebar-udkast opdateret. <a href=\"%s\">Håndter widgets</a>"
lang/content-aware-sidebars-it_IT.mo CHANGED
Binary file
lang/content-aware-sidebars-it_IT.po CHANGED
@@ -2,143 +2,143 @@
2
  # This file is distributed under the same license as the Content Aware Sidebars package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Content Aware Sidebars 0.8.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
7
- "POT-Creation-Date: 2012-09-19 11:11:11+00:00\n"
8
- "PO-Revision-Date: 2012-09-20 08:23+0100\n"
9
  "Last-Translator: Luciano Del Fico <info@myweb2.it>\n"
10
  "Language-Team: MyWeb2 <info@myweb2.it>\n"
11
  "Language: it_IT\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Generator: Poedit 1.5.3\n"
17
 
18
- #: content-aware-sidebars.php:145 content-aware-sidebars.php:308
19
  msgid "Exposure"
20
  msgstr "Tipologia"
21
 
22
- #: content-aware-sidebars.php:151
23
  msgid "Singular"
24
  msgstr "Singola"
25
 
26
- #: content-aware-sidebars.php:152
27
  msgid "Singular & Archive"
28
  msgstr "Singola e archivio"
29
 
30
- #: content-aware-sidebars.php:153
31
  msgid "Archive"
32
  msgstr "Archivio"
33
 
34
- #: content-aware-sidebars.php:157 content-aware-sidebars.php:309
35
  msgctxt "option"
36
  msgid "Handle"
37
  msgstr "Comportamento"
38
 
39
- #: content-aware-sidebars.php:159
40
  msgid "Replace host sidebar, merge with it or add sidebar manually."
41
  msgstr ""
42
  "Sostituisce sidebar, si fonde con essa o aggiunge la sidebar manualmente."
43
 
44
- #: content-aware-sidebars.php:163
45
  msgid "Replace"
46
  msgstr "Sostituzione"
47
 
48
- #: content-aware-sidebars.php:164
49
  msgid "Merge"
50
  msgstr "Unione"
51
 
52
- #: content-aware-sidebars.php:165
53
  msgid "Manual"
54
  msgstr "Manuale"
55
 
56
- #: content-aware-sidebars.php:169
57
  msgid "Host Sidebar"
58
  msgstr "Sidebar"
59
 
60
- #: content-aware-sidebars.php:177 content-aware-sidebars.php:310
61
  msgid "Merge position"
62
  msgstr "Posizione"
63
 
64
- #: content-aware-sidebars.php:179
65
  msgid "Place sidebar on top or bottom of host when merging."
66
  msgstr "Posizione sidebar in alto o in basso dell'host durante la fusione."
67
 
68
- #: content-aware-sidebars.php:183
69
  msgid "Top"
70
  msgstr "Alto"
71
 
72
- #: content-aware-sidebars.php:184
73
  msgid "Bottom"
74
  msgstr "Basso"
75
 
76
- #: content-aware-sidebars.php:205
77
  msgid "Sidebars"
78
  msgstr "Sidebars"
79
 
80
- #: content-aware-sidebars.php:206
81
  msgid "Sidebar"
82
  msgstr "Sidebar"
83
 
84
- #: content-aware-sidebars.php:207
85
  msgctxt "sidebar"
86
  msgid "Add New"
87
  msgstr "Aggiungi"
88
 
89
- #: content-aware-sidebars.php:208
90
  msgid "Add New Sidebar"
91
  msgstr "Aggiungi Nuova Sidebar"
92
 
93
- #: content-aware-sidebars.php:209
94
  msgid "Edit Sidebar"
95
  msgstr "Modifica Sidebar"
96
 
97
- #: content-aware-sidebars.php:210
98
  msgid "New Sidebar"
99
  msgstr "Nuova Sidebar"
100
 
101
- #: content-aware-sidebars.php:211
102
  msgid "All Sidebars"
103
  msgstr "Tutte le Sidebars"
104
 
105
- #: content-aware-sidebars.php:212
106
  msgid "View Sidebar"
107
  msgstr "Vedi Sidebar"
108
 
109
- #: content-aware-sidebars.php:213
110
  msgid "Search Sidebars"
111
  msgstr "Cerca Sidebars"
112
 
113
- #: content-aware-sidebars.php:214
114
  msgid "No sidebars found"
115
  msgstr "Nessuna sidebar trovata"
116
 
117
- #: content-aware-sidebars.php:215
118
  msgid "No sidebars found in Trash"
119
  msgstr "nessuna sidebar cancellata"
120
 
121
- #: content-aware-sidebars.php:239
122
  msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
123
  msgstr "Sidebar aggiornata. <a href=\"%s\">Gestione widgets</a>"
124
 
125
- #: content-aware-sidebars.php:242
126
  msgid "Sidebar updated."
127
  msgstr "Sidebar aggiornata."
128
 
129
- #: content-aware-sidebars.php:244
130
  msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
131
  msgstr "Sidebar publicata. <a href=\"%s\">Gestione widgets</a>"
132
 
133
- #: content-aware-sidebars.php:245
134
  msgid "Sidebar saved."
135
  msgstr "Sidebar salvata."
136
 
137
- #: content-aware-sidebars.php:246
138
  msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
139
  msgstr "Sidebar inviata. <a href=\"%s\">Gestione widgets</a>"
140
 
141
- #: content-aware-sidebars.php:247
142
  msgid ""
143
  "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
144
  "widgets</a>"
@@ -147,39 +147,39 @@ msgstr ""
147
  "widgets</a>"
148
 
149
  #. translators: Publish box date format, see http:php.net/date
150
- #: content-aware-sidebars.php:249
151
  msgid "M j, Y @ G:i"
152
  msgstr "M j, Y @ G:i"
153
 
154
- #: content-aware-sidebars.php:250
155
  msgid "Sidebar draft updated."
156
  msgstr "Bozza sidebar aggiornata. "
157
 
158
- #: content-aware-sidebars.php:372
159
  msgid "Please update Host Sidebar"
160
  msgstr "Aggiorna Sidebar"
161
 
162
- #: content-aware-sidebars.php:435
163
  msgid "Manage Widgets"
164
  msgstr "Gestione Widgets"
165
 
166
- #: content-aware-sidebars.php:569
167
  msgid "Words from the author"
168
  msgstr "Parole dell'autore"
169
 
170
- #: content-aware-sidebars.php:579
171
  msgid "Content"
172
  msgstr "Contenuto"
173
 
174
- #: content-aware-sidebars.php:589
175
  msgid "Options"
176
  msgstr "Opzioni"
177
 
178
- #: content-aware-sidebars.php:685
179
  msgid "If you love this plugin, please consider donating."
180
  msgstr "Se ti piace questo plugin, considera l'eventualità fare una donazione."
181
 
182
- #: content-aware-sidebars.php:687
183
  msgid ""
184
  "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
185
  "<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
@@ -187,59 +187,68 @@ msgstr ""
187
  "Ricorda di <a class=\"button\" href=\"%1$s\" target=\"_blank\">valutarlo</"
188
  "a> e <a class=\"button\" href=\"%2$s\" target=\"_blank\">condiverlo</a>!"
189
 
190
- #: content-aware-sidebars.php:689
191
  msgid "Check out Content Aware Sidebars for %23WordPress! :)"
192
  msgstr "Verifica Content Aware Sidebars per %23WordPress! :)"
193
 
194
- #: content-aware-sidebars.php:691
195
  msgid "Check out Content Aware Sidebars :)"
196
  msgstr "Verifica Content Aware Sidebars per WordPress! :)"
197
 
198
- #: modules/abstract.php:43 modules/post_type.php:75
199
  msgid "Show with All %s"
200
  msgstr "Seleziona tutto: %s"
201
 
202
- #: modules/abstract.php:47 modules/post_type.php:85 modules/taxonomy.php:114
203
  msgid "View All"
204
  msgstr "Vedi tutti"
205
 
206
- #: modules/author.php:20
207
  msgid "Authors"
208
  msgstr "Autori"
209
 
210
- #: modules/bbpress.php:19
211
- msgid "bbPress"
212
- msgstr "bbPress"
213
 
214
- #: modules/page_template.php:20
 
 
 
 
215
  msgid "Page Templates"
216
  msgstr "Template Pagine"
217
 
218
- #: modules/post_type.php:22
 
 
 
 
 
219
  msgid "Post Types"
220
  msgstr "Tipi di messaggi"
221
 
222
- #: modules/post_type.php:79 modules/taxonomy.php:108
 
 
 
 
223
  msgid "No items."
224
  msgstr "Nessun oggetto."
225
 
226
- #: modules/qtranslate.php:19 modules/transposh.php:19 modules/wpml.php:19
227
- msgid "Languages"
228
- msgstr "Lingue"
229
-
230
- #: modules/static.php:21
231
  msgid "Static Pages"
232
  msgstr "Pagine statiche"
233
 
234
- #: modules/static.php:26
235
  msgid "Front Page"
236
  msgstr "Pagina principale"
237
 
238
- #: modules/static.php:27
239
  msgid "Search Results"
240
  msgstr "Risultati di ricerca"
241
 
242
- #: modules/static.php:28
243
  msgid "404 Page"
244
  msgstr "Pagina 404"
245
 
@@ -247,11 +256,11 @@ msgstr "Pagina 404"
247
  msgid "Taxonomies"
248
  msgstr "Tassonomie"
249
 
250
- #: modules/taxonomy.php:105
251
  msgid "Show with %s"
252
  msgstr "Mostra %s"
253
 
254
- #: modules/taxonomy.php:113
255
  msgid "Most Used"
256
  msgstr "Più usati"
257
 
@@ -259,9 +268,9 @@ msgstr "Più usati"
259
  msgid "Content Aware Sidebars"
260
  msgstr "Content Aware Sidebars"
261
 
262
- #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.0) #-#-#-#-#
263
  #. Plugin URI of the plugin/theme
264
- #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.0) #-#-#-#-#
265
  #. Author URI of the plugin/theme
266
  msgid "http://www.intox.dk/"
267
  msgstr "http://www.intox.dk/"
@@ -273,3 +282,6 @@ msgstr "Gestisce e mostra sidebars a seconda del contenuto visualizzato."
273
  #. Author of the plugin/theme
274
  msgid "Joachim Jensen"
275
  msgstr "Joachim Jensen"
 
 
 
2
  # This file is distributed under the same license as the Content Aware Sidebars package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Content Aware Sidebars\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
7
+ "POT-Creation-Date: 2013-01-07 16:09:52+00:00\n"
8
+ "PO-Revision-Date: 2013-01-10 14:21+0100\n"
9
  "Last-Translator: Luciano Del Fico <info@myweb2.it>\n"
10
  "Language-Team: MyWeb2 <info@myweb2.it>\n"
11
  "Language: it_IT\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
 
18
+ #: content-aware-sidebars.php:150 content-aware-sidebars.php:327
19
  msgid "Exposure"
20
  msgstr "Tipologia"
21
 
22
+ #: content-aware-sidebars.php:156
23
  msgid "Singular"
24
  msgstr "Singola"
25
 
26
+ #: content-aware-sidebars.php:157
27
  msgid "Singular & Archive"
28
  msgstr "Singola e archivio"
29
 
30
+ #: content-aware-sidebars.php:158
31
  msgid "Archive"
32
  msgstr "Archivio"
33
 
34
+ #: content-aware-sidebars.php:162 content-aware-sidebars.php:328
35
  msgctxt "option"
36
  msgid "Handle"
37
  msgstr "Comportamento"
38
 
39
+ #: content-aware-sidebars.php:164
40
  msgid "Replace host sidebar, merge with it or add sidebar manually."
41
  msgstr ""
42
  "Sostituisce sidebar, si fonde con essa o aggiunge la sidebar manualmente."
43
 
44
+ #: content-aware-sidebars.php:168
45
  msgid "Replace"
46
  msgstr "Sostituzione"
47
 
48
+ #: content-aware-sidebars.php:169
49
  msgid "Merge"
50
  msgstr "Unione"
51
 
52
+ #: content-aware-sidebars.php:170
53
  msgid "Manual"
54
  msgstr "Manuale"
55
 
56
+ #: content-aware-sidebars.php:174
57
  msgid "Host Sidebar"
58
  msgstr "Sidebar"
59
 
60
+ #: content-aware-sidebars.php:182 content-aware-sidebars.php:329
61
  msgid "Merge position"
62
  msgstr "Posizione"
63
 
64
+ #: content-aware-sidebars.php:184
65
  msgid "Place sidebar on top or bottom of host when merging."
66
  msgstr "Posizione sidebar in alto o in basso dell'host durante la fusione."
67
 
68
+ #: content-aware-sidebars.php:188
69
  msgid "Top"
70
  msgstr "Alto"
71
 
72
+ #: content-aware-sidebars.php:189
73
  msgid "Bottom"
74
  msgstr "Basso"
75
 
76
+ #: content-aware-sidebars.php:210
77
  msgid "Sidebars"
78
  msgstr "Sidebars"
79
 
80
+ #: content-aware-sidebars.php:211
81
  msgid "Sidebar"
82
  msgstr "Sidebar"
83
 
84
+ #: content-aware-sidebars.php:212
85
  msgctxt "sidebar"
86
  msgid "Add New"
87
  msgstr "Aggiungi"
88
 
89
+ #: content-aware-sidebars.php:213
90
  msgid "Add New Sidebar"
91
  msgstr "Aggiungi Nuova Sidebar"
92
 
93
+ #: content-aware-sidebars.php:214
94
  msgid "Edit Sidebar"
95
  msgstr "Modifica Sidebar"
96
 
97
+ #: content-aware-sidebars.php:215
98
  msgid "New Sidebar"
99
  msgstr "Nuova Sidebar"
100
 
101
+ #: content-aware-sidebars.php:216
102
  msgid "All Sidebars"
103
  msgstr "Tutte le Sidebars"
104
 
105
+ #: content-aware-sidebars.php:217
106
  msgid "View Sidebar"
107
  msgstr "Vedi Sidebar"
108
 
109
+ #: content-aware-sidebars.php:218
110
  msgid "Search Sidebars"
111
  msgstr "Cerca Sidebars"
112
 
113
+ #: content-aware-sidebars.php:219
114
  msgid "No sidebars found"
115
  msgstr "Nessuna sidebar trovata"
116
 
117
+ #: content-aware-sidebars.php:220
118
  msgid "No sidebars found in Trash"
119
  msgstr "nessuna sidebar cancellata"
120
 
121
+ #: content-aware-sidebars.php:253
122
  msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
123
  msgstr "Sidebar aggiornata. <a href=\"%s\">Gestione widgets</a>"
124
 
125
+ #: content-aware-sidebars.php:256
126
  msgid "Sidebar updated."
127
  msgstr "Sidebar aggiornata."
128
 
129
+ #: content-aware-sidebars.php:258
130
  msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
131
  msgstr "Sidebar publicata. <a href=\"%s\">Gestione widgets</a>"
132
 
133
+ #: content-aware-sidebars.php:259
134
  msgid "Sidebar saved."
135
  msgstr "Sidebar salvata."
136
 
137
+ #: content-aware-sidebars.php:260
138
  msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
139
  msgstr "Sidebar inviata. <a href=\"%s\">Gestione widgets</a>"
140
 
141
+ #: content-aware-sidebars.php:261
142
  msgid ""
143
  "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
144
  "widgets</a>"
147
  "widgets</a>"
148
 
149
  #. translators: Publish box date format, see http:php.net/date
150
+ #: content-aware-sidebars.php:263
151
  msgid "M j, Y @ G:i"
152
  msgstr "M j, Y @ G:i"
153
 
154
+ #: content-aware-sidebars.php:264
155
  msgid "Sidebar draft updated."
156
  msgstr "Bozza sidebar aggiornata. "
157
 
158
+ #: content-aware-sidebars.php:391
159
  msgid "Please update Host Sidebar"
160
  msgstr "Aggiorna Sidebar"
161
 
162
+ #: content-aware-sidebars.php:454
163
  msgid "Manage Widgets"
164
  msgstr "Gestione Widgets"
165
 
166
+ #: content-aware-sidebars.php:651
167
  msgid "Words from the author"
168
  msgstr "Parole dell'autore"
169
 
170
+ #: content-aware-sidebars.php:661
171
  msgid "Content"
172
  msgstr "Contenuto"
173
 
174
+ #: content-aware-sidebars.php:671
175
  msgid "Options"
176
  msgstr "Opzioni"
177
 
178
+ #: content-aware-sidebars.php:766
179
  msgid "If you love this plugin, please consider donating."
180
  msgstr "Se ti piace questo plugin, considera l'eventualità fare una donazione."
181
 
182
+ #: content-aware-sidebars.php:768
183
  msgid ""
184
  "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
185
  "<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
187
  "Ricorda di <a class=\"button\" href=\"%1$s\" target=\"_blank\">valutarlo</"
188
  "a> e <a class=\"button\" href=\"%2$s\" target=\"_blank\">condiverlo</a>!"
189
 
190
+ #: content-aware-sidebars.php:770
191
  msgid "Check out Content Aware Sidebars for %23WordPress! :)"
192
  msgstr "Verifica Content Aware Sidebars per %23WordPress! :)"
193
 
194
+ #: content-aware-sidebars.php:772
195
  msgid "Check out Content Aware Sidebars :)"
196
  msgstr "Verifica Content Aware Sidebars per WordPress! :)"
197
 
198
+ #: modules/abstract.php:39 modules/post_type.php:78
199
  msgid "Show with All %s"
200
  msgstr "Seleziona tutto: %s"
201
 
202
+ #: modules/abstract.php:43 modules/post_type.php:88 modules/taxonomy.php:121
203
  msgid "View All"
204
  msgstr "Vedi tutti"
205
 
206
+ #: modules/author.php:21
207
  msgid "Authors"
208
  msgstr "Autori"
209
 
210
+ #: modules/bbpress.php:20
211
+ msgid "bbPress User Profiles"
212
+ msgstr "Profilo utente bbPress"
213
 
214
+ #: modules/bp_member.php:20
215
+ msgid "BuddyPress Members"
216
+ msgstr "Utenti BuddyPress"
217
+
218
+ #: modules/page_template.php:21
219
  msgid "Page Templates"
220
  msgstr "Template Pagine"
221
 
222
+ #: modules/polylang.php:20 modules/qtranslate.php:20 modules/transposh.php:20
223
+ #: modules/wpml.php:20
224
+ msgid "Languages"
225
+ msgstr "Lingue"
226
+
227
+ #: modules/post_type.php:23
228
  msgid "Post Types"
229
  msgstr "Tipi di messaggi"
230
 
231
+ #: modules/post_type.php:73 modules/taxonomy.php:107
232
+ msgid "Automatically select new children of a selected ancestor"
233
+ msgstr "Seleziona automaticamente nuovi figli di un percorso selezionato"
234
+
235
+ #: modules/post_type.php:82 modules/taxonomy.php:115
236
  msgid "No items."
237
  msgstr "Nessun oggetto."
238
 
239
+ #: modules/static.php:22
 
 
 
 
240
  msgid "Static Pages"
241
  msgstr "Pagine statiche"
242
 
243
+ #: modules/static.php:27
244
  msgid "Front Page"
245
  msgstr "Pagina principale"
246
 
247
+ #: modules/static.php:28
248
  msgid "Search Results"
249
  msgstr "Risultati di ricerca"
250
 
251
+ #: modules/static.php:29
252
  msgid "404 Page"
253
  msgstr "Pagina 404"
254
 
256
  msgid "Taxonomies"
257
  msgstr "Tassonomie"
258
 
259
+ #: modules/taxonomy.php:111
260
  msgid "Show with %s"
261
  msgstr "Mostra %s"
262
 
263
+ #: modules/taxonomy.php:120
264
  msgid "Most Used"
265
  msgstr "Più usati"
266
 
268
  msgid "Content Aware Sidebars"
269
  msgstr "Content Aware Sidebars"
270
 
271
+ #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
272
  #. Plugin URI of the plugin/theme
273
+ #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
274
  #. Author URI of the plugin/theme
275
  msgid "http://www.intox.dk/"
276
  msgstr "http://www.intox.dk/"
282
  #. Author of the plugin/theme
283
  msgid "Joachim Jensen"
284
  msgstr "Joachim Jensen"
285
+
286
+ #~ msgid "bbPress"
287
+ #~ msgstr "bbPress"
lang/content-aware-sidebars.pot CHANGED
@@ -1,237 +1,246 @@
1
- # Copyright (C) 2012 Content Aware Sidebars
2
  # This file is distributed under the same license as the Content Aware Sidebars package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Content Aware Sidebars 1.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
7
- "POT-Creation-Date: 2012-09-19 11:11:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: content-aware-sidebars.php:145 content-aware-sidebars.php:308
16
  msgid "Exposure"
17
  msgstr ""
18
 
19
- #: content-aware-sidebars.php:151
20
  msgid "Singular"
21
  msgstr ""
22
 
23
- #: content-aware-sidebars.php:152
24
  msgid "Singular & Archive"
25
  msgstr ""
26
 
27
- #: content-aware-sidebars.php:153
28
  msgid "Archive"
29
  msgstr ""
30
 
31
- #: content-aware-sidebars.php:157 content-aware-sidebars.php:309
32
  msgctxt "option"
33
  msgid "Handle"
34
  msgstr ""
35
 
36
- #: content-aware-sidebars.php:159
37
  msgid "Replace host sidebar, merge with it or add sidebar manually."
38
  msgstr ""
39
 
40
- #: content-aware-sidebars.php:163
41
  msgid "Replace"
42
  msgstr ""
43
 
44
- #: content-aware-sidebars.php:164
45
  msgid "Merge"
46
  msgstr ""
47
 
48
- #: content-aware-sidebars.php:165
49
  msgid "Manual"
50
  msgstr ""
51
 
52
- #: content-aware-sidebars.php:169
53
  msgid "Host Sidebar"
54
  msgstr ""
55
 
56
- #: content-aware-sidebars.php:177 content-aware-sidebars.php:310
57
  msgid "Merge position"
58
  msgstr ""
59
 
60
- #: content-aware-sidebars.php:179
61
  msgid "Place sidebar on top or bottom of host when merging."
62
  msgstr ""
63
 
64
- #: content-aware-sidebars.php:183
65
  msgid "Top"
66
  msgstr ""
67
 
68
- #: content-aware-sidebars.php:184
69
  msgid "Bottom"
70
  msgstr ""
71
 
72
- #: content-aware-sidebars.php:205
73
  msgid "Sidebars"
74
  msgstr ""
75
 
76
- #: content-aware-sidebars.php:206
77
  msgid "Sidebar"
78
  msgstr ""
79
 
80
- #: content-aware-sidebars.php:207
81
  msgctxt "sidebar"
82
  msgid "Add New"
83
  msgstr ""
84
 
85
- #: content-aware-sidebars.php:208
86
  msgid "Add New Sidebar"
87
  msgstr ""
88
 
89
- #: content-aware-sidebars.php:209
90
  msgid "Edit Sidebar"
91
  msgstr ""
92
 
93
- #: content-aware-sidebars.php:210
94
  msgid "New Sidebar"
95
  msgstr ""
96
 
97
- #: content-aware-sidebars.php:211
98
  msgid "All Sidebars"
99
  msgstr ""
100
 
101
- #: content-aware-sidebars.php:212
102
  msgid "View Sidebar"
103
  msgstr ""
104
 
105
- #: content-aware-sidebars.php:213
106
  msgid "Search Sidebars"
107
  msgstr ""
108
 
109
- #: content-aware-sidebars.php:214
110
  msgid "No sidebars found"
111
  msgstr ""
112
 
113
- #: content-aware-sidebars.php:215
114
  msgid "No sidebars found in Trash"
115
  msgstr ""
116
 
117
- #: content-aware-sidebars.php:239
118
  msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
119
  msgstr ""
120
 
121
- #: content-aware-sidebars.php:242
122
  msgid "Sidebar updated."
123
  msgstr ""
124
 
125
- #: content-aware-sidebars.php:244
126
  msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
127
  msgstr ""
128
 
129
- #: content-aware-sidebars.php:245
130
  msgid "Sidebar saved."
131
  msgstr ""
132
 
133
- #: content-aware-sidebars.php:246
134
  msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
135
  msgstr ""
136
 
137
- #: content-aware-sidebars.php:247
138
  msgid ""
139
  "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
140
  "widgets</a>"
141
  msgstr ""
142
 
143
  #. translators: Publish box date format, see http:php.net/date
144
- #: content-aware-sidebars.php:249
145
  msgid "M j, Y @ G:i"
146
  msgstr ""
147
 
148
- #: content-aware-sidebars.php:250
149
  msgid "Sidebar draft updated."
150
  msgstr ""
151
 
152
- #: content-aware-sidebars.php:372
153
  msgid "Please update Host Sidebar"
154
  msgstr ""
155
 
156
- #: content-aware-sidebars.php:435
157
  msgid "Manage Widgets"
158
  msgstr ""
159
 
160
- #: content-aware-sidebars.php:569
161
  msgid "Words from the author"
162
  msgstr ""
163
 
164
- #: content-aware-sidebars.php:579
165
  msgid "Content"
166
  msgstr ""
167
 
168
- #: content-aware-sidebars.php:589
169
  msgid "Options"
170
  msgstr ""
171
 
172
- #: content-aware-sidebars.php:685
173
  msgid "If you love this plugin, please consider donating."
174
  msgstr ""
175
 
176
- #: content-aware-sidebars.php:687
177
  msgid ""
178
  "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
179
  "<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
180
  msgstr ""
181
 
182
- #: content-aware-sidebars.php:689
183
  msgid "Check out Content Aware Sidebars for %23WordPress! :)"
184
  msgstr ""
185
 
186
- #: content-aware-sidebars.php:691
187
  msgid "Check out Content Aware Sidebars :)"
188
  msgstr ""
189
 
190
- #: modules/abstract.php:43 modules/post_type.php:75
191
  msgid "Show with All %s"
192
  msgstr ""
193
 
194
- #: modules/abstract.php:47 modules/post_type.php:85 modules/taxonomy.php:114
195
  msgid "View All"
196
  msgstr ""
197
 
198
- #: modules/author.php:20
199
  msgid "Authors"
200
  msgstr ""
201
 
202
- #: modules/bbpress.php:19
203
- msgid "bbPress"
 
 
 
 
204
  msgstr ""
205
 
206
- #: modules/page_template.php:20
207
  msgid "Page Templates"
208
  msgstr ""
209
 
210
- #: modules/post_type.php:22
 
 
 
 
 
211
  msgid "Post Types"
212
  msgstr ""
213
 
214
- #: modules/post_type.php:79 modules/taxonomy.php:108
215
- msgid "No items."
216
  msgstr ""
217
 
218
- #: modules/qtranslate.php:19 modules/transposh.php:19 modules/wpml.php:19
219
- msgid "Languages"
220
  msgstr ""
221
 
222
- #: modules/static.php:21
223
  msgid "Static Pages"
224
  msgstr ""
225
 
226
- #: modules/static.php:26
227
  msgid "Front Page"
228
  msgstr ""
229
 
230
- #: modules/static.php:27
231
  msgid "Search Results"
232
  msgstr ""
233
 
234
- #: modules/static.php:28
235
  msgid "404 Page"
236
  msgstr ""
237
 
@@ -239,11 +248,11 @@ msgstr ""
239
  msgid "Taxonomies"
240
  msgstr ""
241
 
242
- #: modules/taxonomy.php:105
243
  msgid "Show with %s"
244
  msgstr ""
245
 
246
- #: modules/taxonomy.php:113
247
  msgid "Most Used"
248
  msgstr ""
249
 
@@ -251,9 +260,9 @@ msgstr ""
251
  msgid "Content Aware Sidebars"
252
  msgstr ""
253
 
254
- #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.0) #-#-#-#-#
255
  #. Plugin URI of the plugin/theme
256
- #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.0) #-#-#-#-#
257
  #. Author URI of the plugin/theme
258
  msgid "http://www.intox.dk/"
259
  msgstr ""
1
+ # Copyright (C) 2013 Content Aware Sidebars
2
  # This file is distributed under the same license as the Content Aware Sidebars package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Content Aware Sidebars 1.1.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
7
+ "POT-Creation-Date: 2013-01-07 16:09:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: content-aware-sidebars.php:150 content-aware-sidebars.php:327
16
  msgid "Exposure"
17
  msgstr ""
18
 
19
+ #: content-aware-sidebars.php:156
20
  msgid "Singular"
21
  msgstr ""
22
 
23
+ #: content-aware-sidebars.php:157
24
  msgid "Singular & Archive"
25
  msgstr ""
26
 
27
+ #: content-aware-sidebars.php:158
28
  msgid "Archive"
29
  msgstr ""
30
 
31
+ #: content-aware-sidebars.php:162 content-aware-sidebars.php:328
32
  msgctxt "option"
33
  msgid "Handle"
34
  msgstr ""
35
 
36
+ #: content-aware-sidebars.php:164
37
  msgid "Replace host sidebar, merge with it or add sidebar manually."
38
  msgstr ""
39
 
40
+ #: content-aware-sidebars.php:168
41
  msgid "Replace"
42
  msgstr ""
43
 
44
+ #: content-aware-sidebars.php:169
45
  msgid "Merge"
46
  msgstr ""
47
 
48
+ #: content-aware-sidebars.php:170
49
  msgid "Manual"
50
  msgstr ""
51
 
52
+ #: content-aware-sidebars.php:174
53
  msgid "Host Sidebar"
54
  msgstr ""
55
 
56
+ #: content-aware-sidebars.php:182 content-aware-sidebars.php:329
57
  msgid "Merge position"
58
  msgstr ""
59
 
60
+ #: content-aware-sidebars.php:184
61
  msgid "Place sidebar on top or bottom of host when merging."
62
  msgstr ""
63
 
64
+ #: content-aware-sidebars.php:188
65
  msgid "Top"
66
  msgstr ""
67
 
68
+ #: content-aware-sidebars.php:189
69
  msgid "Bottom"
70
  msgstr ""
71
 
72
+ #: content-aware-sidebars.php:210
73
  msgid "Sidebars"
74
  msgstr ""
75
 
76
+ #: content-aware-sidebars.php:211
77
  msgid "Sidebar"
78
  msgstr ""
79
 
80
+ #: content-aware-sidebars.php:212
81
  msgctxt "sidebar"
82
  msgid "Add New"
83
  msgstr ""
84
 
85
+ #: content-aware-sidebars.php:213
86
  msgid "Add New Sidebar"
87
  msgstr ""
88
 
89
+ #: content-aware-sidebars.php:214
90
  msgid "Edit Sidebar"
91
  msgstr ""
92
 
93
+ #: content-aware-sidebars.php:215
94
  msgid "New Sidebar"
95
  msgstr ""
96
 
97
+ #: content-aware-sidebars.php:216
98
  msgid "All Sidebars"
99
  msgstr ""
100
 
101
+ #: content-aware-sidebars.php:217
102
  msgid "View Sidebar"
103
  msgstr ""
104
 
105
+ #: content-aware-sidebars.php:218
106
  msgid "Search Sidebars"
107
  msgstr ""
108
 
109
+ #: content-aware-sidebars.php:219
110
  msgid "No sidebars found"
111
  msgstr ""
112
 
113
+ #: content-aware-sidebars.php:220
114
  msgid "No sidebars found in Trash"
115
  msgstr ""
116
 
117
+ #: content-aware-sidebars.php:253
118
  msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
119
  msgstr ""
120
 
121
+ #: content-aware-sidebars.php:256
122
  msgid "Sidebar updated."
123
  msgstr ""
124
 
125
+ #: content-aware-sidebars.php:258
126
  msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
127
  msgstr ""
128
 
129
+ #: content-aware-sidebars.php:259
130
  msgid "Sidebar saved."
131
  msgstr ""
132
 
133
+ #: content-aware-sidebars.php:260
134
  msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
135
  msgstr ""
136
 
137
+ #: content-aware-sidebars.php:261
138
  msgid ""
139
  "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
140
  "widgets</a>"
141
  msgstr ""
142
 
143
  #. translators: Publish box date format, see http:php.net/date
144
+ #: content-aware-sidebars.php:263
145
  msgid "M j, Y @ G:i"
146
  msgstr ""
147
 
148
+ #: content-aware-sidebars.php:264
149
  msgid "Sidebar draft updated."
150
  msgstr ""
151
 
152
+ #: content-aware-sidebars.php:391
153
  msgid "Please update Host Sidebar"
154
  msgstr ""
155
 
156
+ #: content-aware-sidebars.php:454
157
  msgid "Manage Widgets"
158
  msgstr ""
159
 
160
+ #: content-aware-sidebars.php:651
161
  msgid "Words from the author"
162
  msgstr ""
163
 
164
+ #: content-aware-sidebars.php:661
165
  msgid "Content"
166
  msgstr ""
167
 
168
+ #: content-aware-sidebars.php:671
169
  msgid "Options"
170
  msgstr ""
171
 
172
+ #: content-aware-sidebars.php:766
173
  msgid "If you love this plugin, please consider donating."
174
  msgstr ""
175
 
176
+ #: content-aware-sidebars.php:768
177
  msgid ""
178
  "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
179
  "<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
180
  msgstr ""
181
 
182
+ #: content-aware-sidebars.php:770
183
  msgid "Check out Content Aware Sidebars for %23WordPress! :)"
184
  msgstr ""
185
 
186
+ #: content-aware-sidebars.php:772
187
  msgid "Check out Content Aware Sidebars :)"
188
  msgstr ""
189
 
190
+ #: modules/abstract.php:39 modules/post_type.php:78
191
  msgid "Show with All %s"
192
  msgstr ""
193
 
194
+ #: modules/abstract.php:43 modules/post_type.php:88 modules/taxonomy.php:121
195
  msgid "View All"
196
  msgstr ""
197
 
198
+ #: modules/author.php:21
199
  msgid "Authors"
200
  msgstr ""
201
 
202
+ #: modules/bbpress.php:20
203
+ msgid "bbPress User Profiles"
204
+ msgstr ""
205
+
206
+ #: modules/bp_member.php:20
207
+ msgid "BuddyPress Members"
208
  msgstr ""
209
 
210
+ #: modules/page_template.php:21
211
  msgid "Page Templates"
212
  msgstr ""
213
 
214
+ #: modules/polylang.php:20 modules/qtranslate.php:20 modules/transposh.php:20
215
+ #: modules/wpml.php:20
216
+ msgid "Languages"
217
+ msgstr ""
218
+
219
+ #: modules/post_type.php:23
220
  msgid "Post Types"
221
  msgstr ""
222
 
223
+ #: modules/post_type.php:73 modules/taxonomy.php:107
224
+ msgid "Automatically select new children of a selected ancestor"
225
  msgstr ""
226
 
227
+ #: modules/post_type.php:82 modules/taxonomy.php:115
228
+ msgid "No items."
229
  msgstr ""
230
 
231
+ #: modules/static.php:22
232
  msgid "Static Pages"
233
  msgstr ""
234
 
235
+ #: modules/static.php:27
236
  msgid "Front Page"
237
  msgstr ""
238
 
239
+ #: modules/static.php:28
240
  msgid "Search Results"
241
  msgstr ""
242
 
243
+ #: modules/static.php:29
244
  msgid "404 Page"
245
  msgstr ""
246
 
248
  msgid "Taxonomies"
249
  msgstr ""
250
 
251
+ #: modules/taxonomy.php:111
252
  msgid "Show with %s"
253
  msgstr ""
254
 
255
+ #: modules/taxonomy.php:120
256
  msgid "Most Used"
257
  msgstr ""
258
 
260
  msgid "Content Aware Sidebars"
261
  msgstr ""
262
 
263
+ #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
264
  #. Plugin URI of the plugin/theme
265
+ #. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
266
  #. Author URI of the plugin/theme
267
  msgid "http://www.intox.dk/"
268
  msgstr ""
modules/bbpress.php CHANGED
@@ -16,8 +16,8 @@ class CASModule_bbpress extends CASModule {
16
 
17
  public function __construct() {
18
  parent::__construct();
19
- $this->id = 'authors';
20
- $this->name = __('bbPress','content-aware-sidebars');
21
 
22
  add_filter('cas-db-where-post_types', array(&$this,'add_forum_dependency'));
23
  }
@@ -27,11 +27,16 @@ class CASModule_bbpress extends CASModule {
27
  }
28
 
29
  public function db_where() {
30
- return "(authors.meta_value = 'authors' OR authors.meta_value = '".bbp_get_displayed_user_id()."')";
31
  }
32
 
33
  public function _get_content() {
34
- return 0;
 
 
 
 
 
35
  }
36
 
37
  public function add_forum_dependency($where) {
16
 
17
  public function __construct() {
18
  parent::__construct();
19
+ $this->id = 'bb_profile';
20
+ $this->name = __('bbPress User Profiles','content-aware-sidebars');
21
 
22
  add_filter('cas-db-where-post_types', array(&$this,'add_forum_dependency'));
23
  }
27
  }
28
 
29
  public function db_where() {
30
+ return "(bb_profile.meta_value = 'bb_profile' OR bb_profile.meta_value = '".bbp_get_displayed_user_id()."')";
31
  }
32
 
33
  public function _get_content() {
34
+ global $wpdb;
35
+ $author_list = array();
36
+ foreach($wpdb->get_results("SELECT ID, display_name FROM $wpdb->users ORDER BY ID ASC LIMIT 0,200") as $user) {
37
+ $author_list[$user->ID] = $user->display_name;
38
+ }
39
+ return $author_list;
40
  }
41
 
42
  public function add_forum_dependency($where) {
modules/bp_member.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Content Aware Sidebars
4
+ * @author Joachim Jensen <jv@intox.dk>
5
+ */
6
+
7
+ /**
8
+ *
9
+ * BuddyPress Member Page Module
10
+ *
11
+ * Detects if current content is:
12
+ * a) a specific buddypress member page
13
+ *
14
+ */
15
+ class CASModule_bp_member extends CASModule {
16
+
17
+ public function __construct() {
18
+ parent::__construct();
19
+ $this->id = 'bp_member';
20
+ $this->name = __('BuddyPress Members','content-aware-sidebars');
21
+
22
+ add_filter('cas-is-content-static', array(&$this,'static_is_content'));
23
+
24
+ }
25
+
26
+ protected function _get_content() {
27
+ global $bp;
28
+
29
+ $components = $bp->loaded_components;
30
+ unset($components['members'],$components['xprofile']);
31
+ $components['profile'] = 'profile';
32
+
33
+ $content = array();
34
+ foreach((array)$components as $name) {
35
+ $content[$name] = ucfirst($name);
36
+ }
37
+
38
+ return $content;
39
+ }
40
+
41
+ public function is_content() {
42
+ global $bp;
43
+ return $bp->displayed_user->domain != null;
44
+ }
45
+
46
+ public function db_where() {
47
+ global $bp;
48
+ return "(bp_member.meta_value IS NULL OR bp_member.meta_value IN ('".$bp->current_component."','".$bp->current_component."-".$bp->current_action."'))";
49
+
50
+ }
51
+
52
+ public function meta_box_content() {
53
+ global $post, $bp;
54
+
55
+ echo '<h4><a href="#">'.$this->name.'</a></h4>'."\n";
56
+ echo '<div class="cas-rule-content" id="cas-' . $this->id . '">';
57
+ $field = $this->id;
58
+ $meta = get_post_meta($post->ID, ContentAwareSidebars::prefix . $field, false);
59
+ $current = $meta != '' ? $meta : array();
60
+ ?>
61
+ <div style="min-height:100%;">
62
+ <ul class="list:<?php echo $field; ?> categorychecklist form-no-clear">
63
+ <?php
64
+ foreach ($this->_get_content() as $id => $name) {
65
+ echo '<li><label class="selectit"><input type="checkbox" name="' . $field . '[]" value="' . $id . '"' . (in_array($id, $current) ? ' checked="checked"' : '') . ' /> ' . $name . '</label></li>' . "\n";
66
+ if(isset($bp->bp_options_nav[$id])) {
67
+ echo '<ul class="children">';
68
+ foreach($bp->bp_options_nav[$id] as $child) {
69
+ echo '<li style="padding-left:20px;"><label class="selectit"><input type="checkbox" name="' . $field . '[]" value="' . $id . '-'. $child['slug'].'"' . (in_array($id . '-'. $child['slug'], $current) ? ' checked="checked"' : '') . ' /> ' . $child['name'] . '</label></li>' . "\n";
70
+ }
71
+ echo '</ul>';
72
+ }
73
+
74
+ }
75
+ ?>
76
+ </ul></div>
77
+ <?php
78
+ echo '</div>';
79
+ }
80
+
81
+ public function static_is_content($content) {
82
+ return $content && !$this->is_content();
83
+ }
84
+
85
+ }
modules/polylang.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Content Aware Sidebars
4
+ * @author Joachim Jensen <jv@intox.dk>
5
+ */
6
+
7
+ /**
8
+ *
9
+ * Polylang Module
10
+ *
11
+ * Detects if current content is:
12
+ * a) in specific language
13
+ *
14
+ */
15
+ class CASModule_polylang extends CASModule {
16
+
17
+ public function __construct() {
18
+ parent::__construct();
19
+ $this->id = 'language';
20
+ $this->name = __('Languages','content-aware-sidebars');
21
+
22
+
23
+ add_filter('pll_get_post_types', array(&$this,'remove_sidebar_multilingual'));
24
+
25
+ }
26
+
27
+ public function is_content() {
28
+ return true;
29
+ }
30
+
31
+ public function db_where() {
32
+ return "(language.meta_value IS NULL OR language.meta_value IN('language','".pll_current_language()."'))";
33
+ }
34
+
35
+ public function _get_content() {
36
+ global $polylang;
37
+ $langs = array();
38
+
39
+ foreach($polylang->get_languages_list() as $lng) {
40
+ $langs[$lng->slug] = $lng->name;
41
+ }
42
+ return $langs;
43
+ }
44
+
45
+ public function remove_sidebar_multilingual($post_types) {
46
+ if(isset($post_types['sidebar']))
47
+ unset($post_types['sidebar']);
48
+ return $post_types;
49
+ }
50
+
51
+ }
modules/post_type.php CHANGED
@@ -21,9 +21,12 @@ class CASModule_post_type extends CASModule {
21
  parent::__construct();
22
  $this->id = 'post_types';
23
  $this->name = __('Post Types','content-aware-sidebars');
 
 
 
24
  }
25
 
26
- public function _get_content() {
27
 
28
  }
29
 
@@ -65,6 +68,11 @@ class CASModule_post_type extends CASModule {
65
  'exclude' => $exclude
66
  ));
67
 
 
 
 
 
 
68
  //WP3.1.4 does not support $post_type->labels->all_items
69
  echo '<p>' . "\n";
70
  echo '<label><input class="cas-chk-all" type="checkbox" name="post_types[]" value="' . $post_type->name . '"' . checked(in_array($post_type->name, $current), true, false) . ' /> ' . sprintf(__('Show with All %s', 'content-aware-sidebars'), $post_type->label) . '</label>' . "\n";
@@ -101,5 +109,53 @@ class CASModule_post_type extends CASModule {
101
  }
102
  return $this->post_type_objects;
103
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  }
21
  parent::__construct();
22
  $this->id = 'post_types';
23
  $this->name = __('Post Types','content-aware-sidebars');
24
+
25
+ add_action('transition_post_status', array(&$this,'post_ancestry_check'),10,3);
26
+
27
  }
28
 
29
+ protected function _get_content() {
30
 
31
  }
32
 
68
  'exclude' => $exclude
69
  ));
70
 
71
+ if($post_type->hierarchical) {
72
+ echo '<p>' . "\n";
73
+ echo '<label><input type="checkbox" name="post_types[]" value="_cas_sub_' . $post_type->name . '"' . checked(in_array("_cas_sub_" . $post_type->name, $current), true, false) . ' /> ' . __('Automatically select new children of a selected ancestor', 'content-aware-sidebars') . '</label>' . "\n";
74
+ echo '</p>' . "\n";
75
+ }
76
  //WP3.1.4 does not support $post_type->labels->all_items
77
  echo '<p>' . "\n";
78
  echo '<label><input class="cas-chk-all" type="checkbox" name="post_types[]" value="' . $post_type->name . '"' . checked(in_array($post_type->name, $current), true, false) . ' /> ' . sprintf(__('Show with All %s', 'content-aware-sidebars'), $post_type->label) . '</label>' . "\n";
109
  }
110
  return $this->post_type_objects;
111
  }
112
+
113
+ /**
114
+ *
115
+ * @param string $new_status
116
+ * @param string $old_status
117
+ * @param object $post
118
+ */
119
+ public function post_ancestry_check($new_status, $old_status, $post) {
120
+
121
+ if($post->post_type != 'sidebar') {
122
+
123
+ $status = array('publish','private','future');
124
+ // Only new posts are relevant
125
+ if(!in_array($old_status,$status) && in_array($new_status,$status)) {
126
+
127
+ $post_type = get_post_type_object($post->post_type);
128
+ if($post_type->hierarchical && $post_type->public && $post->parent != '0') {
129
+
130
+ // Get sidebars with post ancestor wanting to auto-select post
131
+ $sidebars = new WP_Query(array(
132
+ 'post_type' => 'sidebar',
133
+ 'meta_query' => array(
134
+ 'relation' => 'AND',
135
+ array(
136
+ 'key' => ContentAwareSidebars::prefix . $this->id,
137
+ 'value' => '_cas_sub_' . $post->post_type,
138
+ 'compare' => '='
139
+ ),
140
+ array(
141
+ 'key' => ContentAwareSidebars::prefix . $this->id,
142
+ 'value' => get_ancestors($post->ID,$post->post_type),
143
+ 'type' => 'numeric',
144
+ 'compare' => 'IN'
145
+ )
146
+ )
147
+ ));
148
+ if($sidebars) {
149
+ foreach($sidebars as $sidebar) {
150
+ add_post_meta($sidebar->ID, ContentAwareSidebars::prefix.$this->id, $post->ID);
151
+ }
152
+ }
153
+
154
+ }
155
+ }
156
+
157
+ }
158
+
159
+ }
160
 
161
  }
modules/taxonomy.php CHANGED
@@ -22,6 +22,9 @@ class CASModule_taxonomy extends CASModule {
22
  parent::__construct();
23
  $this->id = 'taxonomies';
24
  $this->name = __('Taxonomies','content-aware-sidebars');
 
 
 
25
  }
26
 
27
  public function is_content() {
@@ -57,15 +60,15 @@ class CASModule_taxonomy extends CASModule {
57
 
58
  if(is_singular()) {
59
  $terms = array();
60
-
61
  //Grab posts taxonomies and terms and sort them
62
  foreach($this->post_terms as $term) {
63
- $terms[$term->taxonomy][] = $term->slug;
64
  }
65
 
66
  // Make rules for taxonomies and terms
67
- foreach($terms as $taxonomy => $term_arr) {
68
- $termrules[] = "(taxonomy.taxonomy = '".$taxonomy."' AND terms.slug IN('".implode("','",$term_arr)."'))";
69
  $taxrules[] = $taxonomy;
70
  }
71
 
@@ -99,9 +102,15 @@ class CASModule_taxonomy extends CASModule {
99
 
100
  $terms = get_terms($taxonomy->name, array('get' => 'all','number' => 200));
101
 
 
 
 
 
 
102
  echo '<p>' . "\n";
103
  echo '<label><input class="cas-chk-all" type="checkbox" name="taxonomies[]" value="' . $taxonomy->name . '"' . checked(in_array($taxonomy->name, $current), true, false) . ' /> ' . sprintf(__('Show with %s', 'content-aware-sidebars'), $taxonomy->labels->all_items) . '</label>' . "\n";
104
  echo '</p>' . "\n";
 
105
  if (!$terms || is_wp_error($terms)) {
106
  echo '<p>' . __('No items.') . '</p>';
107
  } else {
@@ -140,5 +149,47 @@ class CASModule_taxonomy extends CASModule {
140
  }
141
  return $this->taxonomy_objects;
142
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
  }
22
  parent::__construct();
23
  $this->id = 'taxonomies';
24
  $this->name = __('Taxonomies','content-aware-sidebars');
25
+
26
+ add_action('created_term', array(&$this,'term_ancestry_check'),10,3);
27
+
28
  }
29
 
30
  public function is_content() {
60
 
61
  if(is_singular()) {
62
  $terms = array();
63
+
64
  //Grab posts taxonomies and terms and sort them
65
  foreach($this->post_terms as $term) {
66
+ $terms[$term->taxonomy][] = $term->term_id;
67
  }
68
 
69
  // Make rules for taxonomies and terms
70
+ foreach($terms as $taxonomy => $term_arr) {
71
+ $termrules[] = "(taxonomy.taxonomy = '".$taxonomy."' AND terms.term_id IN('".implode("','",$term_arr)."'))";
72
  $taxrules[] = $taxonomy;
73
  }
74
 
102
 
103
  $terms = get_terms($taxonomy->name, array('get' => 'all','number' => 200));
104
 
105
+ if($taxonomy->hierarchical) {
106
+ echo '<p>' . "\n";
107
+ echo '<label><input type="checkbox" name="taxonomies[]" value="_cas_sub_' . $taxonomy->name . '"' . checked(in_array("_cas_sub_" . $taxonomy->name, $current), true, false) . ' /> ' . __('Automatically select new children of a selected ancestor', 'content-aware-sidebars') . '</label>' . "\n";
108
+ echo '</p>' . "\n";
109
+ }
110
  echo '<p>' . "\n";
111
  echo '<label><input class="cas-chk-all" type="checkbox" name="taxonomies[]" value="' . $taxonomy->name . '"' . checked(in_array($taxonomy->name, $current), true, false) . ' /> ' . sprintf(__('Show with %s', 'content-aware-sidebars'), $taxonomy->labels->all_items) . '</label>' . "\n";
112
  echo '</p>' . "\n";
113
+
114
  if (!$terms || is_wp_error($terms)) {
115
  echo '<p>' . __('No items.') . '</p>';
116
  } else {
149
  }
150
  return $this->taxonomy_objects;
151
  }
152
+
153
+ /**
154
+ *
155
+ * Auto-select children of selected ancestor
156
+ *
157
+ * @param int $term_id
158
+ * @param int $tt_id
159
+ * @param string $taxonomy
160
+ */
161
+ public function term_ancestry_check($term_id, $tt_id, $taxonomy) {
162
+
163
+ if(is_taxonomy_hierarchical($taxonomy)) {
164
+ $term = get_term($term_id, $taxonomy);
165
+
166
+ if($term->parent != '0') {
167
+ // Get sidebars with term ancestor wanting to auto-select term
168
+ $posts = new WP_Query(array(
169
+ 'post_type' => 'sidebar',
170
+ 'meta_query' => array(
171
+ array(
172
+ 'key' => ContentAwareSidebars::prefix . $this->id,
173
+ 'value' => '_cas_sub_' . $taxonomy,
174
+ 'compare' => '='
175
+ )
176
+ ),
177
+ 'tax_query' => array(
178
+ array(
179
+ 'taxonomy' => $taxonomy,
180
+ 'field' => 'id',
181
+ 'terms' => get_ancestors($term_id, $taxonomy),
182
+ 'include_children' => false
183
+ )
184
+ )
185
+ ));
186
+ if($posts) {
187
+ foreach($posts as $post) {
188
+ wp_set_post_terms($post->ID, $term_id, $taxonomy, true);
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
 
195
  }
modules/transposh.php CHANGED
@@ -30,7 +30,7 @@ class CASModule_transposh extends CASModule {
30
 
31
  }
32
 
33
- public function _get_content() {
34
  global $my_transposh_plugin;
35
  $langs = array();
36
  foreach(explode(',',$my_transposh_plugin->options->get_viewable_langs()) as $lng) {
30
 
31
  }
32
 
33
+ protected function _get_content() {
34
  global $my_transposh_plugin;
35
  $langs = array();
36
  foreach(explode(',',$my_transposh_plugin->options->get_viewable_langs()) as $lng) {
modules/wpml.php CHANGED
@@ -28,7 +28,7 @@ class CASModule_wpml extends CASModule {
28
  return "(language.meta_value IS NULL OR language.meta_value IN('language','".ICL_LANGUAGE_CODE."'))";
29
  }
30
 
31
- public function _get_content() {
32
  $langs = array();
33
 
34
  foreach(icl_get_languages('skip_missing=N') as $lng) {
28
  return "(language.meta_value IS NULL OR language.meta_value IN('language','".ICL_LANGUAGE_CODE."'))";
29
  }
30
 
31
+ protected function _get_content() {
32
  $langs = array();
33
 
34
  foreach(icl_get_languages('skip_missing=N') as $lng) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
  Contributors: intoxstudio
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KPZHE6A72LEN4&lc=US&item_name=WordPress%20Plugin%3a%20Content%20Aware%20Sidebars&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
- Tags: sidebar, widget, content aware, seo, dynamic, flexible, modular, bbpress, qtranslate, transposh, wpml
5
  Requires at least: 3.1
6
  Tested up to: 3.5
7
- Stable tag: 1.1.2
8
  License: GPL2
9
 
10
  Create and display sidebars according to the content being viewed.
@@ -30,7 +30,8 @@ No extra database tables or table columns will be added.
30
  * 404 Page
31
  * Front Page
32
  * bbPress User Profiles
33
- * Languages (qTranslate, Transposh, WPML)
 
34
  * **Any combination of the above**
35
  * Merge new sidebars with others, replace others or simply add them to your theme manually with a template tag
36
  * Create complex content with nested sidebars
@@ -40,7 +41,9 @@ No extra database tables or table columns will be added.
40
  = Builtin Plugin Support =
41
 
42
  * bbPress (v2.0.2+)
 
43
  * qTranslate (v2.5.29+)
 
44
  * Transposh Translation Filter (v0.8.2+)
45
  * WPML Multilingual Blog/CMS (v2.4.3+)
46
 
@@ -68,6 +71,18 @@ www.intox.dk
68
 
69
  If you have any questions not answered here, head to the [Support Forum](http://wordpress.org/tags/content-aware-sidebars?forum_id=10) or [contact me directly](http://www.intox.dk/kontakt/).
70
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  = How do I use display_ca_sidebar( $args )? =
72
 
73
  This function is optional and handles all sidebars that are set to be handled manually. It can be inserted anywhere on your site in any quantity, either as it is, or with the following parameters:
@@ -92,6 +107,15 @@ The function accepts URL-style strings as parameters too, like the standard Word
92
 
93
  == Changelog ==
94
 
 
 
 
 
 
 
 
 
 
95
  = 1.1.2 =
96
 
97
  * Added: wordpress 3.5 compatibility
1
  === Plugin Name ===
2
  Contributors: intoxstudio
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KPZHE6A72LEN4&lc=US&item_name=WordPress%20Plugin%3a%20Content%20Aware%20Sidebars&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
+ Tags: sidebar, widget area, content aware, context aware, seo, dynamic, flexible, modular, bbpress, buddypress, qtranslate, polylang, transposh, wpml
5
  Requires at least: 3.1
6
  Tested up to: 3.5
7
+ Stable tag: 1.2
8
  License: GPL2
9
 
10
  Create and display sidebars according to the content being viewed.
30
  * 404 Page
31
  * Front Page
32
  * bbPress User Profiles
33
+ * BuddyPress Member Pages
34
+ * Languages (qTranslate, Polylang, Transposh, WPML)
35
  * **Any combination of the above**
36
  * Merge new sidebars with others, replace others or simply add them to your theme manually with a template tag
37
  * Create complex content with nested sidebars
41
  = Builtin Plugin Support =
42
 
43
  * bbPress (v2.0.2+)
44
+ * BuddyPress (v1.6.2+)
45
  * qTranslate (v2.5.29+)
46
+ * Polylang (v0.9.6+)
47
  * Transposh Translation Filter (v0.8.2+)
48
  * WPML Multilingual Blog/CMS (v2.4.3+)
49
 
71
 
72
  If you have any questions not answered here, head to the [Support Forum](http://wordpress.org/tags/content-aware-sidebars?forum_id=10) or [contact me directly](http://www.intox.dk/kontakt/).
73
 
74
+ = Will Content Aware Sidebars work with my theme? =
75
+
76
+ Yes. If the theme supports dynamic widget areas/sidebars, new sidebars can be created to replace or merge with those.
77
+ If not, it is still possible to create sidebars and then use the function `display_ca_sidebar()` in the theme.
78
+
79
+ = My new sidebar is not displayed where I expect it to? =
80
+
81
+ All content rules are dependent of each other (when they collide), which makes it possible to create extremely focused rules for where to display a sidebar; e.g. with posts written by a given author and with a given category.
82
+ However, this also means that it currently is not possible to create a single sidebar that should be displayed with posts by a given author or posts with a given category.
83
+
84
+ Note the exposure setting as it determines whether the selected rules apply to archives, singulars or both.
85
+
86
  = How do I use display_ca_sidebar( $args )? =
87
 
88
  This function is optional and handles all sidebars that are set to be handled manually. It can be inserted anywhere on your site in any quantity, either as it is, or with the following parameters:
107
 
108
  == Changelog ==
109
 
110
+ = 1.2 =
111
+
112
+ * Added: polylang support
113
+ * Added: buddypress support
114
+ * Added: managing sidebars now requires edit_theme_options cap
115
+ * Added: bbpress user profile has own rules instead of author rules
116
+ * Added: filter for content recognition
117
+ * Added: auto-select new children of selected taxonomy or post type ancestor
118
+
119
  = 1.1.2 =
120
 
121
  * Added: wordpress 3.5 compatibility