|
@@ 4615-4622 (lines=8) @@
|
| 4612 |
|
$post_type = get_query_var( 'post_type' );
|
| 4613 |
|
}
|
| 4614 |
|
|
| 4615 |
|
if ( strpos( $title, '%%pt_single%%' ) !== false ) {
|
| 4616 |
|
$singular_name = '';
|
| 4617 |
|
if ( $post_type && $singular_name = get_post_type_singular_label( $post_type ) ) {
|
| 4618 |
|
$singular_name = __( $singular_name, 'geodirectory' );
|
| 4619 |
|
}
|
| 4620 |
|
|
| 4621 |
|
$title = str_replace( "%%pt_single%%", $singular_name, $title );
|
| 4622 |
|
}
|
| 4623 |
|
|
| 4624 |
|
if ( strpos( $title, '%%pt_plural%%' ) !== false ) {
|
| 4625 |
|
$plural_name = '';
|
|
@@ 4624-4631 (lines=8) @@
|
| 4621 |
|
$title = str_replace( "%%pt_single%%", $singular_name, $title );
|
| 4622 |
|
}
|
| 4623 |
|
|
| 4624 |
|
if ( strpos( $title, '%%pt_plural%%' ) !== false ) {
|
| 4625 |
|
$plural_name = '';
|
| 4626 |
|
if ( $post_type && $plural_name = get_post_type_plural_label( $post_type ) ) {
|
| 4627 |
|
$plural_name = __( $plural_name, 'geodirectory' );
|
| 4628 |
|
}
|
| 4629 |
|
|
| 4630 |
|
$title = str_replace( "%%pt_plural%%", $plural_name, $title );
|
| 4631 |
|
}
|
| 4632 |
|
|
| 4633 |
|
if ( strpos( $title, '%%category%%' ) !== false ) {
|
| 4634 |
|
$cat_name = '';
|