website

Code for the bare sturcture of concealed.world.
git clone git://git.concealed.world/website
Log | Files | Refs | README | LICENSE

commit a87dff3fea0302634c3ba0a48b9e895c1945adfa
parent 7a4e434a8bdeddaf49f7f756102df5a3437fd885
Author: Nixx <nixx@firemail.cc>
Date:   Wed, 11 Nov 2020 19:41:09 +0000

Some improvements, mainly for text-based browsers

Diffstat:
Mincludes/archive.php | 4++--
Mincludes/article-end.php | 4++--
Mincludes/blogpanel.php | 9+--------
Mincludes/homepanel.php | 11++---------
Mincludes/section-end.php | 6++++--
Mstyles/default.css | 21+++++++++------------
6 files changed, 20 insertions(+), 35 deletions(-)

diff --git a/includes/archive.php b/includes/archive.php @@ -27,7 +27,7 @@ function archive ($includearr) { echo '</tr>'; foreach ($includearr as $post) { $link = $post[0]; - $mod = date('M d Y H:i', $post[1]); + $mod = date('Y.m.d H:i', $post[1]); $title = file_get_contents($link); $linkarr = explode("/", $link); $linkarr[sizeof($linkarr) - 1] = "_index.php?post=" . $linkarr[sizeof($linkarr) - 1]; @@ -54,7 +54,7 @@ function archive ($includearr) { #} echo '<tr>'; echo '<td><a href="'.$link.'">'.$title.'</a></td>'; - echo '<td>'.$mod.'</td>'; + echo '<td>'.$mod.' GMT</td>'; echo '</tr>'; } echo '</table>'; diff --git a/includes/article-end.php b/includes/article-end.php @@ -2,9 +2,9 @@ $workdir=getcwd(); if (strpos($workdir, '/Other') !== false) { $curfile=explode('/', $_SERVER['REQUEST_URI'])[2]; - echo '<b>'.date('Y M d H:i', filemtime($workdir.'/'.$curfile)).'</b>'; + echo '<b>'.date('Y.m.d H:i', filemtime($workdir.'/'.$curfile)).' GMT</b>'; } else { - echo '<b>'.date('Y M d H:i', filemtime($workdir.'/'.$_GET['post'])).'</b>'; + echo '<b>'.date('Y.m.d H:i', filemtime($workdir.'/'.$_GET['post'])).' GMT</b>'; } echo '</div>'; require $root."includes/end.php"; diff --git a/includes/blogpanel.php b/includes/blogpanel.php @@ -1,14 +1,7 @@ <?php if ($_GET['post'] != 'archive'){ echo '<center>'; - echo '<div class="section homesection homelarge">'; - echo '<a href="'.$indexfile.'">'; - echo '<span class="homemessage">'.$message.'</span>'; - echo '</a>'; - echo '<br />'; - echo '<span class="homesubmessage">'.$submessage.'</span>'; - echo '</div>'; - echo '<div class="section homesection homesmall">'; + echo '<div class="section homesection">'; echo '<a href="'.$indexfile.'">'; echo '<span class="homemessage">'.$message.'</span>'; echo '</a>'; diff --git a/includes/homepanel.php b/includes/homepanel.php @@ -11,15 +11,8 @@ echo '<center>'; echo '<div class="section homesection homelarge">'; echo '<a href="'.$root.'home.php">'; - echo '<img src="'.$root.'images/front.gif" alt="Front Page" />'; - echo '<span class="homemessage">'.$message.'</span>'; - echo '</a>'; - echo '<br />'; - echo '<span class="homesubmessage">'.$submessages[$motd].'</span>'; - echo '</div>'; - echo '<div class="section homesection homesmall">'; - echo '<a href="'.$root.'home.php">'; - echo '<img src="'.$root.'images/frontsmall.gif" alt="Front Page" />'; + echo '<img class="homelargeimg" src="'.$root.'images/front.gif" alt="Front Page" />'; + echo '<img class="homesmallimg" src="'.$root.'images/frontsmall.gif" alt="Front Page" />'; echo '<span class="homemessage">'.$message.'</span>'; echo '</a>'; echo '<br />'; diff --git a/includes/section-end.php b/includes/section-end.php @@ -1,7 +1,9 @@ <?php echo '<span class="seemore">'; - echo '<span class="seedate">'.date('Y M d H:i', $includearr[$inc][1]).'</span>'; - echo '<a class="seemorelink" href="'.$seemorepath.'">See Full Article...</a>'; + echo '<b><span class="seedate">'.date('Y.m.d H:i', $includearr[$inc][1]).' GMT</span></b>'; + if (strpos($usragent, 'Lynx') === false && strpos($usragent, 'w3m') === false && strpos($usragent, 'Links') === false && strpos($usragent, 'textmode') === false) { + echo '<a class="seemorelink" href="'.$seemorepath.'">See Full Article...</a>'; + } echo '</span>'; echo '</div>'; $seemorepath = "#"; diff --git a/styles/default.css b/styles/default.css @@ -215,15 +215,6 @@ input[type="submit" i] { max-height: unset; } -.homelarge { - display: block; -} - -.homesmall { - display: none; - width: 220px !important; -} - .homemessage, .homesubmessage { font-style: italic; } @@ -237,6 +228,10 @@ input[type="submit" i] { font-size: 1.2em; } +.homesmallimg { + display: none; +} + .subdirs { width: 40%; margin-bottom: 20px; @@ -514,11 +509,13 @@ input[type="submit" i] { } @media (max-width: 850px) { - .homelarge { + .homesection { + width: 220px; + } + .homelargeimg { display: none; } - - .homesmall { + .homesmallimg { display: block; } }