Przedszkolak
Postów: 20 Ostrzeżeń: 1
v7.02.05 Data rejestracji: 15.09.2011 14:34
|
Mam pytanie. Jak zmienić scapmain przyklejonego newsa? Bo chciałbym nadać mu inny kolor. Adres strony w profilu.
Oto theme.php:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Stylo Theme for PHP-Fusion V7.02.xx
| Author: Falcon
| Web: http://www.agxthemes.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' class='bullet' alt='»' border='0' />");
define("THEME_WIDTH", "980");
require_once THEME."functions.php";
require_once INCLUDES."theme_functions_include.php";
function render_page($license = false) {
add_handler("theme_output");
global $settings, $main_style, $locale, $mysql_queries_time;
echo "<div class='wrapper'>\n";
//Header
echo "<div class='main-header'>\n".showbanners()."</div>\n";
// Content
echo "<div class='main-bg'>\n";
if (LEFT) { echo "<div id='side-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-right'>".RIGHT."</div>\n"; }
echo "<div id='side-center' class='".$main_style."'>";
echo "<div class='upper'>".U_CENTER."</div>\n";
echo "<div class='content'>".CONTENT."</div>\n";
echo "<div class='lower'>".L_CENTER."</div>\n";
echo "</div>\n";
echo "<div class='clear'></div>\n";
echo "</div>\n";
//Footer
echo "<div class='sub-footer-top'></div>\n";
if ($settings['rendertime_enabled'] == 1 || ($settings['rendertime_enabled'] == 2 && iADMIN)) {
echo "<div class='flleft' style='padding-top: 8px;'>".showrendertime()."<br />".showcounter()."</div>\n";
} else { echo "<div class='flleft' style='padding: 30px 0 6px 0;'>".showcounter()."</div>\n"; }
echo "<div class='flright' style='padding: 30px 0 6px 0;'>".showsubdate()."</div>\n";
echo "</div>\n";
echo "<div class='main-footer clearfix'>\n";
echo "<div class='flleft'>\n";
if (!$license) { echo showcopyright(); }
echo "<br />Theme designed by <a href='http://www.agxthemes.com'>Falcon</a></div>\n";
echo "<div class='flright' style='width: 100%; text-align: right;'>".stripslashes($settings['footer'])."</div>\n";
echo "</div>\n";
echo "</div>\n";
}
function render_comments($c_data, $c_info){
global $locale;
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
if ($c_info['admin_link'] !== false) {
echo "<div class='floatfix'>\n";
echo "<div class='comment_admin'>".$c_info['admin_link']."</div>\n";
echo "</div>\n";
}
foreach($c_data as $data) {
echo "<div class='comment-main spacer'>\n";
echo "<div class='tbl2'>\n";
if ($data['edit_dell'] !== false) { echo "<div style='float:right' class='comment_actions'>".$data['edit_dell']."\n</div>\n"; }
echo "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a> |\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
echo "</div>\n";
}
if ($c_info['c_makepagenav'] !== false) {
echo "<div class='comment-main clearfix spacer'>\n";
echo "<div class='flleft'>".$c_info['c_makepagenav']."</div>\n";
echo "</div>\n";
}
echo "</div>\n";
} else {
echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
}
}
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
set_image("edit", THEME."images/icons/news_edit.png");
echo "<div class='capmain-top'></div>\n";
echo "<div class='capmain-news floatfix'>\n";
echo "<div class='flleft'>".$subject."</div>\n";
if (iADMIN && checkrights("N")) {
echo "<div class='flright clearfix' style='padding-right: 13px;'>\n";
echo "<a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' /></a>\n";
echo "</div>\n"; }
echo "</div>\n";
echo "<div class='spacer'>\n";
echo "<div class='news_info middle-border floatfix'>\n";
echo "<ul>\n";
echo "<li class='print'><a href='".BASEDIR."print.php?type=N&item_id=".$info['news_id']."'><span>".$locale['global_075']."</span></a></li>\n";
echo "<li class='date'>".showdate("%d %b %Y", $info['news_date'])."</li>\n";
echo "<li class='author'>".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</li>\n";
if ($info['cat_id']) { echo "<li class='cat'><a href='".BASEDIR."news_cats.php?cat_id=".$info['cat_id']."'>".$info['cat_name']."</a></li>\n";
} else { echo "<li class='cat'><a href='".BASEDIR."news_cats.php?cat_id=0'>".$locale['global_080']."</a></li>\n"; }
if ($info['news_ext'] == "y" || ($info['news_allow_comments'] && $settings['comments_enabled'] == "1"))
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") {
echo "<li class='comments'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a></li>\n"; }
echo "</ul>\n";
echo "</div>\n";
echo "<div class='main-body floatfix'>\n";
if ($info['news_sticky'] == "1") {
echo "<div style='position:absolute; padding-top:3px;'><img src='".THEME."images/icons/sticky.png' alt='sticky' width='41px' border='0' height='41px' /></div>";
}
echo $info['cat_image'].$news."<br />\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
echo "<div class='flright'>\n";
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";
echo "</div>\n";
}
echo "</div>\n";
echo "</div>\n";
}
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
set_image("edit", THEME."images/icons/article_edit.png");
echo "<div class='capmain-top'></div>\n";
echo "<div class='capmain-articles floatfix'>\n";
echo "<div class='flleft'>".$subject."</div>\n";
if (iADMIN && checkrights("A")) {
echo "<div class='flright clearfix' style='padding-right: 13px;'>\n";
echo "<a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$info['article_id']."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' /></a>\n";
echo "</div>\n"; }
echo "</div>\n";
echo "<div class='spacer'>\n";
echo "<div class='news_info middle-border floatfix'>\n";
echo "<ul>\n";
echo "<li class='print'><a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><span>".$locale['global_075']."</span></a></li>\n";
echo "<li class='date'>".showdate("%d %b %Y", $info['article_date'])."</li>\n";
echo "<li class='author'>".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</li>\n";
if ($info['cat_id']) {
echo "<li class='cat'><a href='".BASEDIR."articles.php?cat_id=".$info['cat_id']."'>".$info['cat_name']."</a></li>\n";
} else { echo "<li class='cat'><a href='".BASEDIR."articles.php?cat_id=0'>".$locale['global_080']."</a></li>\n"; }
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") {
echo "<li class='comments'><a href='".BASEDIR."articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a></li>\n"; }
echo "</ul>\n";
echo "</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "</div>\n";
}
function opentable($title) {
echo "<div class='capmain-top'></div>\n";
echo "<div class='capmain'>".$title."</div>\n";
echo "<div class='main-body floatfix spacer'>\n";
}
function closetable() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='scapmain-top'></div>\n";
echo "<div class='scapmain clearfix'>\n";
echo "<div class='flleft'>".$title."</div>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='flright' style='padding-top: 2px;'>".panelbutton($state, $boxname)."</div>\n";
}
echo "</div>\n";
echo "<div class='side-body spacer'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n";
}
?>
Oto styles.css:
/*--------------------------------------------------------+
| Author: Falcon
| Web: http://www.agxthemes.com
+---------------------------------------------------------*/
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000;
background-color: #f5f5f5;
margin: auto;
width: 996px;
}
.wrapper {
margin: 15px;
}
a {
color: #04688d;
text-decoration: none;
}
a:hover {
color: #04688d;
text-decoration: underline;
}
a.side {
color: #555;
text-decoration: none;
}
a:hover.side {
color: #f6a504;
text-decoration: underline;
}
a.white, li.white a {
color: #fff;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #fff;
text-decoration: none;
text-align: left;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 2px dashed #eee;
margin: 4px 0;
padding: 0;
}
hr.side-hr {
height: 1px;
border: 1px solid #eee;
}
div {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
pre {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.alt {
color: #04688d;
}
.spacer {
margin-bottom: 5px;
}
.bullet {
/* for IE */
filter:alpha(opacity=30);
/* CSS3 standard */
opacity: 0.3;
}
/* Attention messages properties */
.admin-message {
font-size: 12px;
color: #006699;
background: #e8eef1 url(images/icons/get_info.png) 0.8em 0.5em no-repeat;
border-top: 2px solid #1380b1;
border-bottom: 2px solid #1380b1;
padding: 15px 0 15px 50px;
margin-bottom: 10px;
}
.noscript-message {
font-size: 12px;
color: #c54343;
background: #f6b9b9 url(images/icons/info.png) 0.8em 0.5em no-repeat;
border-top: 2px solid #c54343;
border-bottom: 2px solid #c54343;
padding: 15px 0 15px 50px;
margin-bottom: 10px;
}
.nocomments-message {
font-size: 12px;
color: #555;
background: #fff url(images/icons/get_info.png) 0.8em 0.5em no-repeat;
border-top: 2px solid #ddd;
border-bottom: 2px solid #ddd;
padding: 15px 0 15px 50px;
}
/* Form element properties */
form {
margin: 0px;
}
.bbcode-popup .button { width: 100%!important }
.button {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 13px;
display: inline-block;
padding: 5px 7px;
line-height: 1;
color: #3C3C3D;
text-shadow: 1px 1px 0 #FFFFFF;
background: #ECECEC url(forum/buttons_bg.png) 0 0 no-repeat;
white-space: nowrap;
cursor: pointer;
overflow: visible;
text-decoration: none;
border: 1px solid #CACACA;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-webkit-background-clip: padding-box;
border-radius: 2px;
outline: none;
}
button::-moz-focus-inner {
border: 0;
padding:0px;
}
.button.primary {
font-weight: bold
}
.button:focus, .button:hover {
color: #fff;
text-decoration: none;
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
background-position: 0 -40px;
background-color: #2D7DC5;
border-color: #388AD4;
}
.button:active, .button.active {
box-shadow: inset 0 1px 1px rgba(0,0,0,.5);
background-position: 0 -81px;
background-color: #0F5EA2;
color: #fff;
text-shadow: none;
border-color: #347BBA;
top: 1px;
}
.button.negative:focus, .button.negative:hover {
color: #fff;
background-position: 0 -121px;
background-color: #D84743;
border-color: #911D1B;
}
.button.negative:active, .button.negative.active{
background-position: 0 -161px;
background-color: #A5211E;
border-color: #911D1B;
}
.button.big {
font-size: 17px;
padding-left: 14px;
padding-right: 17px;
margin: 5px 0 5px 0; /*top, right, bottom, left*/
}
.button.big span.icon {
display: inline-block;
width: 14px;
height: 14px;
position: relative;
top: 1px;
background-image: url(images/icons/buttons_icons.png);
background-repeat: no-repeat;
margin: auto 7px auto auto; /*top, right, bottom, left*/
}
.button span.icon {
display: inline-block;
width: 14px;
height: 12px;
position: relative;
top: 1px;
background-image: url(images/icons/buttons_icons.png);
background-repeat: no-repeat;
margin: auto 7px auto auto;
}
.button span.icon.pm-button { background-position:0 -500px; }
.button:hover span.icon.pm-button { background-position:0 -512px; }
.button span.icon.edit-button { background-position:0 -556px; }
.button:hover span.icon.edit-button {background-position:0 -571px; }
.button span.icon.web-button { background-position:0 -586px; }
.button:hover span.icon.web-button { background-position:0 -601px; }
.button span.icon.quote-button { background-position:0 -176px; }
.button:hover span.icon.quote-button { background-position:0 -190px; }
.button span.icon.newthread-button { background-position:0 -616px }
.button:hover span.icon.newthread-button { background-position:0 -631px }
.button span.icon.reply-button { background-position:0 -646px }
.button:hover span.icon.reply-button { background-position:0 -660px }
.button span.icon.rightarrow { background-position:0 -674px }
.button:hover span.icon.rightarrow { background-position:0 -689px }
.button span.icon.settings-button { background-position: 0 -146px }
.button:hover span.icon.settings-button { background-position: 0 -161px }
.bbcode {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 10px;
color: #a0a09e;
background: #f2f2f2;
border: 1px solid #CACACA;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
margin-top: 2px;
margin-bottom: 2px;
}
.bbcode:hover {
background-color: #efefef;
border-color: #d7d6d2;
}
.bbcode:focus {
color: #3C3C3D;
background-color: #f5f5f5;
border-color: #e3e0da;
box-shadow: inset 2px 2px 2px #e1e1e1;
-moz-box-shadow: inset 2px 2px 2px #e1e1e1;
-webkit-box-shadow: inset 2px 2px 2px #e1e1e1;
}
.bbcode-popup {
font-size: 11px;
color: #555;
width: auto!important;
height: auto!important;
background-color: #fff;
border: 1px solid #CACACA!important;
padding: 4px;
margin-top: 2px;
cursor: pointer;
}
.textbox {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 12px;
color: #a0a09e;
background: #f2f2f2;
border: 1px solid #CACACA;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
margin: 0 0 2px;
padding: 5px 2px 5px 5px;
}
.textbox:hover {
background-color: #efefef;
border-color: #d7d6d2;
}
.textbox:focus {
color: #3C3C3D;
background-color: #f5f5f5;
border-color: #e3e0da;
box-shadow: 1px 1px 3px #fff, inset 2px 2px 2px #e1e1e1;
-moz-box-shadow: 1px 1px 3px #fff, inset 2px 2px 2px #e1e1e1;
-webkit-box-shadow: 1px 1px 3px #fff, inset 2px 2px 2px #e1e1e1;
}
div.emulated-fieldset {
position: relative;
margin: 20px 0px 10px 0px;
border: 1px solid #ccc;
width: 320px;
background: inherit;
}
div.emulated-fieldset span.emulated-legend {
display: inline;
position: absolute;
top: -12px;
margin: 0 5px;
padding: 4px;
background: inherit;
}
div.emulated-fieldset div.attachments-list {
padding: 10px 3px 3px 3px;
width: 320px;
}
/* Header properties */
.main-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000;
background-color: #f5f5f5;
padding: 0 0 0 0; /* top right bottom left*/
}
/* Sub Header properties */
.sub-header {
color: #838383;
width: 100%
height: 42px;
background-color: #e6e6e8;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f8f8f8),color-stop(100%,#e6e6e6));
background-image: -webkit-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -moz-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -o-linear-gradient(#f8f8f8,#e6e6e6);
background-image: linear-gradient(#f8f8f8,#e6e6e6);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-ms-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
border: 1px solid #848484;
border-bottom: 2px solid #1285c8;
padding-left: 9px;
display: -moz-box;
display: -webkit-box;
display: box;
clear: both;
}
/* Sub Header links */
.sub-header ul {
margin: 0;
padding: 0;
}
.sub-header ul li {
display: inline;
}
.sub-header ul li .bullet {
display: none;
}
.sub-header ul li.first-link {
font-weight: bold;
}
.sub-header ul li.first-link.current-link a {
color: #838383;
background-color: #e6e6e8;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f8f8f8),color-stop(100%,#e6e6e6));
background-image: -webkit-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -moz-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -o-linear-gradient(#f8f8f8,#e6e6e6);
background-image: linear-gradient(#f8f8f8,#e6e6e6);
font-weight: bold;
}
.sub-header ul li a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #838383;
padding: 12px 8px; /*padding inside each tab*/
text-decoration: none;
display: block;
margin: 0;
float: left;
}
.sub-header ul li a:hover { /*background of tabs for hover state*/
color: #585858;
background-color: #d4d4d4;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#e9e9e9),color-stop(100%,#d0d0d0));
background-image: -webkit-linear-gradient(#e9e9e9,#d0d0d0);
background-image: -moz-linear-gradient(#e9e9e9,#d0d0d0);
background-image: -o-linear-gradient(#e9e9e9,#d0d0d0);
background-image: linear-gradient(#e9e9e9,#d0d0d0);
}
.sub-header ul li.current-link a { /*background of tabs for selected state*/
color: #fff;
background-color: #1286c8;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#39b0f4),color-stop(100%,#1285c8));
background-image: -webkit-linear-gradient(#39b0f4,#1285c8);
background-image: -moz-linear-gradient(#39b0f4,#1285c8);
background-image: -o-linear-gradient(#39b0f4,#1285c8);
background-image: linear-gradient(#39b0f4,#1285c8);
}
/* Footer properties */
.main-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #444444;
background-color: #f5f5f5;
padding: 15px 5px 15px 5px;
}
.bottom-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #fff;
background-color: #555;
padding: 4px 4px 5px 4px;
}
/* Sub Footer properties */
/* Side-Panel properties */
.ui-sortable { margin: 0; padding: 0; }
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
#side-left { /* here you can find all the properties for the left panel. */
color: #777;
background-color: #f5f5f5;
padding: 10px 10px 10px 0;
width: 200px;
float: left;
}
div.side-left { /* when the left panel is on, the margins will help side-center to stay in the middle. */
margin-left: 210px;
}
#side-right { /* here you can find all the properties for the right panel. */
color: #777;
background-color: #f5f5f5;
padding: 10px 0 10px 10px;
width: 200px;
float: right;
}
div.side-right { /* when the right panel is on the margins will help side-center to stay in the middle. */
margin-right: 210px;
}
.scapmain-top {
background-color: #fff;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-topleft 3px;
-moz-border-radius-topright: 3px;
-webkit-border-radius-topleft 3px;
-webkit-border-radius-topright: 3px;
border: 1px solid #ddd;
padding: 6px;
}
.scapmain {
height: 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #fff;
background-color: #1487c9;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#2b9dde),color-stop(100%,#1487c9));
background-image: -webkit-linear-gradient(#2b9dde,#1487c9);
background-image: -moz-linear-gradient(#2b9dde,#1487c9);
background-image: -o-linear-gradient(#2b9dde,#1487c9);
background-image: linear-gradient(#2b9dde,#1487c9);
padding: 5px 10px 6.5px 10px;
}
.side-body {
font-size: 11px;
color: #555;
background-color: #fff;
border: 1px solid #ddd;
padding: 4px;
}
/* Center-Panel properties */
.main-bg {
color: #555;
background-color: #f5f5f5;
}
#side-center { /* here you can find all the properties that keep the center panel together. */
color: #555;
background-color: #f5f5f5;
padding: 10px 0 5px 0;
}
div.side-both { /* when the left and right side panels are on, this class will keep side-center in the middle. */
margin-right: 210px;
margin-left: 210px;
}
.capmain-top {
background-color: #fff;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-topleft 3px;
-moz-border-radius-topright: 3px;
-webkit-border-radius-topleft 3px;
-webkit-border-radius-topright: 3px;
border: 1px solid #ddd;
padding: 6px;
}
.capmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #1487c9;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#2b9dde),color-stop(100%,#1487c9));
background-image: -webkit-linear-gradient(#2b9dde,#1487c9);
background-image: -moz-linear-gradient(#2b9dde,#1487c9);
background-image: -o-linear-gradient(#2b9dde,#1487c9);
background-image: linear-gradient(#2b9dde,#1487c9);
padding: 8px 10px 8px 10px;
}
.capmain-news {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #2a2a2a;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#444444),color-stop(100%,#2a2a2a));
background-image: -webkit-linear-gradient(#444444,#2a2a2a);
background-image: -moz-linear-gradient(#444444,#2a2a2a);
background-image: -o-linear-gradient(#444444,#2a2a2a);
background-image: linear-gradient(#444444,#2a2a2a);
padding: 8px 0 8px 10px;
}
.capmain-articles {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #e29417;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#e9b015),color-stop(100%,#e29417));
background-image: -webkit-linear-gradient(#e9b015,#e29417);
background-image: -moz-linear-gradient(#e9b015,#e29417);
background-image: -o-linear-gradient(#e9b015,#e29417);
background-image: linear-gradient(#e9b015,#e29417);
padding: 8px 0 8px 10px;
}
.main-body {
font-size: 11px;
color: #555;
background-color: #fff;
border: 1px solid #ddd;
padding: 4px;
}
/* Comments properties */
.comment-main {
background-color: #fff;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border: 1px solid #ddd;
padding: 6px;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
.comment_admin {
float: right;
margin-bottom: 5px;
}
/* Shoutbox properties */
.shoutboxname {
border-top: 1px solid #ececec;
background: #f2f2f2 url(images/bullet.gif) 4px 6px no-repeat;
padding: 2px 0 2px 13px; /* top right bottom left*/
}
.shoutboxdate {
background: #f2f2f2 url(images/icons/search.png) 3px 3px no-repeat;
padding: 4px 0 4px 23px; /* top right bottom left*/
}
.shoutbox {
background-color: #f2f2f2;
border-bottom: 1px solid #ececec;
padding-bottom: 3px;
margin-bottom: 2px;
}
/* General table properties */
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #eee;
}
.tbl {
font-size: 11px;
color: #555;
background-color: #fff;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #555;
background-color: #fff;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #555;
background-color: #f1f1f1;
padding: 4px;
}
.tbl-error {
color: #AC260F;
font-weight: bold;
background-color: #FCCAC2;
border:2px solid #EB5339;
}
.quote {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-style: italic;
font-weight: normal;
background: #fff4cc url(images/icons/quote_icon.png) 6px 8px no-repeat;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #ffdc70;
padding: 5px 6px 5px 30px;
margin: 0px 22px 0px 22px;
}
.poll {
height: 12px;
border: 1px solid #bbb;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
font-size: 10px;
font-weight: normal;
color: #555;
}
.side-small {
font-size: 10px;
font-weight: normal;
color: #555;
}
.side-label {
color: #555;
background-color: #f1f1f1;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
.clear {
clear: both;
}
/* Highlight on select properties */
::selection { color: #fff; background: #e5c011; } /* webkit, opera, IE9 */
::-moz-selection { color: #fff; background: #e5c011; } /* mozilla firefox */
div.highlightBlue::selection { color: #fff; background: #e5c011; } /* webkit, opera, IE9 */
div.highlightBlue::-moz-selection { color: #fff; background: #e5c011; } /* mozilla firefox */
/* News properties */
.news-category {
background-color: #e0e0e0;
-moz-box-shadow: inset 0 0 2px 2px #d8d8d8;
-webkit-box-shadow: inset 0 0 2px 2px#d8d8d8;
box-shadow: inset 0 0 2px 2px #d8d8d8;
border: 1px solid #c8c8c8;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
margin: 3px 5px 0 0; /* top right bottom left*/
padding: 5px;
float: left;
}
.news_info {
border: 1px solid #ccc;
border-bottom: 0;
background: #f1f1f1;
padding: 0 10px 5px 10px; /* top right bottom left*/
}
.news_info ul {
margin: 0;
padding: 0;
}
.news_info ul li {
float: left;
display: inline;
margin-right: 16px;
padding: 5px 0 0 26px;
line-height: 20px;
}
.news_info li a {
font-weight: bold;
}
.news_info li a:hover {
text-decoration: none;
}
.news_info li.print {
float: right;
margin: 0;
padding: 5px 0 0;
}
.news_info li.print a {
display: block;
background: url(images/icons/printer.png) no-repeat left 3px;
width: 20px;
height: 20px;
}
.news_info li.print a span {
position: absolute;
left: -5000px;
}
.news_info ul li.date { background: url(images/icons/date.png) no-repeat left 4px; }
.news_info ul li.author { background: url(images/icons/author.png) no-repeat left 4px; }
.news_info ul li.comments { background: url(images/icons/comments.png) no-repeat left 4px; }
.news_info ul li.cat { background: url(images/icons/cat.png) no-repeat left 4px; }
/* Forum table properties */
.forum-caption {
font-size: 11px;
font-weight: bold;
color: #888;
background-color: #f1f1f1;
padding: 2px 4px 4px 4px;
margin-bottom: 10px;
}
.forum_breadcrumbs {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
font-style: italic;
font-weight: normal;
background: #fff4cc url(images/right.png) 6px 5px no-repeat;
border-top: 1px solid #ffdc70;
border-bottom: 1px solid #ffdc70;
padding: 5px 6px 5px 30px;
margin: 0;
}
.forum_thread_user_post {
background-color: #fff;
border-top: 2px dashed #eee;
border-bottom: 2px dashed #eee;
}
.forum_thread_user_info {
background-color: #eee;
border-top: 2px dashed #fff;
border-right: 2px dashed #fff;
border-bottom: 2px dashed #fff;
}
.forum_thread_table {
border-spacing: 0;
border: 0;
}
.forum_thread_user_name {
border-top: 2px dashed #fff;
}
.forum_thread_post_date {
border-top: 2px dashed #fff;
}
.forum_thread_ip {
border-bottom: 2px dashed #fff;
}
.forum_thread_userbar {
border-bottom: 2px dashed #fff;
}
/* Profile spesific classes */
.profile, .profile_category {
width: 500px;
}
.edit-profile {
width: 500px;
}
.profile_user_reason {
color: #ff6666;
font-weight: bold;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 11px;
font-weight: bold;
background-color: #c7c7c7;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#d9d9d9),color-stop(100%,#c7c7c7));
background-image: -webkit-linear-gradient(#d9d9d9,#c7c7c7);
background-image: -moz-linear-gradient(#d9d9d9,#c7c7c7);
background-image: -o-linear-gradient(#d9d9d9,#c7c7c7);
background-image: linear-gradient(#d9d9d9,#c7c7c7);
border-bottom: 1px solid #fff;
padding: 5px 0 6.5px 10px;
margin: auto;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #555;
padding: 3px;
background-color: #f3f3f3;
border-bottom: 1px solid #fff;
text-decoration: none;
}
#navigation a:hover {
color: #585858;
background-color: #e7e7e7;
}
#navigation li.first-link a {
font-weight:bold;
}
#navigation li.first-link.current-link a {
color: #555;
font-weight:bold;
background-color: #f3f3f3;
}
#navigation li.current-link a {
color: #fff;
background-color: #1487ca;
}
/* Page Navigation */
.pagenav {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
padding: 4px;
margin: 5px;
}
.pagenav span {
font-weight: normal;
color: #fff;
background-color: #f6a504;
box-shadow: inset 0 0 2px #f9cc73;
-moz-box-shadow: inset 0 0 2px #f9cc73;
-webkit-box-shadow: inset 0 0 2px #f9cc73;
border: 1px solid #f6a504;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
text-shadow: #ccc 0.1em 0.1em 0.2em;
text-decoration: none;
padding: 3px 8px 3px 8px;
margin: 2px;
}
.pagenav a {
color: #555;
background-color: #f3f3f3;
box-shadow: inset 0 0 2px #fff;
-moz-box-shadow: inset 0 0 2px #fff;
-webkit-box-shadow: inset 0 0 2px #fff;
border: 1px solid #a9a9a9;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
text-shadow: #fff 0.1em 0.1em 0.2em;
text-decoration: none;
padding: 3px 8px 3px 8px; /* top right bottom left*/
margin: 2px;
}
.pagenav a:hover {
color: #f6a504;
background-color: #fdf3de;
box-shadow: inset 0 0 2px #f9dca2;
-moz-box-shadow: inset 0 0 2px #f9dca2;
-webkit-box-shadow: inset 0 0 2px #f9dca2;
border: 1px solid #f6b83d;
margin: 2px;
text-decoration: none;
}
/* PHP-Fusion Helpers */
.clear {
clear: both;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
/* Helpers */
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
/* IE Fixes */
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hide from IE Mac */
.clearfix {
display:block;
}
/* End hide from IE Mac */
.floatfix {
overflow:hidden;
}
* html .floatfix {
width:100%;
}
.center, *[align="center"] {
margin: 0 auto;
}
Edytowane przez Pieka dnia 11.09.2012 15:12:50
|
Przedszkolak
Postów: 84 Pomógł: 7 Ostrzeżeń: 2
Data rejestracji: 15.02.2011 21:39
|
MikeKnox napisał(a):
Mam pytanie. Jak zmienić scapmain przyklejonego newsa? Bo chciałbym nadać mu inny kolor. Adres strony w profilu.
Oto theme.php:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Stylo Theme for PHP-Fusion V7.02.xx
| Author: Falcon
| Web: http://www.agxthemes.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' class='bullet' alt='»' border='0' />");
define("THEME_WIDTH", "980");
require_once THEME."functions.php";
require_once INCLUDES."theme_functions_include.php";
function render_page($license = false) {
add_handler("theme_output");
global $settings, $main_style, $locale, $mysql_queries_time;
echo "<div class='wrapper'>\n";
//Header
echo "<div class='main-header'>\n".showbanners()."</div>\n";
// Content
echo "<div class='main-bg'>\n";
if (LEFT) { echo "<div id='side-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-right'>".RIGHT."</div>\n"; }
echo "<div id='side-center' class='".$main_style."'>";
echo "<div class='upper'>".U_CENTER."</div>\n";
echo "<div class='content'>".CONTENT."</div>\n";
echo "<div class='lower'>".L_CENTER."</div>\n";
echo "</div>\n";
echo "<div class='clear'></div>\n";
echo "</div>\n";
//Footer
echo "<div class='sub-footer-top'></div>\n";
if ($settings['rendertime_enabled'] == 1 || ($settings['rendertime_enabled'] == 2 && iADMIN)) {
echo "<div class='flleft' style='padding-top: 8px;'>".showrendertime()."<br />".showcounter()."</div>\n";
} else { echo "<div class='flleft' style='padding: 30px 0 6px 0;'>".showcounter()."</div>\n"; }
echo "<div class='flright' style='padding: 30px 0 6px 0;'>".showsubdate()."</div>\n";
echo "</div>\n";
echo "<div class='main-footer clearfix'>\n";
echo "<div class='flleft'>\n";
if (!$license) { echo showcopyright(); }
echo "<br />Theme designed by <a href='http://www.agxthemes.com'>Falcon</a></div>\n";
echo "<div class='flright' style='width: 100%; text-align: right;'>".stripslashes($settings['footer'])."</div>\n";
echo "</div>\n";
echo "</div>\n";
}
function render_comments($c_data, $c_info){
global $locale;
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
if ($c_info['admin_link'] !== false) {
echo "<div class='floatfix'>\n";
echo "<div class='comment_admin'>".$c_info['admin_link']."</div>\n";
echo "</div>\n";
}
foreach($c_data as $data) {
echo "<div class='comment-main spacer'>\n";
echo "<div class='tbl2'>\n";
if ($data['edit_dell'] !== false) { echo "<div style='float:right' class='comment_actions'>".$data['edit_dell']."\n</div>\n"; }
echo "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a> |\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
echo "</div>\n";
}
if ($c_info['c_makepagenav'] !== false) {
echo "<div class='comment-main clearfix spacer'>\n";
echo "<div class='flleft'>".$c_info['c_makepagenav']."</div>\n";
echo "</div>\n";
}
echo "</div>\n";
} else {
echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
}
}
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
set_image("edit", THEME."images/icons/news_edit.png");
echo "<div class='capmain-top'></div>\n";
echo "<div class='capmain-news floatfix'>\n";
echo "<div class='flleft'>".$subject."</div>\n";
if (iADMIN && checkrights("N")) {
echo "<div class='flright clearfix' style='padding-right: 13px;'>\n";
echo "<a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' /></a>\n";
echo "</div>\n"; }
echo "</div>\n";
echo "<div class='spacer'>\n";
echo "<div class='news_info middle-border floatfix'>\n";
echo "<ul>\n";
echo "<li class='print'><a href='".BASEDIR."print.php?type=N&item_id=".$info['news_id']."'><span>".$locale['global_075']."</span></a></li>\n";
echo "<li class='date'>".showdate("%d %b %Y", $info['news_date'])."</li>\n";
echo "<li class='author'>".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</li>\n";
if ($info['cat_id']) { echo "<li class='cat'><a href='".BASEDIR."news_cats.php?cat_id=".$info['cat_id']."'>".$info['cat_name']."</a></li>\n";
} else { echo "<li class='cat'><a href='".BASEDIR."news_cats.php?cat_id=0'>".$locale['global_080']."</a></li>\n"; }
if ($info['news_ext'] == "y" || ($info['news_allow_comments'] && $settings['comments_enabled'] == "1"))
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") {
echo "<li class='comments'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a></li>\n"; }
echo "</ul>\n";
echo "</div>\n";
echo "<div class='main-body floatfix'>\n";
if ($info['news_sticky'] == "1") {
echo "<div style='position:absolute; padding-top:3px;'><img src='".THEME."images/icons/sticky.png' alt='sticky' width='41px' border='0' height='41px' /></div>";
}
echo $info['cat_image'].$news."<br />\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
echo "<div class='flright'>\n";
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";
echo "</div>\n";
}
echo "</div>\n";
echo "</div>\n";
}
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
set_image("edit", THEME."images/icons/article_edit.png");
echo "<div class='capmain-top'></div>\n";
echo "<div class='capmain-articles floatfix'>\n";
echo "<div class='flleft'>".$subject."</div>\n";
if (iADMIN && checkrights("A")) {
echo "<div class='flright clearfix' style='padding-right: 13px;'>\n";
echo "<a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$info['article_id']."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' /></a>\n";
echo "</div>\n"; }
echo "</div>\n";
echo "<div class='spacer'>\n";
echo "<div class='news_info middle-border floatfix'>\n";
echo "<ul>\n";
echo "<li class='print'><a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><span>".$locale['global_075']."</span></a></li>\n";
echo "<li class='date'>".showdate("%d %b %Y", $info['article_date'])."</li>\n";
echo "<li class='author'>".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</li>\n";
if ($info['cat_id']) {
echo "<li class='cat'><a href='".BASEDIR."articles.php?cat_id=".$info['cat_id']."'>".$info['cat_name']."</a></li>\n";
} else { echo "<li class='cat'><a href='".BASEDIR."articles.php?cat_id=0'>".$locale['global_080']."</a></li>\n"; }
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") {
echo "<li class='comments'><a href='".BASEDIR."articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a></li>\n"; }
echo "</ul>\n";
echo "</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "</div>\n";
}
function opentable($title) {
echo "<div class='capmain-top'></div>\n";
echo "<div class='capmain'>".$title."</div>\n";
echo "<div class='main-body floatfix spacer'>\n";
}
function closetable() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='scapmain-top'></div>\n";
echo "<div class='scapmain clearfix'>\n";
echo "<div class='flleft'>".$title."</div>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='flright' style='padding-top: 2px;'>".panelbutton($state, $boxname)."</div>\n";
}
echo "</div>\n";
echo "<div class='side-body spacer'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n";
}
?>
Oto styles.css:
/*--------------------------------------------------------+
| Author: Falcon
| Web: http://www.agxthemes.com
+---------------------------------------------------------*/
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000;
background-color: #f5f5f5;
margin: auto;
width: 996px;
}
.wrapper {
margin: 15px;
}
a {
color: #04688d;
text-decoration: none;
}
a:hover {
color: #04688d;
text-decoration: underline;
}
a.side {
color: #555;
text-decoration: none;
}
a:hover.side {
color: #f6a504;
text-decoration: underline;
}
a.white, li.white a {
color: #fff;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #fff;
text-decoration: none;
text-align: left;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 2px dashed #eee;
margin: 4px 0;
padding: 0;
}
hr.side-hr {
height: 1px;
border: 1px solid #eee;
}
div {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
pre {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.alt {
color: #04688d;
}
.spacer {
margin-bottom: 5px;
}
.bullet {
/* for IE */
filter:alpha(opacity=30);
/* CSS3 standard */
opacity: 0.3;
}
/* Attention messages properties */
.admin-message {
font-size: 12px;
color: #006699;
background: #e8eef1 url(images/icons/get_info.png) 0.8em 0.5em no-repeat;
border-top: 2px solid #1380b1;
border-bottom: 2px solid #1380b1;
padding: 15px 0 15px 50px;
margin-bottom: 10px;
}
.noscript-message {
font-size: 12px;
color: #c54343;
background: #f6b9b9 url(images/icons/info.png) 0.8em 0.5em no-repeat;
border-top: 2px solid #c54343;
border-bottom: 2px solid #c54343;
padding: 15px 0 15px 50px;
margin-bottom: 10px;
}
.nocomments-message {
font-size: 12px;
color: #555;
background: #fff url(images/icons/get_info.png) 0.8em 0.5em no-repeat;
border-top: 2px solid #ddd;
border-bottom: 2px solid #ddd;
padding: 15px 0 15px 50px;
}
/* Form element properties */
form {
margin: 0px;
}
.bbcode-popup .button { width: 100%!important }
.button {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 13px;
display: inline-block;
padding: 5px 7px;
line-height: 1;
color: #3C3C3D;
text-shadow: 1px 1px 0 #FFFFFF;
background: #ECECEC url(forum/buttons_bg.png) 0 0 no-repeat;
white-space: nowrap;
cursor: pointer;
overflow: visible;
text-decoration: none;
border: 1px solid #CACACA;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-webkit-background-clip: padding-box;
border-radius: 2px;
outline: none;
}
button::-moz-focus-inner {
border: 0;
padding:0px;
}
.button.primary {
font-weight: bold
}
.button:focus, .button:hover {
color: #fff;
text-decoration: none;
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
background-position: 0 -40px;
background-color: #2D7DC5;
border-color: #388AD4;
}
.button:active, .button.active {
box-shadow: inset 0 1px 1px rgba(0,0,0,.5);
background-position: 0 -81px;
background-color: #0F5EA2;
color: #fff;
text-shadow: none;
border-color: #347BBA;
top: 1px;
}
.button.negative:focus, .button.negative:hover {
color: #fff;
background-position: 0 -121px;
background-color: #D84743;
border-color: #911D1B;
}
.button.negative:active, .button.negative.active{
background-position: 0 -161px;
background-color: #A5211E;
border-color: #911D1B;
}
.button.big {
font-size: 17px;
padding-left: 14px;
padding-right: 17px;
margin: 5px 0 5px 0; /*top, right, bottom, left*/
}
.button.big span.icon {
display: inline-block;
width: 14px;
height: 14px;
position: relative;
top: 1px;
background-image: url(images/icons/buttons_icons.png);
background-repeat: no-repeat;
margin: auto 7px auto auto; /*top, right, bottom, left*/
}
.button span.icon {
display: inline-block;
width: 14px;
height: 12px;
position: relative;
top: 1px;
background-image: url(images/icons/buttons_icons.png);
background-repeat: no-repeat;
margin: auto 7px auto auto;
}
.button span.icon.pm-button { background-position:0 -500px; }
.button:hover span.icon.pm-button { background-position:0 -512px; }
.button span.icon.edit-button { background-position:0 -556px; }
.button:hover span.icon.edit-button {background-position:0 -571px; }
.button span.icon.web-button { background-position:0 -586px; }
.button:hover span.icon.web-button { background-position:0 -601px; }
.button span.icon.quote-button { background-position:0 -176px; }
.button:hover span.icon.quote-button { background-position:0 -190px; }
.button span.icon.newthread-button { background-position:0 -616px }
.button:hover span.icon.newthread-button { background-position:0 -631px }
.button span.icon.reply-button { background-position:0 -646px }
.button:hover span.icon.reply-button { background-position:0 -660px }
.button span.icon.rightarrow { background-position:0 -674px }
.button:hover span.icon.rightarrow { background-position:0 -689px }
.button span.icon.settings-button { background-position: 0 -146px }
.button:hover span.icon.settings-button { background-position: 0 -161px }
.bbcode {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 10px;
color: #a0a09e;
background: #f2f2f2;
border: 1px solid #CACACA;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
margin-top: 2px;
margin-bottom: 2px;
}
.bbcode:hover {
background-color: #efefef;
border-color: #d7d6d2;
}
.bbcode:focus {
color: #3C3C3D;
background-color: #f5f5f5;
border-color: #e3e0da;
box-shadow: inset 2px 2px 2px #e1e1e1;
-moz-box-shadow: inset 2px 2px 2px #e1e1e1;
-webkit-box-shadow: inset 2px 2px 2px #e1e1e1;
}
.bbcode-popup {
font-size: 11px;
color: #555;
width: auto!important;
height: auto!important;
background-color: #fff;
border: 1px solid #CACACA!important;
padding: 4px;
margin-top: 2px;
cursor: pointer;
}
.textbox {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 12px;
color: #a0a09e;
background: #f2f2f2;
border: 1px solid #CACACA;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
margin: 0 0 2px;
padding: 5px 2px 5px 5px;
}
.textbox:hover {
background-color: #efefef;
border-color: #d7d6d2;
}
.textbox:focus {
color: #3C3C3D;
background-color: #f5f5f5;
border-color: #e3e0da;
box-shadow: 1px 1px 3px #fff, inset 2px 2px 2px #e1e1e1;
-moz-box-shadow: 1px 1px 3px #fff, inset 2px 2px 2px #e1e1e1;
-webkit-box-shadow: 1px 1px 3px #fff, inset 2px 2px 2px #e1e1e1;
}
div.emulated-fieldset {
position: relative;
margin: 20px 0px 10px 0px;
border: 1px solid #ccc;
width: 320px;
background: inherit;
}
div.emulated-fieldset span.emulated-legend {
display: inline;
position: absolute;
top: -12px;
margin: 0 5px;
padding: 4px;
background: inherit;
}
div.emulated-fieldset div.attachments-list {
padding: 10px 3px 3px 3px;
width: 320px;
}
/* Header properties */
.main-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000;
background-color: #f5f5f5;
padding: 0 0 0 0; /* top right bottom left*/
}
/* Sub Header properties */
.sub-header {
color: #838383;
width: 100%
height: 42px;
background-color: #e6e6e8;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f8f8f8),color-stop(100%,#e6e6e6));
background-image: -webkit-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -moz-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -o-linear-gradient(#f8f8f8,#e6e6e6);
background-image: linear-gradient(#f8f8f8,#e6e6e6);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-ms-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
border: 1px solid #848484;
border-bottom: 2px solid #1285c8;
padding-left: 9px;
display: -moz-box;
display: -webkit-box;
display: box;
clear: both;
}
/* Sub Header links */
.sub-header ul {
margin: 0;
padding: 0;
}
.sub-header ul li {
display: inline;
}
.sub-header ul li .bullet {
display: none;
}
.sub-header ul li.first-link {
font-weight: bold;
}
.sub-header ul li.first-link.current-link a {
color: #838383;
background-color: #e6e6e8;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f8f8f8),color-stop(100%,#e6e6e6));
background-image: -webkit-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -moz-linear-gradient(#f8f8f8,#e6e6e6);
background-image: -o-linear-gradient(#f8f8f8,#e6e6e6);
background-image: linear-gradient(#f8f8f8,#e6e6e6);
font-weight: bold;
}
.sub-header ul li a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #838383;
padding: 12px 8px; /*padding inside each tab*/
text-decoration: none;
display: block;
margin: 0;
float: left;
}
.sub-header ul li a:hover { /*background of tabs for hover state*/
color: #585858;
background-color: #d4d4d4;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#e9e9e9),color-stop(100%,#d0d0d0));
background-image: -webkit-linear-gradient(#e9e9e9,#d0d0d0);
background-image: -moz-linear-gradient(#e9e9e9,#d0d0d0);
background-image: -o-linear-gradient(#e9e9e9,#d0d0d0);
background-image: linear-gradient(#e9e9e9,#d0d0d0);
}
.sub-header ul li.current-link a { /*background of tabs for selected state*/
color: #fff;
background-color: #1286c8;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#39b0f4),color-stop(100%,#1285c8));
background-image: -webkit-linear-gradient(#39b0f4,#1285c8);
background-image: -moz-linear-gradient(#39b0f4,#1285c8);
background-image: -o-linear-gradient(#39b0f4,#1285c8);
background-image: linear-gradient(#39b0f4,#1285c8);
}
/* Footer properties */
.main-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #444444;
background-color: #f5f5f5;
padding: 15px 5px 15px 5px;
}
.bottom-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #fff;
background-color: #555;
padding: 4px 4px 5px 4px;
}
/* Sub Footer properties */
/* Side-Panel properties */
.ui-sortable { margin: 0; padding: 0; }
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
#side-left { /* here you can find all the properties for the left panel. */
color: #777;
background-color: #f5f5f5;
padding: 10px 10px 10px 0;
width: 200px;
float: left;
}
div.side-left { /* when the left panel is on, the margins will help side-center to stay in the middle. */
margin-left: 210px;
}
#side-right { /* here you can find all the properties for the right panel. */
color: #777;
background-color: #f5f5f5;
padding: 10px 0 10px 10px;
width: 200px;
float: right;
}
div.side-right { /* when the right panel is on the margins will help side-center to stay in the middle. */
margin-right: 210px;
}
.scapmain-top {
background-color: #fff;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-topleft 3px;
-moz-border-radius-topright: 3px;
-webkit-border-radius-topleft 3px;
-webkit-border-radius-topright: 3px;
border: 1px solid #ddd;
padding: 6px;
}
.scapmain {
height: 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #fff;
background-color: #1487c9;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#2b9dde),color-stop(100%,#1487c9));
background-image: -webkit-linear-gradient(#2b9dde,#1487c9);
background-image: -moz-linear-gradient(#2b9dde,#1487c9);
background-image: -o-linear-gradient(#2b9dde,#1487c9);
background-image: linear-gradient(#2b9dde,#1487c9);
padding: 5px 10px 6.5px 10px;
}
.side-body {
font-size: 11px;
color: #555;
background-color: #fff;
border: 1px solid #ddd;
padding: 4px;
}
/* Center-Panel properties */
.main-bg {
color: #555;
background-color: #f5f5f5;
}
#side-center { /* here you can find all the properties that keep the center panel together. */
color: #555;
background-color: #f5f5f5;
padding: 10px 0 5px 0;
}
div.side-both { /* when the left and right side panels are on, this class will keep side-center in the middle. */
margin-right: 210px;
margin-left: 210px;
}
.capmain-top {
background-color: #fff;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-topleft 3px;
-moz-border-radius-topright: 3px;
-webkit-border-radius-topleft 3px;
-webkit-border-radius-topright: 3px;
border: 1px solid #ddd;
padding: 6px;
}
.capmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #1487c9;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#2b9dde),color-stop(100%,#1487c9));
background-image: -webkit-linear-gradient(#2b9dde,#1487c9);
background-image: -moz-linear-gradient(#2b9dde,#1487c9);
background-image: -o-linear-gradient(#2b9dde,#1487c9);
background-image: linear-gradient(#2b9dde,#1487c9);
padding: 8px 10px 8px 10px;
}
.capmain-news {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #2a2a2a;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#444444),color-stop(100%,#2a2a2a));
background-image: -webkit-linear-gradient(#444444,#2a2a2a);
background-image: -moz-linear-gradient(#444444,#2a2a2a);
background-image: -o-linear-gradient(#444444,#2a2a2a);
background-image: linear-gradient(#444444,#2a2a2a);
padding: 8px 0 8px 10px;
}
.capmain-articles {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #e29417;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#e9b015),color-stop(100%,#e29417));
background-image: -webkit-linear-gradient(#e9b015,#e29417);
background-image: -moz-linear-gradient(#e9b015,#e29417);
background-image: -o-linear-gradient(#e9b015,#e29417);
background-image: linear-gradient(#e9b015,#e29417);
padding: 8px 0 8px 10px;
}
.main-body {
font-size: 11px;
color: #555;
background-color: #fff;
border: 1px solid #ddd;
padding: 4px;
}
/* Comments properties */
.comment-main {
background-color: #fff;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border: 1px solid #ddd;
padding: 6px;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
.comment_admin {
float: right;
margin-bottom: 5px;
}
/* Shoutbox properties */
.shoutboxname {
border-top: 1px solid #ececec;
background: #f2f2f2 url(images/bullet.gif) 4px 6px no-repeat;
padding: 2px 0 2px 13px; /* top right bottom left*/
}
.shoutboxdate {
background: #f2f2f2 url(images/icons/search.png) 3px 3px no-repeat;
padding: 4px 0 4px 23px; /* top right bottom left*/
}
.shoutbox {
background-color: #f2f2f2;
border-bottom: 1px solid #ececec;
padding-bottom: 3px;
margin-bottom: 2px;
}
/* General table properties */
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #eee;
}
.tbl {
font-size: 11px;
color: #555;
background-color: #fff;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #555;
background-color: #fff;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #555;
background-color: #f1f1f1;
padding: 4px;
}
.tbl-error {
color: #AC260F;
font-weight: bold;
background-color: #FCCAC2;
border:2px solid #EB5339;
}
.quote {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-style: italic;
font-weight: normal;
background: #fff4cc url(images/icons/quote_icon.png) 6px 8px no-repeat;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #ffdc70;
padding: 5px 6px 5px 30px;
margin: 0px 22px 0px 22px;
}
.poll {
height: 12px;
border: 1px solid #bbb;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
font-size: 10px;
font-weight: normal;
color: #555;
}
.side-small {
font-size: 10px;
font-weight: normal;
color: #555;
}
.side-label {
color: #555;
background-color: #f1f1f1;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
.clear {
clear: both;
}
/* Highlight on select properties */
::selection { color: #fff; background: #e5c011; } /* webkit, opera, IE9 */
::-moz-selection { color: #fff; background: #e5c011; } /* mozilla firefox */
div.highlightBlue::selection { color: #fff; background: #e5c011; } /* webkit, opera, IE9 */
div.highlightBlue::-moz-selection { color: #fff; background: #e5c011; } /* mozilla firefox */
/* News properties */
.news-category {
background-color: #e0e0e0;
-moz-box-shadow: inset 0 0 2px 2px #d8d8d8;
-webkit-box-shadow: inset 0 0 2px 2px#d8d8d8;
box-shadow: inset 0 0 2px 2px #d8d8d8;
border: 1px solid #c8c8c8;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
margin: 3px 5px 0 0; /* top right bottom left*/
padding: 5px;
float: left;
}
.news_info {
border: 1px solid #ccc;
border-bottom: 0;
background: #f1f1f1;
padding: 0 10px 5px 10px; /* top right bottom left*/
}
.news_info ul {
margin: 0;
padding: 0;
}
.news_info ul li {
float: left;
display: inline;
margin-right: 16px;
padding: 5px 0 0 26px;
line-height: 20px;
}
.news_info li a {
font-weight: bold;
}
.news_info li a:hover {
text-decoration: none;
}
.news_info li.print {
float: right;
margin: 0;
padding: 5px 0 0;
}
.news_info li.print a {
display: block;
background: url(images/icons/printer.png) no-repeat left 3px;
width: 20px;
height: 20px;
}
.news_info li.print a span {
position: absolute;
left: -5000px;
}
.news_info ul li.date { background: url(images/icons/date.png) no-repeat left 4px; }
.news_info ul li.author { background: url(images/icons/author.png) no-repeat left 4px; }
.news_info ul li.comments { background: url(images/icons/comments.png) no-repeat left 4px; }
.news_info ul li.cat { background: url(images/icons/cat.png) no-repeat left 4px; }
/* Forum table properties */
.forum-caption {
font-size: 11px;
font-weight: bold;
color: #888;
background-color: #f1f1f1;
padding: 2px 4px 4px 4px;
margin-bottom: 10px;
}
.forum_breadcrumbs {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
font-style: italic;
font-weight: normal;
background: #fff4cc url(images/right.png) 6px 5px no-repeat;
border-top: 1px solid #ffdc70;
border-bottom: 1px solid #ffdc70;
padding: 5px 6px 5px 30px;
margin: 0;
}
.forum_thread_user_post {
background-color: #fff;
border-top: 2px dashed #eee;
border-bottom: 2px dashed #eee;
}
.forum_thread_user_info {
background-color: #eee;
border-top: 2px dashed #fff;
border-right: 2px dashed #fff;
border-bottom: 2px dashed #fff;
}
.forum_thread_table {
border-spacing: 0;
border: 0;
}
.forum_thread_user_name {
border-top: 2px dashed #fff;
}
.forum_thread_post_date {
border-top: 2px dashed #fff;
}
.forum_thread_ip {
border-bottom: 2px dashed #fff;
}
.forum_thread_userbar {
border-bottom: 2px dashed #fff;
}
/* Profile spesific classes */
.profile, .profile_category {
width: 500px;
}
.edit-profile {
width: 500px;
}
.profile_user_reason {
color: #ff6666;
font-weight: bold;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 11px;
font-weight: bold;
background-color: #c7c7c7;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#d9d9d9),color-stop(100%,#c7c7c7));
background-image: -webkit-linear-gradient(#d9d9d9,#c7c7c7);
background-image: -moz-linear-gradient(#d9d9d9,#c7c7c7);
background-image: -o-linear-gradient(#d9d9d9,#c7c7c7);
background-image: linear-gradient(#d9d9d9,#c7c7c7);
border-bottom: 1px solid #fff;
padding: 5px 0 6.5px 10px;
margin: auto;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #555;
padding: 3px;
background-color: #f3f3f3;
border-bottom: 1px solid #fff;
text-decoration: none;
}
#navigation a:hover {
color: #585858;
background-color: #e7e7e7;
}
#navigation li.first-link a {
font-weight:bold;
}
#navigation li.first-link.current-link a {
color: #555;
font-weight:bold;
background-color: #f3f3f3;
}
#navigation li.current-link a {
color: #fff;
background-color: #1487ca;
}
/* Page Navigation */
.pagenav {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
padding: 4px;
margin: 5px;
}
.pagenav span {
font-weight: normal;
color: #fff;
background-color: #f6a504;
box-shadow: inset 0 0 2px #f9cc73;
-moz-box-shadow: inset 0 0 2px #f9cc73;
-webkit-box-shadow: inset 0 0 2px #f9cc73;
border: 1px solid #f6a504;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
text-shadow: #ccc 0.1em 0.1em 0.2em;
text-decoration: none;
padding: 3px 8px 3px 8px;
margin: 2px;
}
.pagenav a {
color: #555;
background-color: #f3f3f3;
box-shadow: inset 0 0 2px #fff;
-moz-box-shadow: inset 0 0 2px #fff;
-webkit-box-shadow: inset 0 0 2px #fff;
border: 1px solid #a9a9a9;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
text-shadow: #fff 0.1em 0.1em 0.2em;
text-decoration: none;
padding: 3px 8px 3px 8px; /* top right bottom left*/
margin: 2px;
}
.pagenav a:hover {
color: #f6a504;
background-color: #fdf3de;
box-shadow: inset 0 0 2px #f9dca2;
-moz-box-shadow: inset 0 0 2px #f9dca2;
-webkit-box-shadow: inset 0 0 2px #f9dca2;
border: 1px solid #f6b83d;
margin: 2px;
text-decoration: none;
}
/* PHP-Fusion Helpers */
.clear {
clear: both;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
/* Helpers */
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
/* IE Fixes */
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hide from IE Mac */
.clearfix {
display:block;
}
/* End hide from IE Mac */
.floatfix {
overflow:hidden;
}
* html .floatfix {
width:100%;
}
.center, *[align="center"] {
margin: 0 auto;
}
W pliku styles.css dodaj (tutaj możesz zmienić kolor capmain dla przyklejonego newsa):
.capmain-news-sticky {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
background-color: #2a2a2a;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ffffff),color-stop(100%,#ff0000));
background-image: -webkit-linear-gradient(#ffffff,#ff0000);
background-image: -moz-linear-gradient(#ffffff,#ff0000);
background-image: -o-linear-gradient(#ffffff,#ff0000);
background-image: linear-gradient(#ffffff,#ff0000);
padding: 8px 0 8px 10px;
}
oraz w theme.php tą linijkę:
echo "<div class='capmain-news floatfix'>\n";
zamień na:
if ($info['news_sticky'] == "1") {
echo "<div class='capmain-news-sticky floatfix'>\n";
} else {
echo "<div class='capmain-news floatfix'>\n";
}
|