Witam,
nie mam pomysłu na wyśrodkowanie logo w skórce AllHallow. Użyłem pomysłu nie @bartek124 przez dodatkowe strony i nie działa:(. Podrzucam plik theme.php. Za pomoc dziękuję.:)
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='->' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $locale, $main_style, $settings, $userdata;
echo " <div id='full-page'><div id='edgeL'></div><div id='edgeR'></div><div id='content-page'>
<table cellpadding='0' cellspacing='0' border='0' width='80%' class='center'><tr><td>
<table cellpadding='0' cellspacing='0' border='0' width='80%' class='spacer center'><tr><td id='logo'><a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' style='border: 0;' /></a></td></tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='100%' class='spacer'><tr>
<td id='navi_L'></td><td><div id='navi'>".showsublinks(" ")."\n";
if (iMEMBER){
echo "<div class='floatR'>".$locale['global_035']." ".$userdata['user_name']."</div>\n";
}else{
echo "<div class='floatR'><ul><li><a href='".BASEDIR."login.php'>".$locale['global_104']."</a></li>
".($settings['enable_registration'] ? "<li><a href='".BASEDIR."register.php'>".$locale['global_107']."</a></li>\n" : "");
echo"</ul></div>\n";
}
echo "</div></td><td id='navi_R'></td></tr></table>
<table cellpadding='0' cellspacing='0' width='100%' class='main-page $main_style'><tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo"<td class='main-body' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>\n";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo"</tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='100%' id='footer'><tr><td><div>
".(!$license ? "<div class='floatL' style='width: 50%'>".showcopyright()."<br /> Theme edited by arsenal9407</div>" : "")."
<div class='ffloatR'>".stripslashes($settings['footer'])."</div></div>
</td></tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='100%'><tr><td><div>".stripslashes($settings['sitebanner2'])."</div></td></tr></table>
<table cellpadding='0' cellspacing='0' border='0' width='100%' id='subfooter'><tr>
<td><div class=''>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>
<div class=''>".showcounter()."</div>
</td></tr></table>
</td></tr></table></div></div>\n";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo "<div class='floatfix'>".$news."</div>
".newsposter($info," ·").
"</div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='news-footer'>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>\n";
closetable();
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='ttl'></td>
<td class='tt'>".$title."</td>
<td class='ttr'></td>
</tr></table>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='tsl'></td><td class='t-body'>\n";
}
function closetable() {
echo "</td><td class='tsr'></td></tr></table>
<table cellpadding='0' cellspacing='0' width='100%' class='spacer'><tr>
<td class='t-bl'></td>
<td class='t-b'> </td>
<td class='t-br'></td>
</tr></table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='ttl'></td>
<td class='tt'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='ttr'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='ttr'></td>
</tr></table>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='tsl'></td><td class='t-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td><td class='tsr'></td></tr></table>
<table cellpadding='0' cellspacing='0' width='100%' class='spacer'><tr>
<td class='t-bl'></td>
<td class='t-b'> </td>
<td class='t-br'></td>
</tr></table>\n";
}
?>
Edytowane przez Pieka dnia 23.10.2009 21:34:19
|