Witam,
mógłby mi ktoś powiedzieć jak zmienić ułożenie strony w skórce Blackdark na to standardowe?
Poniżej plik theme.php:
<?php
/* jQ theme (v1.2) - a theme for PHP-Fusion v7. Theme author: Sveinung {Sveinungs} Skjerseth, http://yafs.net
Released as free software without waranties under the Affero GPLv3, see http://www.fsf.org/licensing/licenses/agpl-3.0.html */
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "");
require_once INCLUDES."theme_functions_include.php";
include LOCALE.LOCALESET."comments.php";
// THEME CONFIG OPTIONS:
$theme_width = "980px"; // Theme widht
$u_ctr = true; // Make U-Ctr panel(s) display on top. Values: true || false
$c_col = true; // True: Three panel layout. False: Two-panel layout
$u_panel = true; // Display a login-panel for Guests when inside /forum/. Values: true || false
$com_panel = false; //Include the built-in comments panel. Values: true || false
$url = FUSION_REQUEST;
$fplaces = array( "/forum/" ); //Hides all side-panels when inside the /forum/ folder
$in_fforum = false;
foreach($fplaces as $place){ if(stristr($url, $place))$in_fforum = true; }
function get_head_tags(){
global $u_ctr;
if ($u_ctr){echo "<style type='text/css'>#main-bg{border-top: 0;}</style>";}
}
function render_page($license=false) {
global $settings, $locale, $aidlink, $theme_width, $in_fforum, $userdata, $p_data, $u_ctr, $c_col, $u_panel, $com_panel;
echo "<table cellpadding='0' cellspacing='0' align='center' id='header' style='background-color: #0F1923; width:100%; padding: 0 0 20px 0; border-bottom:16px solid #2C3033;'>\n<tr>\n<td>\n";
echo "<table id='main-header' style='width:$theme_width'>\n<tr>\n";
echo"<td id='cont'><a href='#content'>".$locale['global_210']."</a></td>\n";
echo "<td id='usermenu' align='right'>
<ul>";
if(iMEMBER){
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<li><a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a></li>
<li><a href='".BASEDIR."messages.php'>".$locale['global_121']."";if ($msg_count){echo" <span id='msgcount'>[$msg_count]</span>";}echo"</a></li>
".(iADMIN ? "<li><a href='".ADMIN."index.php".$aidlink."' >".$locale['global_123']."</a></li>" : "")."
<li><a href='".BASEDIR."setuser.php?logout=yes'>".$locale['global_124']."</a></li>\n";
}else{
echo "<li><a href='".BASEDIR."login.php'>".$locale['global_104']."</a></li>\n
".($settings['enable_registration'] ? "<li><a href='".BASEDIR."register.php'>".$locale['global_107']."</a></li>\n" : "");
} echo "
</ul>
</td>\n";
echo "</tr></table>\n";
echo "<table align='center' style='width:$theme_width'><tr>";
echo "<td>\n";
if ($settings['sitebanner1']) {
eval("?>".stripslashes($settings['sitebanner1'])."\n<?php ");
} else if ($settings['sitebanner']) {
echo "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' /></a>\n";
} else {
echo "<a class='sitename' href='".$settings['siteurl']."'>".$settings['sitename']."</a>\n";
}
echo "</td>\n";
echo "<td class='sub-header'>\n
".showsublinks();
echo "</td>\n</tr></table>";
echo "</td></tr></table>\n";
//Content
echo "<div style='width:$theme_width' class='center'>";
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center' id='main-bg'>\n<tr>\n";
if(defined("ADMIN_PANEL") && (iADMIN)){
echo "<td style='height:20px' colspan='2'></td></tr>\n<tr>\n";
echo "<td valign='top' id='admin'>\n<table cellspacing='0' cellpadding='0' width='180px' style='padding:5px' class='tb-bg'><tr>\n<td>\n".LEFT."\n</td>\n</tr>\n</table>\n</td>\n";
}
if (!defined("ADMIN_PANEL") && $u_ctr) {
echo "<td valign='top' width='100%' colspan='2' id='upper'>\n".U_CENTER."";
echo "<div style='height:10px;'></div></td>";
echo "</tr>\n<tr>\n";
}
echo "<td valign='top' width='100%'>";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg'>";
echo "<tr>\n<td class='left-tc'></td><td></td><td align='right' class='right-tc'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg' id='center-cont'>\n<tr>\n";
echo "<td>";
if (iGUEST && $in_fforum && $u_panel) {
@include THEME."includes/forum_panel_include.php";
}
if (!$u_ctr) { echo "".U_CENTER.CONTENT.L_CENTER."</td>"; }
else { echo "".CONTENT.L_CENTER."</td>"; }
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg'>";
echo "<tr>\n<td class='left-bc'></td><td></td><td align='right' class='right-bc'></td>\n";
echo "</tr>\n</table>\n";
if ($settings['sitebanner2']) {
eval("?><div style='text-align:center;margin:10px;'>".stripslashes($settings['sitebanner2'])."</div>\n<?php ");
}
echo "</td>\n";
if(!defined("ADMIN_PANEL") && (!$in_fforum)){
if (LEFT || RIGHT) {
echo "<td valign='top' align='right' id='right-cont'>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg'>";
echo "<tr>\n<td class='left-tc'></td><td></td><td align='right' class='right-tc'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg' style='color: #333; border: 1px solid #333; border-top:0; border-bottom: 0;'>\n<tr>\n";
if ($c_col){
if (LEFT) { echo "<td id='side-border-left' valign='top'><img src='".THEME."images/s-border.gif' alt='' />".LEFT."</td>"; }
if (RIGHT) { echo "<td id='side-border-right' valign='top'><img src='".THEME."images/s-border.gif' alt='' />".RIGHT."</td>"; }
} else {
if (LEFT || RIGHT) { echo "<td id='side-border-left' valign='top'><img src='".THEME."images/s-border.gif' alt='' />".LEFT."".RIGHT."</td>"; }
}
if (LEFT && RIGHT && $com_panel) { echo "</tr><tr><td colspan='2' style='padding:10px; text-align:left;'>";
@include THEME."includes/comments_panel_include.php";
echo "</td>";
}
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg'>";
echo "<tr>\n<td class='left-bc'></td><td></td><td align='right' class='right-bc'></td>\n";
echo "</tr>\n</table>\n";
echo "</td>";
}
}
echo "</tr>\n</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center' id='main-footer'>\n<tr>\n";
echo "<td class='footer'>\n";
echo stripslashes($settings['footer']);
echo "<br />\n";
if (!$license) { echo showcopyright(); }
echo "<br />".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))." | ".showcounter()." | <a href='http://yafs.net' target='_blank' title='A theme by Sveinung Skjærseth'>jQ Theme</a> | Provided By <a href='http://www.template4all.com' target='_blank' title='Free php-fusion themes'>Template4all.com</a> | <a href='http://www.freethemes4all.com' target='_blank' title='Free php-fusion themes'>Php-fusion Themes</a>";
echo "</td>\n";
echo "<td class='sub-header'>\n
".showsublinks();
echo "</td>\n";
echo "</tr>\n</table>\n";
echo "</div>\n";
}
function render_news($subject, $news, $info) {
echo "<h1 class='ncapmain'>".$subject."</h1>\n";
echo $news."\n";
echo "<p class='nfoot'>".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id'])."</p>";
}
function render_article($subject, $article, $info) {
echo "<h1 class='ncapmain'>".$subject."</h1>\n";
echo "".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br />\n";
echo "<p class='nfoot'>".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id'])."</p>";
}
function opentable($title) {
global $p_data;
if (file_exists(THEME."images/title/".$p_data['panel_filename'].".png")) {
$title = "<img class='p-img' src='".THEME."images/title/".$p_data['panel_filename'].".png' alt='' />$title";
} else {
$title = "$title";
}
echo "<h2>".$title."</h2>\n";
}
function closetable() {
echo "<p class='clear'></p>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<h3>".$title."</h3>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='p-state'>".panelbutton($state, $boxname)."</div>\n";
}
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
echo "<p class='clear'></p>\n";
if ($panel_collapse == true) { echo "</div>\n"; }
}
?>
Edytowane przez Pieka dnia 11.11.2010 14:20:19
Nie pomagam przez GG, PW itp. Tylko tutaj.
|