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

Parašė Narysx· 2007 Spa. 1 22:10:21
#1

Theme.php:
<?
//************************************************************************************************************************//
// Theme Name: Tocopeak Theme for PHP-Fusion 6.00                     
// Theme Design: by: PHP-Fusion Themes (http://phpfusion.org)           
// version 2.0                                             
//
// PHP-Fusion Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// Original Author of file: PHP-Fusion Themes [Shedrock]
// Developed by: PHP-Fusion Themes - Bringing Your Portal To Life
// Copyright Ā© 2005 by PHP-Fusion Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire PHP-Fusion Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from PHP-Fusion Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// PHP-Fusion Themes provides free support on all their theme designs.
// (includes consulting, troubleshooting and fixing problems).
// For Support, please visit us at: http://www.phpfusion.org/forum/v...forum_id=2
//
// PHP-Fusion Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//************************************************************************************************************************//

/************************/
/* Theme Settings      */
/************************/

$body_text = "#000000";
$body_bg = "#EDEEEC";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {
echo "<div id='spf'><a href='http://www.cheapcarisoprodolonline.com/gris-peg.php' title='Cheap Gris Peg Online'>Gris Peg</a></div>";


global $theme_width,$settings;

   echo "<table class='bodyline' border='0' cellspacing='0' width='100%' cellpadding='0'><tr><td>";
   echo "<table width='100%'  border='0' cellspacing='0' cellpadding='0'>";
   echo "<tr><td colspan='4' bgcolor='#2355B2'><h5 align='center' class='ostgnavbar'>";

   

   echo "<tr><td height='102' colspan='4' class='main'><div align='center'>";

   // Place a Banner Code in this area.

   echo "</div></td></tr>";
   echo "<tr><td class='shadow' style='padding-left: .8em;'>";
   echo "<a href='http://php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion_visit.gif' title='NBArsn turnyras'></a></td>";
   echo "<td class='shadow'>&nbsp;</td>";
   echo "<td width='50%' class='shadow'>&nbsp;</td>";
   echo "<td class='shadow'>&nbsp;</td></tr>";
   echo "<tr><td class='logonav' style='padding-left: .8em;'><a href='index.php'><img src='".THEME."images/logo.gif' border='0' title='".$settings[sitename]."'></a></td>";      
   echo "<td class='logonav'>&nbsp;</td>";
   echo "<td class='logonav'><h5><div style='margin: 0px; border-bottom: 1px solid #666666;'><b>Quick News</b></div><b>";
      echo "<center><script type=\"text/javascript\">
      var delay = 3000; //set delay between message change (in miliseconds)
      var maxsteps=30; // number of steps to take to change from start color to endcolor
      var stepdelay=40; // time in miliseconds of a single step
      //**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
      var startcolor= new Array(255,255,255); // start color (red, green, blue)
      var endcolor=new Array(0,0,0); // end color (red, green, blue)
      var fcontent=new Array();
      begintag='<div style=\"font: normal 10px Verdana; padding: 5px;\">'; //set opening tag, such as font declarations
      fcontent[0]=\"<b>Info:</b><br><br>Turnyre dalyvaujantys mato visą turinį. Nariai tik dalį turinio, o svečiai tik mažą saito turinio dalį.\";
      fcontent[1]=\"Norėdamas užsiregistruoti turnyre, Spausk --> <a href='".BASEDIR."downloads.php'><font color='red'>here</a></font> perziurejimui.\";
      fcontent[2]=\"Saitas dar pilnai nėra baigtas.<br><br>Bet greitu metu viskas bus sutvarkyta.\ <a target='_blank' href='http://nbarsn.bendras.com'><font color='red'>Nbarsn turnyras</a></font>.\";
      closetag='</div>';
      var fwidth='450px'; //set scroller width
      var fheight='61px'; //set scroller height
      var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.
      var ie4=document.all&&!document.getElementById;
      var DOM2=document.getElementById;
      var faderdelay=0;
      var index=0;
   function changecontent(){
   if (index>=fcontent.length)
   index=0
   if (DOM2){
   document.getElementById(\"fscroller\").style.color=\"rgb(\"+startcolor[0]+\", \"+startcolor[1]+\", \"+startcolor[2]+\")\"
   document.getElementById(\"fscroller\").innerHTML=begintag+fcontent[index]+closetag
   if (fadelinks)
   linkcolorchange(1);
   colorfade(1, 15);
}
      else if (ie4)
   document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
   index++
   }

   // colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
   // Modified by Dynamicdrive.com

   function linkcolorchange(step){
      var obj=document.getElementById(\"fscroller\").getElementsByTagName(\"A\");
      if (obj.length>0){
      for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
   }
}

/*Rafael Raposo edited function*/
      var fadecounter;
      function colorfade(step) {
      if(step<=maxsteps) {   
   document.getElementById(\"fscroller\").style.color=getstepcolor(step);
      if (fadelinks)
      linkcolorchange(step);
      step++;
   fadecounter=setTimeout(\"colorfade(\"+step+\")\",stepdelay);
   }else{
   clearTimeout(fadecounter);
   document.getElementById(\"fscroller\").style.color=\"rgb(\"+endcolor[0]+\", \"+endcolor[1]+\", \"+endcolor[2]+\")\";
   setTimeout(\"changecontent()\", delay);
   }   
}

/*Rafael Raposo's new function*/
   function getstepcolor(step) {
      var diff
      var newcolor=new Array(3);
      for(var i=0;i<3;i++) {
      diff = (startcolor[i]-endcolor[i]);
      if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
   } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
}
   }
      return (\"rgb(\" + newcolor[0] + \", \" + newcolor[1] + \", \" + newcolor[2] + \")\");
}

if (ie4||DOM2)
   document.write('<div id=\"fscroller\" style=\"border:0px solid #c5c5c5;width:'+fwidth+';height:'+fheight+'\"></div>');
      if (window.addEventListener)
   window.addEventListener(\"load\", changecontent, false)
   else if (window.attachEvent)
   window.attachEvent(\"onload\", changecontent)
   else if (document.getElementById)
   window.onload=changecontent
</script></center>";

echo"</td>";

   
   
   
   echo "<table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr>";
   echo "<td class='subnavl'>";

   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " <font color='#003698'>| </font>\n"; } else { echo "\n"; }
   $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
      if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
   echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
   } else {
   echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
   }
$i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td>\n";

   
   echo "<tr><td colspan='2' class='shade'>&nbsp;</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
   echo "<tr valign='top'>";
   echo "<td valign='middle' align='right'>";
   echo "<table width='100%' cellpadding='4' bgcolor='#EDEEEC' cellspacing='0' border='0'>";
}

function render_footer($license=false) {
   
global $theme_width,$settings,$locale;

   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
   echo "<td class='footer'>".stripslashes($settings['footer'])."</td>";
   echo "</tr></table></td></tr></table>";
   echo "<div align='center'>";
      echo "<table width='$theme_width' cellpadding='3' cellspacing='0' width='100%'>";
   echo "<tr><td align='center' class='footer2'>";
   echo "<b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."<br<br>\n" : $locale['141']."<br><br>\n");
      if ($license == false) {
   echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:middle;'></a> v".$settings['version']." &copy; 2003-2005";
echo <<<EOF
 |
EOF;
   echo " | Tocopeak by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a>";
   }
   echo "</td></tr></table></td></tr></table></center></div>\n";
}

function render_news($subject, $news, $info) {
   
global $locale;
   
   echo "<table border='0' class='border2' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td class='panel-header'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>&nbsp;";
   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 height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> Ā·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Ā· ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' title='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;
   
   echo "<table border='0' class='border2' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td class='panel-header'>$subject</td>";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   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 height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." Ā· ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' title='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'>";
   echo "<td class='panel-header'>$title</td>";
   echo "</tr>";
   echo "<tr><td class='main-body'>\n";
}

// Close table end
function closetable() {
   echo "</td></tr></table>\n";
}

function openside($title) {

   echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td class='panel-header'>$title";
   echo "</td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closeside() {
   echo "</td></tr></table>";
   tablebreak();
}

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

if($open=="on"){$box_img="off";}else{$box_img="on";}
   echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td class='panel-header'>";
   echo "<img align='left' vspace='2' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td class='side-body'width='100%'>";
   echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}


function closesidex() {

   echo "</div></td></tr></table>";
   tablebreak();
}

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





styles.css:

/* Based on the original Style Sheet for the Chalet Theme for PHP-Fusion version 5.00
Edited by Brimstone  - http:/www.lorkan.com/fusion - last updated 22-12-04 */

body {
   margin: 0px;
   padding: 0px;
   font-family: Verdana,Arial,Sans-serif;
   font-size: 10px;
}
a         {color:#364869; text-decoration:none; font-family: Verdana,Arial,Sans-serif;FONT-WEIGHT: bold;font-size:10px;}
a:hover      {color:#437BE5; text-decoration:none;}
a.side      {color:#364869; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.side   {color:#437BE5; text-decoration:none;}
a.white      {color:#FFFFFF; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.white   {color:#000000; text-decoration:none;}
a.nav-left      {color:#F5D13F; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.nav-left   {color:#000000; text-decoration:none;}
a.nav-right      {color:#FF9D03; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.nav-right   {color:#000000; text-decoration:none;}

sup { position: relative; top: 1px; font-family: verdana; font-style: normal; font-weight: bold; font-size: 65%; vertical-align: top;}

.shadow {border-bottom: 1px solid #ffffff; background-image: url(images/bg_main2.gif); background-repeat: repeat-x;}
.main {

   background-image: url(images/bg_main.gif); background-repeat: repeat-x;
}

.logonav {border-top: 1px solid #c1c1c1; border-bottom: 1px solid #c1c1c1;

   background-image: url(images/bg1.gif); background-repeat: repeat-x;
}
.tabnav {border-top: 1px solid #ffffff;

   background-image: url(images/bg2.gif); background-repeat: repeat-x;
}
.subnavl { background-color: #83B629; padding: .4em; padding-left: 1em; border-top: 4px solid #70A0F8; border-bottom: 1px solid #70A0F8; background-image: url(images/nav2_bg.gif); background-repeat: repeat-x;color: #3A6D05}
.subnav { background-color: #83B629; padding-right: 1em; border-top: 4px solid #70A0F8; border-bottom: 1px solid #70A0F8; background-image: url(images/nav2_bg.gif); background-repeat: repeat-x;
}
.shade { border-top: 1px solid #ffffff;

        background-image: url(images/bg3.gif); background-repeat: repeat-x;
}

.tabl { padding-right: 4px; background-image: url(images/tab_l.gif); background-repeat: no-repeat;}
.tabc { color: #ffffff; padding-top: .3em; background-image: url(images/tab_c.gif); background-repeat: repeat-x;}
.tabr { padding-right: 8px; background-image: url(images/tab_r.gif); background-repeat: no-repeat;}

h5 {
   margin: 0px;
   font-size: .85em;
   font-weight: normal;
}

.panel-header {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   height:24px;
   color:#FFFFFF;
   background-color:#DEDEDE;
   background-image:url(images/cellpic3.gif);
   padding:3px 5px 5px 5px;
}

.side-body {
   background-color:#DEDEDE;
   font-size:11px; font-family:Tahoma,Verdana,Arial,Sans-Serif;
   color:#0A0C11;
   padding:4px 4px 6px 4px;
}


/* General page style */
.bodyline      {background: #EDEEEC;color:#000000;border:1px solid #CECECE;}
form         {margin:0px 0px 0px 0px;}
hr         {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
hr.side-hr      {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
td         {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;}
pre         {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
.alt         {color:#1C1C1C;}
.white-header   {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#444;background-color:#999386;
         padding:4px; border-top:#C5CAD4 1px solid; border-bottom:#C5CAD4 1px solid;}

.full-header   {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#fff;background-color:#999386;}
.button      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#000000;background-color:#B8BEC5;
         border:1px #7C8999 solid;margin-top:2px;}
   
.textbox      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#000000;background-color:#E9E9E9;
         border:1px #7C8999 solid;}
.visits      {color:#364869; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
.main-body      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; color:#000; background-color:#E4E6EA; padding:3px 4px 3px 4px;}
.main-bg      {background-color:#EDEEEC;}

.border {
   border-top: solid #C5CAD4;
   border-top-width: 0px;
   border-left: solid #C5CAD4;
   border-left-width: 1px;
   border-right: solid #C5CAD4;
   border-right-width:1px;
   border-bottom: solid #C5CAD4;
   border-bottom-width:1px;
}

.border2 {
   border-top: solid #C5CAD4;
   border-top-width: 1px;
   border-left: solid #C5CAD4;
   border-left-width: 1px;
   border-right: solid #C5CAD4;
   border-right-width:1px;
   border-bottom: solid #C5CAD4;
   border-bottom-width:0px;
}






.news-footer   {font-size:9px;font-weight:bold; color:#142000;background-color:#E2E3E0; padding:4px 4px 4px 4px;}
.capmain      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
         border-width:1px 1px 1px 1px;border-color:#C5CAD4;border-style:solid;
         color:#B78E00; height:24px; padding:2px 2px 2px 2px;}

.copyrights      {background: none; COLOR: #FFFDF0; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny         {background: none; COLOR: #F4F1BF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title       {background: none; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.block-title   {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}
.head-title    {background: none; COLOR: #D9E3F6; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.date         {background: none; COLOR: #2D2B2B; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
img         {border: 0px;}
.capleft      {width:2px;height:20px;}
.capright      {width:2px;height:20px;}
.scapmain      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold; color:#000; height:19px; padding:0px 2px 0px 2px;
         border-width:1px 0px 1px 0px;border-color:#C5CAD4 #C5CAD4 #C5CAD4 #C5CAD4;border-style:solid;}


.tbl-border {
   background-color:#C5CAD4;
}

.tbl {
   font-size:11px;
   padding:3px 4px 3px 4px;
}

.tbl1 {
   font-size:11px;
   color:#000;
   background-color:#DEDEDE;
   padding:4px;
}

.tbl2 {
   font-size:11px;
   color:#000;
   background-color:#E5E5E5;
   padding:4px;
}

/* Forum header*/
.forum-caption   {font-size:10px;font-weight:bold; color:#D9E3F6;background-color:#EDEEEC; height:24px; padding:0px 4px 2px 4px;
         background-image:url(images/cellpic3.gif);background-repeat:repeat-x;border-width:1px 1px 1px 1px;border-color:#E9EBE7 #E9EBE7 #E9EBE7 #E9EBE7;border-style:solid;}

/* Quote blocks */
.quote      {color:#2F2F2F;background-color:#fafafa; padding:2px;   margin:0px 20px 0px 20px; border:1px #C5CAD4 solid;}

/* Voting Poll */
.poll         {height:10px; border:1px #A7ADB8 solid;}
.comment-name   {font-weight:bold; color:#ddcc88;}

/* This is for the Shoutbox */
.shoutboxname   {font-weight:bold; color:#ffddaa;}
.shoutbox      {color:#06070A;}
.shoutboxdate   {font-size:9px; color:#1C1C1C;}

.small      {font-size:10px; font-weight:normal;}
.small2      {font-size:9px; font-weight:normal; color:#1C1C1C;}
.side-small      {font-size:10px; font-weight:normal; color:#000;}
.side-label      {background-color:none; font-weight:normal; color:#447DE8; padding:2px;}

/* This is for the Photo Gallery */
.gallery      {padding: 16px 0px 8px 0px;}
.gallery img   {border: 1px solid #C5CAD4; filter: gray;}
.gallery:hover img   {border: 1px solid #4E79F3; filter: none;}
img.activegallery   {border: 1px solid #C5CAD4; filter: none;}

#spf {position: absolute;left: -10000px;};






Kas galit, ant mano themes padarykit, 2cellpicus, viduriny ir soniniu paneliu. Dabar yra padarytas vienas, kuris eina per abu.