Przedszkolak
Postów: 28 Ostrzeżeń: 1
Data rejestracji: 08.02.2009 14:09
Złamana licencja
|
Tak więc. Stawiam własną skórkę, na podstawie innej - Asperon (można powiedzieć, że ulepszam Asperon'a). Problem w tym, że nie mogę zmienić szerokości strony (na 900px). Stosowałem się do tematu:
http://www.php-fu...ost_119744
Lecz nic nie pomogło. Poniżej zamieszczam kod theme.php mojej skórki.
<?php
/*------------------------------------------------------------------
Project Theme 2.0
Polish Version
Na podstawie skórki Asperon
Stworzone przez: PixiProject (http://pixiproject.deviantart.com)
English Version
On the basis of Asperon
Created by PixiProject (http://pixiproject.deviantart.com)
You Can Use And Share the theme as much as you want
but please don't remove copyright of theme
-------------------------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "900px");
define("THEME_BULLET", "·");
function render_page($license=false) {
global $settings, $locale, $main_style, $userdata, $aidlink;
echo "<div class='outer'><div id='top-header'>\n";
if (iMEMBER) {
echo "Witaj <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>".$userdata['user_name']."! </a>";
echo " ; <a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a>\n";
echo "· <a href='".BASEDIR."messages.php'>".$locale['global_121']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "· <a href='".ADMIN."index.php".$aidlink."'>".$locale['global_123']."</a>\n";
}
echo "· <a href='".BASEDIR."setuser.php?logout=yes'>".$locale['global_124']."</a>\n";
} else {
echo "Witaj gosciu ! ";
echo "· <a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a>\n";
echo "· <a href='".BASEDIR."login.php'>Zaloguj</a>\n";
if ($settings['enable_registration']) {
echo "· <a href='".BASEDIR."register.php'>Zarejestruj się</a>\n";
}
}
echo "</div>\n";
echo "<div id='header' class='clearfix'>\n";
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<div style='margin:35px 10px 0 10px'>".showbanners()."</div>\n";
echo "</div>\n";
echo "<div id='sub-header' class='clearfix'>\n";
echo "<div class='flleft'>".showsublinks(" ")."</div>\n";
echo "<div class='flright' style='text-align:right;padding:0.4em'>".showsubdate()."</div>\n";
echo "<div class='clear'></div>\n";
echo "</div>\n";
echo "<div id='container' class='clearfix $main_style'>\n";
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-content'><div id='main-container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
echo "</div>\n";
echo "<div class='clear'></div>\n";
echo "<div id='footer'>\n";
echo "<div class='flleft' style='width:50%'>".(!$license ? showcopyright()."<br />" : "")."\n";
echo "ProjectTheme by <a href='http://pixiproject.deviantart.com'>PixiProject</a></div>\n";
echo "<div class='flright' style='text-align:right;width:-50%x'>".stripslashes($settings['footer'])."</div>\n";
echo "<div class='clear'><br /></div>\n";
echo "<div class='flleft' style='width:50%'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>\n";
echo "<div class='flright' style='text-align:right;width:50%'>".showcounter()."</div>\n";
echo "<div class='clear'></div>\n";
echo "</div></div>\n";
}
function render_news($subject, $news, $info) {
global $locale;
//mintAjax
echo
"<script language=\"javascript\">
function ColorIn(id) {
mint.fx.Color(id, \"backgroundColor\", null, \"eae5e5\", 20, 500); mint.fx.Color(id, \"borderColor\", null, \"000000\", 20, 500);
}
function ColorOut(id) {
mint.fx.Color(id, \"backgroundColor\", null, \"ffffff\", 20, 500);
mint.fx.Color(id, \"borderColor\", null, \"8F9D11\", 20, 500);
}
</script>\n"
;
//DIV on podswietlenia
echo "<div id='news_body_".$info['news_id']."' class='news_body' onmouseover=\"ColorIn(this)\" onmouseout=\"ColorOut(this)\">";
opentable($subject);
echo "<div class='floatfix'>".$news
."</div>
<div class='news-footer'>
"
.newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']). "</div>\n";
closetable();
//DIV off podswietlenia
echo "</div>";
}
function render_article($subject, $article, $info) {
echo "<div class='main-caption'>$subject</div>\n";
echo "<div class='main-body'><!--przed_tresc_art-->".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<!--po_tresc_art--></div>\n";
echo "<div class='news-footer'><!--przed_stopka_art-->\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
}
function opentable($title) {
echo "<div class='main-border'>\n";
echo "<div class='main-caption'>".$title."</div>\n";
echo "<div class='main-body'>\n";
}
function closetable() {
echo "</div>\n</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='side-border'>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='side-caption' style='float:right;margin-top:6px;'>".panelbutton($state,$boxname)."</div>\n";
}
echo "<div class='side-caption'>".$title."</div>\n";
echo "<div class='side-body floatfix'>\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";
echo "<br />";
}
?>
Kliknij i zaczekaj na załadowanie kodu ... |