+if (isset($Article->raw)) {
+ if ($User and $User->admin("edit $Page$Args")) {
+ # restore meta tags in static contents for editing
+ foreach (array_reverse($Article->meta) as $metaprop => $val) {
+ $Article->raw = sprintf(
+ '<meta property="%s" content="%s" />'."\n",
+ $metaprop, $val
+ ) . $Article->raw;
+ }
+ }
+}
+elseif ($User and $User->admin("edit {$Article->link}")) {
+ $Article->raw(file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html');
+}