Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia pagalbos

Parašė NixoNas· 2008 Kov. 12 22:03:45
#1






Sveiki gal kas galite man pataisyti sia vieta kad butu pwz buttonai ir tarp ju textas plz kas galite padekis


theme.php
<?php

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

// theme settings
$body_text = "#000000";
$body_bg = "#333333";
$theme_width = "1200";
$theme_width_l = "171";
$theme_width_r = "171";

function render_header($header_content) {

global $theme_width,$settings;


echo"<center><table id=\"Table_01\" width=\"1000\" height=\"456\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_01.jpg\" width=\"87\" height=\"20\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_02.jpg\" width=\"826\" height=\"20\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_03.jpg\" width=\"87\" height=\"20\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_04.jpg\" width=\"87\" height=\"324\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_05.jpg\" width=\"826\" height=\"324\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_06.jpg\" width=\"87\" height=\"324\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_07.jpg\" width=\"87\" height=\"24\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_08.jpg\" width=\"826\" height=\"24\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_09.jpg\" width=\"87\" height=\"24\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_10.jpg\" width=\"87\" height=\"80\"></td>";
echo"      <td background=\"".THEME."images/header_11.jpg\" width=\"826\" height=\"69\" alt=\"\"><center><FONT FACE=\"Verdana\" SIZE=\"3\" COLOR=\"#FFFFFF\"><b>".showsublinks("","white")."</b></FONT></center></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_12.jpg\" width=\"87\" height=\"80\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_13.jpg\" width=\"87\" height=\"8\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_14.jpg\" width=\"826\" height=\"8\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/header_15.jpg\" width=\"87\" height=\"8\"></td>";
echo"   </tr>";
echo"</table>

          <table width=\"1000\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td width=\"101\" background=\"".THEME."images/lt.jpg\">&nbsp;</td>
          <td>\n";
}

function render_footer($license=false) {

global $theme_width,$locale,$settings;

echo "</td>
          <td width=\"101\" background=\"".THEME."images/rt.jpg\">&nbsp;</td>
        </tr>
      </table>

      <table id=\"Table_01\" width=\"1000\" height=\"69\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/footer_01.gif\" width=\"97\" height=\"28\"></td>";
echo"      <td background=\"".THEME."images/footer_02.gif\" width=\"100%\" height=\"28\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/footer_03.gif\" width=\"97\" height=\"28\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td background=\"".THEME."images/footer_04.gif\" width=\"97\" height=\"1\"></td>";
echo"      <td background=\"".THEME."images/footer_05.gif\" width=\"100%\" height=\"1\">";
if ($license == false) {
echo "<center><b><FONT FACE=\"Times New Roman\" SIZE=\"1\" COLOR=\"#FFFFFF\">Powered by <a target='_blank' href='http://www.php-fusion.co.uk'></b><b><FONT FACE=\"Times New Roman\" SIZE=\"1\" COLOR=\"#FFFFFF\"> PHP-Fusion </a> v".$settings['version']." &copy; 2003-2006</b></center>";
   }
echo "</td>";
echo"      <td background=\"".THEME."images/footer_06.gif\" width=\"97\" height=\"1\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td>";
echo"         <img src=\"".THEME."images/footer_07.gif\" width=\"97\" height=\"22\"></td>";
echo"      <td background=\"".THEME."images/footer_08.gif\" width=\"100%\" height=\"22\"></td>";
echo"      <td>";
echo"         <img src=\"".THEME."images/footer_09.gif\" width=\"97\" height=\"22\"></td>";
echo"   </tr>";
echo"   <tr>";
echo"      <td background=\"".THEME."images/footer_10.gif\" width=\"97\" height=\"18\"></td>";
echo"      <td background=\"".THEME."images/footer_11.gif\" width=\"100%\" height=\"18\"><br><b><center><font class='visits'>".$settings['counter']." Unique Visits</font></center></b><br>".stripslashes($settings['footer'])."<br></td>";
echo"      <td background=\"".THEME."images/footer_12.gif\" width=\"97\" height=\"18\"></td>";
echo"   </tr>";
echo"</table></center>";

}

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

global $locale;

echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cell1.gif' height='22'><img border='0' src='".THEME."images/panel_img.gif'> <font class='block-news'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>&nbsp;";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";

}

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

global $locale;

echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cell1.gif' height='22'><img border='0' src='".THEME."images/panel_img.gif'> <font class='block-news'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='22' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #000000'>";
echo "<tr><td background='".THEME."images/cell1.gif' bgcolor='#333333' height='22'><font class='head-title'>&nbsp;$title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";

}

function closetable() {

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

}

function openside($title) {

echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='22' width='100%' background='".THEME."images/cell1.gif'>";
echo "<img border='0' src='".THEME."images/panel_img.gif'> <font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#333333' background='".THEME."images/back.gif' class='side-body' width='100%'>";


}

function closeside() {
   echo "</td></tr></table>";
   tablebreak();
}

function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");

echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='22' width='100%' background='".THEME."images/cell1.gif'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#333333' class='side-body'width='100%' '".THEME."images/back.gif'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {


echo "</div></td></tr></table>";
tablebreak();

}

function tablebreak() {

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

?>