mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
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:
@@ -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, ":");
|
||||
|
||||
Reference in New Issue
Block a user