Commit 17b8f203 authored by fettesvieh's avatar fettesvieh

- some changes to the CSS classes (should be finished now)

- little changes to the index.php
parent 92a713a7
......@@ -3,7 +3,7 @@
{$pagination}
{foreach from=$comments item=row}
<div class="gb">
<div class="gbhead">
<div class="header">
<div class="author">
{lang values="common|author"}
</div>
......@@ -11,14 +11,14 @@
{lang values="common|message"}
</div>
</div>
<div class="gbleft">
<div class="left">
<strong>{lang values="common|name"}:</strong> {if $row.user_id}<a href="{uri args="users/view_profile/id_`$row.user_id`"}" title="{lang values="users|view_profile"}">{$row.name}</a>{else}{$row.name}{/if}<br />
<strong>{lang values="common|date"}:</strong> {$row.date}
</div>
<div class="gbright">
<div class="content">
{$row.message}
</div>
<div class="gbfooter">
<div class="footer">
&nbsp;
</div>
</div>
......
......@@ -7,7 +7,7 @@
</div>
<div class="content">
{$file.text}
<div id="additional-link">
<div class="hyperlink">
<a href="{uri args="files/details/id_`$file.id`/action_download"}" class="download-file">{lang values="files|download_file"} ({$file.size})</a>
</div>
</div>
......
{if $picture}
<div class="picture">
<img src="{uri args="gallery/image/id_`$picture.id`/action_thumb"}" alt="" />
</div>
<div class="picture-description">
{$picture.description}
</div>
<div class="pictures">
<div class="picture-description">
{$picture.description}
</div>
<div class="pictures-prev-next">
{if $picture_back}
<a href="{uri args="gallery/details/id_`$picture_back.id`"}" class="picture-back"><img src="{uri args="gallery/image/id_`$picture_back.id`/action_mini"}" alt="" /></a>
<a href="{uri args="gallery/details/id_`$picture_back.id`"}" class="picture-prev"><img src="{uri args="gallery/image/id_`$picture_back.id`/action_mini"}" alt="" /></a>
{/if}
{if $picture_next}
<a href="{uri args="gallery/details/id_`$picture_next.id`"}" class="picture-next"><img src="{uri args="gallery/image/id_`$picture_next.id`/action_mini"}" alt="" /></a>
<a href="{uri args="gallery/details/id_`$picture_next.id`"}" class="picture-next"><img src="{uri args="gallery/image/id_`$picture_next.id`/action_mini"}" alt="" /></a>
{/if}
<div class="pic-index">
<a href="{uri args="gallery/pics/id_`$picture.gallery_id`"}">{lang values="gallery|picture_index"}</a>
<div class="picture-index">
<a href="{uri args="gallery/pics/id_`$picture.gallery_id`"}">{lang values="gallery|picture_index"}</a>
</div>
</div>
</div>
{else}
......
{if $galleries}
{$pagination}
{foreach from=$galleries item=row}
<div class="newsbox newshead">
<div style="float:right;font-size:1.2em">
{$row.pics}
</div>
<div class="dlhead">
<a href="{uri args="gallery/pics/id_`$row.id`"}">{$row.date} - {$row.name}</a>
<div class="galleries">
<div class="date">
{$row.date}
</div>
<h3 class="title"><a href="{uri args="gallery/pics/id_`$row.id`"}">{$row.name} ({$row.pics})</a></h3>
</div>
<hr />
{/foreach}
......
......@@ -6,7 +6,7 @@
{$pagination}
{foreach from=$guestbook item=row}
<div class="gb">
<div class="gbhead">
<div class="header">
<div class="author">
{lang values="common|author"}
</div>
......@@ -14,7 +14,7 @@
{lang values="common|message"}
</div>
</div>
<div class="gbleft">
<div class="left">
<strong>{lang values="common|name"}:</strong> {if $row.user_id}<a href="{uri args="users/view_profile/id_`$row.user_id`"}" title="{lang values="users|view_profile"}">{$row.name}</a>{else}{$row.name}{/if}<br />
<strong>{lang values="common|date"}:</strong> {$row.date}<br />
{if $row.hp != 'http://'}
......@@ -24,10 +24,10 @@
<a href="mailto:{$row.mail}" title="{lang values="guestbook|send_email"}"><img src="{icon path="16/mail"}" alt="{$row.mail}" /></a>
{/if}
</div>
<div class="gbright">
<div class="content">
{$row.message}
</div>
<div class="gbfooter">
<div class="footer">
&nbsp;
</div>
</div>
......
<div class="newsbox">
<h3 class="newshead">{$news.headline}</h3>
<div class="newstime">
<div class="news">
<h3 class="headline">{$news.headline}</h3>
<div class="date">
{$news.date}
</div>
<div class="newstext">
<div class="content">
{$news.text}
{if $news.uri!='' && $news.link_title!=''}
<div id="additional-link">
<div class="hyperlink">
<strong>{lang values="news|additional_hyperlink"}:</strong> <a href="{$news.uri}"{$news.target}>{$news.link_title}</a>
</div>
{/if}
......
......@@ -5,33 +5,35 @@
<hr />
{/if}
{if $categories}
<div class="newsbox newshead">
<div class="news">
<div class="headline">
{if $MOD_feeds}
<a href="{uri args="feeds/list/feed_news"}" title="{lang values="news|read_newsfeed"}" style="float:left"><img src="{$root_dir}images/feed.png" alt="" /></a>
<a href="{uri args="feeds/list/feed_news"}" title="{lang values="news|read_newsfeed"}" style="float:left"><img src="{$root_dir}images/feed.png" alt="" /></a>
{/if}
<form action="{uri args="news/list"}" method="post" style="text-align:right">
<div>
<label for="cat" style="font-weight:bold">
{lang values="common|category"}:
<select name="form[cat]" id="cat">
<option value="">{lang values="common|pls_select"}</option>
<form action="{uri args="news/list"}" method="post" style="text-align:right">
<div>
<label for="cat" style="font-weight:bold">
{lang values="common|category"}:
<select name="form[cat]" id="cat">
<option value="">{lang values="common|pls_select"}</option>
{foreach from=$categories item=row}
<option value="{$row.id}"{$row.selected}>{$row.name}</option>
<option value="{$row.id}"{$row.selected}>{$row.name}</option>
{/foreach}
</select>
</label>
<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
</div>
</form>
</select>
</label>
<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
</div>
</form>
</div>
</div>
<hr />
{/if}
{if $news}
{$pagination}
{foreach from=$news item=row}
<div class="newsbox">
<h3 class="newshead">{$row.headline}</h3>
<div class="newstime">
<div class="news">
<h3 class="headline">{$row.headline}</h3>
<div class="date">
{if $comment_check}
<div class="comments">
<a href="{uri args="news/details/id_`$row.id`"}#comments">{lang values="comments|comments"}</a>
......@@ -40,7 +42,7 @@
{/if}
{$row.date}
</div>
<div class="newstext">
<div class="content">
{$row.text}
</div>
</div>
......
......@@ -384,7 +384,7 @@ a.form {
background: #eee;
border: 1px solid #333;
}
.gbhead {
.gb .header {
background: #069 url('images/common_header.png') repeat-x;
border-bottom: 1px solid #333;
font-weight: bold;
......@@ -392,31 +392,31 @@ a.form {
line-height: 25px;
color: #f90;
}
.author {
.gb .author {
width: 200px;
float: left;
text-align: center;
}
.message {
.gb .message {
margin-left: 200px;
text-align: center;
}
.gbleft {
.gb .left {
max-width: 200px;
width: 190px;
padding: 5px;
border-right: 1px solid #333;
float: left;
}
.gbleft span {
.gb .left span {
font-weight: bold;
}
.gbright {
.gb .content {
margin-left: 200px;
padding: 5px;
border-left: 1px solid #333;
}
.gbfooter {
.gb .footer {
background: #ccc url('images/common_footer.png') repeat-x;
border-top: 1px solid #333;
line-height: 18px;
......@@ -449,6 +449,13 @@ a.form {
margin-left: 22%;
line-height: 20px;
}
/* Hyperlink */
.hyperlink {
padding: 0 4px;
background: #eee;
border: 1px solid #333;
line-height: 20px;
}
/* Downloads */
.files {
background: #069 url('images/common_header.png') repeat-x;
......@@ -494,59 +501,74 @@ a.download-file:hover {
margin: 2px 0;
}
/* Fotogalerien */
.galleries {
padding: 3px;
background: #069 url('images/common_header.png') repeat-x;
border: 1px solid #333;
font-weight: bold;
font-size: 1.2em;
color: #f90;
}
.galleries .title {
font-size: 1.0em;
text-align: left;
}
.galleries .title a {
color: #000;
}
.galleries .title a:hover {
color: #f00;
}
.galleries .date {
float: right;
}
.picture img {
border: 1px dotted #333;
}
.picture, .picture-description {
margin: 10px 0;
text-align: center;
}
.pictures {
.picture .pictures-prev-next {
height: 120px;
line-height: 120px;
text-align: center;
}
.picture img, .pictures img {
border: 1px dotted #333;
}
.picture-back {
.picture .picture-prev {
float: left;
}
.picture-next {
.picture .picture-next {
float: right;
}
.picture-index {
.picture .picture-index {
padding: 0 130px;
}
/* News */
.newsbox {
.news {
border: 1px solid #333;
}
.newshead {
.news .headline {
padding: 3px;
background: #069 url('images/common_header.png') repeat-x;
font-weight: bold;
color: #f90;
text-align: center;
}
.newstime {
.news .date {
padding: 0 10px;
border-top: 1px solid #333;
line-height: 20px;
}
.comments {
.news .comments {
float: right;
}
.comments span {
.news .comments span {
font-size: 0.9em;
}
.newstext {
.news .content {
padding: 10px;
border-top: 1px solid #333;
}
#additional-link {
padding: 0 4px;
background: #eee;
border: 1px solid #333;
line-height: 20px;
}
/* Umfragen */
.poll {
width: 40%;
......
......@@ -22,17 +22,14 @@ if (CONFIG_MAINTENANCE == '1' && defined('IN_ACP3')) {
} else {
$auth = new auth;
if (!$auth->is_user() && defined('IN_ADM') && $modules->mod != 'users' && $modules->page != 'login') {
redirect('users/login');
} elseif ($auth->is_user() && defined('IN_ADM') && empty($_GET['stm'])) {
if ($auth->is_user() && defined('IN_ADM') && empty($_GET['stm'])) {
redirect(0, ROOT_DIR);
}
// Content einbinden
if ($modules->check()) {
} elseif ($modules->check()) {
$content = '';
include 'modules/' . $modules->mod . '/' . $modules->page . '.php';
$tpl->assign('content', $content);
} elseif (!$auth->is_user() && defined('IN_ADM') && $modules->mod != 'users' && $modules->page != 'login') {
redirect('users/login');
} elseif (is_file('modules/errors/404.php')) {
redirect('errors/404');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment