Beispiel #1
0
                $open_row = true;
            }
            $close_row = false;
            if ($first_page && $parity % 2 == 0 || !$first_page && $parity % 2 == 1) {
                $close_row = true;
            }
            ?>
                                    <?php 
            if ($open_row) {
                echo '<div class="row">';
            }
            ?>
                                        <div class="medium-6 column op-wrapper">
                                            <!-- Tytuł przepisu -->
                                            <h6 class="op-category"><?php 
            echo printPostTypeName($post->ID);
            ?>
 <span class="label right">Popularny!</span></h6>
                                            <a href="<?php 
            the_permalink();
            ?>
"><h3 class="site-titles"><?php 
            the_title();
            ?>
</h3></a>
                                            <!-- Opis przepisu -->
                                            <div class="medium-12 op-desc-wrapper">
                                                <?php 
            trc_print_thumbnail($post->ID);
            ?>
                                                <div class="op-desc-to-show">
Beispiel #2
0
function show_breadcrumbs($taxonomy)
{
    global $post;
    // Dostęp do aktualnie wyświetlanego posta
    $current_page = current_page_url();
    echo '<ul class="breadcrumbs brc-list">';
    echo '<li><a href="' . home_url() . '">Strona Główna</a></li>';
    printPostTypeName($post, true);
    printPostCategories($post, array($taxonomy), true);
    echo '<li class="current"><a>' . get_the_title() . '</a></li>';
    echo '</ul>';
}