Przedszkolak
Postów: 11
v7.02.06 Data rejestracji: 16.07.2013 14:32
|
Z góry uprzedzam, że jestem człowiekiem całkowicie zielonym w jakiejkolwiek dziedzinie, której znajomość niezbędna jest dla właściciela strony. Dlatego też proszę - jeżeli ktoś jest w stanie udzielić mi pomocy, niechaj zrobi to tak, by największy imbecyl mógł to zrozumieć. Jak i z góry uprzedziłam, tak i z góry dziękuję :>
Jak wszyscy widzą na załączonym screenie, obramowane na czerwono linki są tekstem. Ja natomiast w miejsce tekstu chciałabym wstawić obrazki.
Kolejną sprawą jest to, że kategorie "linki" oraz "download" są mi zbyteczne. Chcę je ukryć.
Korzystam ze zmodyfikowanej skórki Gilette. Zmienione w niej są jedynie kolory oraz obrazki.
Styles.css
/* Comment element properties */
a {
color: #fff;
text-decoration: none;
}
a:hover {
color: #fff;
text-decoration: bold;
}
a.side {
color: #ddd;
text-decoration: none;
}
a:hover.side {
color: #fff;
text-decoration: bold;
}
a.white, li.white a {
color: #191919;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #191919;
text-decoration: bold;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #191919;
background: #e5e5e5;
margin-left: auto;
margin-right: auto;
opacity: 0.95;
}
body {width: 1040px}
body {background: #000
url(http://25.media.tumblr.com/f6e32b88b5098848b9ea04930540dfd6/tumblr_mlxiajW80H1s50bj4o1_500.png) center fixed !important;}
hr {
height: 1px;
border: 1px solid #2f2f2f;
}
::selection {
background: #3d0a4d;
color: #fff;
}
::-moz-selection {
background: #3d0a4d;
color: #fff;
}
img {
opacity: 1;
}
img:hover {
opacity: 0.5;
avatar-opacity: none;
border-radius: 80px;
-moz-transition:all 1.5s;
-webkit-transition:all 1.5s;
-o-transition:all 1.5s;
}
hr.side-hr {
height: 1px;
border: 1px solid #2f2f2f;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
pre {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.alt {
color: #e5e5e5;
}
.spacer {
margin-bottom: 5px;
}
.admin-message {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
color: #ddd;
background-color: #f6f6f6;
border: 1px solid #191919;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
}
/* Form element properties */
form {
margin: 0px;
}
.button {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #191919;
background-color: #e5e5e5;
background-image: url(images/button.gif);
height: 20px;
border: 1px solid #e5e5e5;
}
.bbcode {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #e5e5e5;
background-color: #2f2f2f;
border: 1px solid #ccc;
margin-top: 2px;
}
.bbcode-popup {
font-size: 11px;
color: #ddd;
background-color: #191919;
padding: 4px;
}
.textbox {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ddd;
background-color: #1e1d1a;
border: 1px solid #ccc;
}
.textbox:focus {
color: #e5e5e5;
background-color: #191919;
}
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 and footer properties */
.sub-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #191919;
background-color: #ddd;
background-image: url(images/subheader-mid.gif);
padding: 7px 5px 8px 5px;
}
.sub-header-left {
width: 3px;
height: 28px;
background-color: #ddd;
background-image: url(images/subheader-left.gif);
}
.sub-header-right {
width: 3px;
height: 28px;
background-color: #ddd;
background-image: url(images/subheader-right.gif);
}
/* Subheader links */
.sub-header ul{
margin: 0;
padding: 0;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.sub-header ul li.first-link {
font-weight: bold;
}
.sub-header ul li.current-link a span {
text-decoration: underline;
}
.full-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000;
background-color: #000;
padding: 5px 0 10px 0;
}
.main-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #ddd;
background-color: #191919;
padding: 5px;
}
.bottom-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #191919;
background-color: #ddd;
padding: 4px 4px 5px 4px;
}
.main-body {
font-size: 11px;
color: #ddd;
background-color: #191919;
border: 1px solid #161616;
padding: 4px;
}
/* Side-Panel properties */
.ui-sortable { margin: 0; padding: 0; }
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
.side-border-left {
color: #777;
background-color: #191919;
padding: 10px 10px 10px 0;
width: 175px;
}
.side-border-right {
color: #777;
background-color: #191919;
padding: 10px 0 10px 10px;
width: 175px;
}
.scapmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
color: #191919;
background-color: #ddd;
background-image: url(images/side.gif);
background-repeat: repeat-x;
padding: 6px 4px 6px 4px;
}
.scapmain-left {
width: 3px;
height: 24px;
background-color: #ddd;
background-image: url(images/side-left.gif);
}
.scapmain-right {
width: 3px;
height: 24px;
background-color: #ddd;
background-image: url(images/side-right.gif);
}
.side-body {
font-size: 10px;
color: #ddd;
background-color: #191919;
background-image: url(images/gradient.gif);
background-repeat: repeat-x;
border: 1px solid #161616;
padding: 4px;
}
/* Center-Panel properties */
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.news-footer {
font-size: 10px;
color: #ddd;
background-color: #181818;
border-width: 0 1px 1px 1px;
border-color: #161616;
border-style: solid;
padding: 3px 4px 4px 4px;
}
.capmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #191919;
background-color: #ddd;
background-image: url(images/cap.gif);
background-repeat: repeat-x;
padding: 6px 4px 6px 4px;
}
.capmain-left {
width: 3px;
height: 25px;
background-color: #ddd;
background-image: url(images/cap-left.gif);
}
.capmain-right {
width: 3px;
height: 25px;
background-color: #ddd;
background-image: url(images/cap-right.gif);
}
.main-bg {
color: #ddd;
background-color: #191919;
padding: 10px 0 5px 0;
}
/* General table properties */
.comment-avatar {
padding-right: 6px;
float: left;
}
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #2f2f2f;
}
.tbl {
font-size: 12px;
color: #ddd;
background-color: #191919;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #ddd;
background-color: #191919;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #ddd;
background-color: #181818;
padding: 4px;
}
.tbl-error {
color: #AC260F;
font-weight: bold;
background-color: #FCCAC2;
border:2px solid #EB5339;
}
/* Profile spesific classes */
.profile, .profile_category {
width: 500px;
}
.edit-profile {
width: 500px;
}
/*.user_password .textbox:focus, .user_admin_password .textbox:focus {
background-color: #ff6666;
}*/
.profile_user_reason {
color: #ff6666;
font-weight: bold;
}
/*.user_name td, .user_name .textbox {
font-size: 13px;
padding: 4px;
}*/
.forum-caption {
font-size: 11px;
font-weight: bold;
color: #888;
background-color: #181818;
padding: 2px 4px 4px 4px;
}
.quote {
font-size: 11px;
color: #ddd;
background-color: #1e1d1a;
padding: 4px;
margin: 0px 20px 0px 20px;
border: 1px solid #bbb;
}
.poll {
height: 12px;
border: 1px solid #bbb;
}
.comment-name {
font-weight: bold;
color: #cccccc;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
font-size: 10px;
font-weight: normal;
color: #ddd;
}
.side-small {
font-size: 10px;
font-weight: normal;
color: #ddd;
}
.side-label {
color: #ddd;
background-color: #181818;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
font-weight: normal;
background-color: #181818;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #ddd;
padding: 2px;
text-decoration: none;
}
#navigation a:hover {
color: #191919;
background-color: #e5e5e5;
}
#navigation li.first-link a {
font-weight:bold;
}
#navigation li.current-link a {
color: #ddd;
background-color: #2f2f2f;
border: 1px solid #191919;
padding: 1px !important;
}
/* Page Navigation */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #191919;
background-color: #e5e5e5;
border: 1px solid #161616;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #ddd;
background-color: #181818;
border: 1px solid #161616;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #191919;
background-color: #e5e5e5;
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;
}
Theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "1070");
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
//Header
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='full-header'>\n".showbanners()."</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='sub-header-center'></td>\n";
echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
echo "<td align='center' class='sub-header'>".showsubdate()."</td>\n";
echo "<td class='sub-header-center'></td>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\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 "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='sub-header-left'></td>\n";
echo "<td align='left' class='sub-header'>".showrendertime()."</td>\n";
echo "<td align='right' class='sub-header'>".showcounter()."</td>\n";
echo "<td class='sub-header-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
if (!$license) { echo "<br /><br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n";
/*foreach ($mysql_queries_time as $query) {
echo $query[0]." QUERY: ".$query[1]."<br />";
}*/
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
$comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
echo "<div class='tbl2 clearfix floatfix'>\n";
if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".$info['cat_image'].$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newscat($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;background-color:#a59c8a;'></td>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articlecat($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;background-color:#a59c8a;'></td>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - bogdan 16.07.2013 15:00
- Zmiana nazwy tematu - bogdan 16.07.2013 15:06
Edytowane przez Anomalia dnia 16.07.2013 15:27:43
|