Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Skaityti daugiau

Parašė Gyciagas· 2009 Lap. 10 19:11:35
#1

Sveiki, kaip padaryti kad po naujienos tekstu butu skaityti daugiau
štai theme
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#FFFFFF";
$body_bg = "#6A635A";
$theme_width = "988";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width, $userdata, $aidlink, $settings, $db_prefix;

echo "<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>
<td class='header'>
<div id='plotas'>
<div id='data'>".showsubdate()."</div>
<div id='nariams'>\n"; include THEME."user_info_panel.php"; echo "</div>
<div id='tinkle'>\n"; include THEME."last_seen_users_panel.php"; echo "</div>
<div id='populiari'>\n"; include THEME."popular_downloads_panel.php"; echo "</div>
<div id='naujausia'>\n"; include THEME."latest_downloads_panel.php"; echo "</div>
<div id='paieska'><form name='search' action='search.php?stype=n' method='post'><input type='text' name='stext' class='searchbox' value='Paieškos tekstas...' onfocus=\"if(this.value=='Paieškos tekstas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Paieškos tekstas...';}\">&nbsp;<input type='submit' value='Ok' name='option' class='button-ok'></form></div>
<div id='dainos'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/blank.gif' width='50' height='19' border='0' alt=''></a></div>
<div id='albumai'><a href='".BASEDIR."news_cats.php?cat_id=2'><img src='".THEME."images/blank.gif' width='65' height='19' border='0' alt=''></a></div>
<div id='klipai'><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/blank.gif' width='48' height='19' border='0' alt=''></a><div>
</div>
</td>
</tr>
</table>\n";

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

}

function render_footer() {

global $theme_width;

echo "<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>
<td class='footer-top' align='right'><a href='#top' target='_self' class='blue'><img src='".THEME."images/IMG_strelyte.png' border='0' alt=''><img src='".THEME."images/blank.gif' width='6' height='0' border='0' alt=''>Viršun</a></td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>
<td class='footer-left'>Visos teisės saugomos © music.visiems.eu 2008 - 2009. Kopijuoti Griežtai Draudžiama.</td>
<td class='footer-right'>Dizainas: <a href='http://www.daco.lt' target='_blank'>M. Naujokas</a><br>Varikliukas: <a href='http://www.php-fusion.co.uk' target='_blank'>PHP Fusion</a></td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
   echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>$subject</a>\n";
} else {
   echo $subject;
}
echo "</td>
<td class='capmain-right' align='center'>".$info['news_comments']."</td>
</tr>
<tr>
<td class='main-body' colspan='2'>$news</td>
</tr>
<tr>
<td class='news-footer' colspan='2'></td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

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

}

function closeside() {

echo "</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();

}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='center'>$title<img src='".THEME."images/blank.gif' width='10' height='0' alt=''>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>