diff --git a/compile.php b/compile.php new file mode 100644 index 0000000..991c58f --- /dev/null +++ b/compile.php @@ -0,0 +1,27 @@ +page_tags) as $page_tag){ + if($page_tag = "{CSS}"){ + for($j = 2; $j < count($css); $j++) + $dictionary->page_tags[$page_tag] .= ""; + } + + if($page_tag = "{JS}"){ + for($j = 2; $j < count($js); $j++) + $dictionary->page_tags[$page_tag] .= ""; + } + + $site = str_replace($page_tag, $dictionary->page_tags[$page_tag], $site); + } + + echo $site; + } \ No newline at end of file diff --git a/src/css/style.css b/src/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/src/js/script.js b/src/js/script.js new file mode 100644 index 0000000..e69de29 diff --git a/src/views/index.html b/src/views/index.html index de65500..52ef941 100644 --- a/src/views/index.html +++ b/src/views/index.html @@ -3,6 +3,8 @@ Witaj świecie! - {TITLE} + {CSS} + {JS} diff --git a/vendor/blog-engine/php/Dictionary.php b/vendor/blog-engine/php/Dictionary.php index 9d1416c..5bc8422 100644 --- a/vendor/blog-engine/php/Dictionary.php +++ b/vendor/blog-engine/php/Dictionary.php @@ -2,12 +2,14 @@ namespace BlogEngine { class Dictionary { public $page_tags = [ - "posts" => "{POSTS}", - "links" => "{LINKS}", - "tags" => "{TAGS}", - "title" => "{TITLE}", - "author" => "{AUTHOR}", - "description" => "{DESCRIPTION}" + "{POSTS}" => "", + "{LINKS}" => "", + "{TAGS}" => "", + "{TITLE}" => "Tytuł", + "{AUTHOR}" => "lorem", + "{DESCRIPTION}" => "", + "{JS}" => "", + "{CSS}" => "" ]; } }