예제 #1
0
    // 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 
}
예제 #2
0
" 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">
예제 #3
0
파일: post.php 프로젝트: huayuxian/FUEL-CMS
?>
				<?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>
예제 #4
0
<?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');