Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

button-down is cool

  • Loading branch information...
commit 7bbe98fd900b0e2e088bdb2fc74df68b0d551b6d 0 parents
Nick Cottrell authored
7 _includes/footer.textile
Source Rendered
... ... @@ -0,0 +1,7 @@
14 _includes/header.textile
Source Rendered
... ... @@ -0,0 +1,14 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 +<meta charset="utf-8" />
  5 +
  6 +<title><?pageName()?></title>
  7 +
  8 +<!--[if lt IE 9]>
  9 +<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10 +<![endif]-->
  11 +
  12 +<link href="/css/base.css" rel="stylesheet" type="text/css" />
  13 +</head>
  14 +<?layoutTop()?>
7 _includes/nav.textile
Source Rendered
... ... @@ -0,0 +1,7 @@
  1 +<nav>
  2 + <ul id="nav1">
  3 + <li><a href="/">home</a></li>
  4 + <li><a href="/about/">about</a></li>
  5 + <li><a href="/contact/">contact</a></li>
  6 + </ul>
  7 +</nav>
3  _includes/navfooter.textile
Source Rendered
... ... @@ -0,0 +1,3 @@
  1 +<footer>
  2 + <p><a href="http://nickcottrell.info">nickcottrell.info</a></p>
  3 +</footer>
4 _layouts/default/bttm.textile
Source Rendered
... ... @@ -0,0 +1,4 @@
  1 +</div><!--end #content-->
  2 +</div><!--end #wrap-->
  3 +
  4 +<?navbttm()?>
10 _layouts/default/top.textile
Source Rendered
... ... @@ -0,0 +1,10 @@
  1 +<body>
  2 +<div id="wrap">
  3 +
  4 +<header>
  5 + <h1>Button Down.</h1>
  6 +</header>
  7 +
  8 +<?navtop()?>
  9 +
  10 +<div id="content">
41 _thread.textile
Source Rendered
... ... @@ -0,0 +1,41 @@
  1 +<?
  2 +$_ENV['pageNameGLOB'] = $pageName;
  3 +$_ENV['layoutNameGLOB'] = $layoutName;
  4 +
  5 +function top() {
  6 + include '_includes/header.textile';
  7 +}
  8 +
  9 +function bttm() {
  10 + include '_includes/footer.textile';
  11 +}
  12 +
  13 +function layoutTop() {
  14 + $var = $_ENV['layoutNameGLOB'];
  15 + include "_layouts/$var/top.textile";
  16 +}
  17 +
  18 +function layoutBttm() {
  19 + $var = $_ENV['layoutNameGLOB'];
  20 + include "_layouts/$var/bttm.textile";
  21 +}
  22 +
  23 +function navtop() {
  24 + include '_includes/nav.textile';
  25 +}
  26 +
  27 +function navbttm() {
  28 + include '_includes/navfooter.textile';
  29 +}
  30 +
  31 +function pathext() {
  32 + $var = $_SERVER['PATH_INFO'];
  33 + echo $var;
  34 +}
  35 +
  36 +function pagename() {
  37 + $var = $_ENV['pageNameGLOB'];
  38 + echo $var;
  39 +}
  40 +
  41 +?>
19 about/index.php
... ... @@ -0,0 +1,19 @@
  1 +<?//================================
  2 +$pageName = "About";
  3 +$layoutName = "default";
  4 +
  5 +//=================================
  6 +$var = $_SERVER['DOCUMENT_ROOT'];
  7 +include $var."/_thread.textile";
  8 +//=================================?>
  9 +
  10 +<?top()?>
  11 +
  12 +<h2>About Page</h2>
  13 +
  14 +<p>Tattooed aliquip street art selvage, aute veniam echo park butcher retro PBR freegan biodiesel excepteur letterpress est. Etsy american apparel tattooed, eu pariatur letterpress vinyl tumblr bespoke fap echo park farm-to-table ennui post-ironic chillwave. Fap portland labore wes anderson wolf delectus. Non consectetur typewriter master cleanse eiusmod post-ironic, food truck echo park messenger bag eu seitan DIY butcher hella direct trade. Mlkshk fanny pack etsy cosby sweater dolor velit ea artisan four loko, consequat occupy viral Austin adipisicing pork belly. Vegan food truck blog whatever marfa, elit duis american apparel echo park sapiente cliche ethical selvage VHS veniam. Commodo pour-over minim, cupidatat bushwick incididunt irony narwhal cardigan eu fap.<p>
  15 +
  16 +<a href="/about/subject/">More about this subject</a>
  17 +
  18 +<?bttm()?>
  19 +
17 about/subject/index.php
... ... @@ -0,0 +1,17 @@
  1 +<?//================================
  2 +$pageName = "About - Subject";
  3 +$layoutName = "default";
  4 +
  5 +//=================================
  6 +$var = $_SERVER['DOCUMENT_ROOT'];
  7 +include $var."/_thread.textile";
  8 +//=================================?>
  9 +
  10 +<?top()?>
  11 +
  12 +<h2>Subject</h2>
  13 +
  14 +<p>Food truck echo park messenger bag eu seitan DIY butcher hella direct trade. Mlkshk fanny pack etsy cosby sweater dolor velit ea artisan four loko, consequat occupy viral Austin adipisicing pork belly. Vegan food truck blog whatever marfa, elit duis american apparel echo park sapiente cliche ethical selvage VHS veniam. Commodo pour-over minim, cupidatat bushwick incididunt irony narwhal cardigan eu fap.<p>
  15 +
  16 +<?bttm()?>
  17 +
17 contact/index.php
... ... @@ -0,0 +1,17 @@
  1 +<?//================================
  2 +$pageName = "Contact";
  3 +$layoutName = "default";
  4 +
  5 +//=================================
  6 +$var = $_SERVER['DOCUMENT_ROOT'];
  7 +include $var."/_thread.textile";
  8 +//=================================?>
  9 +
  10 +<?top()?>
  11 +
  12 +<h2>Contact</h2>
  13 +
  14 +<p><a href="##">email@test.com</a><p>
  15 +
  16 +<?bttm()?>
  17 +
27 css/base.css
... ... @@ -0,0 +1,27 @@
  1 +body {
  2 + background-color:#C1E8FB;
  3 + margin:0;
  4 + padding:0;
  5 + width:100%;
  6 + height:100%;
  7 + font-family:"Helvetica", Arial, Sans-serif;
  8 +}
  9 +
  10 +#wrap {
  11 + background-color:#fff;
  12 + min-height:500px;
  13 + width:50%;
  14 + padding:36px 25% 100px 5%;
  15 + margin:0;
  16 + -webkit-box-shadow: 0 0 24px #999;
  17 + -moz-box-shadow: 0 0 24px #999;
  18 + box-shadow: 0 0 24px #999;
  19 +}
  20 +
  21 +footer {
  22 + min-height:100px;
  23 + width:100%;
  24 + background-color:#999;
  25 + filter:alpha(opacity=60); /* For IE8 and earlier */
  26 + padding:12px 25% 100px 5%;
  27 +}
18 index.php
... ... @@ -0,0 +1,18 @@
  1 +<?//================================
  2 +
  3 +$pageName = "Home";
  4 +$pathExt = null;
  5 +$layoutName = "default";
  6 +
  7 +//=================================
  8 +require '_thread.textile';
  9 +//=================================?>
  10 +
  11 +<?top()?>
  12 +
  13 +<h2>Hello, there.</h2>
  14 +
  15 +<p>This is a super simple framework to create a very clean php site.</p>
  16 +
  17 +<?bttm()?>
  18 +

0 comments on commit 7bbe98f

Please sign in to comment.
Something went wrong with that request. Please try again.