Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Ką padaryti?

Parašė E01· 2008 Gru. 3 18:12:37
#5

Va theme.php
<?php

/*******************************/
/*
Dizainas redaguotas Effic[y]
Lithuanian PHP-fusion support.
 */
/*****************************/

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

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "900";
$theme_width_l = "229";
$theme_width_r = "229";

function render_header($header_content) {

global $theme_width,$settings;
   echo "<table border='0' cellpadding='0' cellspacing='1' width='900' height='291' align='center'>\n";
   echo "<tr><td width='100%'  height='11' valign='top'>";
   echo "<table height='79' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td><table height='79' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
   echo "<img src='".THEME."images/baner.png' border='0' title='".$settings[sitename]."'></td>";


// BANNER CODE HERE

   echo "</td></tr></table>";
   echo "<table cellSpacing='0' width='100%' class='navigacija' cellPadding='0' border='0'>";
   
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   echo "<td align='left'>&nbsp;&nbsp;\n";
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " <img src='".THEME."images/div.gif'> "; } else { echo "\n"; }
   $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
      if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
   echo "<a class='category' href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
   } else {
   echo "<a class='category' href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
   }
$i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td><td align='right'><b>".ucwords(showdate($settings['subheaderdate'], time()))."&nbsp;&nbsp;&nbsp;</b></td></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='0' cellspacing='4' border='0'>\n";
}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td width='990' align='center'><span style='font-size : 10px;font-weight : normal;color:#fff;padding-right:20px;'>Varikliukas: <a href='https://webdnd.com' target='_blank'>PHP-Fusion</a>  | <a href=''>Sprendimas: Effic[y]</a></span></td>
</tr>
</table>";

}

function render_news($subject, $news, $info) {
global $aidlink,$item_type,$locale;

echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='53' height='57' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-center-main' align='center'>$subject</td>";
   echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='34' height='57' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo"

<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td algin='center'>
<span style='font-size: 9px; padding-left: 20px;'>".showdate("shortdate", $info['news_date'])." - <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
 if ($info['news_allow_comments'])
   echo "<td align='center'><span style='font-size: 9px; padding-right: 20px;'>
   <a href='naujienos.php?readmore=".$info['news_id']."' style='color:#d00602;'>Pla&#232;iau</a> -
   Komentarø: [<a href='naujienos.php?readmore=".$info['news_id']."'>".$info['news_comments']."</a>]
</td></td>
</tr>
</table>
<hr>
<table>
<tr>
<td class='news-bodys'>
</span>$news</td>
</tr>
</table><br>\n";

}

function render_article($subject, $article, $info) {
global $aidlink,$item_type,$locale;

echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='newsmain' algin='center'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td algin='left'>
<span style='font-size: 10px; padding-left: 20px;'>".showdate("shortdate", $info['article_date'])."  - <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo"<td align='center'><span style='font-size: 11px; padding-right: 20px;'> <a href='print.php?type=A&amp;item_id=".$info['article_id']."'' style='color:#d00602;'>Spausdinti</a>";
echo"</td></td>
</tr>
</table>
<hr>
<table>
<tr>";
echo "<span style='padding-left: 20px;'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</form>
</tr>
</table><br>\n";

}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='53' height='57' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-center-main' align='center'>$title</td>";
   echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='34' height='57' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";

   echo "<td class='main-body'>\n";
}

function closetable() {

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

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

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

}

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='right'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='center' alt='' style='padding-left:11px;' onclick=\"javascript:flipBox('$boxname')\">$title</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

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

}


function tablebreak() {

   echo "<table width='100%' cellspacing='0' cellpadding='0'></table>\n";
}
?>



Redagavo E01· 2008 Gru. 3 18:12:07