Edytuj plik theme.php tej skorki, znajdz dwie funkcje (linie ~31-105):
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width='$theme_width' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='header-left'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "<td width='100%' style='background-image:url(".THEME."images/header-main.gif)'></td>";
echo "<td class='header-right'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table bgcolor='#FFFFFF' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td style='padding-left:4px;' align='left'>$header_content</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "</tr></table>\n";
//Nav links begin
echo "<table border='0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td class='nav-left'><img src='".THEME."images/blank.gif' width='10' height='30' alt='' style='display:block'></td>";
echo "<td width='70%' class='nav-main'>";
$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 " <img border='0' vspace='1' src='".THEME."images/divider.gif'>\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 ($i == 0 ? " " : "")."</td>";
echo "<td align='right' width='30%' class='datetime'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td class='nav-right'><img src='".THEME."images/blank.gif' width='10' height='30' alt='' style='display:block'>";
echo "</td></tr></table>";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='15' height='25' alt='' style='display:block'></td>";
echo "<td align='center' width='100%' class='panel-main'><font color='#E9002C'>".$settings['counter']." </font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</td>\n");
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='15' height='25' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."\n";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo " | The Belmont Theme by: <a target='_blank' href='http://phpfusion-themes.com'><img src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a>";
echo "<br><br> ";
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
Kliknij i zaczekaj na załadowanie kodu ...
i zamien na ponizsze:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width='$theme_width' align='center' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='header-left'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "<td width='100%' style='background-image:url(".THEME."images/header-main.gif)'></td>";
echo "<td class='header-right'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table bgcolor='#FFFFFF' width='$theme_width' align='center' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td style='padding-left:4px;' align='left'>$header_content</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='$theme_width' cellpadding='0' align='center' cellspacing='0'><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "</tr></table>\n";
//Nav links begin
echo "<table border='0' cellspacing='0' width='$theme_width' align='center' cellpadding='0'><tr>";
echo "<td class='nav-left'><img src='".THEME."images/blank.gif' width='10' height='30' alt='' style='display:block'></td>";
echo "<td width='70%' class='nav-main'>";
$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 " <img border='0' vspace='1' src='".THEME."images/divider.gif'>\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 ($i == 0 ? " " : "")."</td>";
echo "<td align='right' width='30%' class='datetime'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td class='nav-right'><img src='".THEME."images/blank.gif' width='10' height='30' alt='' style='display:block'>";
echo "</td></tr></table>";
echo "<table width='$theme_width' align='center' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table width='$theme_width' align='center' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='15' height='25' alt='' style='display:block'></td>";
echo "<td align='center' width='100%' class='panel-main'><font color='#E9002C'>".$settings['counter']." </font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</td>\n");
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='15' height='25' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='$theme_width' align='center' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' height='1' alt='' style='display:block'></td>";
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."\n";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo " | The Belmont Theme by: <a target='_blank' href='http://phpfusion-themes.com'><img src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a>";
echo "<br><br> ";
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='21' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='15' height='21' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
Kliknij i zaczekaj na załadowanie kodu ...
Teraz mozesz zmieniac szerokosc calej strony korzystajac z ustawien, ktore wymieniles.
Edytowane przez Pieka dnia 03.01.2009 20:47:10
Jestem jaki jestem
|