Witam mam takie pytanie kto by mi przerobil szablon chodzi mi o usunięcie całej prawej kolumny i pod logiem maja byc przyciski menu takie zeby sie zmieniało
http://pedroo.ovh...index.html
Oto mój kod theme
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#252A2D";
$theme_width = "900";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='100%' height='24' class='top'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo " \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 "</td></tr></table>";
echo "<table width='100%' border='0' height='136' cellspacing='0' cellpadding='0' background='".THEME."images/banner.jpg'><tr><TD></td>";
echo "</tr></table>";
// End banner code
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='0' bgcolor='#212121' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
/*stopka*/
echo "<table height='22' bgcolor='#212121' cellSpacing='0' cellPadding='2' width='100%' border='0' class='stopka'>";
echo "<tr><td width='30%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "";
}
echo "</div></td>";
echo "<td class='footer' width='45%' align='center'>".stripslashes($settings['footer'])."";
echo "</td>";
echo "<td class='footer' width='25%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </td></tr></table></td>";
echo "</tr></table>";
echo "<td nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panell'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' ><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 class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panell'><div class='title'>$subject</div></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><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='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panell'>";
echo "<div class='title2'>$title</div></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#000000' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<div class='title'>$title</div></td></tr>";
echo "<tr><td 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 bgcolor='#212121' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title";
echo "</td></tr>";
echo "<tr><td bgcolor='#212121' class='side-body'width='100%'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
|