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

Parašė Lukšius· 2008 Spa. 14 18:10:42
#1

Taigi pamaniau ir man vertėtų sukūrti temą, nes turėsiu tikrai daug klausimų.

Pradedu nuo pirmojo:
Dabartinis vaizdas:




Taigi atjūngiau paneles ir padariau, kad rodytų tik naujienas. Ir man reikia, kad šalia naujienų rodytų navigacija man nereikia, kad panelę rodytų, bet nuorodas theme.php faile.
Pavyzdys:





Nežinau kaip tai padaryti tai gal sulauksiu pagalbos.
Theme.php
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|      Garda&#254;&#253;m Bu Tema Fusion i&#231;indir.       |
|---------------------------------------------|
| Tasar&#253;mc&#253;: CeRNoBiL-SanaLKraL               |
| web: http://www.sanalkral.org/              |
| msn & email: editor@sanalkral.org           |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

// tema ayarlar&#253;
$body_text = "#113355";
$body_bg = "#FFFFFF";
$theme_width = "55%";
$theme_width_l = "130";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$settings;

//Header Kodlar&#253; Burda ba&#254;l&#253;yor...
echo "
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><center><img src='".THEME."images/banner.png'></center></td>
</tr>
</table>
</td>
</tr>
</table>\n";
//Header Kodlar&#253; Burda Bitiyor..

//Resimli Menü Kodlar&#253; Ba&#254;l&#253;yor.. Fazla oynaman&#253;z&#253; tavsiye etmem &#231;ünki &#231;ok kar&#253;&#254;&#253;kt&#253;r.
//ziyaret&#231;ilere üye ol;üyelere profil düzenle &#231;&#253;k&#253;yor. if kodlar&#253; var..
echo "<table align='center' width='99%'>
<td>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
//Burda resimli menü kodlar&#253; Bitiyor..alttaki } bu headeri kapatmak i&#231;in.
}

function render_footer($license=false) {

global $theme_width,$locale,$settings;

   echo "</tr></table>

<TABLE cellSpacing=0 cellPadding=0 width='100%'>
        <TR>
      <TD vAlign=top width=14><IMG height=12 src='".THEME."images/1.gif' width=14 border=0></TD>
          <TD vAlign=top width=100% background=".THEME."images/2.gif></TD>
          <TD vAlign=top width=14><IMG height=12 src='".THEME."images/3.gif' width=14 border=0></TD></TR>
        <TR>
          <TD width=14 background=".THEME."images/4.gif></TD>
          <TD>
            <DIV align=center>
            <TABLE cellSpacing=0 cellPadding=0 width='100%' border=0>
              <TR>
                <TD align=left>Dizain&#0261; suk&#0363;r&#0279;: <u>CeRNoBiL</u></a></TD>
                <TD align=center>Varikliukas: <u>Php-Fusion</u></a></TD>
                <TD align=right><b>".$settings['counter']." </b>".$locale['141']."\n</TD></TR><TR>
               
                </TR></TABLE>
                </DIV></TD>
          <TD width=10 background=".THEME."images/6.gif><IMG height=20 src='".THEME."images/spacer.gif' width=14 border=0></TD></TR>
        <TR>
          <TD vAlign=top width=14><IMG height=12 src='".THEME."images/8.gif' width=14 border=0></TD>
          <TD vAlign=top width=100% background=".THEME."images/10.gif></TD>
          <TD vAlign=top width=14><IMG height=12 src='".THEME."images/9.gif' width=14 border=0></TD></TR>
          </TABLE>
";


   echo "";
}

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

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-bleft'><img src='".THEME."images/blank.gif' width='5' height='43' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-bmain'>$subject</td>";
   echo "<td class='panel-bright'><img src='".THEME."images/blank.gif' width='5' height='43' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border2-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
   echo "<td align='right' class='infobar2'>";
   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']." <b>-</b> ";
   echo "<a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></div></td>";
   echo "<td class='border2-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'>";
   echo "</td></tr><tr>";
   echo "<td class='border2-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
   echo "<td class='border2-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
   echo "<td class='border2-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;

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

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-aleft'><img src='".THEME."images/blank.gif' width='5' height='32' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-amain'>$title</td>";
   echo "<td class='panel-aright'><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'>\n";
}

function closetable() {

   echo "</td>";
   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 openside($title) {
   
   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 width='100%' class='panel-main'>$title</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'>\n";
}

function closeside() {

   echo "</td>";
   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><img src='".THEME."images/blank.gif' height='4' alt='' style='display:block'>\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'>";
   echo "</td></tr></table>\n";
}
?>