Siema, gotowy kod theme.php.
Co zrobiłem:
w lini 39 znajduje się linia:
echo "<td class='full-header' width='".THEME_WIDTH."'><br><IMG SRC='http://mods-xbmc.pl/themes/mods-xbmc_new/images/header.png'></td>\n";
wystarczyło dodać do niej:
align='center'
Gotowiec:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "1150");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' border='0'/>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="·",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
//Header
echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>\n<tr>\n";
echo "<td class='full-header' align='center'><br><IMG SRC='http://mods-xbmc.pl/themes/mods-xbmc_new/images/header.png'></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='sub-header'>\n";
echo "<table cellspacing='0' cellpadding='0' border='0' style='padding-top: 3px;' width='auto' align='center'>\n<tr>\n <td>\n";
include INFUSIONS."deluxe_dropdown_menu/menu.php";
echo"</td>\n</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='1150' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top' width='180'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top' width='160'>".RIGHT."</td>"; }
echo "</tr></table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align=''>\n<tr>\n";
echo "<td height='29' background='".THEME."images/fbc.jpg' align='center' class='footer' style='width: 70%;'>\n";
echo stripslashes($settings['footer']);
echo "<br>
<script type='text/javascript'>
(function() {
window.domain = 'mods-xbmc.pl';
function async_load(){
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
var p = ('https:' == document.location.protocol ? 'https://' : 'http://');
s.src = p+'www.webutation.net/js/load_badge.js';
var x = document.getElementById('webutation-link'); x.parentNode.insertBefore(s, x); }
if (window.attachEvent) window.attachEvent('onload', async_load); else window.addEventListener('load', async_load, false);
})();
</script>
<a id='webutation-link' href='http://www.webutation.net/go/review/mods-xbmc.pl'>mods-xbmc.pl Webutation</a><br>
theme by Devils | modified by:<br><li>graphics - <A HREF='/profile.php?lookup=10'><FONT COLOR='#0080C0'>maly95</font>, <A HREF='/profile.php?lookup=651'><FONT COLOR='#0080C0'>moras86</font></A></A><li>code - <A HREF='/profile.php?lookup=1'><FONT COLOR='#0080C0'>micnor</font></A><br>";
if (!$license) { echo showcopyright()."<br /><br>\n"; }
echo "<b>".showcounter()."</b></font></td>\n";
echo "<td height='' valign='top' background='".THEME."images/fbd.jpg' align='center' style='width: 30%;'>\n";
echo "<div bgcolor='#000000'><B><I><FONT COLOR='#ffffff' SIZE='2'><B><I>Współpraca:</B></I></FONT></B></I></FONT></div>\n";
echo "<br>\n";
echo "<div><A HREF='http://sd-xbmc.org' TARGET='_blank'><IMG SRC='http://hosting.mods-xbmc.pl/upload_file/265810_sd-xbmc_link partnerski.png' ALT='współpraca' BORDER='0'></A></div>\n";
echo "<br>\n";
echo "<div bgcolor='#000000'><B><I><FONT COLOR='#ffffff' SIZE='2'><B><I>Jestemy poł±czeni z baz±:</B></I></FONT></B></I></FONT></div>\n";
echo "<br>\n";
echo "<div><A HREF='http://sblam.com/' TARGET='_blank'><IMG SRC='http://hosting.mods-xbmc.pl/upload_file/987012_sblamlogo.png' ALT='współpraca' BORDER='0' WIDTH='120' HEIGHT='60'></A></div>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n</td>\n</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td background='".THEME."images/sb.jpg' height='26' class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n<br><hr><br>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'>\n<tr>\n";
echo "<td background='".THEME."images/sb.jpg' height='26' class='capmain'> ".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain' background='".THEME."images/orta.jpg' height='26'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
Pozdrawiam. |