This commit is contained in:
Krzysztof KrzysiekSiemv Smaga
2024-10-13 19:11:55 +02:00
parent eb805a994b
commit 619e221c61
18 changed files with 317 additions and 59 deletions
+26 -12
View File
@@ -1,17 +1,31 @@
<?php
namespace BlogEngine {
require "_config.php";
if(!defined("BLOG_TITLE"))
require "_config.php";
class Dictionary {
public $page_tags = [
"{POSTS}" => "",
"{LINKS}" => "",
"{FAVICON}" => (BLOG_ICON != ""?"<link rel='icon' type='image/png' href='" . BLOG_ICON . "' sizes='any'>":""),
"{KEYWORDS}" => BLOG_TAGS,
"{TITLE}" => BLOG_TITLE,
"{AUTHOR}" => BLOG_AUTHOR,
"{DESCRIPTION}" => BLOG_DESC,
"{JS}" => "",
"{CSS}" => ""
];
public function PageTags() : array {
return [
"{POSTS}" => "",
"{LINKS}" => "",
"{FAVICON}" => (BLOG_ICON != ""?"<link rel='icon' type='image/png' href='" . BLOG_ICON . "' sizes='any'>":""),
"{KEYWORDS}" => BLOG_TAGS,
"{TITLE}" => BLOG_TITLE,
"{AUTHOR}" => BLOG_AUTHOR,
"{DESCRIPTION}" => BLOG_DESC,
"{JS}" => "",
"{CSS}" => ""
];
}
public function BlogTags() : array {
return [
"{POST_TITLE}" => "title",
"{POST_AUTHOR}" => "author",
"{POST_CONTENT}" => "content",
"{POST_ADDED}" => "added_at",
"{POST_VIEWS}" => "views"
];
}
}
}