Breadcrumb Trail - Version 0.6.1

Version Description

Version 0.6.0+

If upgrading to a version earlier than 0.6.0 to 0.6.0+, you should check the readme.md documentation on some of the argument changes if you've been adding custom arguments into the breadcrumb_trail() function.

Download this release

Release Info

Developer greenshady
Plugin Icon 128x128 Breadcrumb Trail
Version 0.6.1
Comparing to
See all releases

Code changes from version 0.6.0 to 0.6.1

breadcrumb-trail.php CHANGED
@@ -1,11 +1,13 @@
1
  <?php
2
  /**
3
  * Plugin Name: Breadcrumb Trail
4
- * Plugin URI: http://themehybrid.com/plugins/breadcrumb-trail
5
  * Description: A smart breadcrumb menu plugin embedded with <a href="http://schema.org">Schema.org</a> microdata that can handle variations in site structure more accurately than any other breadcrumb plugin for WordPress. Insert into your theme with the <code>breadcrumb_trail()</code> template tag.
6
- * Version: 0.6.0
7
- * Author: Justin Tadlock
8
- * Author URI: http://justintadlock.com
 
 
9
  */
10
 
11
  /* Extra check in case the script is being loaded by a theme. */
1
  <?php
2
  /**
3
  * Plugin Name: Breadcrumb Trail
4
+ * Plugin URI: http://themehybrid.com/plugins/breadcrumb-trail
5
  * Description: A smart breadcrumb menu plugin embedded with <a href="http://schema.org">Schema.org</a> microdata that can handle variations in site structure more accurately than any other breadcrumb plugin for WordPress. Insert into your theme with the <code>breadcrumb_trail()</code> template tag.
6
+ * Version: 0.6.1
7
+ * Author: Justin Tadlock
8
+ * Author URI: http://justintadlock.com
9
+ * Text Domain: breadcrumb-trail
10
+ * Domain Path: /languages
11
  */
12
 
13
  /* Extra check in case the script is being loaded by a theme. */
inc/breadcrumbs.php CHANGED
@@ -15,7 +15,7 @@
15
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
  *
17
  * @package BreadcrumbTrail
18
- * @version 0.6.0
19
  * @author Justin Tadlock <justin@justintadlock.com>
20
  * @copyright Copyright (c) 2008 - 2013, Justin Tadlock
21
  * @link http://themehybrid.com/plugins/breadcrumb-trail
@@ -38,7 +38,7 @@ function breadcrumb_trail( $args = array() ) {
38
  else
39
  $breadcrumb = new Breadcrumb_Trail( $args );
40
 
41
- $breadcrumb->trail();
42
  }
43
 
44
  /**
@@ -123,6 +123,9 @@ class Breadcrumb_Trail {
123
  /* Connect the breadcrumb trail if there are items in the trail. */
124
  if ( !empty( $this->items ) && is_array( $this->items ) ) {
125
 
 
 
 
126
  /* Open the breadcrumb trail containers. */
127
  $breadcrumb = "\n\t\t" . '<' . tag_escape( $this->args['container'] ) . ' class="breadcrumb-trail breadcrumbs" itemprop="breadcrumb">';
128
 
@@ -172,20 +175,25 @@ class Breadcrumb_Trail {
172
  public function default_labels() {
173
 
174
  $labels = array(
175
- 'browse' => __( 'Browse:', 'breadcrumb-trail' ),
176
- 'home' => __( 'Home', 'breadcrumb-trail' ),
177
- 'search' => __( 'Search results for "%s"', 'breadcrumb-trail' ),
178
- 'error_404' => __( '404 Not Found', 'breadcrumb-trail' ),
179
- 'paged' => __( 'Page %d', 'breadcrumb-trail' ),
180
- 'archives' => __( 'Archives', 'breadcrumb-trail' ),
181
- 'archive_minute_hour' => __( 'g:i a', 'breadcrumb-trail' ),
182
- 'archive_minute' => __( 'Minute %d', 'breadcrumb-trail' ),
183
- 'archive_hour' => __( 'g a', 'breadcrumb-trail' ),
184
- 'archive_day' => __( 'd', 'breadcrumb-trail' ),
185
- 'archive_week' => __( 'Week %d', 'breadcrumb-trail' ),
186
- 'archive_month' => __( 'F', 'breadcrumb-trail' ),
187
- 'archive_year' => __( 'Y', 'breadcrumb-trail' ),
188
- // 'edit' => __( 'Edit', 'breadcrumb-trail' ), // @todo Implement edit link
 
 
 
 
 
189
  );
190
 
191
  return $labels;
@@ -303,11 +311,11 @@ class Breadcrumb_Trail {
303
 
304
  /* If viewing a paged singular post. */
305
  if ( is_singular() && 1 < get_query_var( 'page' ) && true === $this->args['show_title'] )
306
- $this->items[] = sprintf( $this->args['labels']['paged'], absint( get_query_var( 'page' ) ) );
307
 
308
  /* If viewing a paged archive-type page. */
309
  elseif ( is_paged() && true === $this->args['show_title'] )
310
- $this->items[] = sprintf( $this->args['labels']['paged'], absint( get_query_var( 'paged' ) ) );
311
 
312
  }
313
 
@@ -320,7 +328,7 @@ class Breadcrumb_Trail {
320
  */
321
  public function do_network_home_link() {
322
  if ( is_multisite() && !is_main_site() && true === $this->args['network'] )
323
- $this->items[] = '<a href="' . network_home_url() . '" title="' . esc_attr( $this->args['labels']['home'] ) . '">' . $this->args['labels']['home'] . '</a>';
324
  }
325
 
326
  /**
@@ -332,7 +340,8 @@ class Breadcrumb_Trail {
332
  */
333
  public function do_site_home_link() {
334
  $label = ( is_multisite() && !is_main_site() && true === $this->args['network'] ) ? get_bloginfo( 'name' ) : $this->args['labels']['home'];
335
- $this->items[] = '<a href="' . home_url() . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '">' . $label . '</a>';
 
336
  }
337
 
338
  /**
@@ -345,7 +354,7 @@ class Breadcrumb_Trail {
345
  public function do_front_page_items() {
346
 
347
  /* Only show front items if the 'show_on_front' argument is set to 'true'. */
348
- if ( true === $this->args['show_on_front'] ) {
349
 
350
  /* If on a paged view, add the home link items. */
351
  if ( is_paged() ) {
@@ -521,7 +530,7 @@ class Breadcrumb_Trail {
521
  /* Add support for a non-standard label of 'archive_title' (special use case). */
522
  $label = !empty( $post_type_object->labels->archive_title ) ? $post_type_object->labels->archive_title : $post_type_object->labels->name;
523
 
524
- $this->items[] = '<a href="' . get_post_type_archive_link( $post_type ) . '" title="' . esc_attr( $label ) . '">' . $label . '</a>';
525
  }
526
  }
527
 
@@ -704,7 +713,7 @@ class Breadcrumb_Trail {
704
 
705
  /* Add the minute + hour item. */
706
  if ( true === $this->args['show_title'] )
707
- $this->items[] = get_the_time( $this->args['labels']['archive_minute_hour'] );
708
  }
709
 
710
  /**
@@ -721,7 +730,7 @@ class Breadcrumb_Trail {
721
 
722
  /* Add the minute item. */
723
  if ( true === $this->args['show_title'] )
724
- $this->items[] = sprintf( $this->args['labels']['archive_minute'], date_i18n( 'i', get_the_time( 'U' ) ) );
725
  }
726
 
727
  /**
@@ -738,7 +747,7 @@ class Breadcrumb_Trail {
738
 
739
  /* Add the hour item. */
740
  if ( true === $this->args['show_title'] )
741
- $this->items[] = get_the_time( $this->args['labels']['archive_hour'] );
742
  }
743
 
744
  /**
@@ -754,9 +763,9 @@ class Breadcrumb_Trail {
754
  $this->do_rewrite_front_items();
755
 
756
  /* Get year, month, and day. */
757
- $year = get_the_time( $this->args['labels']['archive_year'] );
758
- $month = get_the_time( $this->args['labels']['archive_month'] );
759
- $day = get_the_time( $this->args['labels']['archive_day'] );
760
 
761
  /* Add the year and month items. */
762
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
@@ -783,8 +792,8 @@ class Breadcrumb_Trail {
783
  $this->do_rewrite_front_items();
784
 
785
  /* Get the year and week. */
786
- $year = get_the_time( $this->args['labels']['archive_year'] );
787
- $week = sprintf( $this->args['labels']['archive_week'], date_i18n( 'W', get_the_time( 'U' ) ) );
788
 
789
  /* Add the year item. */
790
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
@@ -810,8 +819,8 @@ class Breadcrumb_Trail {
810
  $this->do_rewrite_front_items();
811
 
812
  /* Get the year and month. */
813
- $year = get_the_time( $this->args['labels']['archive_year'] );
814
- $month = get_the_time( $this->args['labels']['archive_month'] );
815
 
816
  /* Add the year item. */
817
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
@@ -837,7 +846,7 @@ class Breadcrumb_Trail {
837
  $this->do_rewrite_front_items();
838
 
839
  /* Get the year. */
840
- $year = get_the_time( $this->args['labels']['archive_year'] );
841
 
842
  /* Add the year item. */
843
  if ( is_paged() )
@@ -1024,15 +1033,15 @@ class Breadcrumb_Trail {
1024
 
1025
  /* If using the %year% tag, add a link to the yearly archive. */
1026
  if ( '%year%' == $tag )
1027
- $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y', $post_id ) ) . '" title="' . get_the_time( __( 'Y', 'breadcrumb-trail' ), $post_id ) . '">' . get_the_time( $this->args['labels']['archive_year'], $post_id ) . '</a>';
1028
 
1029
  /* If using the %monthnum% tag, add a link to the monthly archive. */
1030
  elseif ( '%monthnum%' == $tag )
1031
- $this->items[] = '<a href="' . get_month_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ) ) . '" title="' . get_the_time( esc_attr__( 'F Y', 'breadcrumb-trail' ), $post_id ) . '">' . get_the_time( $this->args['labels']['archive_month'], $post_id ) . '</a>';
1032
 
1033
  /* If using the %day% tag, add a link to the daily archive. */
1034
  elseif ( '%day%' == $tag )
1035
- $this->items[] = '<a href="' . get_day_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ), get_the_time( 'd', $post_id ) ) . '" title="' . get_the_time( esc_attr__( 'F j, Y', 'breadcrumb-trail' ), $post_id ) . '">' . get_the_time( $this->args['labels']['archive_day'], $post_id ) . '</a>';
1036
 
1037
  /* If using the %author% tag, add a link to the post author archive. */
1038
  elseif ( '%author%' == $tag )
@@ -1086,6 +1095,10 @@ class bbPress_Breadcrumb_Trail extends Breadcrumb_Trail {
1086
  */
1087
  public function do_trail_items() {
1088
 
 
 
 
 
1089
  /* Get the forum post type object. */
1090
  $post_type_object = get_post_type_object( bbp_get_forum_post_type() );
1091
 
15
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
  *
17
  * @package BreadcrumbTrail
18
+ * @version 0.6.1
19
  * @author Justin Tadlock <justin@justintadlock.com>
20
  * @copyright Copyright (c) 2008 - 2013, Justin Tadlock
21
  * @link http://themehybrid.com/plugins/breadcrumb-trail
38
  else
39
  $breadcrumb = new Breadcrumb_Trail( $args );
40
 
41
+ return $breadcrumb->trail();
42
  }
43
 
44
  /**
123
  /* Connect the breadcrumb trail if there are items in the trail. */
124
  if ( !empty( $this->items ) && is_array( $this->items ) ) {
125
 
126
+ /* Make sure we have a unique array of items. */
127
+ $this->items = array_unique( $this->items );
128
+
129
  /* Open the breadcrumb trail containers. */
130
  $breadcrumb = "\n\t\t" . '<' . tag_escape( $this->args['container'] ) . ' class="breadcrumb-trail breadcrumbs" itemprop="breadcrumb">';
131
 
175
  public function default_labels() {
176
 
177
  $labels = array(
178
+ 'browse' => __( 'Browse:', 'breadcrumb-trail' ),
179
+ 'home' => __( 'Home', 'breadcrumb-trail' ),
180
+ 'error_404' => __( '404 Not Found', 'breadcrumb-trail' ),
181
+ 'archives' => __( 'Archives', 'breadcrumb-trail' ),
182
+ /* Translators: %s is the search query. The HTML entities are opening and closing curly quotes. */
183
+ 'search' => __( 'Search results for &#8220;%s&#8221;', 'breadcrumb-trail' ),
184
+ /* Translators: %s is the page number. */
185
+ 'paged' => __( 'Page %s', 'breadcrumb-trail' ),
186
+ /* Translators: Minute archive title. %s is the minute time format. */
187
+ 'archive_minute' => __( 'Minute %s', 'breadcrumb-trail' ),
188
+ /* Translators: Weekly archive title. %s is the week date format. */
189
+ 'archive_week' => __( 'Week %s', 'breadcrumb-trail' ),
190
+
191
+ /* "%s" is replaced with the translated date/time format. */
192
+ 'archive_minute_hour' => '%s',
193
+ 'archive_hour' => '%s',
194
+ 'archive_day' => '%s',
195
+ 'archive_month' => '%s',
196
+ 'archive_year' => '%s',
197
  );
198
 
199
  return $labels;
311
 
312
  /* If viewing a paged singular post. */
313
  if ( is_singular() && 1 < get_query_var( 'page' ) && true === $this->args['show_title'] )
314
+ $this->items[] = sprintf( $this->args['labels']['paged'], number_format_i18n( absint( get_query_var( 'page' ) ) ) );
315
 
316
  /* If viewing a paged archive-type page. */
317
  elseif ( is_paged() && true === $this->args['show_title'] )
318
+ $this->items[] = sprintf( $this->args['labels']['paged'], number_format_i18n( absint( get_query_var( 'paged' ) ) ) );
319
 
320
  }
321
 
328
  */
329
  public function do_network_home_link() {
330
  if ( is_multisite() && !is_main_site() && true === $this->args['network'] )
331
+ $this->items[] = '<a href="' . network_home_url() . '" title="' . esc_attr( $this->args['labels']['home'] ) . '" rel="home">' . $this->args['labels']['home'] . '</a>';
332
  }
333
 
334
  /**
340
  */
341
  public function do_site_home_link() {
342
  $label = ( is_multisite() && !is_main_site() && true === $this->args['network'] ) ? get_bloginfo( 'name' ) : $this->args['labels']['home'];
343
+ $rel = ( is_multisite() && !is_main_site() && true === $this->args['network'] ) ? '' : ' rel="home"';
344
+ $this->items[] = '<a href="' . home_url() . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '"' . $rel .'>' . $label . '</a>';
345
  }
346
 
347
  /**
354
  public function do_front_page_items() {
355
 
356
  /* Only show front items if the 'show_on_front' argument is set to 'true'. */
357
+ if ( true === $this->args['show_on_front'] || is_paged() || ( is_singular() && 1 < get_query_var( 'page' ) ) ) {
358
 
359
  /* If on a paged view, add the home link items. */
360
  if ( is_paged() ) {
530
  /* Add support for a non-standard label of 'archive_title' (special use case). */
531
  $label = !empty( $post_type_object->labels->archive_title ) ? $post_type_object->labels->archive_title : $post_type_object->labels->name;
532
 
533
+ $this->items[] = '<a href="' . get_post_type_archive_link( $post_type ) . '">' . $label . '</a>';
534
  }
535
  }
536
 
713
 
714
  /* Add the minute + hour item. */
715
  if ( true === $this->args['show_title'] )
716
+ $this->items[] = sprintf( $this->args['labels']['archive_minute_hour'], get_the_time( _x( 'g:i a', 'minute and hour archives time format', 'breadcrumb-trail' ) ) );
717
  }
718
 
719
  /**
730
 
731
  /* Add the minute item. */
732
  if ( true === $this->args['show_title'] )
733
+ $this->items[] = sprintf( $this->args['labels']['archive_minute'], get_the_time( _x( 'i', 'minute archives time format', 'breadcrumb-trail' ) ) );
734
  }
735
 
736
  /**
747
 
748
  /* Add the hour item. */
749
  if ( true === $this->args['show_title'] )
750
+ $this->items[] = sprintf( $this->args['labels']['archive_hour'], get_the_time( _x( 'g a', 'hour archives time format', 'breadcrumb-trail' ) ) );
751
  }
752
 
753
  /**
763
  $this->do_rewrite_front_items();
764
 
765
  /* Get year, month, and day. */
766
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
767
+ $month = sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'breadcrumb-trail' ) ) );
768
+ $day = sprintf( $this->args['labels']['archive_day'], get_the_time( _x( 'j', 'daily archives date format', 'breadcrumb-trail' ) ) );
769
 
770
  /* Add the year and month items. */
771
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
792
  $this->do_rewrite_front_items();
793
 
794
  /* Get the year and week. */
795
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
796
+ $week = sprintf( $this->args['labels']['archive_week'], get_the_time( _x( 'W', 'weekly archives date format', 'breadcrumb-trail' ) ) );
797
 
798
  /* Add the year item. */
799
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
819
  $this->do_rewrite_front_items();
820
 
821
  /* Get the year and month. */
822
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
823
+ $month = sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'breadcrumb-trail' ) ) );
824
 
825
  /* Add the year item. */
826
  $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y' ) ) . '" title="' . esc_attr( $year ) . '">' . $year . '</a>';
846
  $this->do_rewrite_front_items();
847
 
848
  /* Get the year. */
849
+ $year = sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) );
850
 
851
  /* Add the year item. */
852
  if ( is_paged() )
1033
 
1034
  /* If using the %year% tag, add a link to the yearly archive. */
1035
  if ( '%year%' == $tag )
1036
+ $this->items[] = '<a href="' . get_year_link( get_the_time( 'Y', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_year'], get_the_time( _x( 'Y', 'yearly archives date format', 'breadcrumb-trail' ) ) ) . '</a>';
1037
 
1038
  /* If using the %monthnum% tag, add a link to the monthly archive. */
1039
  elseif ( '%monthnum%' == $tag )
1040
+ $this->items[] = '<a href="' . get_month_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_month'], get_the_time( _x( 'F', 'monthly archives date format', 'breadcrumb-trail' ) ) ) . '</a>';
1041
 
1042
  /* If using the %day% tag, add a link to the daily archive. */
1043
  elseif ( '%day%' == $tag )
1044
+ $this->items[] = '<a href="' . get_day_link( get_the_time( 'Y', $post_id ), get_the_time( 'm', $post_id ), get_the_time( 'd', $post_id ) ) . '">' . sprintf( $this->args['labels']['archive_day'], get_the_time( _x( 'j', 'daily archives date format', 'breadcrumb-trail' ) ) ) . '</a>';
1045
 
1046
  /* If using the %author% tag, add a link to the post author archive. */
1047
  elseif ( '%author%' == $tag )
1095
  */
1096
  public function do_trail_items() {
1097
 
1098
+ /* Add the network and site home links. */
1099
+ $this->do_network_home_link();
1100
+ $this->do_site_home_link();
1101
+
1102
  /* Get the forum post type object. */
1103
  $post_type_object = get_post_type_object( bbp_get_forum_post_type() );
1104
 
languages/breadcrumb-trail-fi.mo ADDED
Binary file
languages/breadcrumb-trail-fi.po ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Breadcrumb Trail WordPress Plugin\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/breadcrumb-trail\n"
5
+ "POT-Creation-Date: 2014-07-11 15:37:55+00:00\n"
6
+ "PO-Revision-Date: 2014-07-11 10:40-0600\n"
7
+ "Last-Translator: Sami Keijonen <sami.keijonen@foxnet.fi>\n"
8
+ "Language-Team: Foxnet Themes <sami.keijonen@foxnet.fi>\n"
9
+ "Language: fi\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.5.7\n"
14
+ "X-Poedit-KeywordsList: _e;__;esc_attr_e;esc_attr__;esc_html_e;esc_html__;_n;"
15
+ "_x;_x:1,2c;_n:1,2\n"
16
+ "X-Poedit-Basepath: ../\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ #: inc/breadcrumbs.php:178
21
+ msgid "Browse:"
22
+ msgstr "Olet täällä:"
23
+
24
+ #: inc/breadcrumbs.php:179
25
+ msgid "Home"
26
+ msgstr "Etusivu"
27
+
28
+ #: inc/breadcrumbs.php:180
29
+ msgid "404 Not Found"
30
+ msgstr "404 Sivua ei löytynyt"
31
+
32
+ #: inc/breadcrumbs.php:181
33
+ msgid "Archives"
34
+ msgstr "Arkistot"
35
+
36
+ #. Translators: %s is the search query. The HTML entities are opening and
37
+ #. closing curly quotes.
38
+ #: inc/breadcrumbs.php:183
39
+ msgid "Search results for &#8220;%s&#8221;"
40
+ msgstr "Hakutulokset haulle: \"%s\""
41
+
42
+ #. Translators: %s is the page number.
43
+ #: inc/breadcrumbs.php:185
44
+ msgid "Page %s"
45
+ msgstr "Sivu %d"
46
+
47
+ #. Translators: Minute archive title. %s is the minute time format.
48
+ #: inc/breadcrumbs.php:187
49
+ msgid "Minute %s"
50
+ msgstr "Minuutti %d"
51
+
52
+ #. Translators: Weekly archive title. %s is the week date format.
53
+ #: inc/breadcrumbs.php:189
54
+ msgid "Week %s"
55
+ msgstr "Viikko %d"
56
+
57
+ #: inc/breadcrumbs.php:716
58
+ msgctxt "minute and hour archives time format"
59
+ msgid "g:i a"
60
+ msgstr "G:i"
61
+
62
+ #: inc/breadcrumbs.php:733
63
+ msgctxt "minute archives time format"
64
+ msgid "i"
65
+ msgstr ""
66
+
67
+ #: inc/breadcrumbs.php:750
68
+ msgctxt "hour archives time format"
69
+ msgid "g a"
70
+ msgstr "g a"
71
+
72
+ #: inc/breadcrumbs.php:766 inc/breadcrumbs.php:795 inc/breadcrumbs.php:822
73
+ #: inc/breadcrumbs.php:849 inc/breadcrumbs.php:1036
74
+ msgctxt "yearly archives date format"
75
+ msgid "Y"
76
+ msgstr "Y"
77
+
78
+ #: inc/breadcrumbs.php:767 inc/breadcrumbs.php:823 inc/breadcrumbs.php:1040
79
+ msgctxt "monthly archives date format"
80
+ msgid "F"
81
+ msgstr "F"
82
+
83
+ #: inc/breadcrumbs.php:768 inc/breadcrumbs.php:1044
84
+ msgctxt "daily archives date format"
85
+ msgid "j"
86
+ msgstr ""
87
+
88
+ #: inc/breadcrumbs.php:796
89
+ msgctxt "weekly archives date format"
90
+ msgid "W"
91
+ msgstr ""
92
+
93
+ #: inc/breadcrumbs.php:1135 inc/breadcrumbs.php:1171 inc/breadcrumbs.php:1188
94
+ #: inc/breadcrumbs.php:1219
95
+ msgid "Edit"
96
+ msgstr "Muokkaa"
97
+
98
+ #: inc/breadcrumbs.php:1163
99
+ msgid "Split"
100
+ msgstr "Jaa"
101
+
102
+ #: inc/breadcrumbs.php:1167
103
+ msgid "Merge"
104
+ msgstr "Yhdistä"
105
+
106
+ #. Plugin Name of the plugin/theme
107
+ msgid "Breadcrumb Trail"
108
+ msgstr ""
109
+
110
+ #. Plugin URI of the plugin/theme
111
+ msgid "http://themehybrid.com/plugins/breadcrumb-trail"
112
+ msgstr ""
113
+
114
+ #. Description of the plugin/theme
115
+ msgid ""
116
+ "A smart breadcrumb menu plugin embedded with <a href=\"http://schema.org"
117
+ "\">Schema.org</a> microdata that can handle variations in site structure "
118
+ "more accurately than any other breadcrumb plugin for WordPress. Insert into "
119
+ "your theme with the <code>breadcrumb_trail()</code> template tag."
120
+ msgstr ""
121
+
122
+ #. Author of the plugin/theme
123
+ msgid "Justin Tadlock"
124
+ msgstr ""
125
+
126
+ #. Author URI of the plugin/theme
127
+ msgid "http://justintadlock.com"
128
+ msgstr ""
129
+
130
+ #~ msgid "d"
131
+ #~ msgstr "d"
132
+
133
+ #~ msgid "F Y"
134
+ #~ msgstr "F Y"
135
+
136
+ #~ msgid "F j, Y"
137
+ #~ msgstr "j.m.Y"
languages/breadcrumb-trail.pot CHANGED
@@ -1,93 +1,122 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Breadcrumb Trail WordPress Plugin\n"
4
- "POT-Creation-Date: 2013-10-01 08:34-0600\n"
5
- "PO-Revision-Date: 2013-10-01 08:35-0600\n"
6
- "Last-Translator: \n"
7
- "Language-Team: <justin@justintadlock.com>\n"
8
- "Language: en_US\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.5.7\n"
13
- "X-Poedit-KeywordsList: _e;__;esc_attr_e;esc_attr__;esc_html_e;esc_html__;_n;"
14
- "_x;_x:1,2c;_n:1,2\n"
15
- "X-Poedit-Basepath: ../\n"
16
- "X-Poedit-SearchPath-0: .\n"
17
-
18
- #: breadcrumb-trail.php:194
19
- msgid "Browse:"
20
- msgstr ""
21
-
22
- #: breadcrumb-trail.php:195
23
- msgid "Home"
24
- msgstr ""
25
-
26
- #: breadcrumb-trail.php:196
27
- #, php-format
28
- msgid "Search results for \"%s\""
29
- msgstr ""
30
-
31
- #: breadcrumb-trail.php:197
32
- msgid "404 Not Found"
33
- msgstr ""
34
-
35
- #: breadcrumb-trail.php:198
36
- #, php-format
37
- msgid "Page %d"
38
- msgstr ""
39
-
40
- #: breadcrumb-trail.php:199
41
- msgid "Archives"
42
- msgstr ""
43
-
44
- #: breadcrumb-trail.php:200
45
- msgid "g:i a"
46
- msgstr ""
47
-
48
- #: breadcrumb-trail.php:201
49
- #, php-format
50
- msgid "Minute %d"
51
- msgstr ""
52
-
53
- #: breadcrumb-trail.php:202
54
- msgid "g a"
55
- msgstr ""
56
-
57
- #: breadcrumb-trail.php:203
58
- msgid "d"
59
- msgstr ""
60
-
61
- #: breadcrumb-trail.php:204
62
- #, php-format
63
- msgid "Week %d"
64
- msgstr ""
65
-
66
- #: breadcrumb-trail.php:205
67
- msgid "F"
68
- msgstr ""
69
-
70
- #: breadcrumb-trail.php:206 breadcrumb-trail.php:1046
71
- msgid "Y"
72
- msgstr ""
73
-
74
- #: breadcrumb-trail.php:1050
75
- msgid "F Y"
76
- msgstr ""
77
-
78
- #: breadcrumb-trail.php:1054
79
- msgid "F j, Y"
80
- msgstr ""
81
-
82
- #: breadcrumb-trail.php:1141 breadcrumb-trail.php:1177
83
- #: breadcrumb-trail.php:1194 breadcrumb-trail.php:1225
84
- msgid "Edit"
85
- msgstr ""
86
-
87
- #: breadcrumb-trail.php:1169
88
- msgid "Split"
89
- msgstr ""
90
-
91
- #: breadcrumb-trail.php:1173
92
- msgid "Merge"
93
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 Breadcrumb Trail
2
+ # This file is distributed under the same license as the Breadcrumb Trail package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Breadcrumb Trail 0.6.1-alpha\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/breadcrumb-trail\n"
7
+ "POT-Creation-Date: 2014-07-11 15:37:55+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: 2014-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: inc/breadcrumbs.php:178
16
+ msgid "Browse:"
17
+ msgstr ""
18
+
19
+ #: inc/breadcrumbs.php:179
20
+ msgid "Home"
21
+ msgstr ""
22
+
23
+ #: inc/breadcrumbs.php:180
24
+ msgid "404 Not Found"
25
+ msgstr ""
26
+
27
+ #: inc/breadcrumbs.php:181
28
+ msgid "Archives"
29
+ msgstr ""
30
+
31
+ #. Translators: %s is the search query. The HTML entities are opening and
32
+ #. closing curly quotes.
33
+
34
+ #: inc/breadcrumbs.php:183
35
+ msgid "Search results for &#8220;%s&#8221;"
36
+ msgstr ""
37
+
38
+ #. Translators: %s is the page number.
39
+
40
+ #: inc/breadcrumbs.php:185
41
+ msgid "Page %s"
42
+ msgstr ""
43
+
44
+ #. Translators: Minute archive title. %s is the minute time format.
45
+
46
+ #: inc/breadcrumbs.php:187
47
+ msgid "Minute %s"
48
+ msgstr ""
49
+
50
+ #. Translators: Weekly archive title. %s is the week date format.
51
+
52
+ #: inc/breadcrumbs.php:189
53
+ msgid "Week %s"
54
+ msgstr ""
55
+
56
+ #: inc/breadcrumbs.php:716
57
+ msgctxt "minute and hour archives time format"
58
+ msgid "g:i a"
59
+ msgstr ""
60
+
61
+ #: inc/breadcrumbs.php:733
62
+ msgctxt "minute archives time format"
63
+ msgid "i"
64
+ msgstr ""
65
+
66
+ #: inc/breadcrumbs.php:750
67
+ msgctxt "hour archives time format"
68
+ msgid "g a"
69
+ msgstr ""
70
+
71
+ #: inc/breadcrumbs.php:766 inc/breadcrumbs.php:795 inc/breadcrumbs.php:822
72
+ #: inc/breadcrumbs.php:849 inc/breadcrumbs.php:1036
73
+ msgctxt "yearly archives date format"
74
+ msgid "Y"
75
+ msgstr ""
76
+
77
+ #: inc/breadcrumbs.php:767 inc/breadcrumbs.php:823 inc/breadcrumbs.php:1040
78
+ msgctxt "monthly archives date format"
79
+ msgid "F"
80
+ msgstr ""
81
+
82
+ #: inc/breadcrumbs.php:768 inc/breadcrumbs.php:1044
83
+ msgctxt "daily archives date format"
84
+ msgid "j"
85
+ msgstr ""
86
+
87
+ #: inc/breadcrumbs.php:796
88
+ msgctxt "weekly archives date format"
89
+ msgid "W"
90
+ msgstr ""
91
+
92
+ #: inc/breadcrumbs.php:1135 inc/breadcrumbs.php:1171 inc/breadcrumbs.php:1188
93
+ #: inc/breadcrumbs.php:1219
94
+ msgid "Edit"
95
+ msgstr ""
96
+
97
+ #: inc/breadcrumbs.php:1163
98
+ msgid "Split"
99
+ msgstr ""
100
+
101
+ #: inc/breadcrumbs.php:1167
102
+ msgid "Merge"
103
+ msgstr ""
104
+ #. Plugin Name of the plugin/theme
105
+ msgid "Breadcrumb Trail"
106
+ msgstr ""
107
+
108
+ #. Plugin URI of the plugin/theme
109
+ msgid "http://themehybrid.com/plugins/breadcrumb-trail"
110
+ msgstr ""
111
+
112
+ #. Description of the plugin/theme
113
+ msgid "A smart breadcrumb menu plugin embedded with <a href=\"http://schema.org\">Schema.org</a> microdata that can handle variations in site structure more accurately than any other breadcrumb plugin for WordPress. Insert into your theme with the <code>breadcrumb_trail()</code> template tag."
114
+ msgstr ""
115
+
116
+ #. Author of the plugin/theme
117
+ msgid "Justin Tadlock"
118
+ msgstr ""
119
+
120
+ #. Author URI of the plugin/theme
121
+ msgid "http://justintadlock.com"
122
+ msgstr ""
readme.md CHANGED
@@ -41,19 +41,25 @@ The `breadcrumb_trail()` function accepts a single parameter of `$args`, which i
41
 
42
  /* Labels for text used (see Breadcrumb_Trail::default_labels). */
43
  'labels' => array(
44
- 'browse' => __( 'Browse:', 'breadcrumb-trail' ),
45
- 'home' => __( 'Home', 'breadcrumb-trail' ),
46
- 'search' => __( 'Search results for "%s"', 'breadcrumb-trail' ),
47
- 'error_404' => __( '404 Not Found', 'breadcrumb-trail' ),
48
- 'paged' => __( 'Page %d', 'breadcrumb-trail' ),
49
- 'archives' => __( 'Archives', 'breadcrumb-trail' ),
50
- 'archive_minute_hour' => __( 'g:i a', 'breadcrumb-trail' ),
51
- 'archive_minute' => __( 'Minute %d', 'breadcrumb-trail' ),
52
- 'archive_hour' => __( 'g a', 'breadcrumb-trail' ),
53
- 'archive_day' => __( 'd', 'breadcrumb-trail' ),
54
- 'archive_week' => __( 'Week %d', 'breadcrumb-trail' ),
55
- 'archive_month' => __( 'F', 'breadcrumb-trail' ),
56
- 'archive_year' => __( 'Y', 'breadcrumb-trail' ),
 
 
 
 
 
 
57
  )
58
  );
59
 
@@ -82,6 +88,16 @@ Others are available, but those are the two you would actually put into real-wor
82
 
83
  ## Changelog ##
84
 
 
 
 
 
 
 
 
 
 
 
85
  ### Version 0.6.0 ###
86
 
87
  * [Schema.org](http://schema.org) support.
41
 
42
  /* Labels for text used (see Breadcrumb_Trail::default_labels). */
43
  'labels' => array(
44
+ 'browse' => __( 'Browse:', 'breadcrumb-trail' ),
45
+ 'home' => __( 'Home', 'breadcrumb-trail' ),
46
+ 'error_404' => __( '404 Not Found', 'breadcrumb-trail' ),
47
+ 'archives' => __( 'Archives', 'breadcrumb-trail' ),
48
+ /* Translators: %s is the search query. The HTML entities are opening and closing curly quotes. */
49
+ 'search' => __( 'Search results for &#8220;%s&#8221;', 'breadcrumb-trail' ),
50
+ /* Translators: %s is the page number. */
51
+ 'paged' => __( 'Page %s', 'breadcrumb-trail' ),
52
+ /* Translators: Minute archive title. %s is the minute time format. */
53
+ 'archive_minute' => __( 'Minute %s', 'breadcrumb-trail' ),
54
+ /* Translators: Weekly archive title. %s is the week date format. */
55
+ 'archive_week' => __( 'Week %s', 'breadcrumb-trail' ),
56
+
57
+ /* "%s" is replaced with the translated date/time format. */
58
+ 'archive_minute_hour' => '%s',
59
+ 'archive_hour' => '%s',
60
+ 'archive_day' => '%s',
61
+ 'archive_month' => '%s',
62
+ 'archive_year' => '%s',
63
  )
64
  );
65
 
88
 
89
  ## Changelog ##
90
 
91
+ ### Version 0.6.1 ###
92
+
93
+ * Make sure `breadcrumb_trail()` can return the HTML.
94
+ * Add `rel="home"` to the home page link. This got removed at some point.
95
+ * Do network and site home links in bbPress.
96
+ * Slight fix to stop bbPress from putting double "Forums" in the breadcrumb trail.
97
+ * The `show_on_front` argument should only work if the front page is not paginated.
98
+ * Better handling of the text strings, particularly when displaying date/time.
99
+ * Updated `breadcrumb-trail.pot` file for better translating.
100
+
101
  ### Version 0.6.0 ###
102
 
103
  * [Schema.org](http://schema.org) support.
readme.txt CHANGED
@@ -4,8 +4,7 @@ Contributors: greenshady
4
  Donate link: http://themehybrid.com/donate
5
  Tags: navigation, menu, breadcrumb, breadcrumbs, microdata, schema
6
  Requires at least: 3.6
7
- Tested up to: 3.7
8
- Stable tag: 0.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
11
 
@@ -99,10 +98,20 @@ There's not really much I can do to correct that within the Breadcrumb Trail plu
99
 
100
  ### Version 0.6.0+ ###
101
 
102
- If upgrading to a version earlier than 0.6.0 to 0.6.0+, you should check the `readme.md` documentation on some of the argument changes if you've been padding custom arguments into the `breadcrumb_trail()` function.
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
 
 
 
 
 
106
  ### Version 0.6.0 ###
107
 
108
  * [Schema.org](http://schema.org) support.
4
  Donate link: http://themehybrid.com/donate
5
  Tags: navigation, menu, breadcrumb, breadcrumbs, microdata, schema
6
  Requires at least: 3.6
7
+ Stable tag: 0.6.1
 
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.htm
10
 
98
 
99
  ### Version 0.6.0+ ###
100
 
101
+ If upgrading to a version earlier than 0.6.0 to 0.6.0+, you should check the `readme.md` documentation on some of the argument changes if you've been adding custom arguments into the `breadcrumb_trail()` function.
102
 
103
  == Changelog ==
104
 
105
+ ### Version 0.6.1 ###
106
+
107
+ * Make sure `breadcrumb_trail()` can return the HTML.
108
+ * Add `rel="home"` to the home page link. This got removed at some point.
109
+ * Do network and site home links in bbPress.
110
+ * Slight fix to stop bbPress from putting double "Forums" in the breadcrumb trail.
111
+ * The `show_on_front` argument should only work if the front page is not paginated.
112
+ * Better handling of the text strings, particularly when displaying date/time.
113
+ * Updated `breadcrumb-trail.pot` file for better translating.
114
+
115
  ### Version 0.6.0 ###
116
 
117
  * [Schema.org](http://schema.org) support.