witam. właśnie jestem w trakcie przystosowywania swojego stylu z wordpress'a do fusiona. mam jednak problem z zawartościa strony (kolumna newsów i paneli bocznych). chciałbym aby znalazła się ona w tabeli o klasie zawartość. nie wiem jednak jak to zrobić. oto kod pliku theme.php. mam jeszcze jedno pytanie. znalazłem w pliku klasę odpowiedzialną za definiowanie wyglądu nagłówków paneli bocznych (tytułów) jednak nie ma jej w pliku css... gdzie mogę ją znaleźć?
<?
$body_text = "#474747";
$body_bg = "#262626";
$theme_width = "900";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='header' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='http://dj-team.pl/wp-content/themes/djteam/images/logo.png' alt='logo'></td>
</tr></table>
<table class='menu'>
<tr>
<td>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$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>";
}
}
if ($i != dbrows($result)) { echo " "; } else { echo "\n"; } $i++;
}
}
echo "</td>
</tr>
</table>";
echo "<table width='$theme_width'><tr><td><td>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr></table>";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' class='footer' width='100%'><tr><td class='footer' align='center'>".stripslashes($settings['footer'])."</td></tr><tr><td class='footer' align='center'>";
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'
style='vertical-align:middle;border:0px;'></a> v".$settings['version']."
© 2003-2005";
}
echo "</td></tr><tr>
<td class='footer' align='center'>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td width='100%' class='side_body'>$subject</td></tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div><br>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td></tr>
<tr>
<td align='right' class='infobar2'>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo" <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b>
".$info['news_reads'].$locale['044']." <b>-</b>
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>
</td></tr></table></div></td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'>
</td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td width='100%' class='panel-main'>$subject</td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
</tr>
<tr>
<td align='right' class='infobar2'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b>
".$info['article_reads'].$locale['044']." <b>-</b>
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>
</td></tr></table></div></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='100%' class='panel-main'>$title</td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td width='100%' class='panel-main'>$title</td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr></table>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='panel-main'>$title<img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>
\n";
}
function tablebreak() {
echo "\n";
}
?>
z góry dziękuję za pomoc.
proszę o pomoc... bardzo zależy mi na czasie... z góry dzięki
Edytowane przez Dalton dnia 24.02.2007 14:54:20
|