Witam, mam pewien problem... chciałbym przenieść w themie Revision nastepującą rzecz:
wszystko na focie:
trochę Pliku Theme :
function render_header() {
global $theme_width, $rtNavbar, $rtHeader, $settings;
if ((isset($rtHeader['logo_url'])) && (!empty($rtHeader['logo_url'])))
$url = $rtHeader['logo_url'];
else
$url = false;
if ((isset($rtHeader['logo_url_title'])) && (!empty($rtHeader['logo_url_title'])))
$title = $rtHeader['logo_url_title'];
else
$title = false;
echo "<script language='javascript' src='".THEME."includes/revision.js' type='text/javascript'></script>\n"
."<table align='center' border='0' cellpadding='0' cellspacing='0' width='920'>\n"
."<tr><td class='pageLeft'></td><td width='100%' class='pageCenter' valign='top'>\n"
."<div id='clock'><noscript><div id='noscript'>Javascript should be enabled in order to view everything in certain sections of <strong>".$settings['sitename']."</strong>.</div></noscript><script language='javascript' src='".THEME."includes/clock.js' type='text/javascript'></script></div>\n"
."<table border='0' cellpadding='0' cellspacing='0' id='header' width='100%'><tr>\n"
."<td class='logo' height='100' valign='top' width='100%'>"
.($url ? "<a href='$url' onmousedown='return false;'".($title ? " title='".$title."'" : "").">" : "")
."<img".($title ? " alt='".$title."'" : " alt=''")." border='0' src='".THEME."images/logo.jpg'".($title ? " title='".$title."'" : "").">"
.($url ? "</a>" : "")
.((isset($rtHeader['slogan']) && !empty($rtHeader['slogan'])) ? "<br><span class='slogan'>".$rtHeader['slogan']."</span>" : "")."</td>\n";
if ((iMEMBER) && (isset($rtHeader['rightside_member'])) && (!empty($rtHeader['rightside_member']))) {
echo "<td class='rightside' nowrap='nowrap' valign='bottom'>".$rtHeader['rightside_member']."</td>\n";
} elseif ((!iMEMBER) && (isset($rtHeader['rightside_guest'])) && (!empty($rtHeader['rightside_guest']))) {
echo "<td class='rightside' nowrap='nowrap' valign='bottom'>".$rtHeader['rightside_guest']."</td>\n";
}
[b]echo "</tr></table>\n";
$rtNavbar->generate();
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>[color=red]Test[/color]<tr>\n";[/b]
}
function render_footer() {
global $settings;
echo "</tr></table>\n";
Wydaje mi sie ze trzeba to wstawić tam gdzie zaznaczyłem TEST
lecz jak?
trochę Pliku Theme Config:
// theme settings
$body_text = "#757882";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "290";
$theme_width_r = "290";
$theme_panels_exclude = array("/forum/");
$theme_panels_width = 176;
// keep the width of the panels the same so it does not compress the tables
$theme_width_r = $theme_panels_width;
$theme_width_l = $theme_panels_width;
/* Revision Theme configurations */
# for support and explanation about these configurations please go to http://www.uworldirc.com/support/revision
// Page Header
$rtHeader['logo_url'] = BASEDIR.'index.php';
$rtHeader['logo_url_title'] = 'Strona główna';
[b]$rtHeader['rightside_member'] = "<span style='color:red'><b>Witaj</b></span><strong>".$userdata['user_name']."</strong>";
$rtHeader['rightside_guest'] = "<strong>Witamy</strong><br>prosimy <a href='".BASEDIR."login.php'>zaloguj się</a> lub <a href='".BASEDIR."register.php'>zarejestruj</a>";[/b]
?>
Kody wstawiamy w tagach [ code]. Reszta bez komentarza//bartek124
Nazwę tematu poprawiłam, następnym razem dokładniej ją precyzuj - Milka
PW od moderatora:
- Zmiana nazwy tematu - bartek124 02.02 - 14:14
Edytowane przez Milka dnia 02.02.2008 14:26:01
|