<?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');
<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>
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>
<?php Shield::chunk('block.navigation');
<?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');
<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>
<header class="comment-header"> <?php Shield::chunk('comment.name'); ?> <?php Shield::chunk('comment.time'); ?> </header>
<p><?php Shield::chunk('204.body', array('s' => $speak->comments)); ?> </p>
<?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);
<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>
<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>
<footer class="comments-footer"> <?php Shield::chunk('comment.form'); ?> </footer>
<header class="blog-header"> <?php Shield::chunk('title'); ?> <?php Shield::chunk('slogan'); ?> </header>
</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>
<?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'); ?>
<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 } ?>
<p class="comment-time"> <time datetime="<?php echo $comment->date->W3C; ?> "><?php echo $comment->date->FORMAT_3; ?> </time><?php Shield::chunk('comment.permalink'); ?> </p>
<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>
<div class="post-body"><?php Shield::chunk('404.body', array('s' => $speak->page)); ?> </div>
<figure class="comment-avatar"><?php Shield::chunk('comment.avatar.photo'); ?> </figure>
?> " 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">
<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 . '…', '<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>
<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>
<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>
<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>
<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>
<?php Shield::chunk('block.sidebar');
<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>