Skip to content

Instantly share code, notes, and snippets.



Last active Feb 12, 2017
What would you like to do?
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Basic catalog skeleton :: Categories</title>
<script type="text/javascript" src=""></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//,300,600" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<?php get_theme_url(); ?>/css/normalize.css">
<link rel="stylesheet" href="<?php get_theme_url(); ?>/css/skeleton.css">
<div class="container">
<h6>Select a category</h6>
if(!empty($categories)) {
foreach($categories as $category) { ?>
<div class="row">
<div class="eight columns">
<h2><a href="./<?php echo $category->fields->slug->value; ?>/"><?php echo $category->name; ?></a></h2>
<p><?php echo '<a href="./'.$category->fields->slug->value.'/">'.getResized($category->fields->image).'</a>'; ?></p>
<div class="category_text"><?php echo $category->fields->description->value; ?>
<a href="./<?php echo $category->fields->slug->value; ?>/">Show products</a>
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment