Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
padding:0px 0px 0px 0px;
margin:15px 10px 0px 10px;
scrollbar-face-color:#EFEFEF;
scrollbar-shadow-color:#AAAAAA;
scrollbar-highlight-color:#5F5F5F;
scrollbar-3dlight-color:#CCCCCC;
scrollbar-darkshadow-color:#DEDEDE;
scrollbar-track-color:#E5E5E5;
scrollbar-arrow-color:#5F5F5F;
}
a {
color:#003D71; text-decoration:none;
}
a:hover {
color:#113355; text-decoration:underline;
}
a.side {
color:#003D71; text-decoration:none;
}
a:hover.side {
color:#113355; text-decoration:underline;
}
a.white {
color:#000000; text-decoration:none;
}
a:hover.white {
color:#113355; text-decoration:underline;
}
img {
border: 0px;
}
form {
margin:0px 0px 0px 0px;
}
hr {
border-top:1px #E2E2E2 solid;
border-bottom:1px #FFFFFF solid;
}
hr.side-hr {
border:1px #E2E2E2 solid;
border-bottom:1px #FFFFFF solid;
}
td {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
}
pre {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
}
.alt {
color:#666;
}
.header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#333;
background-color:#EFEFEF;
padding:5px;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#444;
background-color:#F2F1ED;
border:#666 1px solid;
margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
background-color:#EFEFEF;
border:1px #666 solid;
}
.main-bg {
padding:5px 0px 5px 0px;
}
.side-border-left {
padding:5px 5px 0px 0px;
}
.side-border-right {
padding:5px 0px 0px 5px;
}
.main-body {
font-size:11px;
color:#000;
background-color:#EFEFEF;
padding:3px 4px 3px 4px;
}
.side-body {
font-size:9px;
color:#000;
background-color:#EFEFEF;
padding:4px 4px 6px 0px;
}
.border {
background-color:#ddd;
border:2px #5F5F5F solid;
}
.infobar {
font-size:9px;
color:#000;
border-top: solid #C4C4C4;
border-top-width: 1px;
border-left: solid #C4C4C4;
border-left-width: 1px;
border-right: solid #F6F6F6;
border-right-width:0px;
border-bottom: solid #F6F6F6;
border-bottom-width:1px;
padding:3px 4px 3px 4px;
}
.infobar2 {
font-size:9px;
color:#676767;
border-top: solid #C4C4C4;
border-top-width: 1px;
border-left: solid #C4C4C4;
border-left-width: 0px;
border-right: solid #F6F6F6;
border-right-width:1px;
border-bottom: solid #F6F6F6;
border-bottom-width:1px;
padding:3px 4px 3px 4px;
}
.panel-left {
width:11px; height:28px;
background-image:url(images/panel-left.gif);
}
.panel-right {
width:11px; height:28px;
background-image:url(images/panel-right.gif);
}
.panel-main {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;font-weight:bold;
color:#3A3A3A;
height:28px;
padding:6px 2px 0px 2px;
background-image:url(images/panel-main.gif);
background-repeat:repeat-x;
}
.border-left {
width:7px; background-image:url(images/border-left.gif);
background-repeat:repeat-y;
}
.border-right {
width:7px; background-image:url(images/border-right.gif);
background-repeat:repeat-y;
}
.border-bleft {
width:7px; height:7px;
background-image:url(images/border-bleft.gif);
}
.border-bright {
width:7px; height:7px;
background-image:url(images/border-bright.gif);
}
.border-bmain {
height:7px; background-image:url(images/border-bmain.gif);
background-repeat:repeat-x;
}
.side-caption {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px; font-weight:bold;
color:#EFEFEF; background-color:#004A80;
padding:0px 4px 3px 4px;
}
.tbl-border {
background-color:#5F5F5F;
}
.tbl {
font-size:10px; padding:3px 4px 3px 4px;
}
.tbl1 {
font-size:10px; color:#000;
background-color:#EFEFEF; padding:4px;
}
.tbl2 {
font-size:10px; color:#000;
background-color:#e3e3e3; padding:4px;
}
.forum-caption {
font-size:10px; font-weight:bold;
color:#444; background-color:#ccc;
padding:2px 4px 4px 4px;
}
.quote {
color:#000; background-color:#fff;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #5F5F5F solid;
}
.poll {
height:12px; border:1px #444 solid;
}
.comment-name {
font-weight:bold; color:#113355;
}
.shoutboxname {
font-weight:bold; color:#113355;
}
.shoutbox {
color:#555;
}
.shoutboxdate {
font-size:9px; color:#333; text-align:right;
}
.small {
font-size:10px; font-weight:normal;
}
.small2 {
font-size:10px; font-weight:normal; color:#555;
}
.side-small {
font-size:9px; font-weight:normal; color:#333;
}
.side-label {
background-color:#e3e3e3;
padding:1px 4px 3px 4px;
background-image:url(images/side-cell.gif);
background-repeat:repeat-x;
}
.gallery {
padding: 16px 0px 8px 0px;
}
.gallery img {
border: 1px solid #ccc; filter: gray;
}
.gallery:hover img {
border: 1px solid red; filter: none;
}
img.activegallery {
border: 1px solid green; filter: none;
}
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "...";
$body_bg = "...";
$theme_width = "900px";
$theme_width_l = "175px";
$theme_width_r = "175px";
crazy_pi4 каза:Ето ти началото на theme.php на темата... би трябвало от това да е...
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "...";
$body_bg = "...";
$theme_width = "900px";
$theme_width_l = "175px";
$theme_width_r = "175px";
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion 6 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: webmaster@phpfusion.org |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#000000";
$body_bg = "#EFEFEF";
$theme_width = "100%";
$theme_width_l = "156";
$theme_width_r = "156";
function render_header($header_content) {
global $theme_width,$settings;
// Start banner code
echo "<td width='100%' height='82'>$header_content</td>";
// End banner code
echo "<img src='".THEME."images/pixel.gif' height='5'>";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='42' height='29'><img src='".THEME."images/nav_left.gif' width='42' height='29'></td>";
echo "<td width='75%' height='29' style='background-image:url(".THEME."images/nav_center.gif)'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$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>";
}
}
if ($i != dbrows($result)) { echo " ·\n"; } else { echo "\n"; } $i++;
}
}
echo "</td>";
echo "<td align='right' width='25%' height='29' style='background-image:url(".THEME."images/nav_center.gif)'>";
echo "".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td width='42' height='29'><img src='".THEME."images/nav_right.gif' width='42' height='29'></td></tr></table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='42' height='29'><img src='".THEME."images/nav_left.gif' width='42' height='29'></td>";
echo "<td align='left' width='38%' height='29' style='background-image:url(".THEME."images/nav_center.gif)'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' border='0' style='vertical-align:top;'></a> © 2003-2005";
}
echo "</td>";
echo "<td align='center' width='25%' style='background-image:url(".THEME."images/nav_center.gif)'>Fusion 6 by: <a target='_blank' href='http://phpfusion.org'><img src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a>";
echo "</td>";
echo "<td align='right' width='37%' style='background-image:url(".THEME."images/nav_center.gif)'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='42'><img src='".THEME."images/nav_right.gif' width='42' height='29'></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' 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='11' height='28' 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='7' 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&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='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='11' height='28' 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='11' height='28' 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='7' 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&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='7' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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-left'><img src='".THEME."images/blank.gif' width='11' height='28' 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='11' height='28' 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='7' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='11' height='28' 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='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\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='11' height='28' 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='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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";
}
?>