Esempio n. 1
0
<?php

/**
 * This is an index page :) Remove this PHP code then
 * change the content with your home page markup if you want.
 */
Shield::chunk('index');
Esempio n. 2
0
<article class="post" id="post-<?php 
echo $page->id;
?>
">
  <?php 
Shield::chunk('page.header');
?>
  <?php 
Shield::chunk('page.body');
?>
  <?php 
Shield::chunk('page.footer');
?>
</article>
Esempio n. 3
0
echo Form::hidden('parent', Guardian::wayback('parent'));
?>
  <?php 
Weapon::fire('comment_form_input_after', $hooks);
?>
  <?php 
Weapon::fire('comment_form_textarea_before', $hooks);
?>
  <?php 
Shield::chunk('comment.form.message');
?>
  <?php 
Weapon::fire('comment_form_textarea_after', $hooks);
?>
  <?php 
Shield::chunk('comment.form.math');
?>
  <div class="grid-group">
    <span class="grid span-1"></span>
    <div class="grid span-5">
      <p>
        <?php 
Weapon::fire('comment_form_button_before', $hooks);
?>
        <?php 
echo Form::button($speak->publish, null, 'submit', null, array('class' => array('btn', 'btn-construct')));
?>
        <?php 
Weapon::fire('comment_form_button_after', $hooks);
?>
      </p>
Esempio n. 4
0
<?php

Shield::chunk('block.navigation');
Esempio n. 5
0
    <?php 
        Shield::chunk('article.header.index');
        ?>
    <?php 
        Shield::chunk('article.body.index');
        ?>
    <?php 
        Shield::chunk('article.footer.index');
        ?>
  </article>
  <?php 
    }
    ?>
  <?php 
} else {
    ?>
  <article class="post">
    <?php 
    Shield::chunk('article.body.204');
    ?>
  </article>
  <?php 
}
?>
  <?php 
Shield::chunk('pager');
?>
</div>
<?php 
Shield::chunk('footer');
Esempio n. 6
0
<div class="post-body"><?php 
Shield::chunk('204.body', array('s' => $speak->articles));
?>
</div>
<?php

Shield::lot(array('article' => $article));
?>
<article class="post post-index" id="post-<?php 
echo $article->id;
?>
">
  <?php 
Shield::chunk('article.header.index');
?>
  <?php 
Shield::chunk('article.body.index');
?>
  <?php 
Shield::chunk('article.footer.index');
?>
</article>
Esempio n. 8
0
<header class="comment-header">
  <?php 
Shield::chunk('comment.name');
?>
  <?php 
Shield::chunk('comment.time');
?>
</header>
Esempio n. 9
0
<p><?php 
Shield::chunk('204.body', array('s' => $speak->comments));
?>
</p>
Esempio n. 10
0
<?php

// Run after shield lot data up-to-date
Weapon::add('shield_lot_after', function () {
    ob_start();
    $config = Config::get();
    $config->cargo = (string) $config->cargo;
    $cargo = strpos($config->cargo, ROOT) === false ? __DIR__ . DS . $config->cargo : $config->cargo;
    // No buffer for backend cargo, so `chunk:input` and `chunk:output` filter(s) won't work here
    Shield::chunk($cargo, false, false);
    $content = ob_get_clean();
    $o = (object) array('title' => $config->page_title, 'url' => "", 'link' => "", 'content_type' => $config->html_parser->active, 'content' => $content);
    Shield::lot(array('page' => $o));
}, 1);
Esempio n. 11
0
<header class="post-header">
  <?php 
Shield::chunk('article.time');
?>
  <?php 
Shield::chunk('article.title');
?>
  <?php 
if (Weapon::exist('article_header')) {
    ?>
  <div><?php 
    Weapon::fire('article_header', array($article));
    ?>
</div>
  <?php 
}
?>
</header>
Esempio n. 12
0
<footer class="post-footer">
  <div><?php 
echo $speak->posted_by;
?>
 <?php 
Shield::chunk('article.author');
?>
 <?php 
echo strtolower($speak->on) . ' ' . $article->date->FORMAT_5;
?>
</div>
  <div><?php 
echo Shield::chunk('article.tags');
?>
</div>
  <?php 
if (Weapon::exist('article_footer')) {
    ?>
  <div><?php 
    Weapon::fire('article_footer', array($article));
    ?>
</div>
  <?php 
}
?>
</footer>
Esempio n. 13
0
<footer class="comments-footer">
  <?php 
Shield::chunk('comment.form');
?>
</footer>
Esempio n. 14
0
<header class="blog-header">
  <?php 
Shield::chunk('title');
?>
  <?php 
Shield::chunk('slogan');
?>
</header>
Esempio n. 15
0
      </div> <!-- .blog-content -->
      <?php 
Shield::chunk('block.footer');
?>
    </div> <!-- .blog-wrapper -->
    <?php 
Weapon::fire('cargo_after');
?>
    <?php 
Weapon::fire('sword_before');
?>
    <?php 
echo Asset::javascript('assets/sword/layout.js');
?>
    <?php 
Weapon::fire('sword_after');
?>
    <?php 
Weapon::fire('SHIPMENT_REGION_BOTTOM');
?>
  </body>
</html>
Esempio n. 16
0
<?php

Shield::chunk('article.time');
?>
<h4 class="post-title">
  <?php 
if ($article->link) {
    ?>
  <a href="<?php 
    echo $article->link;
    ?>
"><?php 
    echo $article->title;
    ?>
</a>
  <?php 
} elseif ($article->url) {
    ?>
  <a href="<?php 
    echo $article->url;
    ?>
"><?php 
    echo $article->title;
    ?>
</a>
  <?php 
} else {
    ?>
  <?php 
    echo $article->title;
    ?>
  <body>
  <?php 
Weapon::fire('cargo_before');
?>
  <div class="board cl cf">
    <aside class="board-left cl cf">
      <?php 
echo Widget::manager('MENU');
?>
    </aside>
    <article class="board-right cl cf">
      <?php 
Shield::chunk('page.header');
?>
      <?php 
Shield::chunk($config->page_type !== '404' ? 'page.body' : 'page.body.404');
?>
    </article>
  </div>
  <?php 
Weapon::fire('cargo_after');
?>
  <?php 
Weapon::fire('sword_before');
?>
  <?php 
Weapon::fire('sword_after');
?>
  <?php 
Weapon::fire('SHIPMENT_REGION_BOTTOM');
?>
Esempio n. 18
0
<footer class="post-footer">
  <div><?php 
echo $speak->posted_by;
?>
 <?php 
Shield::chunk('article.author');
?>
 <?php 
echo strtolower($speak->on) . ' ' . $article->date->FORMAT_5;
?>
</div>
  <?php 
if (Widget::exist('tagLinks')) {
    ?>
  <div><?php 
    echo Widget::tagLinks();
    ?>
</div>
  <?php 
}
?>
  <?php 
if (Weapon::exist('article_footer')) {
    ?>
  <div><?php 
    Weapon::fire('article_footer', array($article));
    ?>
</div>
  <?php 
}
?>
Esempio n. 19
0
<p class="comment-time">
  <time datetime="<?php 
echo $comment->date->W3C;
?>
"><?php 
echo $comment->date->FORMAT_3;
?>
</time><?php 
Shield::chunk('comment.permalink');
?>
</p>
Esempio n. 20
0
<header class="post-header">
  <?php 
Shield::chunk('page.title');
?>
  <?php 
if (Weapon::exist('page_header')) {
    ?>
  <div><?php 
    Weapon::fire('page_header', array($page));
    ?>
</div>
  <?php 
}
?>
</header>
Esempio n. 21
0
<div class="post-body"><?php 
Shield::chunk('404.body', array('s' => $speak->page));
?>
</div>
Esempio n. 22
0
<figure class="comment-avatar"><?php 
Shield::chunk('comment.avatar.photo');
?>
</figure>
Esempio n. 23
0
?>
" class="page-<?php 
echo $config->page_type ? $config->page_type : 'home';
?>
">
  <head>
    <?php 
Weapon::fire('SHIPMENT_REGION_TOP');
?>
    <?php 
Weapon::fire('shell_before');
?>
    <?php 
echo Asset::stylesheet(array($config->protocol . ICON_LIBRARY_PATH, 'assets/shell/atom.css', 'assets/shell/layout.css'));
?>
    <?php 
Weapon::fire('shell_after');
?>
  </head>
  <body>
    <?php 
Weapon::fire('cargo_before');
?>
    <div class="blog-wrapper">
      <?php 
Shield::chunk('block.header');
?>
      <?php 
Shield::chunk('navigation');
?>
      <div class="blog-content">
Esempio n. 24
0
<a href="#toggle" class="blog-sidebar-toggle">
  <i class="fa fa-bars"></i>
</a>
<aside class="blog-sidebar widgets">
  <?php 
Shield::chunk('block.widget', array('title' => false, 'content' => Widget::search($speak->search . '&hellip;', '<i class="fa fa-search"></i>')));
?>
  <?php 
if ($manager && Widget::exist('manager')) {
    ?>
  <?php 
    Shield::chunk('block.widget', array('title' => $speak->widget->manager_menus, 'content' => Widget::manager()));
    ?>
  <?php 
}
?>
  <?php 
Shield::chunk('block.widget', array('title' => $speak->widget->tags, 'content' => Widget::tag()));
?>
  <?php 
Shield::chunk('block.widget', array('title' => $speak->widget->related_posts, 'content' => Widget::relatedPost()));
?>
  <?php 
Shield::chunk('block.widget', array('title' => $speak->widget->archives, 'content' => Widget::archive()));
?>
</aside>
Esempio n. 25
0
<header class="post-header">
  <?php 
Shield::chunk('page.title.404');
?>
  <?php 
if (Weapon::exist('page_header')) {
    ?>
  <div><?php 
    Weapon::fire('page_header', array($page));
    ?>
</div>
  <?php 
}
?>
</header>
Esempio n. 26
0
<article class="post" id="post-<?php 
echo $article->id;
?>
">
  <?php 
Shield::chunk('article.header');
?>
  <?php 
Shield::chunk('article.body');
?>
  <?php 
Shield::chunk('article.footer');
?>
</article>
Esempio n. 27
0
<section class="comment comment-<?php 
echo $comment->status;
?>
" id="comment-<?php 
echo $comment->id;
?>
">
  <?php 
Shield::chunk('comment.avatar');
?>
  <?php 
Shield::chunk('comment.header');
?>
  <?php 
Shield::chunk('comment.body');
?>
  <?php 
Shield::chunk('comment.footer');
?>
</section>
Esempio n. 28
0
<ol class="comments-body">
  <?php 
if ($article->total_comments > 0) {
    ?>
  <?php 
    foreach ($article->comments as $comment) {
        ?>
  <?php 
        Shield::lot(array('comment' => $comment));
        ?>
  <?php 
        Shield::chunk('block.comment.index');
        ?>
  <?php 
    }
    ?>
  <?php 
} else {
    ?>
  <li class="comment">
    <?php 
    Shield::chunk('comment.body.204');
    ?>
  </li>
  <?php 
}
?>
</ol>
Esempio n. 29
0
<?php

Shield::chunk('block.sidebar');
Esempio n. 30
0
<aside class="blog-sidebar widgets">
<?php 
if ($manager && Widget::exist('manager')) {
    Shield::chunk('block.widget', array('title' => $speak->widget->manager_menus, 'content' => Widget::manager()));
}
$ws = array(array('title' => $speak->widget->search_form, 'content' => Widget::search()), array('title' => $speak->widget->tags, 'content' => Widget::tag()), array('title' => $speak->widget->archives, 'content' => Widget::archive()));
foreach ($ws as $w) {
    Shield::chunk('block.widget', $w);
}
?>
</aside>