Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: reikia pagalbos del theme.php

Parašė Mantas_· 2009 Sau. 19 19:01:38
#1

Sveiki iskilo problema kaip man padaryti kad baneris butu istisinis nu dabar jis yra sukarpytas dalimis bet as noriu kad jis butu pilnas o per theme.php redaguot neiseina. va theme.php


<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";

if(!function_exists("ImageTTFText"))
   $rendered_captions = false;
else
   $rendered_captions = true;

function render_header($header_content) {

global $theme_width,$settings;
echo "
<div style='width: ".(stristr("".$theme_width."", "%")? $theme_width : $theme_width."px")."; margin: 0 auto; text-align: left;'>
   <img src='".THEME."images/headerlefttop.jpg' alt='<---->' hspace='0' vspace='0' style='vertical-align: bottom;'>
   <div id='headerbg'>
      <div id='headerl'>
         <div id='headerr'>
            <img src='".THEME."images/banner.gif' alt='Battlefield 2' style='margin-top: 16px;'>
         </div>
      </div>
   </div>
   
   <img style='float:left;' src='".THEME."images/whiteheaderl.jpg' alt='<' hspace='0'>
   <img style='float:right;' src='".THEME."images/whiteheaderr.jpg' alt='>' hspace='0'>
   <div class='white-header'>
      <div style='float:left'>
         ".showsublinks(" &middot; ", "white")."
      </div>
      
      <div style='float:right;'>
         ".showsubdate()."
      </div>
   </div>
   
   <table width='100%' cellspacing='0' cellpadding='0' id='content'>
      <tr>";

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "
      </tr>
   </table>

<div class='footer'>".stripslashes($settings['footer'])."<br>".showcounter()."</div>
<div style='float: left;'>".($license ? "" : showcopyright() )."</div>
<div style='float: right;'>Battlefield2 Theme created by <a href='http://matonor.com'>Matonor</a></div>
</div>";

}

function render_news($subject, $news, $info) {
   $subject = strip_tags($subject);

   opentable($subject);
   echo $news."
   <br style='clear:both;'>
   <div class='news-footer'>
      <div style='float:left;'>
         ".newsposter($info)."
      </div>
      <div style='float: right;'>".
         openform("N",$info['news_id']).
         newsopts($info," &middot; ").
         closeform("N",$info['news_id'])."
      </div><br style='clear:both;'>
   </div>";
   closetable();

}

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

opentable($subject);
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br style='clear:both;'>
<div class='news-footer'>
   <div style='float:left;'>
      ".articleposter($info)."
   </div>
   <div style='float: right;'>".
   openform("A",$info['article_id']).
   articleopts($info," &middot; ").
   closeform("A",$info['article_id'])."
   </div><br style='clear:both;'>
</div>";
closetable();

}

function opentable($title) {
   global $rendered_captions;
echo "<div class='capmain'>
<img src='".THEME."images/capl.jpg' alt='{' style='float: left;' hspace='0'>
<img src='".THEME."images/capr.jpg' alt='}' style='float: right;' hspace='0'>
".($rendered_captions ? "<img src='".THEME."renderimg.php?type=table&amp;text=".urlencode($title)."' alt='$title' hspace='0'>" : $title)."
</div>
<div class='main-borderl'>
   <div class='main-borderr'>
      <div class='main-body'>\n";

}

function closetable() {

echo "
      </div>
   </div>
</div>
<div class='main-foot'>
   <img src='".THEME."images/ll2.jpg' alt='{' style='float: left;' hspace='0'>
   <img src='".THEME."images/lr2.jpg' alt='{' style='float: right;' hspace='0'><br style='clear: both;'>
</div>\n";

}

function openside($title) {
   global $rendered_captions;
echo "<div class='scapmain'>
<img src='".THEME."images/scapl.jpg' alt='{' style='float: left;' hspace='0'>
<img src='".THEME."images/scapr.jpg' alt='}' style='float: right;' hspace='0'>
".($rendered_captions ? "<img src='".THEME."renderimg.php?type=menu&amp;text=".urlencode($title)."' alt='$title' hspace='0'>" : $title)."
</div>
<div class='side-borderl'>
   <div class='side-borderr'>
      <div class='side-body'>\n";

}

function closeside() {

echo "
      </div>
   </div>
</div>
<div class='side-foot'>
   <img src='".THEME."images/ll.jpg' alt='{' style='float: left;' hspace='0'>
   <img src='".THEME."images/lr.jpg' alt='{' style='float: right;' hspace='0'><br style='clear: both;'>
</div>\n";

}

$flipboxid = 0;

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

   global  $flipboxid;
   $id = $flipboxid;
   $flipboxid++;
   if($open=="on"){$box_img="off";}else{$box_img="on";}
   
echo "
<div class='scapmain'>
   <img src='".THEME."images/scapl.jpg' alt='{' style='float: left;' hspace='0'>
   <img src='".THEME."images/scapr.jpg' alt='}' style='float: right;' hspace='0'>
   <img src='".THEME."renderimg.php?type=menu&amp;text=".urlencode($title)."' alt='$title' hspace='0' style='float:left;'>
   <img onclick=\"javascript:flipBox('$id')\" name='b_$id' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif' style='float:right; margin-top: 7px;'>
   <br style='clear: both;'>
</div>
<div class='side-borderl'>
   <div class='side-borderr'>
      <div class='side-body'>
           <div id='box_$id' ".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

echo "      
         </div>
      </div>
   </div>
</div>
<div class='side-foot'>
   <img src='".THEME."images/ll.jpg' alt='{' style='float: left;' hspace='0'>
   <img src='".THEME."images/lr.jpg' alt='}' style='float: right;' hspace='0'><br style='clear: both;'>
</div>\n";

}

function tablebreak() {

echo "<div style='height: 8px;'></div>\n";

}
?>