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

Parašė Ultriukas· 2008 Bal. 2 21:04:25
#5

Jei galite padekite kaip man ten ja sukisti wa theme.php


<?php

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

require_once INCLUDES."theme_functions_include.php";



// theme settings

$body_text = "#fff";

$body_bg = "#5c5e5d";

$theme_width = "850";

$theme_width_l = "195";

$theme_width_r = "195";



function render_header($header_content) {



global $theme_width;



echo "<table align='center' cellspacing='0' cellpadding='0' width='100%'>

<tr>

<td>

<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td>

<table cellpadding='0' cellspacing='0' align='center' width='$theme_width'>

<tr>

<td style='border-bottom: solid #5c5e5d 2px;'>";

include_once "virsus.php";

echo "</td>

</tr>

</table>

</td>

</tr>

</table>\n";



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



}



function render_footer($license=false) {



global $theme_width,$settings;



echo "</tr>\n</table>\n";

echo "<table cellpadding='0' align='center' cellspacing='0' width='$theme_width'>

<tr>

<td align='center' class='footer' height=20>

&copy; <b>yoursite.com | Sprendimas WTFthemes.com </b>

</td>

</tr>

<tr>

<td align='right' class=footer3 height=15>";

echo "Powered by <b>PHP-Fusion</b>";

echo "</td>

</tr>

</table>

</td>

</tr>

</table>\n";



}



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


global $locale;

        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td height='29' class='capmain1'>$subject</td>";
        echo "</tr></table>";
        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td></td>";
        echo "<td class='main-body1'><div style='width:100%;vertical-align:top;'>$news</div><br>";
        echo "<div style='margin-top:5px'>";
        echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
        echo "<td align='left' height='21' class='news-footer'>";
        echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
        echo "".$locale['041'].showdate("longdate", $info['news_date'])."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

        echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
        if ($info['news_allow_comments'])
        echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b> ";
        echo "".$info['news_reads'].$locale['044']." ";
   
        echo "</td></tr></table></div></td>";
        echo "<td class='rechts'>";
        echo "</td></tr><tr>";
        echo "<td></td>";
        echo "<td></td>";
        echo "<td></td>";
        echo "</tr></table>\n";
}



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

   

echo "<table width='100%' cellpadding='0' cellspacing='0'>

<tr>

<td class='capmain1'>$subject</td>

</tr>

<tr>

<td class='main-body1'>

".($info['article_breaks'] == "y" ? nl2br($article) : $article)."

</td>

</tr>

<tr>

<td align='center' class='news-footer'>\n";

echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);

echo "</td>

</tr>

</table>\n";



}



function opentable($title) {



echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td class='capmain'>$title</td>

</tr>

<tr>

<td class='main-body'>\n";



}



function closetable() {



echo "</td>

</tr>

</table>\n";



}



function openside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td width=176 class='scapmain'>$title</td>

</tr>

<tr colspan=2>

<td colspan=2 class='side-body'>\n";

}



function closeside() {

echo "</td>

</tr>

</table>\n";

tablebreak();

}

function userside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td class='side-body'>\n";

}



function closeuside() {

echo "</td>

</tr>

</table>\n";

}



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



$boxname = str_replace(" ", "", $title);

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>

<tr>

<td class='scapmain'>$title</td>

<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>

</tr>

<tr>

<td colspan='2' class='side-body'>

<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";



}



function closesidex() {



echo "</div>

</td>

</tr>

</table>\n";

tablebreak();



}



function tablebreak() {



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



}

?>



Redagavo Žmogus· 2008 Bal. 2 21:04:07