Witam.
Mam mały problem z moim theme. Jeśli stronę przeglądam w Firefox'ie wszystko wygląda tak jak ma być, natomiast w Ie oraz Operze wszystko jest rozwalone ;/.
IE
Opera
Firefox
theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "832px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
function render_page($license=false) {
global $settings, $main_style;
echo "<div class='bg'>\n";
echo "<div class='center'>\n";
echo "<div style='width:".THEME_WIDTH.";' class='$main_style'>\n";
//Header
echo "<div class='powitanie'>".stripslashes($settings['siteintro'])."</div>\n";
echo "<div class='full-header'>\n".showbanners()."\n</div>\n";
echo "<div class='rotfl'></div>\n";
echo "<div class=''>\n";
echo "</div>\n";
//Content
if (LEFT) { echo "<div id='side-border-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-border-right'>".RIGHT."</div>\n"; }
echo "<div id='main-bg'><div id='container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
//Footer
echo "<div class='white-header'><br/>\n";
echo "...................................................................................................................................................................................................................<br /><br />\n";
if (iADMIN || iMEMBER && $userdata['user_id'] == 1) {
echo " ".showcounter()." \n";
}
echo "<div> ".stripslashes($settings['footer'])."</div><br />\n";
echo "</div>\n</div>\n</div>\n</div>\n";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info);
echo "</div>\n";
echo "<div class='main-body'>". $news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
}
function opentable($title) {
//echo "<div class='crapmain'>eMS</div>\n";
echo "<div class='capmain'>$title</div>\n";
echo "<div class='main-body'>\n";
}
function closetable() {
echo "</div>\n";
}
// echo "<div class='news-fotter'>\n";
// echo newsposter($info,"·");
// echo "</div>\n";
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='scapmain'>".panelbutton($state,$boxname)."</div>\n";
}
echo "<div class='scapmain'>".$title."</div>\n";
echo "<div 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 "</div>\n</div>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
edit: Już sobie poradziłem, temat do zamkniecia ;]
PW od moderatora:
- Brak Stopki! - hoopak 11.02 - 17:43
- Zmiana nazwy tematu - hoopak 11.02 - 17:43
- Przeniesienie tematu - Pieka 11.02 - 17:45
Edytowane przez Inkv dnia 12.02.2009 15:00:01
|