Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip uždėti headerį ?

Parašė ChecK· 2008 Lap. 9 16:11:28
#1

Sveiki,
Turiu tokią temą ir ..


O..
reiki uždti headerį

Theme.php :
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#FFFFFF";
$body_bg = "#28ADCE";
$theme_width = "879";
$theme_width_l = "270";
$theme_width_r = "270";

function render_header($header_content) {

global $theme_width,$aidlink;

echo "<table width='786' align='center' cellspacing='0' border='0' cellpadding='0'><tr><td class='kaire' widht='14'></td><td><table align='center' cellspacing='0' border='0' cellpadding='0' width='759' class='main-bg'>
<tr><td>
<table align='center' cellspacing='0' border='0' cellpadding='0' width='759'>
<tr><td>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='64%' id='AutoNumber1'>
  <tr>
    <td width='100%'>
    <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='759' id='AutoNumber2'>
      <tr>
        <td width='613' align='top' height='16' background='".THEME."images/them_02.png'>                      <a class='prisijungimas'>Vartotojo meniu</a></td>
        <td width='35'>
        <a href='index.php'>
        <img border='0' src='".THEME."images/them_03.png' width='35' height='16'></a></td>
        <td width='29'>
        <a href='contact.php'>
        <img border='0' src='".THEME."images/them_04.png' width='29' height='16'></a></td>
        <td width='34'>
        <a href='sitemap.php'>
        <img border='0' src='".THEME."images/them_05.png' width='34' height='16'></a></td>
        <td width='48'>
        <img border='0' src='".THEME."images/them_06.png' width='48' height='16'></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width='100%'>
    <img border='0' src='".THEME."images/them_08.png' width='759' height='20'></td>
  </tr>
  <tr>
    <td width='100%'>
    <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='759' id='AutoNumber3'>
      <tr>
        <td width='262' background='".THEME."images/them_9.png'  height='60'>";
if(!iMEMBER) {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
<table border='0' cellpadding='0' cellspacing='0' width='262' height='60'>
  <tr>
    <td width='60%' align='right' valign='top'><img src='".THEME."login/name.png'>  <input type='text' name='user_name' class='textbox' style='width:100px; height:18px;' value='Vartotojas' onfocus=\"if(this.value=='Vartotojas'){this.value='';}\" onblur=\"if(this.value==''){this.value='Vartotojas';}\"></td>

   <td width='40%'> <button name='login' value='submit' type='submit' style='border: 1#&*$solid #FFFFFF; background-color: #FFFFFF; width:66px; height:23px;'> <img src='".THEME."login/jungtis.png' alt='Prisijungti'> </button></td>
  </tr>
  <tr>
    <td width='60%' align='right' valign='top'><img src='".THEME."login/pass.png'>  <input type='password' name='user_pass' class='textbox' style='width:100px; height:18px;' value='Slapta&#254;odis' onfocus=\"if(this.value=='Slapta&#254;odis'){this.value='';}\" onblur=\"if(this.value==''){this.value='Slapta&#254;odis';}\"></td>
    <td width='40%'>   <a href='".BASEDIR."register.php'><img src='".THEME."login/register.png' border='0'></a>
   
   </td>
  </tr>
</table>

</form>";
} else {
echo "
<img src='".THEME."images/bullet.gif'><a href='".BASEDIR."edit_profile.php' class='prisijungimas2'> Redaguoti profilį</font></a><br>
<img src='".THEME."images/bullet.gif'><a href='".BASEDIR."messages.php' class='prisijungimas2'> Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif'><a href='".BASEDIR."members.php' class='prisijungimas2'> Narių sarašas</a><br>
<img src='".THEME."images/bullet.gif'><a href='".BASEDIR."setuser.php?logout=yes' class='prisijungimas2'> Atsijungti nuo sistemos</a><br>";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif'><a href='".ADMIN."index.php".$aidlink."' class='prisijungimas2'> Administracija</a><br>";
}
echo "";
}
echo "</td>
        <td width='480'>
        <img border='0' src='".THEME."images/them_10.png' width='12' height='60'><img src='".THEME."images/reklama.jpg' border='0' width='468' height='60' style='opacity:0.7;filter:alpha(opacity=70)' onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100' onmouseout='this.style.opacity=0.7;this.filters.alpha.opacity=70'></td>
        <td width='17'>
        <img border='0' src='".THEME."images/them_12.png' width='17' height='60'></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width='100%'>
    <img border='0' src='".THEME."images/them_13.png' width='759' height='37'></td>
  </tr>
  <tr>
    <td width='100%'>
    <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='100%' id='AutoNumber4'>
      <tr>
        <td width='563'>
        <img border='0' src='".THEME."images/them_14.png'  height='30'></td>
        <td width='196' height='30' background='".THEME."images/them_15.png' >
      <form name='search' action='search.php?stype=n' method='post'>
      <img src='".THEME."images/blank.gif' width='10'>      
      <input type='text' name='stext' value='paie&#240;ka...' onfocus=\"if(this.value=='paie&#240;ka...'){this.value='';}\" onblur=\"if(this.value==''){this.value='paie&#240;ka...';}\" class='textbox' style='width:100px;  height:20px;'> 
      <input type='submit' name='option' value='ie&#240;koti' class='button' style='width:50px; height:20px;'>
      </form>
      </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</td></tr>
</table></td></tr><tr><td><table cellpadding='0' cellspacing='0' align='center' width='733' class='main-bg'>
<tr>
<script type=\"text/javascript\" src=\"highslide/highslide.js\"></script>

<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->

<script type=\"text/javascript\">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>


<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->

<style type=\"text/css\">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide:hover img {
border: 2#&*$solid white;
}

.highslide-image {
border: 2#&*$solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;

border: 2#&*$solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1#&*$solid white;
border-bottom: 1#&*$solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3#&*$1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
}
</style>
<div id=\"highslide-container\"></div>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</td>
</tr>
</table>

</td>
</tr><tr>
<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='759' height='27' class='footer'>
<tr>
<td align='left' style='padding-left:0px;'>".stripslashes($settings['footer'])."</td>
<td align='right' style='padding-right:10px;'>
Sprendimas: <a href='http://moby.lt' target='_blank' class='footeris'>Moby.lt</a><br>
Sistema: <a href='http://php-fusion.co.uk/' target='_blank' class='footeris'>PHP-Fusion</a>
</td>
</tr>
</table>

</td></tr>
</table>
</td><td width='13' class='desine'></td></tr></table>\n";

}

function render_news($subject, $news, $info) {

echo "<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='540' >
  <tr>
    <td width='12' height='45'>
    <img border='0' src='".THEME."images/table_03.png' width='12' height='45'></td>
    <td width='100%' height='45' class='capmain'>$subject</td>
    <td width='13' height='45'>
    <img border='0' src='".THEME."images/table_06.png' width='13' height='45'></td>
  </tr>
  <tr>
    <td width='12' height='100%' background='".THEME."images/table_08.png' ></td>
    <td width='100%' height='100%' class='main-body-table'>$news <a href='news.php?readmore=".$info['news_id']."' class='news'>daugiau...</a></td>
    <td width='13' height='100%' background='".THEME."images/table_10.png' width='13' height='94'></td>
  </tr>
  <tr>
    <td width='12' height='21'>
    <img border='0' src='".THEME."images/table_11.png' width='12' height='21'></td>
    <td width='100%' background='".THEME."images/table_12.png' height='21'></td>
    <td width='13' height='21'>
    <img border='0' src='".THEME."images/table_15.png' width='13' height='21'></td>
  </tr>
</table>\n";

}

function render_article($subject, $article, $info) {

echo "<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='540' >
  <tr>
    <td width='12' height='45'>
    <img border='0' src='".THEME."images/table_03.png' width='12' height='45'></td>
    <td width='100%' height='45' class='capmain'>$subject</td>
    <td width='13' height='45'>
    <img border='0' src='".THEME."images/table_06.png' width='13' height='45'></td>
  </tr>
  <tr>
    <td width='12' height='100%' background='".THEME."images/table_08.png' ></td>
    <td width='100%' height='100%' class='main-body-table'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br>
Autorius: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' class='news'>".$info['user_name']."</a>  Data: <span style='color:#27AECC;font-weight:bold;'>".showdate("%d.%m.%Y", $info['article_date'])."</span>  Komentarø: <span style='color:#27AECC;font-weight:bold;'>".$info['article_comments']."</span></td>
    <td width='13' height='100%' background='".THEME."images/table_10.png' width='13' height='94'></td>
  </tr>
  <tr>
    <td width='12' height='21'>
    <img border='0' src='".THEME."images/table_11.png' width='12' height='21'></td>
    <td width='100%' background='".THEME."images/table_12.png' height='21'></td>
    <td width='13' height='21'>
    <img border='0' src='".THEME."images/table_15.png' width='13' height='21'></td>
  </tr>
</table>\n";

}

function opentable($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='540' >
  <tr>
    <td width='12' height='45'>
    <img border='0' src='".THEME."images/table_03.png' width='12' height='45'></td>
    <td width='100%' height='45' class='capmain'>$title</td>
    <td width='13' height='45'>
    <img border='0' src='".THEME."images/table_06.png' width='13' height='45'></td>
  </tr>
  <tr>
    <td width='12' height='100%' background='".THEME."images/table_08.png' ></td>
    <td width='100%' height='100%' class='main-body-table'>\n";

}

function closetable() {

echo "</td>
    <td width='13' height='100%' background='".THEME."images/table_10.png' width='13' height='94'></td>
  </tr>
  <tr>
    <td width='12' height='21'>
    <img border='0' src='".THEME."images/table_11.png' width='12' height='21'></td>
    <td width='100%' background='".THEME."images/table_12.png' height='21'></td>
    <td width='13' height='21'>
    <img border='0' src='".THEME."images/table_15.png' width='13' height='21'></td>
  </tr>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='182' style='padding-left:10px;'>
<tr>
<td class='scapmain'>    $title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";

}


function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>




Headeris kad vadintūsi header.jpg. Ačiū ;]