diff options
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/admin.php | 58 | ||||
-rw-r--r-- | app/view/templates/alert.php | 26 | ||||
-rw-r--r-- | app/view/templates/backtopbar.php | 14 | ||||
-rw-r--r-- | app/view/templates/edit.php | 4 | ||||
-rw-r--r-- | app/view/templates/editleftbar.php | 2 | ||||
-rw-r--r-- | app/view/templates/edittopbar.php | 6 | ||||
-rw-r--r-- | app/view/templates/home.php | 12 | ||||
-rw-r--r-- | app/view/templates/homemenu.php | 6 | ||||
-rw-r--r-- | app/view/templates/layout.php | 10 | ||||
-rw-r--r-- | app/view/templates/media.php | 4 |
10 files changed, 71 insertions, 71 deletions
diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index 46e5045..d8255ba 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -29,27 +29,27 @@ <p>Here you can set the home-page view for visitors.</p> <div class="radio"> - <input type="radio" name="homepage" value="default" id="default" <?= Config::homepage() === 'default' ? 'checked' : '' ?>> + <input type="radio" name="homepage" value="default" id="default" <?= Wcms\Config::homepage() === 'default' ? 'checked' : '' ?>> <label for="default">default</label> </div> <div class="radio"> - <input type="radio" name="homepage" value="search" id="searchbar" <?= Config::homepage() === 'search' ? 'checked' : '' ?>> + <input type="radio" name="homepage" value="search" id="searchbar" <?= Wcms\Config::homepage() === 'search' ? 'checked' : '' ?>> <label for="searchbar">search bar</label> </div> <div class="radio"> - <input type="radio" name="homepage" value="redirect" id="redirect" <?= Config::homepage() === 'redirect' ? 'checked' : '' ?>> + <input type="radio" name="homepage" value="redirect" id="redirect" <?= Wcms\Config::homepage() === 'redirect' ? 'checked' : '' ?>> <label for="redirect">redirect to page</label> </div> <select name="homeredirect" id="homeredirect"> - <option value="" <?= Config::homeredirect() === null ? 'selected' : '' ?>>--select page to redirect--</option> + <option value="" <?= Wcms\Config::homeredirect() === null ? 'selected' : '' ?>>--select page to redirect--</option> <?php foreach ($pagelist as $page) { ?> - <option value="<?= $page ?>" <?= Config::homeredirect() === $page ? 'selected' : '' ?>><?= $page ?></option> + <option value="<?= $page ?>" <?= Wcms\Config::homeredirect() === $page ? 'selected' : '' ?>><?= $page ?></option> <?php } @@ -67,9 +67,9 @@ <label for="defaultprivacy">Default privacy</label> <select name="defaultprivacy" id="defaultprivacy"> - <option value="0" <?= Config::defaultprivacy() == 0 ? 'selected' : '' ?>>public</option> - <option value="1" <?= Config::defaultprivacy() == 1 ? 'selected' : '' ?>>private</option> - <option value="2" <?= Config::defaultprivacy() == 2 ? 'selected' : '' ?>>not published</option> + <option value="0" <?= Wcms\Config::defaultprivacy() == 0 ? 'selected' : '' ?>>public</option> + <option value="1" <?= Wcms\Config::defaultprivacy() == 1 ? 'selected' : '' ?>>private</option> + <option value="2" <?= Wcms\Config::defaultprivacy() == 2 ? 'selected' : '' ?>>not published</option> </select> @@ -78,20 +78,20 @@ <label for="defaultpage">Or, create new page BODY based on an already existing one</label> <select name="defaultpage" id="defaultpage"> - <option value="" <?= Config::defaultpage() === '' || !$defaultpageexist ? 'selected' : '' ?>>--use default BODY element--</option> + <option value="" <?= Wcms\Config::defaultpage() === '' || !$defaultpageexist ? 'selected' : '' ?>>--use default BODY element--</option> <?php foreach ($pagelist as $page) { ?> - <option value="<?= $page ?>" <?= Config::defaultpage() === $page ? 'selected' : '' ?>><?= $page ?></option> + <option value="<?= $page ?>" <?= Wcms\Config::defaultpage() === $page ? 'selected' : '' ?>><?= $page ?></option> <?php } ?> </select> <?php - if (empty(!$defaultpageexist || Config::defaultpage())) { + if (empty(!$defaultpageexist || Wcms\Config::defaultpage())) { ?> <label for="defaultbody">Edit default BODY element</label> - <textarea name="defaultbody" id="defaultbody" cols="30" rows="10"><?= Config::defaultbody() ?></textarea> + <textarea name="defaultbody" id="defaultbody" cols="30" rows="10"><?= Wcms\Config::defaultbody() ?></textarea> <?php } ?> @@ -107,23 +107,23 @@ <h4>Common options</h4> <label for="alerttitle">H1 Title</label> - <input type="text" name="alerttitle" id="alerttitle" value="<?= Config::alerttitle() ?>"> + <input type="text" name="alerttitle" id="alerttitle" value="<?= Wcms\Config::alerttitle() ?>"> <label for="alertlink">Link to this page (for visitors)</label> <select name="alertlink" id="alertlink"> - <option value="" <?= empty(Config::alertlink()) ? 'selected' : '' ?>>--No link--</option> + <option value="" <?= empty(Wcms\Config::alertlink()) ? 'selected' : '' ?>>--No link--</option> <?php foreach ($pagelist as $page) { ?> - <option value="<?= $page ?>" <?= Config::alertlink() === $page ? 'selected' : '' ?>><?= $page ?></option> + <option value="<?= $page ?>" <?= Wcms\Config::alertlink() === $page ? 'selected' : '' ?>><?= $page ?></option> <?php } ?> </select> <label for="alertlinktext">Link text</label> - <input type="text" name="alertlinktext" id="alertlinktext" value="<?= Config::alertlinktext() ?>"> + <input type="text" name="alertlinktext" id="alertlinktext" value="<?= Wcms\Config::alertlinktext() ?>"> @@ -131,33 +131,33 @@ <label for="existnot">Text to show when a page does not exist yet.</label> <i>This will also be shown as a tooltip over links.</i> - <input type="text" name="existnot" id="existnot" value="<?= Config::existnot() ?>"> + <input type="text" name="existnot" id="existnot" value="<?= Wcms\Config::existnot() ?>"> <div class="checkbox"> <input type="hidden" name="existnotpass" value="0"> - <input type="checkbox" name="existnotpass" id="existnotpass" value="1" <?= Config::existnotpass() ? 'checked' : '' ?>> + <input type="checkbox" name="existnotpass" id="existnotpass" value="1" <?= Wcms\Config::existnotpass() ? 'checked' : '' ?>> <label for="existnotpass">Ask for password</label> </div> <h4>Private</h4> <label for="private">Text to show when a page is private.</label> - <input type="text" name="private" id="private" value="<?= Config::private() ?>"> + <input type="text" name="private" id="private" value="<?= Wcms\Config::private() ?>"> <div class="checkbox"> <input type="hidden" name="privatepass" value="0"> - <input type="checkbox" name="privatepass" id="privatepass" value="1" <?= Config::privatepass() ? 'checked' : '' ?>> + <input type="checkbox" name="privatepass" id="privatepass" value="1" <?= Wcms\Config::privatepass() ? 'checked' : '' ?>> <label for="privatepass">Ask for password</label> </div> <h4>Not published</h4> <label for="notpublished">Text to show when a page is not published.</label> - <input type="text" name="notpublished" id="notpublished" value="<?= Config::notpublished() ?>"> + <input type="text" name="notpublished" id="notpublished" value="<?= Wcms\Config::notpublished() ?>"> <div class="checkbox"> <input type="hidden" name="notpublishedpass" value="0"> - <input type="checkbox" name="notpublishedpass" id="notpublishedpass" value="1" <?= Config::notpublishedpass() ? 'checked' : '' ?>> + <input type="checkbox" name="notpublishedpass" id="notpublishedpass" value="1" <?= Wcms\Config::notpublishedpass() ? 'checked' : '' ?>> <label for="notpublishedpass">Ask for password</label> </div> @@ -165,7 +165,7 @@ <div class="checkbox"> <input type="hidden" name="alertcss" value="0"> - <input type="checkbox" name="alertcss" id="alertcss" value="1" <?= Config::alertcss() ? 'checked' : '' ?>> + <input type="checkbox" name="alertcss" id="alertcss" value="1" <?= Wcms\Config::alertcss() ? 'checked' : '' ?>> <label for="alertcss">Use global.css for those page as well</label> </div> @@ -183,7 +183,7 @@ <div class="checkbox"> <input type="hidden" name="reccursiverender" value="0"> - <input type="checkbox" name="reccursiverender" id="reccursiverender" value="1" <?= Config::reccursiverender() ? 'checked' : '' ?>> + <input type="checkbox" name="reccursiverender" id="reccursiverender" value="1" <?= Wcms\Config::reccursiverender() ? 'checked' : '' ?>> <label for="reccursiverender">Reccursive render</label> </div> @@ -192,13 +192,13 @@ <div class="checkbox"> <input type="hidden" name="externallinkblank" value="0"> - <input type="checkbox" name="externallinkblank" id="externallinkblank" value="1" <?= Config::externallinkblank() ? 'checked' : '' ?>> + <input type="checkbox" name="externallinkblank" id="externallinkblank" value="1" <?= Wcms\Config::externallinkblank() ? 'checked' : '' ?>> <label for="externallinkblank">Open external links in new tab</label> </div> <div class="checkbox"> <input type="hidden" name="internallinkblank" value="0"> - <input type="checkbox" name="internallinkblank" id="internallinkblank" value="1" <?= Config::internallinkblank() ? 'checked' : '' ?>> + <input type="checkbox" name="internallinkblank" id="internallinkblank" value="1" <?= Wcms\Config::internallinkblank() ? 'checked' : '' ?>> <label for="internallinkblank">Open internal links in new tab</label> </div> @@ -224,7 +224,7 @@ <?php foreach ($faviconlist as $favicon) { ?> - <option value="<?= $favicon ?>" <?= Config::defaultfavicon() === $favicon ? 'selected' : '' ?>><?= $favicon ?></option> + <option value="<?= $favicon ?>" <?= Wcms\Config::defaultfavicon() === $favicon ? 'selected' : '' ?>><?= $favicon ?></option> <?php } ?> @@ -249,7 +249,7 @@ <?php foreach ($interfacecsslist as $interfacecss) { ?> - <option value="<?= $interfacecss ?>" <?= $interfacecss === Config::interfacecss() ? 'selected' : '' ?>><?= $interfacecss ?></option> + <option value="<?= $interfacecss ?>" <?= $interfacecss === Wcms\Config::interfacecss() ? 'selected' : '' ?>><?= $interfacecss ?></option> <?php } ?> @@ -266,7 +266,7 @@ <h2>Tracking</h2> <label for="analytics">Google analytics Tracking ID</label> - <input type="text" name="analytics" id="analytics" value="<?= Config::analytics() ?>"> + <input type="text" name="analytics" id="analytics" value="<?= Wcms\Config::analytics() ?>"> <i>(Need rendering to work)</i> diff --git a/app/view/templates/alert.php b/app/view/templates/alert.php index c4a54b1..bab6410 100644 --- a/app/view/templates/alert.php +++ b/app/view/templates/alert.php @@ -7,7 +7,7 @@ $this->start('head'); ?> <head> - <?= Config::alertcss() ? '<link href="' . Model::globalpath() . 'global.css" rel="stylesheet" />' : '' ?> + <?= Wcms\Config::alertcss() ? '<link href="' . Wcms\Model::globalpath() . 'global.css" rel="stylesheet" />' : '' ?> </head> @@ -28,7 +28,7 @@ $this->stop(); - <?= !empty(Config::alerttitle()) ? '<h1>' . Config::alerttitle() . '</h1>' : '' ?> + <?= !empty(Wcms\Config::alerttitle()) ? '<h1>' . Wcms\Config::alerttitle() . '</h1>' : '' ?> <?php @@ -43,10 +43,10 @@ $this->stop(); if(!$pageexist) { - if(!empty(Config::existnot())) { - echo '<h2>' . Config::existnot() . '</h2>'; + if(!empty(Wcms\Config::existnot())) { + echo '<h2>' . Wcms\Config::existnot() . '</h2>'; } - if(Config::existnotpass() && !$canedit) { + if(Wcms\Config::existnotpass() && !$canedit) { echo $form; } } else { @@ -55,19 +55,19 @@ $this->stop(); switch ($page->secure()) { case 1: - if(!empty(Config::private())) { - echo '<h2>' . Config::private() . '</h2>'; + if(!empty(Wcms\Config::private())) { + echo '<h2>' . Wcms\Config::private() . '</h2>'; } - if(Config::privatepass()) { + if(Wcms\Config::privatepass()) { echo $form; } break; case 2: - if(!empty(Config::notpublished())) { - echo '<h2>' . Config::notpublished() . '</h2>'; + if(!empty(Wcms\Config::notpublished())) { + echo '<h2>' . Wcms\Config::notpublished() . '</h2>'; } - if(Config::notpublishedpass()) { + if(Wcms\Config::notpublishedpass()) { echo $form; } break; @@ -80,9 +80,9 @@ $this->stop(); ?> <p><a href="<?= $this->upage('pageadd', $page->id()) ?>">⭐ Create</a></p> <?php - } elseif(!empty(Config::alertlink())) { + } elseif(!empty(Wcms\Config::alertlink())) { ?> - <p><a href="<?= $this->upage('pageread/', Config::alertlink()) ?>"><?= empty(Config::alertlinktext()) ? Config::alertlink() : Config::alertlinktext() ?></a></p> + <p><a href="<?= $this->upage('pageread/', Wcms\Config::alertlink()) ?>"><?= empty(Wcms\Config::alertlinktext()) ? Wcms\Config::alertlink() : Wcms\Config::alertlinktext() ?></a></p> <?php } diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php index e9266a6..c632d66 100644 --- a/app/view/templates/backtopbar.php +++ b/app/view/templates/backtopbar.php @@ -23,22 +23,22 @@ <span id="menu"> <a href="<?= $this->url('home') ?>" <?= $tab == 'home' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>home.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>home.png" alt="" class="icon"> <span class="hidephone">home</span> </a> <a href="<?= $this->url('media') ?>" <?= $tab == 'media' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>media.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>media.png" alt="" class="icon"> <span class="hidephone">media</span> </a> <a href="<?= $this->url('font') ?>" <?= $tab == 'font' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>font.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>font.png" alt="" class="icon"> <span class="hidephone">font</span> </a> <?php if($user->isadmin()) { ?> <a href="<?= $this->url('admin') ?>" <?= $tab == 'admin' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>admin.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>admin.png" alt="" class="icon"> <span class="hidephone">admin</span> </a> @@ -46,7 +46,7 @@ if($user->isadmin()) { } ?> <a href="<?= $this->url('info') ?>" <?= $tab == 'info' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>info.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>info.png" alt="" class="icon"> <span class="hidephone">info</span> </a> </span> @@ -75,11 +75,11 @@ if($user->isadmin()) { <span> <a href="<?= $this->url('timeline') ?>" <?= $tab == 'timeline' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>timeline.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>timeline.png" alt="" class="icon"> <span class="hidephone">timeline</span> </a> <a href="<?= $this->url('user') ?>" <?= $tab == 'user' ? 'class="actualpage"' : '' ?>> - <img src="<?= Model::iconpath() ?>user.png" alt="" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>user.png" alt="" class="icon"> <span class="hidephone"><?= $user->id() ?></span> </a> <i><?= $user->level() ?></i> diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 2035541..5507583 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -5,7 +5,7 @@ <?php $this->start('page') ?> -<style>.tabs textarea{font-size: <?= Config::fontsize() ?>px}</style> +<style>.tabs textarea{font-size: <?= Wcms\Config::fontsize() ?>px}</style> <body> <main class="editor"> @@ -31,7 +31,7 @@ const pageid = '<?= $page->id() ?>'; let pagetitle = '<?= $page->title() ?>'; </script> -<script src="<?= Model::jspath() ?>edit.bundle.js"></script> +<script src="<?= Wcms\Model::jspath() ?>edit.bundle.js"></script> </body> <?php $this->stop('page') ?>
\ No newline at end of file diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index d169473..c901c14 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -46,7 +46,7 @@ <div id="thumbnail"> <label for="thumbnail">Thumbnail</label> <input type="file" id="thumbnail" name="thumbnail" accept=".jpg, .JPG, .jpeg, .JPEG"> - <img src="<?= Model::thumbnailpath() ?><?= $page->id() ?>.jpg" alt="no-thumbnail"> + <img src="<?= Wcms\Model::thumbnailpath() ?><?= $page->id() ?>.jpg" alt="no-thumbnail"> </div> diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php index 13cef96..5aa13ba 100644 --- a/app/view/templates/edittopbar.php +++ b/app/view/templates/edittopbar.php @@ -18,7 +18,7 @@ <a href="<?= $this->upage('pageread/', $page->id()) ?>" target="_blank" id="display"> - <img src="<?= Model::iconpath() ?>read.png" class="icon"> + <img src="<?= Wcms\Model::iconpath() ?>read.png" class="icon"> <span class="hidephone">display</span> </a> <span id="headid"><?= $page->id() ?></span> @@ -27,11 +27,11 @@ <span id="fontsize" class="hidephone"> <label for="fontsize">Font-size</label> - <input type="number" name="fontsize" value="<?= Config::fontsize() ?>" id="editfontsize" min="5" max="99"> + <input type="number" name="fontsize" value="<?= Wcms\Config::fontsize() ?>" id="editfontsize" min="5" max="99"> </span> <span id="download" class="hidephone"> - <a href="<?= $this->upage('pagedownload', $page->id()) ?>"><img src="<?= Model::iconpath() ?>download.png" class="icon"><span class="text">download</span></a> + <a href="<?= $this->upage('pagedownload', $page->id()) ?>"><img src="<?= Wcms\Model::iconpath() ?>download.png" class="icon"><span class="text">download</span></a> </span> diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 2ee791a..9758c95 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -87,11 +87,11 @@ <tr> <td class="hidephone"><input type="checkbox" name="id[]" value="<?= $item->id() ?>" id="id_<?= $item->id() ?>"></td> <td><label title="<?= $item->title() ?>" for="id_<?= $item->id() ?>"><?= $item->id() ?></label></td> - <td><a href="<?= $this->upage('pageedit', $item->id()) ?>"><img src="<?= Model::iconpath() ?>edit.png" class="icon"></a></td> - <td><a href="<?= $this->upage('pageread/', $item->id()) ?>" target="_blank"><img src="<?= Model::iconpath() ?>read.png" class="icon"></a></td> + <td><a href="<?= $this->upage('pageedit', $item->id()) ?>"><img src="<?= Wcms\Model::iconpath() ?>edit.png" class="icon"></a></td> + <td><a href="<?= $this->upage('pageread/', $item->id()) ?>" target="_blank"><img src="<?= Wcms\Model::iconpath() ?>read.png" class="icon"></a></td> <td class="delete"><a href="<?= $this->upage('pagedelete', $item->id()) ?>">✖</a></td> <?php if ($user->issupereditor()) { ?> - <td class="hidephone"><a href="<?= $this->upage('pagedownload', $item->id()) ?>" download><img src="<?= Model::iconpath() ?>download.png" class="icon"></a></td> + <td class="hidephone"><a href="<?= $this->upage('pagedownload', $item->id()) ?>" download><img src="<?= Wcms\Model::iconpath() ?>download.png" class="icon"></a></td> <?php } if ($columns['tag']) { ?> <td class="tag"><a title="<?= $item->tag('string') ?>"><?= $item->tag('sort') ?></a></td> @@ -141,7 +141,7 @@ </section> - <?php if($user->display()['bookmark'] && (!empty(Config::bookmark()) || !empty($user->bookmark()))) { ?> + <?php if($user->display()['bookmark'] && (!empty(Wcms\Config::bookmark()) || !empty($user->bookmark()))) { ?> <section class="hidephone" id="bookmark"> <div class="block"> @@ -149,7 +149,7 @@ <div class="scroll"> <strong>Public</strong> <ul> - <?php foreach (Config::bookmark() as $id => $query) { ?> + <?php foreach (Wcms\Config::bookmark() as $id => $query) { ?> <li> <a href="<?= $query ?>"><?= $id ?></a> </li> @@ -176,7 +176,7 @@ <?php } ?> - <script src="<?= Model::jspath() ?>home.bundle.js"></script> + <script src="<?= Wcms\Model::jspath() ?>home.bundle.js"></script> </body> diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php index f807f7c..838ca81 100644 --- a/app/view/templates/homemenu.php +++ b/app/view/templates/homemenu.php @@ -159,10 +159,10 @@ <summary>Bookmarks</summary> <div class="submenu"> <h2>Public</h2> - <?php if(!empty(Config::bookmark())) { ?> + <?php if(!empty(Wcms\Config::bookmark())) { ?> <form action="<?= $this->url('homebookmark') ?>" method="post"> <ul> - <?php foreach (Config::bookmark() as $id => $query) { ?> + <?php foreach (Wcms\Config::bookmark() as $id => $query) { ?> <li> <label for="public-bookmark_<?= $id ?>"> <a href="<?= $query ?>" title="<?= $query ?>"><?= $id ?></a> @@ -236,7 +236,7 @@ <form action="<?= $this->url('homecolumns') ?>" method="post"> <ul> <?php - foreach (Model::COLUMNS as $col) { ?> + foreach (Wcms\Model::COLUMNS as $col) { ?> <li> <input type="checkbox" name="columns[]" value="<?= $col ?>" id="col_<?= $col ?>" <?= in_array($col, $user->columns()) ? 'checked' : '' ?>> <label for="col_<?= $col ?>"><?= $col ?></label> diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index 91ae378..85351d6 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -7,15 +7,15 @@ <meta name="viewport" content="width=device-width" /> <?php if (!empty($favicon)) { ?> - <link rel="shortcut icon" href="<?= Model::faviconpath() . $favicon ?>" type="image/x-icon"> - <?php } elseif (!empty(Config::defaultfavicon())) { ?> - <link rel="shortcut icon" href="<?= Model::faviconpath() . Config::defaultfavicon() ?>" type="image/x-icon"> + <link rel="shortcut icon" href="<?= Wcms\Model::faviconpath() . $favicon ?>" type="image/x-icon"> + <?php } elseif (!empty(Wcms\Config::defaultfavicon())) { ?> + <link rel="shortcut icon" href="<?= Wcms\Model::faviconpath() . Wcms\Config::defaultfavicon() ?>" type="image/x-icon"> <?php } ?> <title><?= $title ?></title> <link rel="stylesheet" href="<?= $css ?>"> <?php - if (!empty(Config::interfacecss())) { - echo '<link rel="stylesheet" href="' . Model::csspath() . Config::interfacecss() . '">'; + if (!empty(Wcms\Config::interfacecss())) { + echo '<link rel="stylesheet" href="' . Wcms\Model::csspath() . Wcms\Config::interfacecss() . '">'; } ?> </head> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index ecd61b8..be1ac7f 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -100,10 +100,10 @@ treecount($dirlist, 'media', 0, 'media', $dir, $opt); <label for="moveto">Selected medias :</label> <select name="dir" id="moveto" > <option selected>---select destination---</option> - <option value="<?= Model::MEDIA_DIR ?>">/</option> + <option value="<?= Wcms\Model::MEDIA_DIR ?>">/</option> <?php foreach ($pathlist as $path) { - echo '<option value="' . Model::MEDIA_DIR . $path . '">' . $path . '</option>'; + echo '<option value="' . Wcms\Model::MEDIA_DIR . $path . '">' . $path . '</option>'; } ?> </select> |