Beispiel #1
0
<?php

echo head(array('bodyid' => 'home'));
?>

<?php 
if ($homepageText = get_theme_option('Homepage Text')) {
    ?>
<div id="homepage-text">
<?php 
    echo nls2p($homepageText);
    ?>
</div>
<?php 
}
?>

<div id="featured-content">
<?php 
if (get_theme_option('Display Featured Item') !== '0') {
    ?>
<div id="featured-item">
<h2><?php 
    echo __('Featured Item');
    ?>
</h2>
    <?php 
    echo random_featured_items();
    ?>
</div>
<?php 
echo public_nav_tours();
?>
	</nav>	
	<div class="pagination bottom"><?php 
echo pagination_links();
?>
</div>

    <?php 
if (has_tours()) {
    if (has_tours_for_loop()) {
        $i = 1;
        $tourimg = 0;
        foreach ($tours as $tour) {
            set_current_record('tour', $tour);
            $tourdesc = nls2p(tour('description'));
            echo '<article id="item-result-' . $i . '" class="item-result">';
            echo '<h3>' . link_to_tour() . '</h3>';
            if ($i <= 10) {
                echo display_tour_thumb(get_tour_by_id(tour('id')), 0, $userDefined = null);
                $tourimg++;
            }
            echo '<div class="item-description"><p>' . snippet($tourdesc, 0, 300) . '</p></div>';
            echo '</article>';
            $i++;
        }
    }
}
?>
	
    
Beispiel #3
0
if (!empty($twitter)) {
    ?>
			
			<li>Twitter: <a href="<?php 
    echo $twitter_url;
    ?>
"><?php 
    echo $twitter_name;
    ?>
</a></li>
			<?php 
}
?>
			<li>Email: <a href="mailto:<?php 
echo $current_user->user_email;
?>
"><?php 
echo $current_user->user_email;
?>
</a></li>
		</ul>
		<div id="bio"><?php 
echo nls2p($bio);
?>
</div>
	</div>
</div>


<?php 
get_footer();
} elseif (get_theme_option('show_author') == true) {
    echo '<span class="tour-meta">By The ' . option('site_title') . ' Team</span>';
} else {
}
?>
	</header>
			
	<div id="page-col-left">
	</div>


	<div id="primary" class="show">
	    <section id="text">
		   <div id="tour-description">
		    <?php 
echo nls2p(tour('Description'));
?>
		   </div>
		</section>
		   
		<section id="tour-items">
			<h3 class="locations">Locations for <?php 
echo $label;
?>
</h3>
	         <?php 
$i = 1;
foreach ($tour->getItems() as $tourItem) {
    set_current_record('item', $tourItem);
    $itemID = $tourItem->id;
    ?>
Beispiel #5
0
        ?>
/"><?php 
        echo $current_camper->twitter_username;
        ?>
</a></li>
			<?php 
    }
    ?>
		</ul>
		<div class="photo" style="float:right; margin-left: 18px;"><?php 
    twittar("", "", "#CCCCCC", "", 1, "R");
    ?>
</div>
		
		<div id="bio"><?php 
    echo nls2p($current_camper->user_description);
    ?>
</div>
	</div>
	<?php 
    if (have_posts()) {
        ?>
		<h3>My Posts</h3>
		<div id="blog">		
	<?php 
        while (have_posts()) {
            the_post();
            ?>
	<div class="post">
			<h4 id="post-<?php 
            the_ID();
                echo xml_escape($author['name']) . ', ';
            }
            echo xml_escape($review['publish_date']) . '</a><br />' . "\n";
        }
    }
    ?>
	</div>
<?php 
}
?>
</div>

<div id="MainColumn">
	<div class="BlueBox">
		<h2>about us</h2>
		<?php 
echo '<p>' . nls2p(xml_escape($organisation['description'])) . '</p>';
?>
	</div>
<?php 
if ($organisation['location_lat'] !== NULL) {
    ?>
	<div class="BlueBox">
		<h2>finding us</h2>
		<div id="googlemaps" style="height: 300px"></div>
	</div>
<?php 
}
?>
</div>