// if no item is found, then do a redirect or 404 if no redirect exists if (empty($item)) { redirect_404(); } } else { // if no uri segment, then we do a query on the model to get a list of data if (empty($list_where)) { $list_where = array(); } $data = fuel_model($model, array('find' => 'all', 'where' => $list_where)); } ?> <?php if (!empty($item)) { ?> <?php echo fuel_block(array('view' => $item_block, 'data' => $item)); ?> <?php } else { ?> <?php echo fuel_block(array('view' => $list_block, 'data' => $data)); ?> <?php }
" alt="<?php echo $post->title_entities; ?> " /></a></p> <?php } ?> </div> <div class="post_excerpt"> <?php echo fuel_block(array('view' => 'posts/post_unpublished', 'vars' => array('post' => $post))); ?> <h2><?php echo fuel_edit($post); ?> <a href="<?php echo $post->url; ?> "><?php echo $post->title; ?> </a> </h2> <div class="featured_meta">
?> <?php if (isset($next->id)) { ?> <div class="post_navigation next"> <a href="<?php echo $next->url; ?> " class="cta">Next</a> </div> <?php } else { ?> <div class="post_navigation next"> <a href="#" class="cta disabled">Next</a> </div> <?php } ?> </div> <?php echo fuel_block(array('view' => 'posts/share', 'vars' => array('post' => $post))); ?> </div> </div> </div>
<?php fuel_set_var('layout', ''); ?> <?php echo fuel_block('header'); ?> <div id="features_screenshots"> <div id="features"> <div id="for_clients"> <h2><span class="lite">FOR</span> CLIENTS</h2> <?php echo fuel_block(array('model' => 'features', 'where' => array('type' => 'client'), 'view' => 'features_list')); ?> </div> <div id="for_developers"> <h2><span class="lite">FOR</span> DEVELOPERS</h2> <?php echo fuel_block(array('model' => 'features', 'where' => array('type' => 'developer'), 'view' => 'features_list')); ?> </div> </div> <div class="clear"></div> </div> <?php echo fuel_block('footer');