Example #1
0
	<div class="section shirts search page">
		<div class="wrapper">
			<h1>Search</h1>

			<form method="get" action="./">
				<input type="text" name="s" value="<?php 
echo htmlspecialchars($search_term);
?>
">
				<input type="submit" value="Go">
			</form>

			<?php 
if ($search_term != "") {
    if (!empty($results)) {
        echo '<ul class="products">';
        foreach ($results as $product) {
            echo product_list_html($product);
        }
        echo '</ul>';
    } else {
        echo '<p> Search item not found.</p>';
    }
}
?>
		</div>
	</div>

<?php 
include ROOT_PATH . 'inc/footer.php';
Example #2
0
						<p>Check Out My Shirts</p>
					</a>
				</div>
			</div>

		</div>

		<div class="section shirts latest">

			<div class="wrapper">

				<h2>Mike&rsquo;s Latest Shirts</h2>
				
				<ul class="products">
					<?php 
$output = "";
foreach ($recents as $product) {
    $output = $output . product_list_html($product);
}
echo $output;
?>
				</ul>

			</div>

		</div>
<?php 
include ROOT_PATH . 'inc/footer.php';
?>