Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Problema su Theme

Parašė Qrmiz· 2008 Sau. 3 21:01:08
#7

bandyk:
<?php
/************************/
/* Theme Settings      */
/************************/

$body_text = "#000000";
$body_bg = "#6aa311";
$theme_width = "950";
$theme_width_l = "175";
$theme_width_r = "175";

   
function render_header($header_content) {
include THEME."locale/Lithuanian.php";
include LOCALE.LOCALESET."global.php";

global $theme_width,$settings;

echo "
<table align=center width=950 height=299 background=http://dedewarez.kissme.in/themes/SimpleBlue/images/header_01.jpg border=0 cellspacing=0 cellpadding=0>";
echo "</div>
</td>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href=''><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_02.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='http://dedewarez.kissme.in/news.php'><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_03.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='http://dedewarez.kissme.in/forum/index.php'><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_04.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='http://dedewarez.kissme.in/search.php'><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_05.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='http://dedewarez.kissme.in/members.php'><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_06.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href='http://dedewarez.kissme.in/infusions/banner_panel/index.php'><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_07.jpg' border='0'></a>
<td   height=0 border=0 align=right>
<div style=\"padding-bottom: 0px; padding-top: 250px; padding-left: 0px; padding-right: 0px;\">";
echo"<a href=''><img src='http://dedewarez.kissme.in/themes/SimpleBlue/images/header_08.jpg' border='0'></a>
";

//Login Code End

   echo"<script type='text/javascript'>LKT_init();</script>";
   echo"</td></tr></table>";   
   echo "</td></tr></table>";
   echo "<table width='$theme_width' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
   echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";



   
}



function render_footer($license=false) {
   
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0' background='".THEME."images/footer.gif' style='border-right: solid #c1d2ec 1px; border-left: solid #c1d2ec 1px;'>";
   echo "<td width='20%' height='40' class='white' align='left'>";
      if ($license == false) {
      echo "<b><a href='http://php-fusion.co.uk' target='_blank'></a></b>";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "<b><a href=''></a></b>";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}


function render_news($subject, $news, $info) {
   
global $locale;
   
   echo "<table border='0' style=': 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title' align=>$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']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;
   
   echo "<table style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title'>$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='24' 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']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #c1d2ec'>";
   echo "<tr><td bgcolor='#ffffff' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td class='main-body'>\n";
}

// Close table end
function closetable() {
   echo "</td></tr></table>\n";
}

function openside($title) {

   echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
   echo "<font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#ffffff' class='side-body' width='100%'>";
}

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

function opensidex($title,$open="on") {

if($open=="on"){$box_img="off";}else{$box_img="on";}
   echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
   echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#ffffff' class='side-body' width='100%'>";
   echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}


function closesidex() {

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

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>