* The front page template.
 */
get_header();
?>

    <?php 
while (have_posts()) {
    the_post();
    ?>
    <section class="summary">
        <figure class="panorama">
            <img src="http://localhost/wptest/wp-content/themes/legendary-lodge/img/senjafjell-espen-minde.jpg" alt="">
        </figure>
        <h1><strong>Adventure</strong> in the heart of <strong>Senja</strong></h1>
        <?php 
    if (the_lang() == 'no') {
        ?>
        <p>Med Legendary Lodge som base kan du nyte hav, fjell, strender, fiskevær og innland &ndash; alt innenfor en par 
            timers kjøretur. Rett utenfor døren ligger et av verdens beste fiskefelt og havørnområder.</p>
        <?php 
    } else {
        ?>
        <p>Using Legendary Lodge as your base, enjoy the ocean, mountains, beaches, fishing villages and the inland &ndash; 
            all within a couple of hours' drive. Right outside the door is one of the world's best fishing areas and 
            white-tailed eagle habitats.</p>
        <?php 
    }
    ?>
    </section>
    <section class="promos clearfix">
        <?php 
Example #2
0
$sitename_wrapper = is_front_page() ? "div" : "div";
echo '<' . $sitename_wrapper . ' id="sitename">';
echo bloginfo('name');
?>
         <span id="tagline">&ndash;&nbsp;<?php 
echo bloginfo('description');
?>
</span>
        <?php 
echo '</' . $sitename_wrapper . '>';
?>
        
        <div id="navcontrol"><!-- show/hide navigation -->
            <a class="nav-controller" id="nav-on" href="#nav"><span></span></a>
            <a class="nav-controller" id="nav-off" href="#nonav"><span><?php 
echo the_lang() == 'no' ? 'Skjul meny' : 'Hide menu';
?>
</span></a>
        </div>
    </div>
</header>
    
<?php 
/*get_search_form();*/
?>
    
<?php 
// Site navigation - see http://codex.wordpress.org/Function_Reference/wp_nav_menu
wp_nav_menu(array('theme_location' => 'primary', 'container' => 'nav', 'container_id' => 'nav', 'menu' => 'slug', 'menu_class' => 'mw', 'menu_id' => 'global-nav', 'wrap_id' => 'wrappernav', 'fallback_cb' => false));
?>
<!--<nav id="jumplinks">-->
Example #3
0
<footer id="footer">
    <div class="mw">
        <div class="footer-about">
            <p>
                Legendary Lodge Senja AS<br />
                Botnhamnveien&nbsp;79<br />
                9373&nbsp;Botnhamn<?php 
if (the_lang() != 'no') {
    ?>
<br />NORWAY<?php 
}
?>
            </p>
            <dl>
            <?php 
if (the_lang() != 'no') {
    ?>
                <dt><i class="icon-phone" title="Phone number"></i></dt>
                    <dd>+47&nbsp;981&nbsp;32&nbsp;209</dd>
                <dt><i class="icon-envelope" title="In writing"></i></dt>
                    <dd><a href="/en/about/contact/">Contact us</a></dd>
            <?php 
} else {
    ?>
                <dt><i class="icon-phone" title="Telefonnummer"></i></dt>
                    <dd>981&nbsp;32&nbsp;209</dd>
                <dt><i class="icon-envelope" title="Skriftlig"></i></dt>
                    <dd><a href="/om-oss/kontakt-oss/">Kontakt oss</a></dd>
            <?php 
}
?>
            echo $products_section['text_before'];
        }
        $products = $products_section['product'];
        if ($products) {
            echo '<ul class="product-boxes">';
            foreach ($products as $product) {
                $title = $product['title'];
                $price = $product['price'];
                $price_info = $product['price_info'];
                $timespan = $product['timespan'];
                echo '<li class="product-box">';
                echo '<h3 class="product-title">' . $title . '</h3>';
                echo '<span class="' . $timespan . '"></span>';
                echo '<p class="product-price">' . (the_lang() == 'no' ? '' : '<span class="currency" title="Norwegian Kroner">NOK</span>&nbsp;') . $price . (the_lang() == 'no' ? ',–' : '.00') . '</p>';
                echo '<p class="product-price-info">' . $price_info . '</p>';
                echo '<a class="product-cta-booking" href="' . (the_lang() == 'no' ? '/booking/' : '/en/booking-request/') . '"></a>';
                echo '</li>';
            }
            echo '</ul>';
        }
        // Products section text (before)
        if (strlen(trim($products_section['information'])) > 0) {
            echo '<div class="products-information">' . '<i class="icon-info big-icon"></i> ' . $products_section['information'] . '</div>';
        }
        // Products section text (before)
        if (strlen(trim($products_section['text_after'])) > 0) {
            echo $products_section['text_after'];
        }
    }
    echo '</section>';
}
/**
 * Breadcrumb navigation
 */
function the_breadcrumb()
{
    $home_title = array('en' => 'Home', 'no' => 'Forsiden', 'yo' => 'KEK');
    $current_lang = the_lang();
    if (!is_front_page()) {
        ob_start();
        wp_nav_menu(array('container' => 'none', 'theme_location' => 'primary', 'walker' => new WW_BreadCrumbWalker(), 'link_before' => '<li class="%2$s breadcrumb-item">', 'link_after' => '</li>', 'items_wrap' => '%3$s'));
        $output_string = ob_get_contents();
        ob_end_clean();
        echo '<nav id="nav-breadcrumbs"><ul id="breadcrumb-items">';
        echo '<li><a href="' . get_option('home') . '"><i class="icon-home"></i> ' . $home_title[$current_lang] . '</a></li>';
        if (strlen($output_string) > 0) {
            echo "";
        }
        echo $output_string;
        echo "</ul></nav>";
    }
    /*global $post;
        $home_title = array(
            'en' => 'Home'
            ,'no' => 'Forsiden'
            ,'yo' => 'KEK'
        );
        $current_lang = the_lang();
        echo '<ul id="breadcrumb-items">';
        if (!is_home()) {
            echo '<li><a href="' . get_option('home') . '"><i class="icon-home"></i> ' . $home_title[$current_lang] . '</a></li>';
    		
            if (is_category() || is_single()) {
                echo '<li>';
                the_category(' </li><li class="separator"> / </li><li> ');
                if (is_single()) {
                    echo '</li><li class="separator"> / </li><li>';
                    the_title();
                    echo '</li>';
                }
            } elseif (is_page()) {
                if( $post->post_parent ) {
                    $parents = get_post_ancestors( $post->ID );
                    $title = get_the_title();
                    foreach ( $parents as $parent ) {
                        $output = '<li><a href="' . get_permalink($parent) . '">' . get_the_title($parent).'</a></li>';
                    }
                    echo $output;
                    echo '<li><strong>' . $title . '</strong></li>';
                } else {
                    echo '<li><strong> ' . get_the_title() . '</strong></li>';
                }
            }
        }
        elseif (is_tag()) { single_tag_title(); }
        elseif (is_day()) { echo"<li>Archive for "; the_time('F jS, Y'); echo'</li>'; }
        elseif (is_month()) { echo"<li>Archive for "; the_time('F, Y'); echo'</li>'; }
        elseif (is_year()) { echo"<li>Archive for "; the_time('Y'); echo'</li>'; }
        elseif (is_author()) { echo"<li>Author Archive"; echo'</li>'; }
        elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { echo "<li>Blog Archives"; echo'</li>'; }
        elseif (is_search()) { echo"<li>Search Results"; echo'</li>'; }
        echo '</ul>';
        //*/
}