New Blockish theme

* Adding a new blockish theme with a blue header and an adaptive
design.
* Printable PDF version still needs some work, but overall, this is a
nice layout.
This commit is contained in:
Craig Davis
2013-03-19 09:45:36 -05:00
parent de7d544e11
commit 54c28189e1
11 changed files with 160 additions and 39 deletions

View File

@@ -15,23 +15,25 @@ use Assetic\Filter;
// Application defaults
$config = (object) array(
"source" => "",
"source" => "",
"template" => "modern",
"refresh" => false,
"pdf" => false
"refresh" => false,
"pdf" => false
);
// Command line arguments to populate the config
$opts = array(
"s:" => "source:", // source
"t:" => "template:", // template
"r" => "refresh", // refresh
"p" => "pdf" // pdf output
"r" => "refresh", // refresh
"p" => "pdf" // pdf output
);
// Fetch the options from the command line arguments
$options = getopt(implode("", array_keys($opts)), array_values($opts));
// Consolidate the short and long options into the config array
// Make sure that boolean options are set appropriately.
foreach ($opts as $short => $long) {
$isBool = (substr($short, -1, 1) !== ":");
$short = trim($short, ":");