php quick fix
This commit is contained in:
parent
9c36460e66
commit
7593d693f1
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<!-- CSS Files -->
|
<!-- CSS Files -->
|
||||||
<?php
|
<?php
|
||||||
$dir = new DirectoryIterator("assets/css");
|
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/css");
|
||||||
foreach ($dir as $file) {
|
foreach ($dir as $file) {
|
||||||
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
|
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
|
||||||
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
|
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$dir = new DirectoryIterator("assets/js");
|
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/js");
|
||||||
foreach ($dir as $file) {
|
foreach ($dir as $file) {
|
||||||
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
|
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
|
||||||
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
|
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<!-- CSS Files -->
|
<!-- CSS Files -->
|
||||||
<?php
|
<?php
|
||||||
$dir = new DirectoryIterator("assets/css");
|
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/css");
|
||||||
foreach ($dir as $file) {
|
foreach ($dir as $file) {
|
||||||
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
|
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
|
||||||
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
|
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$dir = new DirectoryIterator("assets/js");
|
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/js");
|
||||||
foreach ($dir as $file) {
|
foreach ($dir as $file) {
|
||||||
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
|
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
|
||||||
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
|
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
|
||||||
|
|
Loading…
Reference in a new issue