Changeset 8373
- Timestamp:
- 02/28/2019 08:43:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php
r8372 r8373 96 96 get_queried_object()->name 97 97 ); 98 } elseif ( is_tax() || is_tag() || is_category() ) { 99 // Suffix the Taxonomy label to the Term Name 100 $tax = get_taxonomy( get_queried_object()->taxonomy ); 101 $tax_label = $tax->labels->singular_name ?? $tax->label; 102 103 $title['title'] .= " $sep $tax_label"; 98 99 } elseif ( is_tax( 'event' ) ) { 100 $title['title'] = sprintf( 101 /* translators: %s: The event name. */ 102 __( 'Videos from %s', 'wptv' ), 103 get_queried_object()->name 104 ); 105 106 } elseif ( is_tax( 'speakers' ) ) { 107 $title['title'] = sprintf( 108 /* translators: %s: The event name. */ 109 __( 'Videos of %s', 'wptv' ), 110 get_queried_object()->name 111 ); 112 113 } elseif ( is_category() ) { 114 $title['title'] = sprintf( 115 /* translators: %s: Category name. */ 116 __( '%s Videos', 'wptv' ), 117 get_queried_object()->name 118 ); 119 120 } elseif ( is_tag() ) { 121 $title['title'] = sprintf( 122 /* translators: %s: Tag name. */ 123 __( 'Videos tagged %s', 'wptv' ), 124 get_queried_object()->name 125 ); 126 104 127 } 105 128
Note: See TracChangeset
for help on using the changeset viewer.