Przedszkolak
Postów: 16 Ostrzeżeń: 1
Data rejestracji: 22.01.2010 15:13
|
theme.php
<?
$body_text = "303030";
$body_bg = "#000";
$theme_width = "102%";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='bodyline' align=center width='850' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table background='".THEME."logo.jpg' width='100%' border='0' cellspacing='0' cellpadding='0'><tr align=left>";
echo "<td width='100%' height='110'>";
echo "</td>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='47' border='0' cellpadding='4' cellspacing='0' background='".THEME."datebg.jpg'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='content'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " •\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td width='250' nowrap><div align='right'><font class='date'><b>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "   </b></font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#000000' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table background='footer.jpg' cellpadding='3' cellspacing='0' width='98%'>";
echo "<div align='center'>";
echo "<table cellpadding='3' cellspacing='0' height='134' width='98%'>";
echo "<tr><td align='center' class='stopka'>";
echo "".stripslashes($settings['footer'])."";
if ($license == false) {
echo "Powered by <a href=http://www.php-fusion.co.uk target=_blank>PHP-Fusion</a> v".$settings['version']." <br><b>Matrix Theme</b> by probase @ AusiMods";
}
echo "<br><b>".$settings['counter']."</b> ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
echo "</td></tr></table></td></tr></table></center></div><br> \n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 0px solid #000000' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."goranews.jpg' height='33'><img border='0' src='".THEME."images/arrows.gif'> <font class='block-title2'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='0'><tr>";
echo "<td background='".THEME."images/tabpic.gif' height='24'><img border='0' src='".THEME."images/arrows.gif'> <font class='block-title2'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' style='border: 0px solid #000000'>";
echo "<tr><td background='".THEME."images/tabpic.gif' width='100%' border='0' height='33'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 0px solid #000000' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/tabpic2.gif'>";
echo "<img border='0' src='".THEME."images/arrows.gif'> <font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#000000' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/tabpic.gif'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#000000' class='side-b'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
style.css
body {
font-size: 90.5%; /* Resets 1em to 10px */
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
background:#000 url(header_bg.jpg) no-repeat center top;
}
td.lefttd {
background-repeat: repeat-y;
background-image: url(images/leftside.gif);
}
td.righttd {
background-image: url(images/rightside.gif);
background-repeat: repeat-y;
}
/* General page style */
.bodyline {background: #000000;color:#C0C0C0;border:0px solid #000}
a {color:#CB8F00; text-decoration:none;}
a:hover {color:#FFBE5A; text-decoration:none;}
a.side {color:#CB8F00; text-decoration:none;}
a:hover.side {color:#FFBE5A; text-decoration:none;}
a.white {font-size:8px;font-family:Verdana,Tahoma,Sans-Serif;color:#FEF3C3; text-transform:uppercase;text-decoration:none;font-weight:bold;}
a:hover.white {font-size:8px;font-family:Verdana,Tahoma,Sans-Serif;color:#FFBE5A; text-transform:uppercase;text-decoration:none;font-weight:bold;}
form {margin:0px 0px 0px 0px;}
hr {height: 0px; border: solid #000 0px; border-top-width: 1px;}
hr.side-hr {height: 0px; border: solid #000 0px; border-top-width: 1px;}
td {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
pre {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
.alt {color:#1C1C1C;}
.white-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px; color:#000;background-color:#000;
padding:4px; border-top:#ffffff 1px solid; border-bottom:#fff 1px solid;}
a.black {
color : #000;
}
a:hover.black {
color : #000;
text-decoration : underline;
}
.full-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px; color:#c0c0c0;background-color:#fff;}
.button {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px; color:#A86701;background-color:#1A0705;
border:1px #000 solid;margin-top:2px;}
.textbox {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px; color:#c0c0c0;background-color:#1A0705;
border:0px #A86701 solid;}
.visits {color:#516A88; text-decoration:none; FONT-WEIGHT: bold;font-size:9px;}
.main-body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
background: url(news.gif);
padding:3px 4px 3px 4px;
}
.stopka {
background: url(footer.jpg);
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#FEF3C3;
background-position: top;
}
.side-body {background-image: url(images/meniu_fonas.gif); font-size:9px; color:#FEF3C3; padding:4px 4px 6px 4px;}
.main-bg {background-color:#000000}
}
.border {border-width:0px 0px 0px 0px;border-color:#000;border-style:solid;}
.border1 {border-width:0px 0px 0px 0px;border-color:#000;border-style:solid;}
.news-footer {background-image: url(dolnews.gif);background-repeat: no-repeat; font-size:9px;font-weight:normal; color:#6D2600;background-color:#0A1624; padding:4px 4px 4px 4px;}
.capmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
border-width:1px 1px 1px 1px;border-color:#0A1624;border-style:solid;
color:#B78E00; height:24px; padding:2px 2px 2px 2px;}
.copyrights {background: none; COLOR: #FFFDF0; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {background: none; COLOR: #F4F1BF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title {background: none; COLOR: #FEF3C3; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.block-title {BACKGROUND: none; COLOR: #FEF3C3; FONT-SIZE: 10px; FONT-WEIGHT: bold; height:14px;white-space:nowrap; FONT-FAMILY: Verdana, Helvetica}
.block-title2 {text-transform:uppercase; BACKGROUND: none; COLOR: #f1f1f1; FONT-SIZE: 9px; FONT-WEIGHT: bold; height:14px;white-space:nowrap; FONT-FAMILY: Verdana, Helvetica}
.head-title {background: none; COLOR: #000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.date {background: none; COLOR: #c0c0c0; FONT-SIZE: 9px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
img {border: 0px;}
.capleft {width:2px;height:20px;}
.capright {width:2px;height:20px;}
.scapmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;font-weight:bold; color:#fff; height:19px; padding:0px 2px 0px 2px;
border-width:1px 0px 1px 0px;border-color:#0A1624 #0A1624 #0A1624 #0A1624;border-style:solid;}
.tbl-border {background: none;}
.tbl {font-size:10px; color:#000; padding:4px 3px 4px 3px;}
.tbl1 {font-size:10px; color:#000; padding:4px;}
.tbl2 {font-size:10px; color:#000; padding:4px;}
/* Forum header*/
.forum-caption {font-size:9px;font-weight:bold; color:#000; height:24px; padding:0px 4px 2px 4px;
background-repeat:repeat-x;border-width:0px 0px 0px 0px;border-color:#000000 #000000 #000000 #000000;border-style:solid;}
/* Quote blocks */
.quote {color:#c0c0c0;background-color:#000000; padding:2px; margin:0px 20px 0px 20px; border:1px #000000 solid;}
/* Voting Poll */
.poll {height:9px; border:1px #737373 solid;}
.comment-name {font-weight:bold; color:#ddcc88;}
/* This is for the Shoutbox */
.shoutboxname {font-weight:bold; color:#007090;}
.shoutbox {color:#c0c0c0;}
.shoutboxdate {font-size:9px; font-style:italic; color:#efefef;}
.shoutboxhelp {font-size:9px; color:#c0c0c0; text-align:right;}
.small {font-size:10px; font-weight:normal;}
.small2 {font-size:9px; font-weight:normal; color:#1C1C1C;}
.side-small {font-size:9px; font-weight:normal; color:#111111;}
.side-label {background-color:none; font-weight:normal; color:#c0c0c0; padding:2px;}
/* This is for the Photo Gallery */
.gallery {padding: 16px 0px 8px 0px;}
.gallery img {border: 1px solid #000000; filter: none;}
.gallery:hover img {border: 1px solid #000000; filter: none;}
img.activegallery {border: 1px solid #000000; filter: none;}
Kliknij i zaczekaj na załadowanie kodu ... |