Function Reference: geodir_action_author_page_title
Summary
Output the author page title including HTML wrappers.
Global Values
- $term
- (string) (required) Current term slug.
- Default: None
Package
GeoDirectory
Change Log
Since: 1.0.0
Filters
‘geodir_page_title_class’ [Line: 2798]
‘geodir_page_title_header_class’ [Line: 2800]
‘geodir_seo_page_title’ [Line: 2821]
Source File
geodir_action_author_page_title() is located in geodirectory_template_actions.php [Line: 2769]
Source Code
function geodir_action_author_page_title() { global $term; $gd_post_type = geodir_get_current_posttype(); $post_type_info = get_post_type_object($gd_post_type); $add_string_in_title = __('All', 'geodirectory') . ' '; if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite') { $add_string_in_title = __('My Favorite', 'geodirectory') . ' '; } $list_title = $add_string_in_title . $post_type_info->labels->name; $single_name = $post_type_info->labels->singular_name; $taxonomy = geodir_get_taxonomies($gd_post_type); if (!empty($term)) { $current_term = get_term_by('slug', $term, $taxonomy[0]); if (!empty($current_term)) $list_title .= __(' in', 'geodirectory') . " '" . geodir_ucwords($current_term->name) . "'"; } if (is_search()) { $list_title = __('Search', 'geodirectory') . ' ' . __($post_type_info->labels->name, 'geodirectory') . __(' For :', 'geodirectory') . " '" . get_search_query() . "'"; } /** This action is documented in geodirectory_template_actions.php */ $class = apply_filters('geodir_page_title_class', 'entry-title fn'); /** This action is documented in geodirectory_template_actions.php */ $class_header = apply_filters('geodir_page_title_header_class', 'entry-header'); $title = $list_title; if(geodir_is_page('author')){ $gd_page = 'author'; if(isset($_REQUEST['list']) && $_REQUEST['list']=='favourite'){ $title = (get_option('geodir_page_title_favorite')) ? get_option('geodir_page_title_favorite') : $title; }else{ $title = (get_option('geodir_page_title_author')) ? get_option('geodir_page_title_author') : $title; } } /** * Filter page title to replace variables. * * @since 1.5.4 * @param string $title The page title including variables. * @param string $gd_page The GeoDirectory page type if any. */ $title = apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page); echo ''; } ' . /** * Filter the author page title text. * * @since 1.0.0 * @param string $list_title The title for the page. */ apply_filters('geodir_author_page_title_text', $title) . '