Zmniejszyłam sobie theme, wyśrodkowałam, ale nie wiem, jak się pozbyć daty z menu? Struktura thema jest taka, że linki w menu nawigacyjnym i data są w jednym wierszu, tylko 2 kolumnach. Chciałabym połączyć te kolumny w 1 wiersz, i żeby tam zostało tylko menu nawigacyjne, wyśrodkowane (z tym dam radę). Data mi natomiast niepotrzebna. Który kawałek kodu trzeba zmienić?
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| The DAJ_Green Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#3E5C23";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$userdata;
echo "<table width='85%' cellspacing='0' cellpadding='0' border='0' align='center'>"; //wysrodkowanie calosci
echo "<tr><td valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td height='14' width='25' nowrap='nowrap' class='ul'><span class='vsmall'> </span></td>";
echo "<td width='100%' colspan='2' class='uc'><span class='vsmall'> </span></td>";
echo "<td width='25' nowrap='nowrap' class='ur'><span class='vsmall'> </span></td></tr>";
echo "<tr><td class='headl'><span class='vsmall'> </span></td>";
echo "<td align='left' class='row3' colspan='2'>";
echo "<div align='center'><a href='index.php'><img src='".THEME."images/header.jpg' border='0' title='".$settings[sitename]."'/></a></div></td>";//wysrodkowanie banera
echo "<td class='headr'><span class='vsmall'> </span></td></tr>";
echo "<tr valign='bottom'><td rowspan='3' class='tul'><span class='vsmall'> </span></td>";
echo "<td height='30' class='tuc' align='center'>";//wysrodkowanie linkow w panelu nawigacyjnym-menu poziomym
$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 " <font color='FFFFFF'>•</font>\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='navbar'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='navbar'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>";
echo "<td align='right' nowrap='nowrap' class='tuc'><font class='navbar'>".ucwords(showdate($settings['subheaderdate'], time()))."</font></td>";//ustawienie daty
echo "<td rowspan='3' class='tur'><span class='vsmall'> </span></td></tr>";
echo "<tr><td height='10' colspan='2' class='row5'><img src='".THEME."images/spacer.gif' border='0' height='1' width='1'></td></tr>";
echo "<tr valign='top'><td align='center' height='30' nowrap='nowrap' class='tlc'><span class='navbar'>";
echo "<td nowrap='nowrap' align='right' class='tlc'></td></tr>";
echo "<tr><td class='left'><span class='vsmall'> </span></td>";
echo "<td colspan='2' class='row2'><br />";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr valign='top'><td valign='top' width='1'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></table></td>";
echo "<td class='right'><span class='vsmall'></span></td></tr>";
echo "<tr><td class='left'><span class='vsmall'> </span></td>";
echo "<td colspan='2' class='row2'>";
echo "<div align='center'>".stripslashes($settings['footer'])."</div>";
echo "<div align='center'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</div><br>\n");
echo "<div align='center'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a> v".$settings['version']." © 2003-2005";
}
echo " | Original <b>DAJ Green</b> Theme by: <a target='_blank' href='http://www.dumbassjones.com/'>Dustin Baccetti</a> : Ported for PHP-Fusion by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a></div></td>";
echo "<td class='right'><span class='vsmall'></span></td></tr>";
echo "<tr><td height='27' class='ll'><span class='vsmall'></span></td>";
echo "<td colspan='2' class='lc'><span class='vsmall'></span></td>";
echo "<td class='lr'><span class='vsmall'></span></td></tr></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='panel-cellpic' width='100%' height='25' align='center'>$subject</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#F5F5F5'><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#576E52'><table width='100%' border='0' cellspacing='1' cellpadding='1'>";
echo "<tr><td bgcolor='#FFFFFF'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td class='main-body'>$news</td></tr></table>";
echo "<tr><td height='30' class='news-footer'><div align='center'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
echo "<br />";
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 "</div>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "</td></tr></table></td></tr></td></tr></table></td></tr>";
echo "</table></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='panel-cellpic' width='100%' height='25' align='center'>$subject</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#F5F5F5'><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#576E52'><table width='100%' border='0' cellspacing='1' cellpadding='1'>";
echo "<tr><td bgcolor='#FFFFFF'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table>";
echo "<tr><td height='30' class='news-footer'><div align='center'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])." ";
echo "<br />";
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 "</div>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "</td></tr></table></td></tr></td></tr></table></td></tr>";
echo "</table></td></tr></table></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'><tr>";
echo "<td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='panel-cellpic' width='100%' align='center'>$title</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#576E52'><table width='100%' border='0' cellspacing='1' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td class='main-body'>";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
echo "<table border='0' cellspacing='0' cellpadding='0' width='100%'>";
echo "</table></td></tr></table>\n";
}
function openside($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'><tr>";
echo "<td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td align='center' class='panel-cellpic' width='100%'>$title</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#576E52'><table width='100%' border='0' cellspacing='1' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td class='side-body'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
echo "<table border='0' cellspacing='0' cellpadding='0' width='100%'>";
echo "</table></td></tr></table>\n";
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'><tr>";
echo "<td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td align='center' class='panel-cellpic' width='100%'>";
echo "<img valign='middle' align='right'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#576E52'><table width='100%' border='0' cellspacing='1' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td class='side-body'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
echo "<table border='0' cellspacing='0' cellpadding='0' width='100%'>";
echo "</table></td></tr></table>\n";
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - Pieka 18.11 - 17:52
Edytowane przez Pieka dnia 18.11.2009 17:52:08
|