示例#1
0
snippet('header');
snippet('navbar');
snippet('breadcrumbs');
?>

<div class="container">

  <h1 class="page-header"><?php 
echo $page->title()->html();
?>
</h1>

  <div class="product-lines">
    <?php 
foreach (McMills::lines() as $line) {
    ?>
        <h2>
            <a href="<?php 
    echo $line->url();
    ?>
">
              <?php 
    echo $line->title()->html();
    ?>
            </a>
        </h2>
        <div class="lead">
            <?php 
    echo $line->descriptor()->html();
    ?>
示例#2
0
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>
      <?php 
echo $site->title();
?>
    </title>
    <link rel="stylesheet" href="/assets/css/app.css">
    <?php 
snippet('favicons');
?>
    <!--[if lt IE 9]>
      <script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body class="<?php 
echo McMills::bodyClass();
?>
">