Witam, mam problem jak zrobić by w themie pobierało linki do menu pod logo?
Dokładnie chodzi o pobieranie tych linków wszystkich i ich wyświetlanie bo tutaj jest tak że musiałbym je wszystkie sam wprowadzac? I jak to zrobić by było to automatyczne?
Mam taki kod od lini 43 kod z linkami:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "910");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center' align='center'>\n<tr><td>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='$main_style' align='center'>\n<tr>\n";
echo "<td>\n";
if (iMEMBER) {
echo "
";
} else {
echo "
";
}
//echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'>\n<tr>\n";
echo "</td></tr><tr><td height='300' background='".THEME."images/banner.gif' align='center' valign='middle'></td>";
/*echo "<table width='910' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td> </td>";*/
//echo "<td width='220' align='center'>";
echo "</tr>\n</table>\n";
//echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' width='".THEME_WIDTH."'>\n<tr><td>\n";
echo "
<div id='nav' align='center'>
<li class='top'><a href='".BASEDIR."#' class='top_link'><span>Link 11</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 12</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 13</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 14</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 15</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 16</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 17</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 18</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 19</span></a></li>
<li class='top'><a href='#' class='top_link'><span>Link 20</span></a></li>
</div></td></tr></table>
";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' width='100%' class='$main_style' align='center'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' height='100' align='center'>\n<tr>\n";
echo "<td align='left' class='footer'>".stripslashes($settings['footer'])."<br />\n";
if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />
<b>Tema Tasarim By <a href='http://www.turktema.org' target='blank'><img src='".THEME."images/THe.NeeD.png'></a></b></td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - Pieka 05.03 - 21:38
Edytowane przez Pieka dnia 05.03.2010 21:38:40
|