Pobrałem tą skórkę i dość porządnie ją przerobiłem na własne potrzeby. Problem polega na tym że gdzieś musiałem coś zrypać i lewy panel gdzie mam buttony do innych stron wychodzi po za dolną stopkę(patrz obrazek poniżej).
Przerobić łatwo gorzej naprawić ;/ Dodaje kody z plików.
Theme.php
<?php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' width='4' height='6' alt='' class='bullet' />");
function render_page($license=false) {
global $settings, $main_style;
// Header
echo "<div class='wrapper'>\n";
echo "<div class='toolbar'>\n";
echo "<div class='navi'>\n";
echo "<span>".showsublinks("")."</span>\n";
echo "</div>\n";
echo "<div class='icons'>\n";
echo "<a href='".BASEDIR."contact.php' title='Kontakt z Adminem'><img src='".THEME."images/contact.gif' width='14' height='9' alt='Contact' /></a>";
echo "<a href='".BASEDIR."login.php' title='Panel Admina'><img src='".THEME."images/home.gif' width='14' height='11' alt='Home' /></a>";
if (file_exists(INFUSIONS.'site_map/site_map.php')) { echo "<a href='".BASEDIR."infusions/site_map/site_map.php' title='Site Map'><img src='".THEME."images/site_map.gif' width='14' height='10' alt='Site Map' /></a>"; }
echo "</div>\n";
echo "</div>\n"; // end of toolbar class
echo "<div class='header'>\n";
// Header Banners
echo "<div class='banner-1'>\n";
echo "<!-- 120x120 Banner Code -->";
echo "\n</div>\n";
echo "<div class='banner-2'>\n";
echo "<!-- 120x120 Banner Code -->";
echo "\n</div>\n";
// Theme logotype
echo "<img src='".THEME."images/blank.gif' width='358' height='91' alt='".$settings['sitename']."' class='logotype' /></a>\n";
// System logotype (need to edit position)
// echo "<div style='margin-left: 55px; padding-top: 43px;'>".showbanners()."</div>";
echo "</div>\n"; // end of header class
//header line
echo "<div class='header_line'></div>\n";
// Content
echo "<div class='container'>\n";
echo "<div class='left_panel'>".LEFT."</div>\n";
echo "<div class='right_panel'>".RIGHT."</div>\n";
if ($main_style == "side-both")
{ echo "<div class='content'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
else
{ echo "<div class='admin_content'>".CONTENT."</div>\n"; }
echo "</div>\n";
echo "</div>\n"; // end of wrapper class
// Footer Banner
if ($main_style == "side-both") { echo "<div class='footer_banner'>\n";
echo "<!-- 468x60 Banner Code -->";
echo "\n</div>\n"; }
// Footer
echo "<div class='footer_top'></div>\n";
echo "<div class='footer_line'>".stripslashes($settings['footer'])."</div>\n";
echo "<div class='footer_bottom'>\n";
if (!$license) { echo showcopyright()."<br /><br />"; }
// Don't change or delete this string!
echo "";
if (!$license) { echo "<div style='padding-bottom: 17px;'></div>"; }
echo "</div>\n";
}
function render_news($subject, $news, $info) {
echo "<div class='title'>".$subject."</div>\n";
echo "<div>".$news."</div>\n";
echo "<div class='info'>\n";
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='title'>$subject</div>\n";
echo "<div>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='info'>\n";
echo "<div class='info-l'>".articleposter($info,"")."</div><div class='info-r'>".articleopts($info,"·").itemoptions("A",$info['article_id'])."</div>\n";
echo "</div>\n";
}
function opentable($title) {
global $main_style;
echo "<div class='center_panel'>\n";
if ($main_style == "side-both")
{ echo "<div class='title'>$title</div>\n"; }
else
{ echo "<div class='admin_title'>$title</div>\n"; }
echo "<div>\n";
}
function closetable() {
global $main_style;
echo "</div>\n</div>\n";
echo "<div class='shadow'></div>\n";
}
function openside($title) {
echo "<div class='panel'><div><div><div>\n";
echo "<div class='panel_title'>".$title."</div>\n";
echo "<div class='panel_body'>\n";
}
function closeside() {
echo "</div>\n</div></div></div></div>\n";
}
// IN GOD WE TRUST
?>
Plik styles.css jest podzielony na kilka mniejszych, wiec:
engine.php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
/* Table Container */
.tbl-border {
background-color: #c8d4db;
margin-bottom: 5px;
}
.tbl {
padding: 5px;
}
.tbl1 {
background-color: #e9e6c5;
padding: 4px;
}
.tbl2 {
background-color: #f4f4f4;
padding: 1px 5px 3px 5px;
}
.small {
/* none */
}
.small2 {
color: #708392;
}
.side-small {
color: #708392;
}
.side-label {
padding: 2px;
}
.comment-name {
font-weight: bold;
}
/* Forum */
.forum-caption {
background-color: #e9e6c5;
border: 1px solid #e9e6c5;
color: #5e9a50;
font-weight: bold;
padding: 1px 0 3px 4px;
}
.forum_thread_title {
color: #5e9a50;
}
/* Comments */
.comment_message {
padding-bottom: 7px;
}
/* Page Navigation */
.pagenav {
padding-top: 8px; padding-bottom: 6px;
}
.pagenav span strong {
background-color: #e9e6c5;
border: 1px solid #c8d4db;
color: #708392;
font-weight: normal;
margin: 2px;
padding: 4px 5px;
}
.pagenav a {
border: 1px solid #c8d4db;
margin: 2px;
padding: 4px 5px;
}
.pagenav a:hover {
border: 1px solid #ff5500;
color: #ff5500;
}
/* Administration Panel */
.admin-message {
background-color: #f4f4f4;
border: 1px solid #c8d4db;
color: #ff5500;
margin-top: 5px; margin-bottom: 1px;
padding-top: 3px; padding-bottom: 5px;
text-align: center;
}
.center {
margin: auto;
}
/* BB Code */
.bbcode {
background: #f4f4f4;
border: 1px solid #bdbdbd;
margin-top: 2px;
}
.alt {
color: #ff5500;
}
.quote {
background-color: #fafafa;
border: 1px solid #f1f1f1;
padding: 1px 3px;
}
.code_bbcode .tbl-border {
background-color: #fafafa;
border: 1px solid #f1f1f1;
color: #0000ff;
padding-left: 3px; padding-top: 0;
}
.code_bbcode .tbl2 {
background-color: #e9e6c5;
border: 0;
color: #333;
margin-top: 7px; margin-bottom: 2px;
}
#bbcode_smileys_list_message, #bbcode_smileys_list_shout_message {
background-color: #e9e6c5;
}
/* Other */
.bullet {
padding-right: 2px;
}
.textbox {
background: #fff url(../images/input_bg.gif) left top repeat-x;
border: 1px solid #bdbdbd;
color: #515151;
font-family: Tahoma, Verdana, Helvetica, sans-serif;
font-size: 11px;
}
.textbox:focus {
border: 1px solid #999;
}
.button {
background: #d31818 url(../images/button_bg.gif) top left repeat-x;
border: 1px solid #d31818;
color: #e9e6c5;
cursor: pointer;
font-family: Tahoma, Verdana, Helvetica, sans-serif;
font-size: 11px;
margin-top: 5px;
}
.floatfix {
/* none */
}
.news-category {
float: left;
margin: 5px 7px 0 0;
}
infusion.php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
/* CSS Navigation (infusions/css_navigation_panel) */
#navigation ul {
list-style-type: none;
margin: 0; padding: 0;
}
#navigation a {
display: block;
padding: 1px 0 3px 0;
}
#navigation a:hover {
background-color: #f4f4f4;
}
#navigation a img {
display: none;
}
#navigation a span {
margin-left: 6px;
}
/* Members Poll (infusions/member_poll_panel) */
.poll {
border: 1px solid #73c971;
}
/* ShoutBox (infusions/shoutbox_panel) */
.shoutboxname {
font-weight: bold;
}
.shoutboxdate {
color: #708392;
font-size: 9px;
}
.shoutbox {
/* none */
}
nawigation.php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
/* Navigation */
.navi {
padding-left: 58px;
}
*+html .navi {
padding-left: 98px;
}
.navi span a {
background: #518c42 url(../images/navi_btn.gif) right top no-repeat;
color: #e9e6c5;
font-weight: bold;
float: left;
height: 38px;
line-height: 32px;
padding: 0 16px;
}
.navi span a:hover {
background: #727171 url(../images/navi_btn.gif) right bottom no-repeat;
color: #e9e6c5;
}
.navi ul {
margin: 0;
}
.navi ul li {
display: inline;
}
/* Icons (Home, Site Map, Contact) */
.icons {
float: right;
margin-top: 9px; margin-right: 100px;
}
.icons a {
margin-left: 17px;
}
panels.php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
/* Side Panels */
.left_panel {
float: left;
width: 194px;
}
.right_panel {
float: right;
width: 194px;
}
.panel {
background: #e9e6c5 url(../images/panel_bg.gif) left top repeat-y;
margin-bottom: 5px;
}
.panel div {
background: transparent url(../images/panel_top.gif) left top no-repeat;
}
.panel div div {
background: transparent url(../images/panel_bottom.gif) left bottom no-repeat;
}
.panel div div div {
background: transparent;
}
.panel_title {
color: #ffffff;
font-size: 12px;
font-weight: bold;
padding: 12px 0 6px 15px;
}
.panel_body {
padding: 12px 15px 17px 15px;
}
.panel select {
margin-top: 3px;
}
/* Center Panels */
.center_panel {
padding-bottom: 3px;
}
.center_panel div.title {
color: #3a7db1;
text-align: center;
}
template.php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
/* General */
body, body.tbl2 {
background: #e9e6c5 url(../images/body_bg.gif) left top repeat-x;
color: #333;
margin: 0;
text-align: center;
}
body.tbl2 {
padding: 0;
}
a {
color: #2666b9;
text-decoration: none;
}
a:hover {
color: #ff5500;
}
a img {
border: 0;
}
hr {
border: 0px solid #e3e3e3;
border-top-width: 1px;
height: 1px;
}
.content hr, .admin_content hr {
margin-top: 12px;
}
form {
margin: 0;
}
iframe {
border: 1px solid #bdbdbd;
}
body, div, td {
font-family: Tahoma, Verdana, Helvetica, sans-serif;
font-size: 11px;
line-height: 16px;
}
/* Theme */
.wrapper {
background-color: #e9e6c5;
margin: auto;
text-align: left;
width: 996px;
}
.toolbar {
background: #518c42 url(../images/toolbar.gif) left top no-repeat;
height: 38px;
}
.header {
background: #bfd0d9 url(../images/header.gif) left top repeat-x;
height: 130px;
}
.logotype {
background: url(../images/logotype.png) no-repeat;
margin-left: 55px; margin-top: 23px;
width: 460px;
}
.container {
background: #e9e6c5 url(../images/container.gif) left top no-repeat;
min-height: 496px;
padding: 30px 19px 5px 19px;
}
.content {
margin: auto;
width: 544px;
}
.admin_content {
margin-left: 207px;
width: 751px;
}
.footer_top {
background: #e9e6c5 url(../images/footer_top.gif) left top repeat-x;
height: 46px; width: 100%;
}
.footer_line {
background-color: #e40a1a;
padding: 3px;
text-align: center;
}
.header_line {
background-color: #e40a1a;
padding: 1px;
text-align: center;
}
.footer_bottom {
background: #e9e6c5 url(../images/footer_bottom.gif) left top repeat-x;
color: #666;
height: 46px; width: 100%;
padding-top: 20px;
text-align: center;
}
.footer_bottom a {
color: #666;
}
.footer_bottom a:hover {
color: #ff5500;
}
/* Additions */
.title, .admin_title {
color: #5e9a50;
font-size: 12px;
font-weight: bold;
margin-bottom: 7px;
}
.admin_title {
margin-left: 7px; margin-bottom: 13px;
}
.info {
background: #e9e6c5;
color: #708392;
height: 18px;
margin-top: 8px; margin-bottom: 19px;
padding: 2px 4px;
}
.info a {
color: #ffffff;
}
.info a:hover {
color: #ff5500;
}
.info-l {
float: left;
}
.info-r {
float: right;
}
baners.php
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: */
/* Header */
.banner-1 {
float: right;
height: 120px; width: 120px;
margin-top: 29px; margin-right: 130px;
overflow: hidden;
}
.banner-2 {
float: right;
height: 120px; width: 120px;
margin-top: 29px; margin-right: 43px;
overflow: hidden;
}
/* Footer */
.footer_banner {
clear: both;
margin-bottom: 5px;
padding-top: 28px;
}
Może ktoś z Was zauważy gdzie jest błąd ;) |