Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: padekit su theme.php

Parašė VilleR· 2009 Lie. 24 20:07:34
#1

kad galit padet del sito ?



Theme.php

<?php

/************************/
/* Settings/Nustatymai  */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "1000";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

  echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
  echo "<tr><td><table align='center' width='1000' cellspacing='0' cellpadding='0'>";
  echo "<tr><td><table align='center' width='1000' cellspacing='0' cellpadding='0'>";
  echo "<tr><td class='header' width='1000'>";
  // Start banner code / Banerio kodas
  echo "<table width='1000' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
  echo "<tr><td height='180' background='".THEME."images/baner.jpg' align='right' valign='middle'>
  <table width='1000' border='0' cellspacing='0' cellpadding='0'>

  </table>
  </td>";
  echo "</tr></table></td></tr></table>\n";
  // End banner code / Banerio kodo pabaiga
  echo "<table width='1000' height='1000' cellspacing='0' cellpadding='0' class='sub-header'>\n<tr>";
if (iGUEST) {
   echo "<td align='left' width='40%'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_url']!="---") {
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
            if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
               echo "&nbsp;&nbsp;<img src='".THEME."images/divider.gif'>&nbsp;&nbsp;<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>&nbsp;&nbsp;";
            } else {
               echo "&nbsp;&nbsp;<img src='".THEME."images/divider.gif'>&nbsp;&nbsp;<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
            }
         }
         $i++;
      }
   }
}
echo "<td align='right' width='60%'>
".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>
Slapyvardis: <input type='text' name='user_name' class='textbox' style='width:75px;'>&nbsp;&nbsp;Slapta&#254;odis: <input type='password' name='user_pass' class='textbox' style='width:75px;'>&nbsp;
<a href='".BASEDIR."lostpassword.php' alt='U&#254;mir&#240;ai slapta&#254;od&#225; ?'><font color='#FF9900' face='Arial Black' size='3'><b>?</b></font></a>
<input type='checkbox' name='remember_me' value='y'>&nbsp;<input type='submit' name='login' value='Jungtis' class='button'></form>
</td>";
} else {
   echo "<td align='left' width='40%'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_url']!="---") {
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
            if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
               echo "&nbsp;&nbsp;<img src='".THEME."images/divider.gif'>&nbsp;&nbsp;<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>&nbsp;&nbsp;";
            } else {
               echo "&nbsp;&nbsp;<img src='".THEME."images/divider.gif'>&nbsp;&nbsp;<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
            }
         }
         $i++;
      }
   }
}
echo "<td align='right' width='60%'>
<form name='searchform' method='post' action='".BASEDIR."search.php?stype=all'>
<input type='text' name='stext' value='Paie&#240;ka...' onclick=\"this.value=''\" class='textbox' style='width:100px'>
<input type='submit' name='search' value='Paie&#240;ka' class='button'>
</form>
</tr></table>";
}
 
  echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' height='100' class='footer'>
<tr>
<td align='left'>Varikliukas: <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a></td>
<td align='center'>".stripslashes($settings['footer'])."</td>
<td align='right'>Dizainas: <a href='DWad3' target='_blank'>DWad3</a></td>
</tr>
</table>
</td>
</tr>
</table>\n";

}


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

global $locale;

  echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
  echo "<td height='56' class='newstable-cellpic'><center>$subject</center></td>";
  echo "</tr></table>";
  echo "<table width='100%' cellpadding='0' cellspacing='0' 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'>";
  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&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
  echo "</td></tr></table></td></tr></table>\n";
}

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

global $locale;

  echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
  echo "<td height='46' class='table-cellpic'>$subject</td>";
  echo "</tr></table>";
  echo "<table width='100%' cellpadding='0' cellspacing='0' 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&amp;item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
  echo "</td></tr></table></td></tr></table>\n";
}

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

  echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
  echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
  echo "<tr><td width='100%' height='28' class='table-cellpic' align='left'>$title</td></tr>";
  echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

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

function openside($title) {

  echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
  echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
  echo "<tr><td width='100%' height='28' class='panel-cellpic' align='center'>$title</td></tr>";
  echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

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

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

  $boxname = str_replace(" ", "", $title);
  $box_img = $open == "on" ? "off" : "on";
  echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
  echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
  echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
  echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
  echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

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

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



Redagavo VilleR· 2009 Lie. 25 13:07:35