Przedszkolak
Postów: 29 Ostrzeżeń: 2
v7.02.07 Data rejestracji: 06.12.2014 17:03
|
Witam. Małe pytanko bo tak właśnie planuje zmienić wygląd mojej stronki (testowej). Doszedłem do tego jak zrobić aby tło newsów i tak dalej było przezroczyste wystarczy w background-color: none; wpisać ale pozostają dookoła takie tabelki i to mi się właśnie nie podoba. Więc:
1. Jak usunąć te tabelki dookoła newsów i paneli?
2. Jak wstawić tło obrazkowe? Słyszałem, że w styles.css w body dopisuję background-image:url(/folder/nazwa_z_rozszerzeniem); lecz to mi nie działa.
3. Jak zrobić przezroczyste tło nawigacji?
4. Jak zrobić przezroczyste tło dolnej stopki to wszystko co jest tam wstawione copyright i tak dalej.
Zależy mi na tym aby nie było tych ramek dookoła gdy już zmienię tło na przezroczyste danego panelu. Z góry dziękuję za pomoc.
Styles.css
a { color : #005599; text-decoration : none; }
a:hover { color : #003499; text-decoration : none; }
a.side { color : #005599; text-decoration : none; }
a:hover.side { color : #003499; text-decoration : none;}
a.white {color: #fff;text-decoration: none;}
a:hover.white { color: #808080; text-decoration: none;}
body { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 14px; background-color: #191919; margin: 0; }
form { margin: 0px; }
hr { height: 1px; border: 1px solid #eee; }
hr.side-hr { height: 1px; border: 1px solid #eee; }
hr.footerhr {border: 1px solid #777; height: 1px; width: 1000px;}
td { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 11px; }
pre { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 11px; }
.alt { color: #555; }
.outer-border { border: 1px solid #000; }
.inner-container { width: 1200px; margin-left: auto; margin-right: auto; }
.sub-header { height: 27px; font-family:Verdana, Tahoma, Arial, Sans-Serif; font-weight: bold; color: #fff; background-color:#000 ; box-shadow: inset 0px -24px 30px #353535; -moz-box-shadow: inset 0px -24px 30px #353535; -webkit-box-shadow: inset 0px -24px 30px #353535; border-top: 1px solid #6A6A6B; border-bottom: 4px solid #6A6A6B; padding: 14px 20px 0px 20px; margin-bottom: 17px; }
.sub-header ul { margin: 0; padding: 0; }
.sub-header ul li { display: inline; }
.sub-header ul li a { color: #fff; padding: 14px 10px 14px 10px; }
.sub-header ul li a:hover { color: #f0f0f0 ; text-decoration: none; background-color: #444; box-shadow: inset 0px -24px 30px #353535; -moz-box-shadow: inset 0px -24px 30px #353535; -webkit-box-shadow: inset 0px -24px 30px #353535; }
.sub-header ul li.first-link .bullet { display: none; }
.sub-links { float:left; margin: 0 0 0 200px; }
.sub-date {float:right; margin: 0 0 0 1px }
.full-header { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 10px; color: #ddd; background-color: #E2E1D3; width: 904; height: 375px; }
.banners { padding-left: 140px;}
.footer { padding-bottom:10px; margin-top: 10px; text-align: center; vertical-align: top; font-size: 10px; color: #a2a2a2; background-color: #191919; border-top: 4px solid #6A6A6B;}
.footer-links { vertical-align: middle; padding: 10px 0 10px 0; }
.footer-links ul li { display: inline; }
.footer-links ul li a { font-family:Verdana, Tahoma, Arial, Sans-Serif; text-align: center; text-transform: uppercase; font-size: 10px; font-weight: bold; color: #eee; padding: 0px 10px 0px 10px; }
.footer-links ul li a:hover { font-family:Verdana, Tahoma, Arial, Sans-Serif; text-align: center; text-transform: uppercase; font-size: 10px; font-weight: bold; text-decoration: none; color: #003499; padding: 0px 10px 0px 10px; }
.copyright { font-family:Verdana, Tahoma, Arial, Sans-Serif; text-align: center; font-size: 11px; color: #eee; padding: 10px 0px 0px 0px; }
.copyright a { color: #d5d5d5; }
.admin-message { font-family :Verdana, Tahoma, Arial, Sans-Serif; font-size : 11px; text-align : center; color : #555; background-color : #FFE2E2; border : 1px solid #e1e1e1; padding : 10px 5px 10px 5px; margin-bottom : 5px; }
.nocomments-message {font-family :Verdana, Tahoma, Arial, Sans-Serif; font-size : 11px; text-align : center; color : #555; background-color : #F3F3F3; border : 1px solid #e1e1e1; padding : 10px 5px 10px 5px; margin-bottom : 5px; }
.noscript-message { font-family :Verdana, Tahoma, Arial, Sans-Serif; font-size : 11px; text-align : center; color : #555; background-color : #FFBABA; border : 1px solid #e1e1e1; padding : 10px 5px 10px 5px; margin-bottom : 5px; }
.button { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 11px; color: #555; background-color: #A9D8FC; box-shadow: inset 0px -25px 25px #8BC4F1; -moz-box-shadow: inset 0px -25px 25px #8BC4F1; -webkit-box-shadow: inset 0px -25px 25px #8BC4F1; height: 24px; border: 1px solid #999; padding-bottom: 2px; margin-top: 2px; }
.button:hover {background-color : #EDEEF0;}
.bbcode { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size : 10px; color : #555; background-color : #EAEAEA; border : 1px solid #ccc; margin-top : 2px; }
.bbcode:hover { background-color : #D2DAE0; }
.bbcode-popup { font-size: 12px; color: #555; background-color: #fff; padding: 4px; }
.textbox { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 12px; color: #555; padding-top: 3px; padding-bottom: 3px; background-color: #EAEAEA; border: 1px solid #ccc; -moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20); -webkit-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20) }
.textbox:hover { background-color : #EDEEF0; }
.checkbox { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 10px; color: #555; background-color: #EAEAEA; border: 1px solid #ccc; -moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20); -webkit-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20) }
.checkbox:hover { background-color : #EDEEF0; }
.profile, .profile_category {width: 450px;}
.edit-profile { width: 450px;}
.profile-link { }
.profile_user_reason { color: #ff6666; font-weight: bold;}
div.emulated-fieldset,div.emulated-fieldset span.emulated-legend,.outer-border,.admin-message,.nocomments-message,.noscript-message,.button,.bbcode,.textbox,.tbl-border,.side-label,.news-info,.news-category,.comment-avatar, #main-bg,#side-border-left,#side-border-right,#navigation h2,#navigation a:hover,.pagenav span,.pagenav a{ border-radius : 5px; -moz-border-radius : 5px; -webkit-border-radius : 5px;}
div.emulated-fieldset div.attachments-list { background-repeat: no-repeat; background-image: url(images/attach.png); background-position: 7px center;border: 1px solid #bbb; margin-top: 15px; padding: 15px 0px 15px 30px; /* top right bottom left*/ width: 320px; border-radius : 5px; -moz-border-radius : 5px; -webkit-border-radius : 5px;}
.main-body { font-size: 11px; color: #555; background-color: none; border-left: 1px solid #C4C2C2; border-right: 1px solid #C4C2C2; border-bottom-left-radius : 5px; border-bottom-right-radius :5px; -moz-border-radius-bottomleft : 5px; -moz-border-radius-bottomright : 5px; -webkit-border-bottom-left-radius : 5px; -webkit-border-bottom-right-radius : 5px; padding: 6px 6px 6px 8px; padding-left:10px; margin-bottom: 10px; vertical-align:text-top; }
.main-body2 { font-size: 11px; color: #555; background-color: none; border-bottom: 1px solid #C4C2C2; border-left: 1px solid #C4C2C2; border-right: 1px solid #C4C2C2; border-bottom-left-radius : 5px; border-bottom-right-radius :5px; -moz-border-radius-bottomleft : 5px; -moz-border-radius-bottomright : 5px; -webkit-border-bottom-left-radius : 5px; -webkit-border-bottom-right-radius : 5px; vertical-align: top; padding: 6px 6px 6px 8px; padding-left:10px; margin-bottom: 10px; }
.news-body { font-size: 11px; color: #555; background-color: none; padding: 6px 6px 1px 8px; padding-left:10px; vertical-align:text-top; }
.news-category { border: 3px solid #C4C2C2; margin: 3px 5px 5px 0; float: left; }
.news-category:hover { border: 3px solid #CECCCC; margin: 3px 5px 5px 0; float: left; }
.news-image { background-color:#FFFFFF; border-left: 0px solid #C4C2C2; padding-top:5px; padding-left:10px; padding-right:5px; }
.poster { padding-top: 5px;}
.news-info { font-size: 11px; padding: 6px 7px 6px 7px; /* top right bottom left*/ background-color:none ; color:#333;}
.news-infob { font-size: 11px; color:#DDD000; padding: 3px 5px 3px 5px; /* top right bottom left*/ background-color: #f7f7f7; text-align:right; margin-bottom: 10px;}
.news-icons { height: 24px; width: 24px; vertical-align:middle; border: 0px; }
.news-iconsb { vertical-align:middle; border: 0px; }
.news-footer { text-align: left; font-size: 10px; color: #DDD000; background-color: #fff; padding: 1px 4px 4px 4px; padding-left:15px; margin: -10px 0px 10px 0px; }
.news-button { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 10px; color: #eee; font-weight: bold; background-image: url(images/right-arrow.png); background-repeat:no-repeat; background-position:left; vertical-align: middle; background-color: #A9D8FC; box-shadow: inset 0px -25px 25px #8BC4F1; -moz-box-shadow: inset 0px -25px 25px #8BC4F1; -webkit-box-shadow: inset 0px -25px 25px #8BC4F1; height: 24px; border: 1px solid #999; padding-left: 18px; padding-right: 9px; padding-bottom: 5px; padding-top: 3px; margin-top: 5px; }
.news-button:hover {background-color : #DADFEA; color: #ddd;}
.breaking-news { color: #ff0000; font-size: 9px; text-transform: uppercase; float:right; padding-top: 2px; padding-right: 5px; }
.sticky-news { border: 0px; float:right; padding-top: 2px; padding-right: 5px; }
.side-body { border-right: 1px solid #C4C2C2; border-left : 1px solid #C4C2C2; border-bottom: 1px solid #C4C2C2; margin-bottom: 10px; border-bottom-left-radius : 5px; border-bottom-right-radius :5px; -moz-border-radius-bottomleft : 5px; -moz-border-radius-bottomright : 5px; -webkit-border-bottom-left-radius : 5px; -webkit-border-bottom-right-radius : 5px; font-size: 11px; color: #555; background-color: #EBEBEB; padding: 6px; }
.side-body-bg { background-color: #EBEBEB; border: 1px solid #C4C2C2; padding: 4px; margin: 0px 0px 10px 0px; }
#main-bg { color: #555; background-color: transparent; padding: 0px 15px 5px 15px; }
.side-both #main-bg {margin: 0 210px;}
.side-left #main-bg {margin-left: 210px;}
.side-right #main-bg {margin-right: 210px;}
.side-left #side-border-right {display:none;}
.side-right #side-border-left {display:none;}
.center { margin : 0 auto; }
* html #main-bg{ height: 0px;}
.border { border : 1px solid #e1e1e1; margin-bottom : 20px; }
#side-border-left { color: #777; background-color: transparent; float: left; padding: 0px 0px 0px 10px; width: 200px; }
#side-border-right { color: #777; background-color: transparent; float: right; padding: 0px 10px 0px 0px; width: 200px; }
.border-side { border-left: 1px solid #C4C2C2; border-right: 1px solid #C4C2C2; border-bottom: 1px solid #C4C2C2; margin-bottom: 10px; border-top-left-radius : 5px; border-top-right-radius :5px; -moz-border-radius-topleft : 5px; -moz-border-radius-topright : 5px; -webkit-border-top-left-radius : 5px; -webkit-border-top-right-radius : 5px; }
.capmain { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 14px; font-weight: bold; color: #eee; background-color: #B0D7F6; border-top-left-radius : 5px; border-top-right-radius :5px; -moz-border-radius-topleft : 5px; -moz-border-radius-topright : 5px; -webkit-border-top-left-radius : 5px; -webkit-border-top-right-radius : 5px; box-shadow: inset 0px -25px 25px #8BC4F1; -moz-box-shadow: inset 0px -25px 25px #8BC4F1; -webkit-box-shadow: inset 0px -25px 25px #8BC4F1; padding-top: 8px; padding-left: 10px; padding-bottom: 8px; }
.scapmain { font-family:Verdana, Tahoma, Arial, Sans-Serif; font-size: 12px; font-weight: bold; color: #333; padding-top: 8px; padding-left: 10px; padding-bottom: 8px; background-color: #B0D7F6; box-shadow: inset 0px -25px 25px #8BC4F1; -moz-box-shadow: inset 0px -25px 25px #8BC4F1; -webkit-box-shadow: inset 0px -25px 25px #8BC4F1; border-top-left-radius : 5px; border-top-right-radius :5px; -moz-border-radius-topleft : 5px; -moz-border-radius-topright : 5px; -webkit-border-top-left-radius : 5px; -webkit-border-top-right-radius : 5px;}
.tbl-border { border: 1px solid #e1e1e1; }
.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: #EDEDED; padding: 4px; }
.tbl-error { color: #AC260F; font-weight: bold; background-color: #FCCAC2; border: 2px solid #EB5339; }
.forum-caption { font-size: 11px; font-weight: bold; color: #888; background-color: #EDEDED; padding: 2px 4px 4px 4px; }
.forum_breadcrumbs { background-color: #EAF6FF; font-family: Verdana, Helvetica, sans-serif; font-size: 11px; font-weight: normal; padding: 5px 6px 5px 10px; margin: 0; }
.forum_idx_table, .forum_table, .forum_thread_table { border: 0px; background-color: transparent;}
/*.forum { } */
/*.forum_breadcrumbs { }*/
.forum_idx_table .tbl2, .forum_idx_table .tbl1, .forum_table .tbl2, .forum_table .tbl1 { background-color: #ECECEC; }
.forum_thread_table .forum-caption { border: 0px; }
/*.forum_cat_name {}*/
.forum_name {font-weight: bold; }
.forum_name .small { font-size: 10px; font-weight: normal; }
.forum_thread_post_date, .forum_thread_user_post, .forum_thread_userbar { background-color: #EDEDED; }
/*.forum_thread_user_name, .forum_thread_post_date { border-top: 5px solid #CCC; }*/
/*.forum_thread_user_name, .forum_thread_user_info, .forum_thread_ip { background-color: #f1f1f1; border-right: 5px solid #CCC; }*/
.forum_thread_ip, .forum_thread_userbar { border-bottom: 1px solid #F3F3F3;}
/* border-top: 5px solid #CCC; */
.quote { font-size: 11px; color: #555; background-color: #f8f8f8; padding: 4px; margin: 0px 20px 0px 20px; border: 1px solid #bbb; }
.poll { height: 12px; border: 1px solid #bbb; border-top-right-radius :5px; -moz-border-radius-topright : 5px; -webkit-border-top-right-radius : 5px;
border-bottom-right-radius :5px; -moz-border-radius-bottomright : 5px; -webkit-border-bottom-right-radius : 5px; }
.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: #005599; padding-left: 10px; }
.comment-avatar { float: left; border: 2px solid #ccc;}
.comment_actions {float:right; color:#000000; }
.comment_message{ background-color:#EBEBEB; padding-left: 63px; vertical-align:top; }
.comment_admin {color:#555555;}
.shoutboxname { font-weight: bold; color: #005599; }
.shoutbox { color: #777; font-size: 11px;}
.shoutboxdate { font-size: 10px; color: #888; }
.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; background-color : #f6f6f6; }
.side-label { color: #555; background-color : #f1f1f1; padding : 2px 2px 3px 2px; }
/* Vertical Navigation */
#navigation h2 { font-size: 20px; color: #DDD000; background-color: #f1f1f1; margin: 0; padding: 3px 1px 3px 1px; /* top right bottom left*/ }
#navigation ul { margin: 0; padding: 0; list-style-type: none; }
* html #navigation ul li { height: 2%; }
#navigation a { display: block; color: #337295; font-size: 15px; padding: 3px 1px 3px 1px; /* top right bottom left*/ text-decoration: none; }
#navigation a:hover { color: #f6f6f6; background-color: #B0D7F6; box-shadow: inset 0px -25px 25px #8BC4F1; -moz-box-shadow: inset 0px -25px 25px #8BC4F1; -webkit-box-shadow: inset 0px -25px 25px #8BC4F1; }
/* Page Navigation */
.pagenav { margin-top: 10px; padding: 0.4em; }
.pagenav span { color: #fff; background-color: #000; box-shadow: inset 0px -24px 30px #353535; -moz-box-shadow: inset 0px -24px 30px #353535; -webkit-box-shadow: inset 0px -24px 30px #353535; border: 1px solid #000; box-shadow: inset 0px -24px 30px #353535; -moz-box-shadow: inset 0px -24px 30px #353535; -webkit-box-shadow: inset 0px -24px 30px #353535; padding: 0.2em 0.4em 0.2em 0.4em; margin: 0.2em; }
.pagenav a { color: #808080; background-color: #fff; border: 1px solid #ccc; padding: 0.2em 0.4em 0.2em 0.4em; margin: 0.2em; text-decoration: none; }
.pagenav a:hover { color: #fff; background-color: #111; border: 1px solid #111; box-shadow: inset 0px -24px 30px #353535; -moz-box-shadow: inset 0px -24px 30px #353535; -webkit-box-shadow: inset 0px -24px 30px #353535; margin: 0.2em; text-decoration: none; }
/*Helpers*/
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
/*IE Fixes*/
* html #main-bg { height: 1%; width: auto; }
.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;}
/* TinyMCE specific rules */
body.mceContentBody { background: #FFFFFF; color: #000000; }
/*Removes Dotted Border From Links In Firefox*/
a:active, a:active * { outline : none !important ; }
a:focus, a:focus * { outline : none !important ;}
/*for FireFox*/
[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner { border:0px; }
/*for IE8 */
input[type="submit"]:focus, input[type="button"]:focus { outline:none; }
theme.php
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright Š 2002 - 2012 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: FP Crisp Ice Theme
| Filename: theme.php
| Author: Fangree Productions
| Version: v1.00
| Developers: Fangree_Craig
| Site: http://www.fangree.com
+--------------------------------------------------------+
| CONTRABUTIONS: News & Forum icons from Stylo by Falcon
+--------------------------------------------------------+
| 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"); }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='vertical-align:middle; border: 0px;'/>");
set_image("author", THEME."images/author.png");
set_image("date", THEME."images/date.png");
set_image("reads", THEME."images/reads.png");
set_image("comments", THEME."images/comments.png");
set_image("readmore", THEME."images/readmore.png");
set_image("edit", THEME."images/edit.png");
set_image("print", THEME."images/printer.png");
set_image("sticky", THEME."images/sticky.png");
set_image("new", THEME."images/new.png");
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<div class='$main_style' style='width:".THEME_WIDTH.";'>\n";
echo "<div class='floatfix'>\n";
echo "<div class='full-header floatfix'>\n";
echo"<div class='inner-container'>\n";
//echo"<div style=''>";
//require_once INFUSIONS."simple_header_login/login.php";
//echo"</div>";
echo"<div class='banners'>".showbanners()."</div></div></div>\n";
//Subheader
echo "<div class='sub-header floatfix'>\n";
echo"<div class='inner-container'>";
echo "<div class='sub-links'>".showsublinks("","white")."</div>\n";
echo "<div class='sub-date'>".showsubdate()."</div>\n";
echo "</div></div></div>\n";
//Content
echo"<div class='inner-container'>";
if (LEFT) { echo "<div id='side-border-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-border-right'>".RIGHT."</div>\n"; }
echo "<div id='main-bg' class='clearfix'><div class=''>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
echo"</div>";
//Footer
echo "<div class='footer'>\n";
echo "<div class='footer-links'>";
require_once THEME."includes/footer_links.php";
echo"</div>\n";
echo"<hr class='footerhr'></hr>";
echo "<div class='copyright'>\n";
echo stripslashes($settings['footer']);
echo "<br /><br />\n";
if ($license == false) { echo showcopyright()."\n"; }
if ($settings['visitorcounter_enabled'] !== '0') {
echo "<br /><br />\n"; }
echo showcounter()."\n";
if ($settings['visitorcounter_enabled'] == '0') {
echo "<br />\n"; }
if ($settings['rendertime_enabled'] =='1' || $settings['rendertime_enabled'] =='2') { echo"<br />".showrendertime();} else { echo"<br /><br />\n"; }
if ($settings['rendertime_enabled'] =='1' || $settings['rendertime_enabled'] =='2') { echo "<br /><br />\n"; }
echo"FP Crisp Ice Theme by <a href='http://www.fangree.com' target='_blank' title='Fangree Productions'>Fangree Productions</a>.\n";
echo "</div>\n</div>\n</div>\n";
}
//Render Comments Function
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
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) {
$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='comment-main spacer'>\n";
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 small'>".$data['comment_name']."</span>\n";
echo "<span class='small'>".$data['comment_datestamp']."</span> \n";
if ($data['edit_dell'] !== false) { echo "<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "\n<div class='tbl2 comment_message'>".$data['comment_message']."</div>\n";
echo "</div></div>\n";
}
echo "</div>\n";
} else {
echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
}
closetable();
}
//Render News Function
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
if (file_exists(THEME."locale/".$settings['locale'].".php")) {
include THEME."locale/".$settings['locale'].".php";
} else {
include THEME."locale/English.php";
}
$breaking_news = 3600; //Breaking News Time (1 Hour/60 Mins/3600 Seconds)
opentable($subject.(time()-$info['news_date'] < $breaking_news ? " <span class='breaking-news'>".$locale['fpci_01']."</span>" :
($info['news_sticky'] == 1 ? "<img class='sticky-news' src='".get_image("sticky")."' title='S".$locale['fpci_02']."' alt='".$locale['fpci_02']."'/>" : "")));
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."' alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['news_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."\n";
echo " <img src='".get_image("reads")."' alt='".$info['news_reads']." ".$locale['global_074']."' title='".$info['news_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['news_reads']." ".$locale['global_074']."";
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='flright clearfix'>\n";
echo "<a href='".BASEDIR."print.php?type=N&item_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("N")) {
echo " <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n";
echo"</div>\n";
echo "<div class='news-body floatfix'>".$info['cat_image'].$news."</div>\n";
if ($info['news_ext'] == "y") { echo" <div class='news-infob'>";
echo" <a class='news-button' href='".BASEDIR."news.php?readmore=".$info['news_id']."'>".$locale['global_072']."</a>";
echo"</div>\n";
}
closetable();
}
//Render Articles Function
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
opentable($subject);
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."'alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['article_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."\n";
echo " <img src='".get_image("reads")."' alt='".$info['article_reads']." ".$locale['global_074']."' title='".$info['article_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['article_reads']." ".$locale['global_074']."";
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <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>\n"; }
echo "<div class='flright clearfix'>\n";
echo "<a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><img class='news-icons' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("A")) {
echo "<a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$info['article_id']."'><img class='news-icons' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n";
echo"</div>\n";
echo "<div class='news-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo" <div class='news-infob'>";
echo"</div>\n";
closetable();
}
// opentable Function
function opentable($title) {
echo "<div class='capmain'>$title</div>\n";
echo "<div class='main-body2'>\n";
}
// closetable Function
function closetable() { echo "</div>\n"; }
// openside Function
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
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); }
}
// closeside Function
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n\n";
}
?>
Edytowane przez Kinderinho dnia 04.01.2015 21:17:57
|