$output = '';
while ($name != null) {
$path = garden_path(GARDEN_TEMPLATE_DIR, $name . '.php');
-
+
+ if (file_exists($path) == false) {
+ $path = garden_path(GARDEN_FALLBACK_TEMPLATE_DIR, $name . '.php');
+ }
+
$base_template = null;
$base_template_variables = null;
return GARDEN_SITE_BASE_URL . garden_url(...$url_segments);
}
-
-
///////////////////////////////////////////////////////////////////////////////
// Images
///////////////////////////////////////////////////////////////////////////////
assert(extension_loaded('imagick'), 'Needs Imagick');
assert($argc >= 2, 'Please provide configuration file');
+define('GARDEN_FALLBACK_TEMPLATE_DIR', garden_path(__DIR__, 'templates'));
+
// First parameter needs to be the configuration php
$config_file = $argv[1];
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?= garden_site_url('style', 'screen.css') ?>">
-
+
<link rel="alternate" type="application/atom+xml" href="<?= garden_site_url('feed.atom') ?>">
<link rel="alternate" type="application/feed+json" href="<?= garden_site_url('feed.json') ?>">
</head>