Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: News.php skaityti plačiau

Parašė MantasV· 2011 Vas. 17 17:02:53
#3



<?php

if (!defined("IN_FUSION")) { die("Access Denied"); }

 

define("THEME_WIDTH", "990");

define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

 

require_once INCLUDES."theme_functions_include.php";

 

function render_page($license=false) {

 

   global $settings, $main_style,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink,$uidlink;

 

 

   //Header

echo "<table cellspacing='0' align='center' cellpadding='0' width='819' class='1outer-border'>

<tr>

<td>

<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td class='full-header0'>

<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td>";

include_once "header.php";

include_once "eteris.php";

echo"</td>

</tr>

</table>

</td>

</tr>

</table>\n";

 

   echo "<table cellpadding='0' cellspacing='0' width='819'>\n<tr>\n";

   echo "<td class='sub-header'></td>\n";

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

 

   //Content

   echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";

   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }

   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";

   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }

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

 

   //Footer

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

   echo "<table align='center' cellpadding='0' width='819' cellspacing='0'\n<tr>\n";

   echo "<td class='footer' align='center'>

 

 

Copyright saitas.lt © 2010. Draudžiama kopijuoti.<br>

Sprendimas: <b>safasf</b>

 

 

   \n";

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

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

 

}

 

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

 

   echo "<table cellpadding='0' cellspacing='0' width='560'>\n<tr>\n";

   echo "<td class='capmain'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>".$subject."</a></td>\n";

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

   echo "<td class='main-body'>".$news."</td>\n";

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

   echo "<td>\n";

   echo "";

   echo "</td>\n</tr>\n</table><img src='http://saitas.tt.lt/themes/Arvydas/images/closetable.png'>\n";

 

}

 

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

 

   echo "<table cellpadding='0' cellspacing='0' width='560'>\n<tr>\n";

   echo "<td class='capmain'>".$subject."</td>\n";

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

   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";

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

   echo "<td>\n";

   echo "</td>\n</tr>\n</table><img src='http://saitas.tt.lt/themes/Arvydas/images/closetable.png'>\n";

 

}

 

function opentable($title) {

 

   echo "<table cellpadding='0' cellspacing='0' width='560'>\n<tr>\n";

   echo "<td class='capmain'>".$title."</td>\n";

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

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

 

}

 

function closetable() {

 

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

 

}

 

function openside($title, $collapse = false, $state = "on") {

 

   global $panel_collapse; $panel_collapse = $collapse;

 

   echo "<table cellpadding='0' cellspacing='0'  width='223' class='0border'>\n<tr>\n";

   echo "<td class='scapmain'>".$title."</td>\n";

   if ($collapse == true) {

      $boxname = str_replace(" ", "", $title);

      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";

   }

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

   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   

   if ($collapse == true) { echo panelstate($state, $boxname); }

 

}

 

 

function closeside() {

echo "</td></tr>

<tr>

<td><img src='http://saitas.tt.lt/themes/Arvydas/images/closeside.png'></td>

</tr>

</table>\n";

tablebreak();

}

 
?>



Redagavo MantasV· 2011 Vas. 17 17:02:23