Witam,
chciałbym umieścić w moim theme w dowolnym miejscu animację flash - plik swf, który by odtwarzał muzykę.
W którym miejscu i jaki kod należy wstawić aby strona nie byłą z błędami?
Poniżej kod mojego theme:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#C9ECFF";
$theme_width = "745";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table align='right' cellpadding='0' cellspacing='0'>
<tr>
<td width='35'><a href='".BASEDIR."index.php'><img src='".THEME."images/home.gif' border='0'></a></td>
<td width='35'><a href='".BASEDIR."contact.php'><img src='".THEME."images/contact.gif' border='0'></a></td>
<td width='16'><img src='".THEME."images/menu_l.png'></td>
<td background='".THEME."images/menu_grad.gif'>".showsublinks("<img src='".THEME."images/menu_split.png' align='middle'>","white")."</td>
<td width='16'><img src='".THEME."images/menu_r.png'></td>
</tr>
</table>
</tr>
</td>
</table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr valign='middle'>
<td class='full-header'>
<table align='left' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."logo.png' border='0'></td>
</tr>
</table>
<table align='right' cellpadding='0' cellspacing='0' width='235'>
<tr>
<td width='13' height='28'><img src='".THEME."images/line_l.png'></td>
<td width='235' height='28' background='".THEME."images/line_grad.png' class='line'><marquee scrollamount='1' scrolldelay='50' onmouseover='this.stop()' onmouseout='this.start()'>".stripslashes($settings['description'])."</marquee></td>
<td width='13' height='28'><img src='".THEME."images/line_r.png'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><img src='".THEME."images/body_top.png'>";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<img src='".THEME."images/body_bottom.png'>
<tr>
<td align='left' class='footer'>".stripslashes($settings['footer'])."</td>
<td align='right' class='footer'>Sprendimas: <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a><br> Dizainas: <a href='http://www.emotive.in/' target='_blank'>emotive</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<td class='main-body'><span style='color:#62950C;font-weight:bold'>".showdate("shortdate", $info['news_date'])." <img src='".THEME."images/bullet.gif'> <a href='news.php?readmore=".$info['news_id']."' style='color:#62950C;'>Plačiau</a>";
if (iADMIN && checkrights(N)) {
echo " <img src='".THEME."images/bullet.gif'> <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();' style='color:#62950C;'>Redaguoti</a>";
}
echo "</span><br>$news</td>
</form>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<form name='editarticle".$item_id."' method='post' action='".ADMIN."articles.php".$aidlink."&article_id=".$item_id."'>
<td class='main-body'><span style='color:#62950C;font-weight:bold'>".showdate("shortdate", $info['article_date'])." <img src='".THEME."images/bullet.gif'> <a href='print.php?type=A&item_id=".$info['article_id']."'' style='color:#62950C;'>Spausdinti</a>";
if (iADMIN && checkrights(N)) {
echo " <img src='".THEME."images/bullet.gif'> <input type='hidden' name='edit' value='edit'><a href='javascript:document.editarticle".$item_id.".submit();' style='color:#62950C;'>Redaguoti</a>";
}
echo "</span><br>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</form>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/scapmain-bottom.png'></td></tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
<tr><td><img src='".THEME."images/scapmain-bottom.png'></td></tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - Pieka 28.04 - 13:59
Edytowane przez Pieka dnia 28.04.2010 14:17:52
|