Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Footerio uzrasai

Parašė grekce· 2010 Kov. 23 15:03:44
#8

Imk
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_BULLET", "<span class='bullet'>&middot;</span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='header' align='left'></td>";
   echo "<td class='' align='left'>\n<img src='".THEME."images/header2.png' border='0' alt='' /></td>\n";
   echo "</tr>\n</table>\n";
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
   echo "<td class='sub-header-right'></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 "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n";
   echo "<td align='right' class='sub-header'>".showcounters()."</td>\n";
   echo "<td class='sub-header-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
   if (!$license) { echo "<br /><br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n";

}

function render_news($subject, $news, $info) {
   
       global $locale, $aidlink, $user_data;

    echo "<table cellpadding='0' cellspacing='0' width='100%' style=''>\n<tr>\n
        <td class='news-capmain'></td><td class='capmain'>" . $subject .
        "</td><td class='news-capmainr'></td></tr>\n<tr>\n
        <td class='panel-cleft'></td>
      <td class='main-body' colspan='0'>";

    echo "<div class='news-poster'>" . $locale['global_070'] .
        " <a class='news' href='profile.php?lookup=" . $info['user_id'] . "'>" . $info['user_name'] .
        "</a> " . $locale['global_071'] . showdate("longdate", $info['news_date']) .
        "</div>\n";
    echo "$news";
    if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
        echo " <br /><img src='" . THEME .
            "images/readmore.gif' alt='' style='vertical-align:middle;border:0px;' /> <a href='news.php?readmore=" .
            $info['news_id'] . "'><strong>" . $locale['global_072'] . "</strong></a>";
    }
    echo "</td><td class='panel-cright'></td>
            </tr>\n<tr>\n
            <td class='panel-cleft'></td>
              <td class='news-footer' colspan='0'>\n";
    if ($info['news_allow_comments']) {
        echo " <img src='" . THEME .
            "images/comment.png' alt='' style='vertical-align:middle;border:0px;' /> <a class='news' href='news.php?readmore=" .
            $info['news_id'] . "'>" . $info['news_comments'] . ($info['news_comments'] == 1 ?
            $locale['global_073b'] : $locale['global_073']) . "</a>";
    }
    if (iADMIN && checkrights("N")) {
        echo " [<a class='news' href='" . ADMIN . "news.php" . $aidlink .
            "&amp;action=edit&amp;news_id=" . $info['news_id'] . "'>" . $locale['global_076'] .
            "</a>]\n";
    }
    echo " [<a class='news' href='print.php?type=N&amp;item_id=" . $info['news_id'] .
        "'>" . $locale['global_075'] . "</a>]</td><td class='panel-cright'>";

    echo "</td>\n</tr>\n
    <tr><td class='panel-cbottom-left'></td>
    <td class='panel-cbottom'></td>
    <td class='panel-cbottom-right'></td></tr>
   </table>\n";
}

function render_article($subject, $article, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title)
{

    echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
    echo "<td class='capmain-left'></td>\n";
    echo "<td class='capmain'>" . $title . "</td>\n";
    echo "<td class='capmain-right'></td>\n";
    echo "</tr>\n</table>\n";
    echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
    echo "<td class='panel-cleft'></td>\n";
    echo "<td class='main-body'>";

}

function closetable()
{

    echo "</td><td class='panel-cright'></td></tr><tr>\n";
    echo "<td class='panel-cbottom-left'></td>";
    echo "<td class='panel-cbottom'></td>";
    echo "<td class='panel-cbottom-right'></td>";
    echo "</tr>\n</table>\n";
}

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

   global $panel_collapse; $panel_collapse = $collapse;
   
    echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
    echo "<td class='scapmain-left'></td>\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 "<td class='scapmain-right'></td>\n";
    echo "</tr>\n</table>\n";
    echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
    echo "<td class='panel-cleft'></td>\n";
    echo "<td class='panel-cb'>\n"; //<-- teszt
    if ($collapse == true) {
        echo panelstate($state, $boxname);
    }

}


function closeside() {
   
    global $panel_collapse;

    if ($panel_collapse == true) {
        echo "</div>\n";
    }
    echo "</td><td class='panel-cright'></td></tr><tr>\n";
    echo "<td class='panel-cbottom-left'></td>";
    echo "<td class='panel-cbottom'></td>";
    echo "<td class='panel-cbottom-right'>";
    echo "</td>\n</tr>\n</table>\n";

}
?>