Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padėkit!

Parašė cipis· 2008 Rugp. 2 14:08:43
#11

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
// theme settings
$body_text = "#000000";
$body_bg = "#006600";
$theme_width = "890";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='820'>
<tr>
<td>

<tr>
<td width='800'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<td colspan='6'><img src='".THEME."images/header.png'></td>
<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<table cellpadding='0' cellspacing='0' background='".THEME."images/naujiena.jpg' width='100%'>
<tr align='center'>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/pagrindinis.gif' border='0'></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/navigacija/pateikti.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/navigacija/forumas.gif' border='0'></a></td>
<td><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/navigacija/muzika.gif' border='0'></a></td>

</tr>
</table>";

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

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "
    </tr>
</table>
<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
    <tr>
        <td class='tbl2-top-left'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl2-top'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl2-top-right'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-left'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
            ".stripslashes($settings['footer'])."
        </td>
        <td class='tbl-right'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-bot-left'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot-right'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
    </tr>
</table>
<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'>
    <tr>
        <td align='center' class='footer'>
            ".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
            if ($license == false) {
               echo "
                Powered by <a href='http://papugos.xz.lt' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." &copy; 2003-2005<br><br>\n";
            }
            echo "
        </td>
    </tr>
</table>\n";

}

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

global $locale;

echo "
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-top-left'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
        <td width='100%' class='tbl-top'>
            $subject
        </td>
        <td class='tbl-top-right'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
    </tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-left'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
        <td class='main-body'>
            <div style='width:100%;vertical-align:top;'>
                $news
            </div>
            <div style='margin-top:5px'>
                <table width='100%' cellpadding='0' cellspacing='0'>
                    <tr>
                        <td class='infobar'>
                            <img src='".THEME."images/bullet.gif' alt='&middot;'>
                            ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
                            ".$locale['041'].showdate("longdate", $info['news_date'])."
                        </td>
                        <td align='right' class='infobar'>
                            ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> &middot;\n" : "");
                            if ($info['news_allow_comments']) echo "
                            <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> &middot;\n";
                            echo "
                            ".$info['news_reads'].$locale['044']."
                            <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
        <td class='tbl-right'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-bot-left'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot-right'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
    </tr>
</table>\n";

}

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

global $locale;
   
echo "
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
    <td class='tbl-top-left'>
        <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
    </td>
    <td width='100%' class='tbl-top'>
        $subject
    </td>
    <td class='tbl-top-right'>
        <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
    </td>
    </tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
        <td class='main-body'>
            <div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
            <div style='margin-top:5px'>
                <table width='100%' cellpadding='0' cellspacing='0'>
                    <tr>
                        <td class='infobar'><img src='".THEME."images/bullet.gif' alt='&middot;'>
                            ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
                            ".$locale['041'].showdate("longdate", $info['article_date'])."
                        </td>
                        <td align='right' class='infobar'>\n";
                        if ($info['article_allow_comments']) echo "
                            ".$info['article_comments'].$locale['043']." ·\n";
                        echo "
                            ".$info['article_reads'].$locale['044']."
                            <a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
        <td class='tbl-right'>
            <img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-bot-left'>
            <img src='".THEME."images/blank.gif' width='5' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot-right'>
            <img src='".THEME."images/blank.gif' width='5' height='6' alt='' style='display:block'>
        </td>
    </tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-top-left'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
        <td width='100%' class='tbl-top'>
            $title
        </td>
        <td class='tbl-top-right'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
    </tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-left'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
        <td class='main-body'>\n";

}

function closetable() {

echo "
        </td>
        <td class='tbl-right'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-bot-left'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot-right'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
    </tr>
</table>\n";

}

function openside($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-top-left'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
        <td width='100%' class='tbl-top'>
            $title
        </td>
        <td class='tbl-top-right'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
    </tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>
        <td class='side-body'>\n";

}

function closeside() {

echo "
        </td>
        <td class='tbl-right'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-bot-left'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot-right'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
    </tr>
</table>\n";
tablebreak();

}

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

$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-top-left'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
        <td class='tbl-top'>
            $title
        </td>
        <td align='right' class='tbl-top'>
            <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>
        </td>
        <td class='tbl-top-right'>
            <img src='".THEME."images/blank.gif' width='6' height='23' alt='' style='display:block'>
        </td>
    </tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
    <tr>
        <td class='tbl-left'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
        <td class='side-body'>
            <div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

echo "
            </div>
        <td class='tbl-right'>
            <img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>
        </td>
    </tr>
    <tr>
        <td class='tbl-bot-left'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot'>
            <img src='".THEME."images/blank.gif' width='1' height='6' alt='' style='display:block'>
        </td>
        <td class='tbl-bot-right'>
            <img src='".THEME."images/blank.gif' width='6' height='6' alt='' style='display:block'>
        </td>
    </tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>



Pazek dabar :) ;)

Redagavo cipis· 2008 Rugp. 2 14:08:08