Chcę żeby w moim theme (stronki w podpisie) Zegarek był równo z bannerem i miał białe tło. Skończyły mi się już pomysły. To moja funkcja render_header z fanclubu. Będę bardzo wdzięczny za pomoc.
function render_header($header_content) {
global $theme_width,$settings;
$cookieval = "";
if (isset($_COOKIE['Europe_Theme'])) {
$cookie = explode("&",$_COOKIE['Europe_Theme']);
for ($i = 0;$i < sizeof($cookie);$i++) {
$cookie2 = explode(":",$cookie[$i]);
if ($cookie2[0] == "hideleft" || $cookie2[0] == "hideright") {
$cookieval .= ",".$cookie2[0].":'".($cookie2[1] == 'off' ? 'off' : 'on')."'";
}
}
}
echo "<script language='javascript' src='".THEME."europe.js' type='text/javascript'></script>\n";
echo "<script language='javascript' type='text/javascript'>Europe.init({basedir:'".THEME."'".$cookieval."});</script>\n";
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<table><tr><td height='24'></tr></table>";
echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0' align='center' >";
echo "</td><tr><td align='center' valign='top'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='100%' align='center' bgcolor='#160F24' height='200'>
<div align='center' bgcolor='#FFFFFF' height='110' width='600'>
<img src='".THEME."images/logo.png' alt='".$settings[sitename]."' title='".$settings[sitename]."'>
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='111' height='111' id='watch.swf' align='middle'>
<param name='allowScriptAccess' value='sameDomain'>
<param name='movie' value='".THEMES."W5/includes/watch.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<param name='wmode' value='#FFFFFF'>
<embed src='".THEMES."W5/includes/watch.swf' quality='high' bgcolor='#FFFFFF' wmode='transparent' width='111' height='111' name='watch.swf' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></td>
</object>
</div>
</td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic' align='center'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif' alt=''> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo "<td align='right' class='cellpic'><form name='search' method='post' action='".BASEDIR."search.php?stype=a'><span class='side-small'><b>Szukaj: </b></span>";
echo "<input type='textbox' value='Szukaj na stronie...' name='stext' class='textbox' style='width:130px' onBlur=\"if(this.value=='') this.value='Szukaj na stronie...';\" onFocus=\"if(this.value=='Szukaj na stronie...') this.value='';\"> ";
echo "<input type='submit' name='search' value='Szukaj' class='button'></form></td>";
echo ($i == 0 ? " " : "")."</td>\n";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' cellspacing='0' border='0'>";
//panel images table
echo "<table border='0' cellpadding='0' cellspacing='0' style='height: 19px;' width='100%'>
<tr>
<td align='left' width='5%'><a href=\"javascript:Europe.showHideSide('left');\" onmousedown='return false;'><img id='panel_left_img' style='vertical-align: middle;' title='Hide/Show Panels' alt='Hide/Show Panels' src='".THEME."images/left_panel.gif'></a>
</td>
<td width='90%'>
</td>
<td align='right' width='5%'><a href=\"javascript:Europe.showHideSide('right');\" onmousedown='return false;'><img id='panel_right_img' style='vertical-align: middle;' title='Hide/Show Panels' alt='Hide/Show Panels' src='".THEME."images/right_panel.gif'></a>
</td>
</tr>
</table>\n";
//close panel images table
echo "<table bgcolor='black' cellpadding='0' cellspacing='0' width='100%'>
<tr id='contentbody'>\n";
}
Rails > Frameworki > PHP-Fusion
|