Witam.
Gdy umieszczam na stronie głównej długi news, lub na forum post strona gwałtownie się poszerza.
Jak ustawić stała szerokość dla tej skórki
Oto plik theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*--------------------------------------------+
| PHP-Fusion 6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Entourage Theme for PHP-Fusion v6+ |
|---------------------------------------------|
| author: Fuzed Themes - Shedrock © 2006/7 |
| web: http://phpfusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// Theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";
// Right Panels off in Forum Mode - Custom coded
//$theme_panels_exclude = array("/forum/");
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='page' align='center' cellpadding='0' cellspacing='0'><tr>
<td class='border_left' rowspan='6'> </td>
<td class='top_nav' colspan='3'> </td>
<td class='border_right' rowspan='6'> </td></tr>
<tr><td style='vertical-align:top;' class='header' colspan='3'>
$header_content</td></tr>
<tr><td id='navigation' class='sub_nav'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='sub_nav' width='100%'>".showsublinks("","navigation")."
</td></tr>
</table>
</td></tr>
<tr><td class='filler_nav' colspan='3'> </td></tr>
<tr><td valign='top'>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'><tr>";
}
function render_footer($license=false) {
global $theme_width, $settings;
echo "</table>
<table style='margin-top:14px;' cellspacing='0' width='100%' cellpadding='0'><tr>
<td colspan='3' class='footer'>";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
<div style='text-align: center;' class='smalltext'><b>Entourage</b> Theme designed by: <a target='_blank' href='http://phpfusion-themes.com'>Fuzed Themes</a> and based on an e107 Template<br><br>
<a href='http://validator.w3.org/check/referer' title='HTML4.01'><img src='".THEME."images/html401.png' alt='XHTML' /></a> <a href='http://jigsaw.w3.org/css-validator/check/referer' title='CSS valid'><img src='".THEME."images/css.png' alt='CSS' /></a></div>
</td></tr>
</table></table>";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table style='margin-top:5px;' width='100%' cellpadding='0' cellspacing='5'><tr>
<td class='panels_news'><img src='".THEME."images/icon_news.gif' alt=''>$subject</td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='default_block news_block'>$news</td></tr><tr><td class='news_poster'>";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info," ·").closeform("N",$info['news_id']);
echo "</td></tr></table>
</td></tr></table><br>\n";
}
function render_article($subject, $article, $info) {
echo "<table style='margin-top:5px;' width='100%' cellpadding='0' cellspacing='5'><tr>
<td class='panels_news'><img src='".THEME."images/icon_news.gif' alt=''> $subject</td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='default_block news_block'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>
<tr><td class='news_poster'>";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
echo "</td></tr></table>
</td></tr></table><br>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='5'><tr>
<td><table style='margin-top:5px;' width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='panels_table'><img src='".THEME."images/icon_tables.gif' alt=''>$title</td>
</tr></table>
</td></tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='table_block'>\n";
}
function closetable() {
echo "</td>
</tr>
</table><br>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='5'><tr>
<td><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='panels'><img src='".THEME."images/icon_panels.gif' alt=''>$title</td>
</tr></table>
</td></tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='5'><tr>
<td><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='panels'><img src='".THEME."images/icon_panels.gif' alt=''> $title</td>
<td style='vertical-align: middle;' class='panels'>".panelbutton($state,$boxname)."</td>
</tr></table>
</td></tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr>
<td height='8'></td>
</tr></table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - Chemikpil 10.10 - 18:26
Edytowane przez Pieka dnia 10.10.2009 14:39:31
|