コード例 #1
0
ファイル: Genesis.php プロジェクト: jefferose/geodirectory
/**
 * Current page title bar.
 *
 * @since 1.0.0
 * @package GeoDirectory
 */
function gd_genesis_current_page_title_bar()
{
    $title = '';
    $subtitle = '';
    if (geodir_is_page('listing')) {
        echo '<div class="wrap gd-title-wrap">';
        geodir_action_listings_title();
        echo '</div>';
    }
    if (geodir_is_page('add-listing')) {
        echo '<div class="wrap gd-title-wrap">';
        geodir_action_add_listing_page_title();
        echo '</div>';
    }
    if (geodir_is_page('author')) {
        echo '<div class="wrap gd-title-wrap">';
        geodir_action_author_page_title();
        echo '</div>';
    }
    if (geodir_is_page('detail') || geodir_is_page('preview')) {
        echo '<div class="wrap gd-title-wrap">';
        echo get_the_title();
        echo '</div>';
    }
    if (geodir_is_page('search')) {
        echo '<div class="wrap gd-title-wrap">';
        geodir_action_search_page_title();
        echo '</div>';
    }
}
コード例 #2
0
ファイル: Avada.php プロジェクト: jefferose/geodirectory
/**
 * Avada current page title bar.
 *
 * @since 1.0.0
 * @package GeoDirectory
 */
function gd_avada_current_page_title_bar()
{
    ob_start();
    geodir_breadcrumb();
    $secondary_content = ob_get_contents();
    ob_get_clean();
    $title = '';
    $subtitle = '';
    if (geodir_is_page('listing')) {
        ob_start();
        // Start buffering;
        geodir_action_listings_title();
        $title = ob_get_clean();
        avada_page_title_bar($title, $subtitle, $secondary_content);
    }
    if (geodir_is_page('add-listing')) {
        ob_start();
        // Start buffering;
        geodir_action_add_listing_page_title();
        $title = ob_get_clean();
        avada_page_title_bar($title, $subtitle, $secondary_content);
    }
    if (geodir_is_page('author')) {
        ob_start();
        // Start buffering;
        geodir_action_author_page_title();
        $title = ob_get_clean();
        avada_page_title_bar($title, $subtitle, $secondary_content);
    }
    if (geodir_is_page('detail') || geodir_is_page('preview')) {
        $title = get_the_title();
        avada_page_title_bar($title, $subtitle, $secondary_content);
    }
    if (geodir_is_page('search')) {
        ob_start();
        // Start buffering;
        geodir_action_search_page_title();
        $title = ob_get_clean();
        avada_page_title_bar($title, $subtitle, $secondary_content);
    }
}