Example #1
0
<?php 
snippet('jumbotron-articles');
?>

<?php 
snippet('jumbotron-buttons');
?>

<div class="container">
  <div class="row">
    <div class="col-md-2">
      <p class="infobar-left">articles</p>
      <div class="tagbar-left">
        <p><span class="label label-primary">penser</span>&nbsp;<span class="label label-danger">faire</span>
        <?php 
$tagcloud = tagcloud(page('articles'), array('limit' => 20));
?>
          <ul>
            <?php 
foreach ($tagcloud as $tag) {
    ?>
              <li><a href="<?php 
    echo $tag->url();
    ?>
" class="btn btn-default btn-xs"><?php 
    echo $tag->name();
    ?>
</a></li>
            <?php 
}
?>
<?php

$tagcloud = tagcloud(page('blog'), array('limit' => 1000));
?>
<!-- Page Header -->
    <!-- Set your background image for this header on the line below. -->
	<?php 
$img = $page->image('header.jpg');
?>
	<?php 
if ($img) {
    ?>
		<header class="intro-header" style="background-image: url('<?php 
    echo $img->url();
    ?>
')">
	<?php 
} else {
    ?>
		<header class="intro-header" style="background-image: url('<?php 
    echo url('assets/img/home-bg.jpg');
    ?>
')">
    <?php 
}
?>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <div class="post-heading">
                        <h1><?php 
<div class="container">
  <main class="main" role="main">
	<header>
		<div class="row">
		    <h1 class="col-xs-12">adaptations</h1>
	    </div>
	    <section id="filters">
		    <div class="row">
			    <div class="col-xs-12 text-center lead"><?php 
echo $page->text()->kt();
?>
</div>
			</div>
			<?php 
$tagcloud = tagcloud(page('adaptations'), array('field' => 'verbs', 'param' => 'verb'));
?>
 			<div class="row">
				<div class="col-xs-12">
					<select id="filter-select" class="form-control">
							<option value="*">All actions</option>
						<?php 
foreach ($tagcloud as $tag) {
    ?>
							<option value=".<?php 
    echo $tag->name();
    ?>
"><?php 
    echo $tag->name();
    ?>
</option>
/**
 * getAuthorsArchive()
 *
 * Returns authorcloud.
 *
 * @return array
 */
function getAuthorsArchive()
{
    return tagcloud(page(c::get('posts-page')), array('field' => 'author', 'param' => 'author', 'baseurl' => ''));
}
Example #5
0
<?php

$search = new search(array('searchfield' => 'q', 'words' => true, 'in' => 'articles', 'paginate' => 10));
$results = $search->results();
?>

<?php 
$blog = $pages->find('articles');
$tags = tagcloud($blog);
?>

<?php 
snippet('header');
?>

<?php 
snippet('navigation');
?>

<!-- Search -->
<div class="grid">
	<div class="row">
		<div class="slot-6-7-8-9">
			<form action="<?php 
echo thisURL();
?>
">
				<input type="text" placeholder="Search" name="q" id="search" /><br />
				<input type="submit" value="Search" />
			</form>		
		</div>		
Example #6
0
<?php 
snippet('jumbotron-projects');
?>

<?php 
snippet('jumbotron-buttons');
?>

<div class="container">
  <div class="row">
    <div class="col-md-2">
      <p class="infobar-left">projets</p>
      <div class="tagbar-left">
        <?php 
$tagcloud = tagcloud(page('projects'), array('limit' => 20));
?>
          <ul>
            <?php 
foreach ($tagcloud as $tag) {
    ?>
              <li><a href="<?php 
    echo $tag->url();
    ?>
" class="btn btn-default btn-xs"><?php 
    echo $tag->name();
    ?>
</a></li>
            <?php 
}
?>