Przedszkolak
Postów: 6
v7.00.07 Data rejestracji: 23.07.2011 19:00
|
Plik styles.css
a, a.white, li.white a {
color : #000000;
text-decoration : underline;
}
a:hover.white, li.white a:hover {
color : #000000;
text-decoration : underline;
}
a.side {
color : #000000;
text-decoration : none;
}
a:hover.side {
color : #000000;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, sans-serif;
font-size : 11px;
background-image: url(images/page_header_bg.png);
background-position: top center;
background-repeat: repeat-2;
background-color: #000000;
margin: 0px auto;
}
.earth {
background-image: url(images/flare.jpg);
height:290px;
background-position: top center;
background-repeat: no-repeat;
}
.switcherbutton{
padding-top: 16px;
height: 40px;
width: 40px;
opacity:0.5;
filter:alpha(opacity=50)
}
.switcherbutton:hover {
height: 40px;
width: 40px;
opacity:1;
filter:alpha(opacity=100)
}
#space {
background-image: url(images/backy.png);
background-position: top center;
background-repeat: no-repeat;
background-color: #000000;
}
#transbox {
margin: 0 50px;
background-color: #000000;
border: 2px solid #000000;
filter:alpha(opacity=50);
opacity: 0.5;
-moz-opacity:0.5;
}
#transbox div {
padding: 20px;
font-size: 20px;
color: #ffffff;
filter:alpha(opacity=100);
opacity: 1;
-moz-opacity:1;
position: relative;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #fff;
}
td {
font-family : Verdana, Arial, sans-serif;
font-size : 12px;
}
pre {
font-family : Verdana, Arial, sans-serif;
font-size : 12px;
}
.alt {
color : #000000;
}
img {
border: 0px;
}
#main {width: 990px;}
.main {width: 990px;}
.footermain {
background-image: url(images/foot.png);
background-repeat: repeat-x;
height: 48px;
text-align: center;
}
.footerleft {
font-family : Verdana, Arial, sans-serif;
font-size : 8px;
padding: 1px 1px 1px 10px;
width: 50%;
text-align: left;
color: #CCCCCC;
}
#footer a {
color: #000;
text-decoration: none;
}
#footer a:hover {
text-decoration: underline;
}
.footerright {
font-family : Verdana, Arial, sans-serif;
font-size : 12px;
color : #000;
border : 0px;
padding : 1px 10px 1px 1px;
height: 48px;
width: 50%;
text-align: right;
}
li.first-link .bullet{
display: none;
}
.button {
font-family : Verdana, Arial, sans-serif;
font-size : 11px;
color : #000000;
background-color : #ffffff;
height : 20px;
border : 1px solid #ccc;
margin-top : 2px;
}
.bbcode {
font-family : Verdana, Arial, sans-serif;
font-size : 11px;
color : #555;
background-color : #fff;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, sans-serif;
font-size : 11px;
color : #000000;
background-color : #ffffff;
border : 1px solid #ccc;
}
.main-body {
font-size : 12px;
color : #000;
background-color : #fff;
padding : 4px 0px 5px 0px;
}
.setuser_body{
background: #00528e;
color : #555;
}
.main-bg {
color : #555;
background-color : #fff;
padding : 10px 5px 10px 5px;
}
.border {
border : 0px solid #ffffff;
}
.admin-message {
font-family : Verdana, Arial, sans-serif;
font-size: 12px;
text-align: center;
color: #555;
background-color: #f6f6f6;
border: 1px solid #e1e1e1;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
}
.side-body {
width: 170px;
text-align: left;
font-size : 10px;
color : #777;
background-color : #fff;
padding : 4px 4px 4px 7px;
}
.side-border-left {
width: 170px;
color : #000;
background-color : #fff;
padding : 10px 5px 10px 10px;
}
.side-border-right {
width: 170px;
color : #000;
background-color : #fff;
padding : 10px 10px 10px 5px;
}
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.news-footer {
font-size : 10px;
color : #555;
background-color : #ffffff;
padding : 3px 4px 4px 4px;
}
.capmain {
font-family : Arial, Verdana, sans-serif;
font-size : 19px;
color : #000000;
background-color : #fff;
padding : 2px 0px 4px 0px;
font-weight : bold;
padding-left: 9px;
}
.capmain-left {
width: 3px;
height: 25px;
background-color: #555;
background-image: url(images/cap-left.gif);
}
.capmain-right {
width: 3px;
height: 25px;
background-color: #555;
background-image: url(images/cap-right.gif);
}
.scapmain {
font-family : Verdana, Arial, sans-serif;
font-size : 16px;
text-align : left;
color : #000000;
padding-left : 5px;
height: 20px;
}
.tbl-border {
color : #000;
background-color : #eeeeee;
}
.center {
margin: 0 auto;
}
.spacer {
margin-bottom: 5px;
}
.tbl {
font-size : 11px;
color : #000;
background-color : #fff;
padding : 4px;
}
.tbl1 {
font-size : 13px;
color : #000;
background-color : #fff;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #000;
background-color : #fafafa;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #000;
background-color : #ffffff;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #000;
}
.poll {
height : 12px;
border : 1px solid #000000;
}
.comment-name {
font-weight : bold;
color : #000;
}
.shoutboxname {
font-weight : bold;
color : #000;
}
.shoutbox {
color : #000;
}
.shoutboxdate {
font-size : 10px;
color : #000;
}
.small {
font-size : 11px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #000000;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #000000;
background-color : #fff;
}
.side-label {
color : #000;
background-color : #fff;
padding : 2px 2px 3px 2px;
}
.tablebreak { margin-bottom: 8px; }
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 12px;
color: #000;
background-color: #fff;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #000;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #000;
background-color: #ccc;
text-decoration : underline;
}
* html #navigation ul li{
height: 1%;
}
.center, *[align="center"] {margin: 0 auto;}
/* Page Navigation */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #fff;
background-color: #f6a504;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #555;
background-color: #f1f1f1;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #f6a504;
margin: 2px;
text-decoration: none;
}
.white-header ul{
margin: 0;
padding: 0;
}
.white-header ul li{ display: inline; }
.white-header ul li.first-link .bullet{ display: none; }
/*alt linkler için*/
#altlinkler{
margin: 0px auto;
text-align: center;
font-size: 10px;
height:30px;
float:left;
background-image:url(images/breadcrumbs_bg.png);
background-repeat:repeat-x;
background-position:top left;
width:100%;
}
#altlinkler ul,
#altlinkler li{
padding:0px;
margin:0px;
list-style-type:none;
}
#altlinkler ul{
height:30px;
line-height:30px;
float:left;
padding:0px 1px 0px 0px;
margin:0px 0px 0px 10px;
}
#altlinkler li{
height:30px;
line-height:30px;
display:inline;
position:relative;
float:left;
text-align:center;
}
#altlinkler li a{
height:30px;
padding-left:12px;
padding-right:12px;
text-align:center;
float:left;
}
#altlinkler li a:link,
#altlinkler li a:visited{
color:#ffffff;
text-decoration:none;
}
#altlinkler li.active a,
#altlinkler li a:hover{
color:#dddddd;
}
#facebook_slider
{
background: #3B5997;
padding: 10px;
width: 232px;
height:420px;
position: fixed;
margin-top: -100px;
left: 0px;
top: 25%;
}
.fb_slider_slide_button
{
background: url(fbboxbg.png);
display: block;
height: 94px;
text-indent: -9999px;
width: 27px;
position: absolute;
right: -27px;
top: 0px;
}
.fb_slider_close
{
background-position: -20px 0px;
}
Plik theme.php:
<?php
$enable_colour_switcher = true;
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
require_once THEMES."templates/switcher.php";
define("THEME_WIDTH", "990");
define("THEME_BULLET", "·");
$colour_switcher = new Switcher("select", "colour", "gif", "green", "switcherbutton");
if(!$enable_colour_switcher){
$colour_switcher->disable();
}
//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="·",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function get_head_tags(){
global $colour_switcher;
echo $colour_switcher->makeHeadTag();
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $main_style;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' style='border: 0px; margin: 0px auto'>
<tr><td>
<img src='".THEME."images/logo.png' alt='".$settings['sitename']."'/>
</td><td align='right'>".$colour_switcher->makeForm("flright")."</td></tr></table></td></tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center' class='earth'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td align='center'>
<table border='0' cellpadding='5' cellspacing='0' align='center'><tr><td>";
if ($settings['siteintro'] != "") {
echo "<div id='transbox'><div>".stripslashes($settings['siteintro'])."</div></div>";
}
echo "</td></tr></table></td></tr></table></td></tr></table>";
//sublinks css
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<div id='altlinkler'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
echo "<ul><li>".thesublinks("</li>\n<li>");
echo "</li></ul><div class='clear-both'> </div></div>";
echo "</td></tr></table></td></tr></table><div id='space'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\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 "<div id='footer'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='footermain'>
<tr>
<td class='footerleft'>".showcopyright()."</td>
</td>
</tr>
</table>
</div>
</div>
</td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n ";
}
function render_article($subject, $article, $info) {
echo "<div class='border tablebreak'>";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "</div>";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
echo "<div class='border tablebreak'>";
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='border'>\n";
echo "<div class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n</div>\n";
echo "</div>";
}
?>
Edytowane przez Pieka dnia 22.08.2011 17:00:41
|
Przedszkolak
Postów: 75 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.01.2011 20:26
|
Może wystarczy ci zwykła linia
<hr>
Tutaj plik theme.php po edycji:
<?php
$enable_colour_switcher = true;
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
require_once THEMES."templates/switcher.php";
define("THEME_WIDTH", "990");
define("THEME_BULLET", "·");
$colour_switcher = new Switcher("select", "colour", "gif", "green", "switcherbutton");
if(!$enable_colour_switcher){
$colour_switcher->disable();
}
//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="·",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function get_head_tags(){
global $colour_switcher;
echo $colour_switcher->makeHeadTag();
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $main_style;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' style='border: 0px; margin: 0px auto'>
<tr><td>
<img src='".THEME."images/logo.png' alt='".$settings['sitename']."'/>
</td><td align='right'>".$colour_switcher->makeForm("flright")."</td></tr></table></td></tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center' class='earth'><tr><td>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td align='center'>
<table border='0' cellpadding='5' cellspacing='0' align='center'><tr><td>";
if ($settings['siteintro'] != "") {
echo "<div id='transbox'><div>".stripslashes($settings['siteintro'])."</div></div>";
}
echo "</td></tr></table></td></tr></table></td></tr></table>";
//sublinks css
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<div id='altlinkler'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
echo "<ul><li>".thesublinks("</li>\n<li>");
echo "</li></ul><div class='clear-both'> </div></div>";
echo "</td></tr></table></td></tr></table><div id='space'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\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 "<div id='footer'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='footermain'>
<tr>
<td class='footerleft'>".showcopyright()."</td>
</td>
</tr>
</table>
</div>
</div>
</td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div><hr>\n ";
}
function render_article($subject, $article, $info) {
echo "<div class='border tablebreak'>";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "</div>";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
echo "<div class='border tablebreak'>";
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='border'>\n";
echo "<div class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n</div>\n";
echo "</div>";
}
?>
Edytowane przez Pieka dnia 23.08.2011 18:16:25
Aplikacje Windows Phone | Front-end Developer | Web-Designer
|