Przedszkolak
Postów: 37 Pomógł: 1
Data rejestracji: 28.08.2009 15:07
|
W jQ Theme chciałbym przenieść miejsce wyświetlania się górnych paneli zgodnie z załączonym obrazkiem
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>";
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"; }
}
?>
Przeszukiwałem forum, jednak nie znalazłem żadnej dobrej podpowiedzi.
Edytowane przez Pieka dnia 18.12.2009 12:46:48
|
Przedszkolak
Postów: 37 Pomógł: 1
Data rejestracji: 28.08.2009 15:07
|
Theme.php cały wstawiłem
style.css
a {
color: #0F67A1;
text-decoration: none;
}
a:hover {
color: #0F67A1;
text-decoration: underline;
}
a.side {
color: #0F67A1;
text-decoration: none;
}
a:hover.side {
color: #0F67A1;
text-decoration: underline;
}
a.sitename {
font: bold 22px Georgia, "Times New Roman", Times, serif;
color: #0F67A1;
}
a:hover.sitename {
font: bold 22px Georgia, "Times New Roman", Times, serif;
color: #5DB0E6;
text-decoration: none;
}
.sub-header{
width: 1%;
white-space: nowrap;
font-weight: bold;
font-size: 13px;
padding: 0 10px 0 0;
}
.sub-header ul {
border: 2px solid #555;
width: 100%;
background: url(images/sub-header.gif) center center repeat-x;
padding: 5px 0;
margin: 0;
text-align: right;
}
.sub-header ul:hover{
border: 2px solid #0F67A1;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li a{
color: #DDD;
padding: 5px 5px 5px 0;
margin: 0;
text-decoration: none;
border-right: 1px solid #555;
}
.sub-header ul li a:hover, .sub-header .active a{
color: #5DB0E6;
}
/* Search box */
.searchbox {
font : 10px Verdana, Arial, Helvetica, sans-serif;
height: 16px;
width:134px;
color : #FFF;
background: #000 url(images/search.png) no-repeat right top;
border: 1px solid #0F67A1;
padding: 1px 20px 1px 1px;
margin: 10px 20px 0 0;
}
.searchbox:focus, .searchbox:hover {
font : 10px Verdana, Arial, Helvetica, sans-serif;
height: 16px;
width:134px;
border: 1px solid #727D85;
background: #2C3033 url(images/search.png) no-repeat right top;
padding: 1px 20px 1px 1px;
margin: 10px 20px 0 0;
}
#msgcount { font-weight: bold; color: #0F67A1;}
#cont { margin:5px; float:left; width:1%; white-space:nowrap;}
#main-header {
margin: auto;
}
#header {
width: 100%;
padding: 0;
margin: 0;
}
#main-body {width: 100%; margin:auto;}
/* This is for U-Ctr panels */
#upper {
color:#FFF;
padding: 5px 0;
}
#upper a {
color:#5C82E6;
}
#main-footer {
clear: both;
width: 100%;
font: bold 22px Georgia, "Times New Roman", Times, serif;
color: #DDD;
clear:both;
padding: 20px;
border-top: 1px solid #000;
border-bottom: 2px solid #000;
background: #141E28 url(images/footer-bg.jpg) repeat-x bottom;
}
.footer {
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #DDD;
}
.footer a{
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #5DB0E6;
}
#main-bg {
margin: auto;
color: #FFF;
background-color: #11151A;
border: 20px solid #11151A;
}
#side-border-left {
width: 180px;
text-align: left;
color: #333;
background-color: #FFF;
padding: 0 10px;
}
#side-border-right {
width: 180px;
text-align: left;
color: #333;
background-color: #FFF;
padding: 0 10px;
border-left: 1px dotted #DDD;
}
#right-cont {
border-left: 10px solid #11151A;
}
#center-cont {
color: #333; padding:5px 10px 10px 10px; border: 1px solid #333; border-top:0; border-bottom: 0;
}
#admin {
border-right: 10px solid #11151A;
}
body {
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #FFF;
background: #2A3139 url(images/body-bg.jpg) repeat-x top;
margin: 0 0 20px 0;
}
hr, hr.side-hr {
color: #DDD;
background-color: #DDD;
height: 1px;
border : 0 none;
margin : 4px 0;
}
td {
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #333;
}
code, pre {
font: 11px monospace;
color: #333;
}
.alt {
color: #04688d;
}
p { margin: 5px 0 }
/* Form elements properties */
form {
margin: 0px;
}
.button {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFF;
background: #0F67A1;
border: 1px solid #000;
padding: 2px;
margin-top: 2px;
}
.bbcode {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000;
background-color: #EEE;
border: 1px solid #CCC;
margin-top: 2px;
}
.textbox {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #333;
padding: 2px;
margin-top: 2px;
background-color: #EEE;
border: 1px solid #0F67A1;
}
.textbox:hover, .textbox:focus, .bbcode:hover {
background-color: #FFF;
border: 1px solid #0F67A1;
}
/* Rounded corners/tables properies */
.tb-bg{
padding: 0;
margin: 0;
background: #FFF;
color: #333;
}
.upper-tb-bg{
padding: 0;
margin: 0;
background: #FFF;
color: #333;
}
.left-tc{
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/left-tc.jpg) no-repeat top left;
}
.right-tc {
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/right-tc.jpg) no-repeat top right;
}
.left-bc {
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/left-bc.jpg) no-repeat bottom left;
}
.right-bc{
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/right-bc.jpg) no-repeat bottom right;
}
/* H = Captions */
h1 {
font: bold 16px Verdana, Arial, Helvetica, sans-serif;
color: #FFF;
padding: 5px;
margin: 5px 0 0 0;
}
h2 {
font: bold 14px Verdana, Arial, Helvetica, sans-serif;
padding: 5px;
margin: 5px 0;
border-bottom: 1px solid #EEE;
}
h3{
font: bold 12px Verdana, Arial, Helvetica, sans-serif;
color: #222;
padding: 5px;
margin: 7px 0 0 0;
background: #EEE;
}
h4{
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
color: #222;
padding: 5px;
margin: 7px 0 0 0;
background: #EEE;
}
/* .pcap {
margin: 0;
padding: 10px 0 3px 0;
} */
.forum-caption {
font: bold 14px Verdana, Arial, Helvetica, sans-serif;
color: #DDD;
/* border: 1px solid #555;
/* background: url(images/sub-header.gif) center center repeat-x; */
background: #0F67A1;
padding: 5px 10px;
margin: 0;
}
.forum-caption a {
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
color: #DDD;
}
/* This is for the news/articles */
.ncapmain {
background: #0F67A1;/*url(images/ncapmain.png) no-repeat left 3px;*/
margin-bottom: 5px;
/* padding: 5px 5px 5px 26px; */
}
.news-category {
border: 0;
margin: 3px;
float: right;
}
.nfoot {
clear:both;
background: #EEE;
padding: 5px;
}
/* Table properites */
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #DDD;
font-size: 11px;
color: #333;
background: #FFF;
}
.tbl {
font-size: 11px;
color: #333;
background-color: #fff;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #333;
background-color: #fff;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #333;
background-color: #EEE;
padding: 4px;
}
.quote {
font-size : 10px;
color : #555;
padding : 4px 4px 4px 17px;
margin : 6px 0;
/*border: 1px solid #4D5F76; */
border-left: 1px solid #4D5F76;
background: #EEE url(images/quote-bg.png) no-repeat;
}
.poll {
height: 16px;
border: 1px solid #555;
background: #0F67A1;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
/* Shoutbox */
.shoutboxname {
text-align: right;
color: #0F67A1;
}
.shoutbox {
font-size: 9px;
color: #333;
background: #EEE;
border: 1px solid #DDD;
border-top: 0;
padding: 3px 2px;
}
.shoutboxdate {
font-size: 10px;
color: #555;
background: url(images/shoutboxdate-bg.gif) no-repeat bottom right;
}
/* Small classes */
.small {
font-size: 10px;
color: #333;
}
.small2 {
font-size: 10px;
color: #333;
}
.side-small {
font-size: 10px;
color: #333;
}
.side-label {
color: #333;
background-color: #EEE;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
/* CSS Navigation panel */
#navigation h2 {
font-size: 10px;
font-weight: bold;
background-color: #EEE;
margin: 0;
padding: 4px;
border: 0;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #0F67A1;
font-weight: bold;
padding: 2px;
text-decoration: none;
border-bottom: 1px solid #EEE;
}
#navigation a:hover {
color: #FFF;
background-color: #0F67A1;
border-bottom: 1px solid #0F67A1;
}
/* Pagenavigation */
.pagenav {
color: #FFF;
text-align: left;
padding: 4px;
background: #5B84AD;
margin: 10px 20px 5px 20px;
}
.pagenav span {
color: #000;
background-color: #5B84AD;
border: 1px solid #5B84AD;
padding: 2px 4px 2px 4px;
margin: 0 1px 0 0;
}
.pagenav a {
color: #555;
background-color: #f1f1f1;
border: 1px solid #0F67A1;
padding: 2px 4px 2px 4px;
margin: 0 1px 0 0;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #0F67A1;
border: 1px solid #0F67A1;
border-top: 1px solid #333;
border-left: 1px solid #333;
margin: 0 1px 0 0;
text-decoration: none;
}
#content { float:left; margin:5px;}
#usermenu{
margin:5px 0 0 0;
padding:0;
}
#usermenu ul{
margin: 0;
float: right;
margin-bottom: 1em;
padding-left: 0;
font-weight: bold;
border: 1px solid #333;
border-width: 1px 0 1px 1px;
}
* html #usermenu ul{
margin-bottom: 0;
}
#usermenu ul li{
display: inline;
}
#usermenu ul li a{
float: left;
color: #CCC;
font-weight: bold;
padding: 2px 6px 4px 6px;
text-decoration: none;
border-right: 1px solid #222;
background: #000;
}
#usermenu ul li a:hover{
color: #DDD;
background-color: #000;
border-right: 1px solid #333;
border-bottom: 4px solid #0F67A1;
padding-bottom: 0;
}
/* Messages */
.admin-message {
font: bold 11px Verdana, Arial, Helvetica, sans-serif;
text-align: center;
color: #0F67A1;
background-color: #FFFF99;
border: 1px solid #0F67A1;
padding: 3px 4px 5px 4px;
margin: 5px;
}
/* Helpers */
img{ border: 0px;}
.p-state { float:right; margin-top:-20px; padding: 2px 0 0 13px; }
.p-img { margin: -5px 3px 0 -4px; vertical-align:middle;}
.clear { clear: both; height: 0; line-height: 0;}
/* TinyMCE specific rules */
body.mceContentBody {
background: #FFF;
color: #000;
}
.mceContentBody a {
color: blue !important; /* FX requires a important here */
}
Co jeszcze jest potrzebne ?
reszta plików bez zmian od instalacji.
-----------
Załączam skórkę , później załapałem o co chodzi.
reddevil-85 dodał/a następującą plik:
Edytowane przez reddevil-85 dnia 18.12.2009 13:04:45
|