| theme.php gdzie to zmienic?
 chodzi mi o menu boczne, bo jest troche zbyt szerokie.
 
 <?php/*---------------------------------------------------+
 | THEME ZOSTA? POBRANY ZE STRONY HTTP:SZABLONIKI.COM |
 |----------------------------------------------------|*/
 
 $body_text = "#ffffff";
 $body_bg = "#000000";
 $theme_width = "984";
 $theme_width_l = "195";
 $theme_width_r = "195";
 
 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 width='8' nowrap='nowrap' class='lefttd'></td><td>";
 echo '<table align="center" width="100%" cellpadding="0" cellspacing="0">
 <tr><td class="top" colspan="3"></td></tr>
 <tr>
 <td class="top1"></td>
 <td class="top2"></td>
 <td class="top3"></td>
 </tr>
 </table>';
 echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
 echo "<td><table align='center' width='100%' cellpadding='0' cellspacing='0' class='nav'>
 <tr>
 
 ";
 $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
 if (dbrows($result) != 0) {
 $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 "<td> <a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a></td><td class='sep'></td>";
 } else {
 echo "<td><a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a></td><td class='sep'></td>";
 }
 }
 $i++;
 }
 }
 }
 echo ($i == 0 ? " " : "")."\n";
 echo "<td width='300' 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 cellpadding='0'border='0' cellspacing='0' width='100%'><tr>";
 echo "<td>".stripslashes($settings['footer'])."<br>";
 echo "<table height='22' bgcolor='#252525' style='border: 1px solid #181818' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
 echo "<tr><td width='38%' class='footer' align='left'><div align='left'>";
 if ($license == false) {
 echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
 
 }
 echo "</div></td>";
 
 echo "<td class='footer' width='' align='left'></td>";
 echo "<td class='footer' width='82'><a href='http://szabloniki.com' title='szablony na bloga, szablony za sms'><img src='".THEME."images/butt.jpg'></a></td>";
 echo "<td class='footer' width='18%' 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></td></tr></table>";
 echo "<td width='8' nowrap='nowrap' class='righttd'></td></table>";
 }
 
 function render_news($subject, $news, $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' 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><td height='1' bgcolor='#0F0F0F'></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'>$subject</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'>".($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";
 }
 
 function opentable($title) {
 
 echo "<table width='100%' cellpadding='2' cellspacing='0' class='border2'>";
 echo "<tr><td class='panell'>";
 echo "<div class='title'>$title</div></td></tr></table>";
 echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
 echo "<td class='main-body'>\n";
 }
 
 function closetable() {
 echo "</td></tr></table>\n";
 }
 
 function openside($title) {
 
 echo "<table bgcolor='#383838' border='0' style='border: 3px solid #252525' cellspacing='0' width='$191' cellpadding='2'><tr>";
 echo "<td width='191' class='panel'>";
 echo "<div class='title'>$title</div></td></tr>";
 echo "<tr><td bgcolor='#383838' class='side-body' width='191'>";
 }
 
 function closeside() {
 echo "<tr><td class='panel2' width='100%'>";
 echo "</td></tr></td></tr></table>";
 tablebreak();
 }
 
 function opensidex($title,$open="on") {
 $box_img = ($open=="on" ? "off" : "on");
 
 echo "<table bgcolor='#383838' border='0' style='border: 1px solid #464F54' cellspacing='0' width='159' cellpadding='0'><tr>";
 echo "<td width='159' 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='#383838' class='side-body'width='159'>";
 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();
 }
 
 function tablebreak() {
 echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
 }
 ?>
 Edytowane przez Naiman dnia 23.07.2007 11:50:42
 |