<?php
if (!defined("IN_FUSION")) { die("Kur lendi?"); }
require_once INCLUDES."theme_functions_include.php";
define("THEME_BULLET", "·");
function render_page($license=false) {
global $settings, $main_style, $locale;
if(!iMEMBER) { //JEIGU NEPRISIJUNGES RODOM TAI KAS SKLIAUSTUOSE { ... }
echo '<div class="login">
<ul>
<a href="login.php">Prisijungti</a>
<a href="register.php">Registruotis</a>
<ul>
</div>';
} else { // JEIGU PRISIJUNGES TAI KAS SKLIAUSTUOSE { ... } (Nuoroda iki profilio su pasisveikinimu)
echo '<div class="login">
<ul>
<a href="profile.php?lookup='.$userdata['id'].'" title="Eiti i profili">Labas, '.$userdata['username'].'</a>
<ul>
</div>';
}
echo '<div class="searchbar">
<p>Ieškoti</p>
</div>
<div class="searchbutton">
<a href="kazkokia-nuoroda">Go</a>
</div>';
echo '<div class="header"></div>';
echo '<div class="subheader">
<ul>
<a href="index.php">Namai</a>
<a href="forum/index.php">Forumas</a>
<a href="articles.php">Html pamokos</a>
<a href="articles.php">Css pamokos</a>
<a href="articles.php">Javascript pamokos</a>
<a href="articles.php">Php pamokos</a>
<a href="articles.php">Straipsniai</a>
<a href="downloads.php">Dizainai</a>
<a href="kazkokia-nuoroda">Apie mus</a>
</ul>
</div>';
echo '<div id="content">';
echo '<div class="never_sidebar">
<div class="side-panel">
<div class="side-panel-title">
<center><h3>asdasdasd</h3></center>
</div>
<center><p><a>asdfasdg</a></p>
<p>asdasdasdasd</p></center>
</div>
</div>
<div class="turinys">';
/*
* Nezinau ka cia gamini, bet i U_CENTER.CONTENT.L_CENTER vieta atsiranda turnys is tavo puslapiu, tokiu kaip news.php
*
* Tad tas tavo kodas turi buti norimame atidaryti puslapyje
*
* TARKIM susikurk nauja faila pavadinimu test.php public_html aplankale. Forume temoi idesiu pavyzdi.
*
* <div class="content-title">
* <h2>Pavadinimas</h2>
* </div>
* <p>turinys cia</p>
*
*
*/
echo U_CENTER.CONTENT.L_CENTER;
echo '</div>
</div>';
echo '<div class="footer">
<center><p>'.$settings['footer'].'<br>Dizaino teisės priklauso, projekto įkūrėjui <b>Anonimas</b></p>
<p><b><a href="kazkokia-nuoroda">Kontaktai</a></b></p>
<p><b><a href="kazkokia-nuoroda">Jūsų reklama</a></b></p></center>
</div>';
}
function render_news($subject, $news, $info) {
echo "<div class='box-out margin'>\n";
echo "<div class='block-head' style='font-size:12px'>".$subject."</div>\n";
echo "<div align='center'>\n";
echo newsposter($info,"").newsopts($info,"").itemoptions("N",$info['news_id']);
echo "".$news."</div></div>";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<tr><td class='main-pavadinimas'>".$subject."</td></tr>\n";
echo "<tr><td align='center' class='main-daugiau'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tbody><tr>\n";
echo "<td class='main-fonas middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;'></td>\n";
echo "</tr>\n</table>\n";
}
function opentable($title) {
echo "<div class='box-out margin'>\n";
echo "<div class='block-head' style='font-size:12px'>".$title."</div>\n";
echo "<div class='clr'></div>";
}
function closetable() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='side-block'>\n";
echo "<div class='block-head'>".$title."</div>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='block-head' style='align: right;'>".panelbutton($state, $boxname)."</div>\n";
}
echo "<div class='block-inner'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div></div>\n";
}
function opensideb($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='side-block b-tags'>\n";
echo "<div class='block-inner'>$title</div>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='block-inner' style='align: right;'>".panelbutton($state, $boxname)."</div>\n";
}
echo "<div class='block-inner'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closesideb() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div></div>\n";
}
?>