Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Fusion v7. temos siaurinimas

Parašė DelluXas· 2009 Kov. 10 20:03:54
#1

Sveiki, kaip ant "Php-Fusion" v7.xx versijos susiaurinti themą? Ta prasme ant v6.xx buvo su procentais "theme.php" failiuke, o naujajame nerandu...

Pasakykite kokiame faile ir koks tekstas panašiai turėtu būti. Dėkui. :)

Parašė BigMan· 2009 Kov. 10 20:03:19
#2

dek theme.php faila cia ir isjunk smiles ;)

Parašė DelluXas· 2009 Kov. 10 21:03:03
#3

Prašom.

<?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 cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td align='center' class='full-header'>\n".showbanners()."</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%'><tr>";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
   echo "<br><td align='center'><b>".showcounter()."</b></td><br>";
   echo "<td align='center'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>";
   echo "</tr></table>\n";

}

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

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\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'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer middle-border'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "<td style='height:5px;background-color:#f6a504;'></td>\n";
   echo "</tr>\n</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='main-body'>\n";

}

function closetable() {

   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "<td style='height:5px;background-color:#f6a504;'></td>\n";
   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='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {
   
   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";

}
?>




Parašė BigMan· 2009 Kov. 10 21:03:15
#4

:) CIA NERA THEMOS PLOCIO ?|

Parašė DelluXas· 2009 Kov. 10 21:03:12
#5

Žinau, ką aš tau ir sakiau, čia fusion v7. default "Gillete" theme. :)

Parašė robert· 2009 Kov. 10 21:03:08
#6

require_once INCLUDES."theme_functions_include.php";



šitam faile žiūrėk

Parašė DelluXas· 2009 Kov. 10 21:03:36
#7

Ir tenais nelabai kas yra, jokiu procentų... :|

Parašė edeni· 2009 Kov. 10 21:03:25
#8

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

   //Header
   echo "<table cellpadding='0' cellspacing='0' width='TAVODYDIS'>\n<tr>\n";
   echo "<td align='center' class='full-header'>\n".showbanners()."</td>\n";
   echo "</tr>\n</table>\n";

   //Content
   echo "<table cellpadding='0' cellspacing='0' width='TAVODYDIS' 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='TAVODYDIS'><tr>";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='TAVODYDIS'><tr>";
   echo "<br><td align='center'><b>".showcounter()."</b></td><br>";
   echo "<td align='center'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>";
   echo "</tr></table>\n";

}




Ten kur TAVODYDIS keisk į koki nori dydi :))

Redagavo edeni· 2009 Kov. 10 21:03:23

Parašė DelluXas· 2009 Kov. 10 21:03:01
#9

Na bandau, taip ir galvojau, kad visus procentus reikia pakeisti. :)

EDIT: Puslapis dabar gaunasi kairėje pusėje. Kaip padaryti kad jis būtų per centrą, sucentruotas? Dabar jis sumažėjo, tačiau iš dešinės tarpo nėra jokio, o kairėje baltas lapas.

Redagavo DelluXas· 2009 Kov. 10 21:03:33

Parašė edeni· 2009 Kov. 10 21:03:40
#10

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

   //Header
   echo "<table cellpadding='0' cellspacing='0' width='TAVODYDIS' align='center'>\n<tr>\n";
   echo "<td align='center' class='full-header'>\n".showbanners()."</td>\n";
   echo "</tr>\n</table>\n";

   //Content
   echo "<table cellpadding='0' cellspacing='0' width='TAVODYDIS' class='$main_style' align='center'>\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='TAVODYDIS' align='center'><tr>";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='TAVODYDIS' align='center'><tr>";
   echo "<br><td align='center'><b>".showcounter()."</b></td><br>";
   echo "<td align='center'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>";
   echo "</tr></table>\n";

}




Ten kur TAVODYDIS keisk į koki nori dydi :)) Megink taip :))

Parašė DelluXas· 2009 Kov. 10 21:03:03
#11

Neina, labai labai susipaudžia tinklalapis, ir nereaguoja į tuos procentus. :|