Parašė Paul McCartney· 2008 Vas. 8 13:02:02
#1
Laba diena.
Taigi šiandien norėjau paklausti kaip iš theme`os išimti headerį,kad jo neliktų.
Štai theme.php failas:
<?php
/*************************************\
| Copyright by eXtreme Themes |
| Coded by RaFiK (http://rafik.extreme-fusion.pl) |
| Design by http://projektowanie.netarteria.eu |
**************************************/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// Ustawienia
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "896";
$theme_width_l = "228";
$theme_width_r = "228";
// Wy³aczanie prawych paneli na forum
$theme_panels_exclude = array("./forum/");
function render_header($header_content) {
global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix ,$loginerror;
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%' height='100%'>
<tr>
<td style='background: #a66956 url(".THEME."images/bok_l.jpg) repeat-y; background-position: right;' width='50%' height='100%'></td>
<td width='896' height='100%'>
<table width='896' height='260' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='263' height='153' style='background: url(".THEME."images/top_01.jpg);'>";
include THEME."panel_usera.php";
echo "</td>
<td width='633' height='198' rowspan='2' style='background: url(".THEME."images/top.jpg);'>
<div align='right' id='clockbar' style='padding: 0px 10px 180px 0px'>
<div id='Clock'></div><script type='text/javascript'>
<!--
var DayNam = new Array(
'niedzielê','poniedzia³ek','wtorek','¶rodê','czwartek','pi±tek','sobotê');
var MnthNam = new Array(
'Stycznia','Lutego','Marca','Kwietnia','Maja','Czerwca','Lipca','Sierpnia','Wrze¶nia','Pa¼dziernika','Listopada','Grudnia');
//-->
</script>
<script type='text/javascript' src='".THEME."clock/clock.js'></script></div></td>
</tr>
<tr>
<td width='263' height='45'><img src='".THEME."images/top_03.jpg' width='263' height='45' alt='' ></td>
</tr>
<tr>
<td width='896' height='27' colspan='2' style='background: url(".THEME."images/top_04.jpg);'><div class='nav'>".showsublinks("<img src='".THEME."images/blank.gif' width='35' height='1'>","navigation")."</div></td>
</tr>
<tr>
<td width='896' height='35' colspan='2'><img src='".THEME."images/top_05.jpg' width='896' height='35' alt='' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>";
}
function render_footer($license=false) {
global $theme_width, $settings;
echo " </tr>
</table>
<table width='896' height='64' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td style='background: url(".THEME."images/tlo.jpg) repeat-y; width='896' height='20'></td>
</tr>
<tr>
<td width='896' height='32' style='background: url(".THEME."images/stopka_01.jpg)'>
<div style='float: left; width: 300px; margin-left:30px; color: #ffffff'>wykonanie: <a href='http://rafik.extreme-fusion.pl' title='RaFiK Blog' target='_blank'><font color='white'>rafik</font></a> | grafika: <a href='http://projektowanie.netarteria.eu' title='Projektowanie Stron' target='_blank'><font color='white'>projektowanie.netarteria.eu</font></a></div>
<div style='float: right; width: 200px; margin-right:30px; text-align:right; color: #ffffff'>engine: <a href='http://extreme-fusion.pl' title='eXtreme-Fusion' target='_blank'><font color='white'>extreme-fusion</font></a></div></td>
</tr>
<tr>
<td width='896' height='32' style='background: url(".THEME."images/stopka_02.jpg)'><center>tu moze byæ twój link // tu moze byæ twój link // tu moze byæ twój link // tu moze byæ twój link</center></td>
</tr>
</table>
</td>
<td style='background: #a66956 url(".THEME."images/bok_p.jpg) repeat-y; background-position: left;' width='50%' height='100%'></td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td height='10'></td>
</tr>
<tr>
<td width='100%' style='text-align:center'><b>$subject</b></td>
</tr>
<tr>
<td align='center' style='text-align:center'>Parase <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> | <a href='news.php?readmore=".$info['news_id']."'>Komentaru (".$info['news_comments'].")</a></td>
</tr>
<tr>
<td height='3'></td>
</tr>
<tr>
<td style='padding: 0px 10px 0px 10px'><hr></td>
</tr>
<tr>
<td height='3'></td>
</tr>
<tr>
<td style='text-align:justify; padding: 0px 10px 0px 10px'>$news</td>
</tr>
<tr>
<td height='30'></td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
$subject = strip_tags($subject);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td height='10'></td>
</tr>
<tr>
<td width='100%' style='padding-left: 25px'>$subject</td>
</tr>
<tr>
<td height='3'></td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td height='3'></td>
</tr>
<tr>
<td style='text-align:justify; padding: 0px 10px 0px 10px'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td align='center' class='main-body'><hr>";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>";
}
function opentable($title) {
$title = strtolower($title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='100%' style='padding-left: 25px'>$title</td>
</tr>
<tr>
<td height='3'></td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td height='3'></td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>";
}
function openside($title) {
global $p_data;
$title = strtolower($title);
if ($p_data['panel_side'] == 4) {
echo "<table width='228' cellpadding='0' cellspacing='0'>
<tr>
<td width='228' height='40' style='background-image: url(".THEME."images/panel_pg.jpg); padding: 15px 10px 0px 20px' colspan='2'>$title</td>
</tr>
<tr>
<td align='right' width='10' style='background-image: url(".THEME."images/panel_pb.jpg)'></td>
<td width='217' style='padding: 10px 10px 0px 25px'>";
}else{
echo "<table width='228' cellpadding='0' cellspacing='0'>
<tr>
<td width='228' height='40' style='background-image: url(".THEME."images/panel_lg.jpg); padding: 15px 10px 0px 15px' colspan='2'>$title</td>
</tr>
<tr>
<td width='217' style='padding: 10px 7px 0px 20px'>";
}
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 4) {
echo "</td>
</tr>
</table>\n";
}else{
echo "</td>
<td align='left' width='10' style='background-image: url(".THEME."images/panel_lb.jpg)'></td>
</tr>
</table>\n";
}
}
function opensidex($title,$state="on") {
global $p_data;
$boxname = str_replace(" ", "", $title);
$title = strtolower($title);
if ($p_data['panel_side'] == 4) {
echo "<table width='228' cellpadding='0' cellspacing='0'>
<tr>
<td width='228' height='40' style='background-image: url(".THEME."images/panel_pg.jpg); padding: 15px 10px 0px 20px' colspan='2'>
<div style='float: left' width='90%'>$title</div>
<div style='float: right' width='5%'>".panelbutton($state,$boxname)."</div></td>
</tr>
<tr>
<td align='right' width='10' style='background-image: url(".THEME."images/panel_pb.jpg)'></td>
<td width='217' style='padding: 10px 10px 0px 25px'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">";
}else{
echo "<table width='228' cellpadding='0' cellspacing='0'>
<tr>
<td width='228' height='40' style='background-image: url(".THEME."images/panel_lg.jpg); padding: 15px 10px 0px 15px' colspan='2'><div style='float: left' width='90%'>$title</div>
<div style='float: right' width='5%'>".panelbutton($state,$boxname)."</div></td>
</tr>
<tr>
<td width='217' style='padding: 10px 7px 0px 20px'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">";
}
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 4) {
echo "</div></td>
</tr>
</table>";
}else{
echo "</div></td>
<td align='left' width='10' style='background-image: url(".THEME."images/panel_lb.jpg)'></td>
</tr>
</table>";
}
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='8'></td>
</tr>
</table>";
}
?>
Redagavo Paul McCartney· 2008 Vas. 8 13:02:40
Parašė Giedrunskis· 2008 Vas. 8 13:02:59
#2
arba sita istrynk
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%' height='100%'>
<tr>
<td style='background: #a66956 url(".THEME."images/bok_l.jpg) repeat-y; background-position: right;' width='50%' height='100%'></td>
<td width='896' height='100%'>
<table width='896' height='260' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='263' height='153' style='background: url(".THEME."images/top_01.jpg);'>";
include THEME."panel_usera.php";
echo "</td>
<td width='633' height='198' rowspan='2' style='background: url(".THEME."images/top.jpg);'>
<div align='right' id='clockbar' style='padding: 0px 10px 180px 0px'>
<div id='Clock'></div><script type='text/javascript'>
<!--
var DayNam = new Array(
'niedzielê','poniedzia³ek','wtorek','¶rodê','czwartek','pi±tek','sobotê');
var MnthNam = new Array(
'Stycznia','Lutego','Marca','Kwietnia','Maja','Czerwca','Lipca','Sierpnia','Wrze¶nia','Pa¼dziernika','Listopada','Grudnia');
//-->
</script>
<script type='text/javascript' src='".THEME."clock/clock.js'></script></div></td>
</tr>
<tr>
<td width='263' height='45'><img src='".THEME."images/top_03.jpg' width='263' height='45' alt='' ></td>
</tr>
<tr>
<td width='896' height='27' colspan='2' style='background: url(".THEME."images/top_04.jpg);'><div class='nav'>".showsublinks("<img src='".THEME."images/blank.gif' width='35' height='1'>","navigation")."</div></td>
</tr>
<tr>
<td width='896' height='35' colspan='2'><img src='".THEME."images/top_05.jpg' width='896' height='35' alt='' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>";
}
function render_footer($license=false) {
global $theme_width, $settings;
echo " </tr>
</table>
<table width='896' height='64' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td style='background: url(".THEME."images/tlo.jpg) repeat-y; width='896' height='20'></td>
</tr>
<tr>
<td width='896' height='32' style='background: url(".THEME."images/stopka_01.jpg)'>
<div style='float: left; width: 300px; margin-left:30px; color: #ffffff'>wykonanie: <a href='http://rafik.extreme-fusion.pl' title='RaFiK Blog' target='_blank'><font color='white'>rafik</font></a> | grafika: <a href='http://projektowanie.netarteria.eu' title='Projektowanie Stron' target='_blank'><font color='white'>projektowanie.netarteria.eu</font></a></div>
<div style='float: right; width: 200px; margin-right:30px; text-align:right; color: #ffffff'>engine: <a href='http://extreme-fusion.pl' title='eXtreme-Fusion' target='_blank'><font color='white'>extreme-fusion</font></a></div></td>
</tr>
<tr>
<td width='896' height='32' style='background: url(".THEME."images/stopka_02.jpg)'><center>tu moze byæ twój link // tu moze byæ twój link // tu moze byæ twój link // tu moze byæ twój link</center></td>
</tr>
</table>
</td>
<td style='background: #a66956 url(".THEME."images/bok_p.jpg) repeat-y; background-position: left;' width='50%' height='100%'></td>
</tr>
</table>";
arba sita
function render_header($header_content) {
global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix ,$loginerror;
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%' height='100%'>
<tr>
<td style='background: #a66956 url(".THEME."images/bok_l.jpg) repeat-y; background-position: right;' width='50%' height='100%'></td>
<td width='896' height='100%'>
<table width='896' height='260' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='263' height='153' style='background: url(".THEME."images/top_01.jpg);'>";
include THEME."panel_usera.php";
echo "</td>
<td width='633' height='198' rowspan='2' style='background: url(".THEME."images/top.jpg);'>
<div align='right' id='clockbar' style='padding: 0px 10px 180px 0px'>
<div id='Clock'></div><script type='text/javascript'>
<!--
var DayNam = new Array(
'niedzielê','poniedzia³ek','wtorek','¶rodê','czwartek','pi±tek','sobotê');
var MnthNam = new Array(
'Stycznia','Lutego','Marca','Kwietnia','Maja','Czerwca','Lipca','Sierpnia','Wrze¶nia','Pa¼dziernika','Listopada','Grudnia');
//-->
</script>
<script type='text/javascript' src='".THEME."clock/clock.js'></script></div></td>
</tr>
<tr>
<td width='263' height='45'><img src='".THEME."images/top_03.jpg' width='263' height='45' alt='' ></td>
</tr>
<tr>
<td width='896' height='27' colspan='2' style='background: url(".THEME."images/top_04.jpg);'><div class='nav'>".showsublinks("<img src='".THEME."images/blank.gif' width='35' height='1'>","navigation")."</div></td>
</tr>
<tr>
<td width='896' height='35' colspan='2'><img src='".THEME."images/top_05.jpg' width='896' height='35' alt='' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>";
}
Redagavo Giedrunskis· 2008 Vas. 8 13:02:23
Parašė Giedrunskis· 2008 Vas. 8 13:02:15
#6
prasiau pilnai, o ne pati theme.php as isimesiu i serva ir pazesiu, kad be klaidu butu :) nes kitaip nemoku ;)
Redagavo Giedrunskis· 2008 Vas. 8 13:02:56
Parašė Mantux94· 2008 Vas. 8 15:02:59
#7
taigi pilnai ir prisegta
Ruomis313 prisegtu failu:
theme_12.rar
Redaguotas Ruomis313 2008-02-08 13:34
Redagavo Mantux94· 2008 Vas. 8 15:02:24