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

Parašė Falko· 2008 Lie. 3 19:07:10
#1

Kas gali padėt ? Noriu biškį paredaguot pramogauk seną theme. Žodziu man reikia, kad vietoj headerį esančio sms pramogos būtų 10 naujausiu siuntinių. Gal kas nors gali padėt ? Nežinau korio failo reiia taqi dedu abudu theme.php ir virsus.php
theme.php
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.net"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "1010";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content)
{ include_once "virsus.php";
}

function render_footer($license=false)
{ include_once "apacia.php";
}


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

global $locale;

echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>
<tr>
<td width='4px' height='29px'><img src='".THEME."panele/virsus[z]/1.jpg'></td>
<td width='85%' height='29px' background='".THEME."panele/virsus[z]/2.jpg'>&nbsp;&nbsp;&nbsp;$subject [ ";
if ($info['news_allow_comments']) echo "Komentaru: ".$info['news_comments']." | Skaityta: ".$info['news_reads']." ]</td>
<td width='15%' height='29px' background='".THEME."panele/virsus[z]/2.jpg' align='right'>".($info['news_ext'] == "y" ? "<a href='naujienos.php?readmore=".$info['news_id']."'><font color='#EE7700'><b>Toliau >> </font></b></a>\n" : "")."</td>
<td width='4px' height='29px'><img src='".THEME."panele/virsus[z]/3.jpg'></td>
</tr>
<tr><td></td></tr>
</table>

<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panele-v1' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v2' height='4' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v3' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
</tr>";
    echo "<tr>";
   echo "<td class='panele-s1'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>";
   echo "<td class='side-body'>$news
   <Br><p align='right'>&copy; <a href='profilis.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> (".showdate("longdate",$info['news_date']).")</p>
   </td>";
   echo "<td class='panele-s2'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>";
   echo "</td></tr><tr >
<td class='panele-a1' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a2' height='20' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a3' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
</tr></table>\n";
}



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

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td width='4px' height='29px'><img src='".THEME."panele/virsus[m]/1.jpg'></td>";
   echo "<td width='100%' height='29px' background='".THEME."panele/virsus[m]/2.jpg'>$subject</td>";
   echo "<td width='4px' height='29px'><img src='".THEME."panele/virsus[m]/3.jpg'></td>";
   echo "</tr><tr >
<td class='panele-v1' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v2' height='4' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v3' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panele-s1'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "<td ><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar3'>".articleposter($info)."</td>";
   echo "<td align='right' class='infobar4'>";
   echo openform("A",$info['article_id']).articleopts($info,"&middot;").closeform("A",$info['article_id']);
   echo "</td></tr></table></div></td>";
   echo "<td class='panele-s2'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<tr>
<td class='panele-a1' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a2' height='20' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a3' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
</tr></table>\n";
}


function opentable($title) {

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td width='4px' height='29px'><img src='".THEME."panele/virsus[m]/1.jpg'></td>";
   echo "<td width='100%' height='29px' background='".THEME."panele/virsus[m]/2.jpg'>$title</td>";
   echo "<td width='4px' height='29px'><img src='".THEME."panele/virsus[m]/3.jpg'></td>";
   echo "</tr><tr >
<td class='panele-v1' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v2' height='4' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v3' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panele-s1'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
   <td class='side-body' width='100%'>\n";
   }
function closetable()
{   
   
   echo "<td class='panele-s2'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<tr>
<td class='panele-a1' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a2' height='20' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a3' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
</tr></table>\n";
}

function openside($title)
{
global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td width='4px' height='29px'><img src='".THEME."panele/virsus[o]/1.jpg'></td>";
   echo "<td width='100%' height='29px' background='".THEME."panele/virsus[o]/2.jpg'><center>$title</center></td>";
   echo "<td width='4px' height='29px'><img src='".THEME."panele/virsus[o]/3.jpg'></td>";
   echo "</tr><tr >
<td class='panele-v1' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v2' height='4' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-v3' height='4' width='5'><img src='".THEME."images/blank.gif'></td>
</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panele-s1'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
   <td class='side-body' width='100%'>\n";
   }
function closeside()
{   
   
   echo "<td class='panele-s2'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<tr>
<td class='panele-a1' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a2' height='20' width='100%'><img src='".THEME."images/blank.gif'></td>
<td class='panele-a3' height='20' width='13'><img src='".THEME."images/blank.gif'></td>
</tr></table>\n";
}


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

function closesidex()
{
   echo "</div>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}


function tablebreak()
{ echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'></td></tr></table>\n";
}
?>




virsus.php
<?php

global $theme_width,$settings,$locale,$userdata,$aidlink;

include THEME."navigacija.php";

echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='7' nowrap='nowrap' class='sonas1'></td><td>";
echo "<table width='1016' border='0' cellspacing='0' cellpadding='0'><tr><td>";

echo "<table class='navigacija' width='1016' cellspacing='0' cellpadding='0'>";
echo "<tr>
<td height='79'><img alt='' src='".THEME."virsus/logo-1.jpg' width='394' height='79'></td>
<td height='79'><a onmouseover=\"MM_swapImage('Image1','','".THEME."virsus/logo-2[ijunktas].jpg',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."index.php'><img alt='' src='".THEME."virsus/logo-2[isjunktas].jpg' style='vertical-align:top;' name='Image1' border='0'></a></td>
<td height='79'><img alt='' src='".THEME."virsus/logo-3.jpg' width='7' height='79'></td>
<td height='79'><a onmouseover=\"MM_swapImage('Image2','','".THEME."virsus/logo-4[ijunktas].jpg',1)\" onmouseout='MM_swapImgRestore()' href='".FORUM."index.php'><img alt='' src='".THEME."virsus/logo-4[isjunktas].jpg' style='vertical-align:top;' name='Image2' border='0'></a></td>
<td height='79'><img alt='' src='".THEME."virsus/logo-5.jpg' width='9' height='79'></td>
<td height='79'><a onmouseover=\"MM_swapImage('Image3','','".THEME."virsus/logo-6[ijunktas].jpg',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."sms.net'><img alt='' src='".THEME."virsus/logo-6[isjunktas].jpg' style='vertical-align:top;' name='Image3' border='0'></a></td>
<td height='79'><img alt='' src='".THEME."virsus/logo-7.jpg' width='9'height='79'></td>
<td height='79'><a onmouseover=\"MM_swapImage('Image4','','".THEME."virsus/logo-8[ijunktas].jpg',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."reklama.net'><img alt='' src='".THEME."virsus/logo-8[isjunktas].jpg' style='vertical-align:top;' name='Image4' border='0'></a></td>
<td height='79'><img alt='' src='".THEME."virsus/logo-9.jpg' width='35'height='79'></td>
</tr></table>";


$vardas = trimlink($userdata['user_name'], 25);
$id = $userdata['user_id'];
$panele = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#EE7700'><a><b>Sms pramogos</b></a></font>";

 echo "<table cellpadding='0' cellspacing='0'>
   <tr>";
if (iMEMBER)
{
   echo "<td rowspan='4'><img src='".THEME."logo/logo-1.jpg' widht='785px' height='207px'></td>
   <td class='logo-2'><img src='".THEME."images/blank.gif' widht='231px' height='28px'></td>
   </tr>
   <tr>
   <td class='logo-3' width='100%'>$panele</td>
   </tr>
   <tr>
   <td class='logo-4' width='100%'><table width='100%'>";



echo "<div align='left'>";

if(dbcount("(*)", "money_links", "id > 0") > 0){
$snd = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
dbquery("DELETE FROM pingvin_money_links WHERE `galiojaiki` < '".$snd."'");
$sql = dbquery("SELECT * FROM pingvin_money_links");
while ($linkas = dbarray($sql)){
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".stripinput(htmlspecialchars($linkas[nuoroda]))."' class='side'><font size='2' color='#FFA3CB'>".stripinput(htmlspecialchars($linkas[tekstas]))."</font></a><br>";
}
}else{
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."pinigu_sistema/links.php' class='side'><font size='2' color='#FFA3CB'>".$linkslocale[1]."</font></a>";
}

echo "
</div>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<br><div align='left'><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."'><font size='1'>Administracija</font></a><br></div>\n";
   }




   echo "</table></td>
   </tr>
   <tr>
   <td class='logo-5'><img src='".THEME."images/blank.gif' widht='231px' height='37px'></td>";
}
else
{
echo "<td><img src='".THEME."logo/logo-0.jpg'></td>";
}
   echo "</tr></table>\n";


echo "<table class='' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td><img src='".THEME."-.jpg' width='100%'' height='18px'></td></tr>";
echo "</table>";

echo "<table width='1016' cellpadding='0' cellspacing='0' border='0' align='center'>";
   echo "<tr>";
   echo "<table width='1016' cellpadding='2' class='main-body' cellspacing='0' border='0'>
   <tr height='0px'><td></td><tr>";
?>