Parašė K-braun· 2009 Gru. 19 23:12:16
#26
Man atrodo, kad daviau per mažai informacijos. Tai duodu jos daugiau:
Dabar yra taip:
http://www.part.lt/img/17454ff65...7fa321.bmp
O reikia, kad būtų taip:
http://www.part.lt/img/e67418fbd...c30783.bmp
Theme.php failas:
<?php
// Author: Alex Unknown
// WebSite: http://creativethemes.org
// E-mail: info@creativethemes.org
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 get_head_tags() {
?>
<script language="JavaScript">
date = new Date();
a = date.getHours();
if (a > 7 && a < 21) {
document.write("<link rel='stylesheet' href='<?echo THEME;?>css/birds.css' type='text/css' media='screen' />");
}
else
{
document.write("<link rel='stylesheet' href='<?echo THEME;?>css/night.css' type='text/css' media='screen' />");
}
</script>
<?php
}
function render_page($license=false) {
global $settings, $main_style;
// Header
echo "<div class='toolbar'>\n";
echo "<div class='navi'>\n";
echo "<span>".showsublinks("")."</span>\n";
echo "</div>\n";
echo "<div class='date_time'>".showsubdate()."</div>\n";
echo "</div>\n"; // end of toolbar class
echo "<div class='wrapper'>\n";
echo "<div class='header'>\n";
echo "<div class='icons'>\n";
echo "<a href='".BASEDIR."index.php' title='Home'><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 "<a href='".BASEDIR."contact.php' title='Contact'><img src='".THEME."images/contact.gif' width='14' height='9' alt='Contact' /></a>";
echo "</div>\n";
echo "<img src='".THEME."images/blank.gif' width='130' height='37' alt='' style='float: right; margin-top: 49px; margin-right: 175px;' class='birds' />\n";
// Header Banner
echo "<div class='banner'>\n";
echo "<!-- 468x60 Banner Code --><img src='".THEME."images/sample_banner.gif' width='468' height='60' alt='' />";
echo "\n</div>\n";
// Theme logotype
echo "<a href='".BASEDIR."index.php' title='".$settings['sitename']."'><img src='".THEME."images/blank.gif' width='251' height='170' alt='".$settings['sitename']."' class='logotype' /></a>\n";
// System logotype (need to edit position)
// echo "<div style='margin-left: 120px; padding-top: 20px;'>".showbanners()."</div>";
echo "</div>\n"; // end of header class
echo "<div class='grass'></div>\n";
// Content
echo "<div class='container'>\n<div class='container2'>\n";
if ($main_style == "side-both") {
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='left_panel'>".LEFT."</div>\n"; }
elseif ($main_style == "side-left") {
echo "<div class='left_panel'>".LEFT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "side-right") {
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "") {
echo "<div>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
echo "</div>\n"; // end of container2 classS
// Footer
echo "<div class='top'><a href='#' title='TOP'><img src='".THEME."images/blank.gif' width='18' height='14' alt='TOP' /></a></div>\n";
echo "<div class='footer_line'></div>\n";
echo "<a href='".BASEDIR."rss.php' title='RSS' target='_blank'><img src='".THEME."images/blank.gif' width='35' height='38' alt='RSS' class='rss' /></a>\n";
echo "<div class='footer_text'>\n";
// Don't change or delete this string!
echo "<div style='float: right; margin-top: 7px; margin-right: 10px;'><a href='http://creativethemes.org' title='Creative Themes for PHP-Fusion CMS' target='_blank'><img src='".THEME."images/signature.gif' width='125' height='15' alt='Creative Themes' /></a></div>\n";
echo stripslashes($settings['footer'])."<div style='margin-top: 3px;'></div>\n";
if (!$license) { echo showcopyright(); }
echo "</div>\n";
echo "</div>\n"; // end of container class
echo "<div class='footer_bottom'></div>\n";
echo "</div>\n"; // end of wrapper class
}
function render_news($subject, $news, $info) {
echo "<div class='title'>".$subject."</div>\n";
echo "<div class='news'>".$news."</div>\n";
echo "<div class='info'>\n";
echo "<div class='info-l'>".newsposter($info,"")."</div><div class='info-r'>".newsopts($info,"·").itemoptions("N",$info['news_id'])."</div>\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";
}
function openside($title) {
echo "<div class='panel'><div class='panel_top'><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
?>
Styles.css failas yra "redirektinamas" į:
/css/panels.css
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: info@creativethemes.org */
/* Side Panels */
.left_panel {
float: left;
width: 194px;
}
.right_panel {
float: right;
width: 194px;
}
.panel {
background: #fff url(../images/panel_bg.gif) left top repeat-y;
margin-bottom: 5px;
}
.left_panel .panel .panel_top {
background: transparent url(../images/panel_top_left.gif) left top no-repeat;
}
.panel div {
background: transparent url(../images/panel_top_right.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 {
font-size: 12px;
font-weight: bold;
padding: 12px 0 6px 15px;
}
.left_panel .panel_title {
color: #ff7800;
}
.right_panel .panel_title {
color: #519d41;
}
.panel_body {
padding: 12px 15px 17px 15px;
}
.panel select {
margin-top: 3px;
}
/* Center Panels */
.center_panel {
padding-bottom: 9px;
}
.center_panel div.title {
color: #ff7800;
}
Jeigu dar ko nors reikia sakykit.