Plik theme :
<?php
/*------------------------------------------------------------------
Theme by Ocho \ http://www.plexdesign.info /
-------------------------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "880");
define("THEME_BULLET", "<span class='bullet'><img src='".THEME."images/bullet.png'></span>");
//v7 sublinks
function thesublinks($sep="·",$class="") {
echo "<script type='text/javascript' src='".THEME."/fader.js'></script>";
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' style='border: 0px; margin: 0px auto'>
<tr><td>
<img src='".THEME."images/header.jpg' alt='".$settings['sitename']."' width='880' height='240' />";
echo "</td></tr></table>\n";
//sublinks css
echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<div id='altlinkler'>";
echo "<ul><li>".thesublinks("</li>\n<li>");
echo "</li></ul><div class='clear-both'> </div></div>";
echo "</td></tr></table>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<div id='footer'><table cellpadding='0' cellspacing='0' width='880' class='footermain'>
<tr>
<td class='footer_t'>".showcopyright()." <br>Theme By <strong><a href='http://www.plexdesign.info' onclick='window.open(this.href); return false;' onkeypress='window.open(this.href); return false;'><font color='white'>Ocho</font></a></strong>
</td>
</tr>
</table>
</div>
</td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='border tablebreak'>";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "</div>";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
echo "<div class='border tablebreak'>";
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='border'>\n";
echo "<div class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n</div>\n";
echo "</div>";
}
?>
<script type='text/javascript' src='".THEME."/SnowScript.js'></script>
Plik styles :
a, a.white, li.white a {
color : #fff;
text-decoration : none;
}
a:hover.white, li.white a:hover {
color : #333333;
text-decoration : none;
}
a.side {
color : #333333;
text-decoration : none;
}
a:hover.side {
color : #f5f8f8;
text-decoration : none;
}
body {
font-family : Helvetica, sans-serif;
font-size : 11px;
background-image: url(images/fundal.gif);
background-color: #fffffff
background-position: top center;
background-attachment: fixed;
background-repeat: repeat-y;
margin: 0px auto;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #f67c05;
}
td {
font-family : Arial, Helvetica, sans-serif;
font-size : 12px;
}
pre {
font-family : Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #f6f6f6;
}
img {
border: 0px;
}
#main {width: 874px;}
.main {width: 874px;}
.footermain {
background-image: url(images/backgroundfooter.jpg);
background-repeat: repeat-x;
height: 120px;
text-align: center;
}
.footer_t {
font-family : Helvetica, sans-serif;
font-size : 11px;
padding: 1px 10px 1px 10px;
width: 50%;
text-align: center;
color: #000000;
}
#footer a {
color: #333333;
font-weight: bold;
text-decoration: none;
}
li.first-link .bullet{
display: none;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000000;
background : url(images/button.gif);
height : 20px;
margin-top : 1px;
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f67c05;
border : 1px solid #333333;
margin-top : 2px;
}
.textbox {
font-family : Helvetica, sans-serif;
font-size : 11px;
color : #ffffff;
background-color : #333333;
border : 1px solid #ccc;
}
.main-body {
font-size : 11px;
color : #fff;
background-image: url(images/stiri.jpg);
padding : 1px 0px 5px 0px;
}
.setuser_body{
background: #00528e;
color : #fff;
}
.main-bg {
color : #fff;
background-image: url(images/stiri.jpg);
border : 1px solid #000;
padding : 10px 5px 10px 5px;
}
.border {
border : 0px solid #fff;
}
.admin-message {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
color: #fff;
background-color: #333333;
border: 1px solid #e1e1e1;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
}
.side-body {
width: 140px;
font-family : Verdana;
text-align: left;
font-size : 10px;
color : #fff;
padding : 4px 4px 4px 7px;
}
.side-border-left {
width: 140px;
color : #000;
background-image: url(images/side_left.jpg);
padding : 10px 5px 10px 10px;
}
.side-border-right {
width: 140px;
color : #fff;
background-image: url(images/side_right.jpg);
padding : 10px 10px 10px 5px;
}
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.news-footer {
font-size : 10px;
color : #fff;
background-color: #020500;
background-image: url(images/stiri.jpg);
padding : 3px 4px 4px 4px;
}
.capmain {
font-family : Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
text-align : center;
color : #333333;
background-color : #fff;
background-image: url(images/capmain.jpg);
background-repeat: repeat x;
padding : 2px 0px 4px 0px;
}
.scapmain {
font-family : Tahoma;
font-size : 11px;
text-align : center;
font-weight : bold;
color : #333333;
padding-left : 10px;
height: 36px;
background-image: url(images/meniu.png);
background-repeat: no-repeat;
padding : 10px 1px 1px 0px;
}
.tbl-border {
color : #ffffff;
background-color : #eeeeee;
}
.center {
margin: 0 auto;
}
.spacer {
margin-bottom: 5px;
}
.tbl {
font-size : 11px;
color : #fff;
background-image: url(images/stiri.jpg);
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #fff;
background-image: url(images/stiri.jpg);
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #fff;
background-color: #333333;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #fff;
background-color : #0e91bb;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #0e91bb;
background-color : #e0e0e0;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #000;
}
.poll {
height : 12px;
border : 1px solid #000000;
}
.comment-name {
font-weight : bold;
color : #000;
}
.shoutboxname {
font-weight : bold;
color : #fff;
}
.shoutbox {
color : #fff;
}
.shoutboxdate {
font-size : 10px;
color : #fff;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #ffffff;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #fe9900;
background-color : #0e91bb;
}
.side-label {
color : #fe9900;
background-color : #0e91bb;
padding : 2px 2px 3px 2px;
}
.tablebreak { margin-bottom: 8px; }
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 12px;
color: #ffffff;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #ffffff;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #333333;
background-color: #333333;
text-decoration : underline;
}
* html #navigation ul li{
height: 1%;
}
.center, *[align="center"] {margin: 0 auto;}
/* Page Navigation */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #fff;
background-color: #f6a504;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #ffffff;
background-color: #f1f1f1;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #f6a504;
margin: 2px;
text-decoration: none;
}
.white-header ul{
margin: 0;
padding: 0;
}
.white-header ul li{ display: inline; }
.white-header ul li.first-link .bullet{ display: none; }
#altlinkler{
margin: 0px auto;
text-align: center;
font-family: Arial;
font-size: 12px;
font-weight: bold;
height:29px;
float:left;
background-image:url(images/nav-bg.png);
background-repeat:repeat-x;
background-position:left;
width:100%;
}
#altlinkler ul,
#altlinkler li{
padding:0px;
margin:0px;
list-style-type:none;
}
#altlinkler ul{
height:29px;
line-height:29px;
background-image:url(images/nav-bg.png);
background-position:right;
background-repeat:no-repeat;
float:left;
}
#altlinkler li{
height:29px;
line-height:29px;
display:inline;
position:relative;
float:left;
width:100px;
text-align:center;
}
#altlinkler li a{
height:29px;
width:100px;
text-align:center;
float:left;
background-image:url(images/nav-bg.png);
background-position:left;
background-repeat:no-repeat;
}
#altlinkler li a:link,
#altlinkler li a:visited{
color:#ffffff;
text-decoration:none;
}
#altlinkler li.active a,
#altlinkler li a:hover{
background-image:url(images/nav-up.gif);
background-repeat:no-repeat;
background-position:left;
}
|