Kaip pakeisti sita vieta?, kad kai paspaudi skaityti daugiau, atsidariusiame puslapyje sis uzrasas pradingtu . Tipo kad skaityti daugiau rodytu tik news.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#444444";
$body_bg = "#ffffff";
$theme_width = "946";
$theme_width_l = "210";
$theme_width_r = "210";
function render_header($header_content) {
global $theme_width;
echo "<table colspan='3' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='946' height='260' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2' rowspan='7'>
<center><img src='".THEME."images/logotipas.jpg' width='946' height='260' alt=''></center></td>
</tr>
<tr>
</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
tablebreak();
echo "<table colspan='3' cellpadding='0' cellspacing='0' width='100%'>
<tr><td><img src='".THEME."images/apacia.jpg' alt='' width='946' height='8'></td></tr>
Puslapis.lt</a>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
$news
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td align='right' class='news-footer'>\n";
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><img src='".THEME."Skaityti daugiau'></a>";
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td width='100%' align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_1.png'></td>
<td class='scapmain' height='29' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_3.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='side-body'>
\n";
}
function closeside() {
echo "
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='8'></td></tr>
</table>\n";
}
Kaip pakeisti sita vieta?, kad kai paspaudi skaityti daugiau, atsidariusiame puslapyje sis uzrasas pradingtu . Tipo kad skaityti daugiau rodytu tik news.php
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><img src='".THEME."Skaityti daugiau'></a>";
echo "</td>
|