Witam. Mógłby mi ktoś pomóc wstawić kod:
echo "<td class='full-header'>".showbanners()."</td>\n";
w theme Hamarey:
<?php
/*.Atlantis Theme for PHP-Fusion v7..*|
|*.Author: Max "Matonor" Toball......*|
|*.Released under the Affero GPLv3...*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
//Theme Settings
define("THEME_WIDTH", "95%"); //theme width. Make sure to adapt the margin-left in the first div (-width/2).
define("THEME_BULLET", "<span class='bullet'>·</span>"); //bullet image
//Theme Settings /
function get_head_tags(){
echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}</style><![endif]-->";
}
function render_page($license=false) {
global $locale, $aidlink, $main_style, $settings;
echo "<div class='tpl_str_center'>
<div class='tpl_str_header'>
<div class='tpl_logo'></div>
</div>
<div class='tpl_str_main'>
<div style='margin:0 27px;'>
<!-- MENU i -->
<div class='tpl_menu'>
<ul>
<li>".showsublinks(" ")."</li>
</ul>
</div>
<!-- MENU e -->
<!-- RELEASE i -->
<div class='tpl_release'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' class='text'><div class='top'>
</td>
</tr>
</table>
</div>
<!-- RELEASE e -->
<!-- MAIN i -->
<div class='tpl_main'>
<!-- CONTENT i -->
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<!-- MAIN -->
<td valign='top'>
<div class='tpl_showpath'><div></div></div>
<div class='tpl_content'>
<!-- MAIN CONTENT i -->
".U_CENTER.
CONTENT.
L_CENTER."
<!-- MAIN CONTENT e -->
<!-- NAVIGATOR i -->
<td class='tpl_extra_box' valign='top'>
<div class='tpl_block tpl_corners'>
".(LEFT ? "<div class='tpl_block_body'>".LEFT."</div>" : "")."
</div>
</td>
<!-- NAVIGATOR e -->
<!-- NAVIGATOR i -->
<td class='tpl_nav_box' valign='top'>
<div class='tpl_block tpl_corners'>
".(RIGHT ? "<div class='tpl_block_body'>".RIGHT."</div>" : "")."
</div>
</td>
<!-- NAVIGATOR e -->
</div>
</td>
</tr>
</table>
<!-- CONTENT e -->
</div>
<!-- MAIN e -->
<!-- MAIN e -->
<!-- FOOTER i -->
<div class='tpl_footer'>
<div align='left'>Copyright © 2000-2008 by <strong>Hamarey</strong> - All rights reserved</div>
<div align='right'><font size='1'>Based on MemHT</div>
</div>
<!-- FOOTER e -->
</div>
</div>
<div class='tpl_str_footer'></div>
</div>
<div class='tpl_footmsg'>
<div align='center'>".showcopyright()."</div>
</div>";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo " <div class='tpl_news_box' valign='top'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='18%' align='right' style='padding-right:15px;' valign='top'>
<!-- DATE -->
<div class='tpl_news_date' align='center'>
<div class='month'>".showdate("%B", $info['news_date'])."</div>
<div class='day'>".showdate("%d", $info['news_date'])."</div>
<div class='year'>".showdate("%Y", $info['news_date'])."</div>
</div>
<!-- AUTHOR -->
</td>
<td width='82%' valign='top'>
<!-- TITLE -->
<div class='tpl_news_title'>$subject</div>
<!-- CONTENT -->
<div class='tpl_news_content'>".$news."</div><br>
<div class='tpl_news_author'>".newsopts($info,"·").itemoptions("N",$info['news_id'])."</div>
</td>
</tr>
</table>
</div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='tpl_news_box' valign='top'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='18%' align='right' style='padding-right:15px;' valign='top'>
<!-- DATE -->
<div class='tpl_news_date' align='center'>
<div class='month'>".showdate("%B", $info['news_date'])."</div>
<div class='day'>".showdate("%d", $info['news_date'])."</div>
<div class='year'>".showdate("%Y", $info['news_date'])."</div>
</div>
<!-- AUTHOR -->
</td>
<td width='82%' valign='top'>
<!-- TITLE -->
<div class='tpl_news_title'>$subject</div>
<!-- CONTENT -->
<div class='tpl_news_content'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>
<div class='tpl_news_author'>";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>
</td>
</tr>
</table>
</div>\n";
closetable();
}
function opentable($title) {
echo "\n<h2 class='panelcap'>$title</h2>\n\t<div class='panelbody'>\n";
}
function closetable() {
echo "</div>\n";
}
$panel_collapse = true;
function openside($title, $collapse = false, $state = "on") {
static $box_id = 0; $box_id++;
global $panel_collapse; $panel_collapse = $collapse;
echo "<h3>".($collapse ? panelbutton($state,$box_id) : "")."$title</h3>
<div>\n\t".($collapse ? panelstate($state, $box_id) : "");
}
function closeside() {
global $panel_collapse;
echo ($panel_collapse ? "\t</div>" : "")."\n</div>\n";
}
?>
Próbowałem już wiele razy wstawić owy kod w header i nic, cały czas wywala mi błąd.
Proszę o pomoc.
Pozdrawiam
Poniżej załączam niezmodyfikowaną wersję theme.
galax dodał/a następującą plik:
Edytowane przez Pieka dnia 30.10.2009 22:39:19
|