Przedszkolak
Postów: 47
Data rejestracji: 13.08.2009 01:49
|
Witam
Mam problem ze skalowaniem tekstu.
Tekst się nie powiększa w panelach bocznych i centralnym.
W innych skórkach które przerabiałem w ten sam sposób, działają.
Tylko ta upierdliwa:)
Może ktoś pomoże, bo pewnie to drobiazg.
Theme
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "935");
define("THEME_BULLET", "<strong>·</strong>");
$enable_colour_switcher = true;
$enable_fontsize_switcher = true; //true=enable fontsize switcher | false=disable fontsize switcher
$enable_column_switcher = true; //true=enable column switcher | false=disable column switcher
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
require_once THEMES."templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "gif", "blue", "switcherbutton");
if(!$enable_colour_switcher){
$colour_switcher->disable();
}
$column_switcher = new Switcher("select", "columns", "gif", "both", "switcherbutton");
if(!$enable_column_switcher){
$column_switcher->disable();
}
$fontsize_switcher = new Switcher("increment", "fontsize", "gif", 1, "switcherbutton", "", true, array("step" => 0.1, "max" => 1.5));
if(!$enable_fontsize_switcher){
$fontsize_switcher->disable();
}
function get_head_tags(){
global $colour_switcher, $fontsize_switcher, $column_switcher;
echo $colour_switcher->makeHeadTag();
echo $column_switcher->makeHeadTag();
echo "<style type='text/css'>body{font-size: ".$fontsize_switcher->selected."em;}</style>";
echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}#subheader ul {display:inline-block;}#subheader ul {display:inline;}#subheader ul li {float:left;} #main-bg, .panelbody{position: relative;}</style><![endif]-->";
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $column_switcher, $main_style;
//Header Start
echo '<table id="Table_01" align="center" width="935" height="208" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="4">
<img src="'.THEME.'images/header_01.gif" width="684" height="208" alt="" /></td>
<td>
<img src="'.THEME.'images/nonbg.gif" width="204" height="23" alt="" /></td>
<td rowspan="4">
<img src="'.THEME.'images/header_03.gif" width="47" height="208" alt="" /></td>
</tr>';
//Member Header Start
echo '<tr>';
if (iMEMBER) {
echo '<td class="MemberForm" background="'.THEME.'images/header_02.gif" width="204" height="145" style="padding-left:40px">';
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'><b>Ediycja Profilu</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'><b>Wiadomo¶ci</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'><b>List Kont</b></a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'><b>Panel Administratora</b></a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'><b>Wyloguj</b></a>\n";
//Quest Header Start
} else {
if (isset($_POST['Regh'])) {
redirect('register.php');
}
echo '<td class="LoginForm" background="'.THEME.'images/header_02.gif" width="204" height="145" style="paddin-top:8px">';
include LOCALE.LOCALESET."global.php";
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_100,5']." <input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']." <input type='password' name='user_pass' class='textbox' style='width:100px;margin-left:4px;margin-top:2px' /><br />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='buttonHeader' style='margin-top:4px;margin-right:4px;width:45px' /><input type='submit' name='Regh' value='Rejestracja!' class='buttonReg' style='margin-top:4px;width:118px' /><br />\n";
echo "<small>Remember?</small><input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;margin-top:3px' />\n";
echo "</form>\n";
if ($settings['enable_registration']) {
echo '<a href="'.BASEDIR.'register.php" title="Rejestracja" class="side">Kliknij</a> aby się zarejestrować.<br />';
}
echo '<a href="'.BASEDIR.'lostpassword.php" title="Przypomnienie hasła" class="side">Zapomniane Hasło?</a></div>';
}
echo '</td></tr>
<tr>
<td>
<img src="'.THEME.'images/header_05.gif" width="204" height="30" alt="" /></td>
</tr>
<tr>
<td background="'.THEME.'images/header_06.gif" width="204" height="30" align="center">';
// Search script //
echo "<form name='search' method='post' action='".BASEDIR."search.php?stype=d'><b><font color='white'><small>Szukaj: </small></font></b>";
echo "<input value='wpisz szukane słowa' name='stext' class='textbox' style='width:100px' onBlur=\"if(this.value=='') this.value='wpisz szukane słowa';\" onFocus=\"if(this.value=='wpisz szukane słowa') this.value='';\" /> ";
echo "<input type='submit' name='search' value='Wyszukaj' class='buttonReg' style='width:30px' /></form></td>";
echo '</tr></table>';
// Menus Starts
echo '<table align="center" id="Table_02" width="935" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="'.THEME.'images/menu_01.jpg" width="10" height="30" alt="" border="0" />
</td>
<td><a href="'.BASEDIR.'index.php">
<img src="'.THEME.'images/menu_02.jpg" width="70" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'forum/index.php">
<img src="'.THEME.'images/menu_06.jpg" width="73" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'articles.php">
<img src="'.THEME.'images/menu_08.jpg" width="67" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'search.php">
<img src="'.THEME.'images/menu_10.jpg" width="74" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'photogallery.php">
<img src="'.THEME.'images/menu_12.jpg" width="76" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'news.php">
<img src="'.THEME.'images/menu_14.jpg" width="70" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'index.php">
<img src="'.THEME.'images/menu_16.jpg" width="80" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>';
if (iMEMBER) {
echo ' <td><a href="'.BASEDIR.'setuser.php?logout=yes">
<img src="'.THEME.'images/menu_log.jpg" width="75" height="30" alt="" border="0" /></td>';
} else {
echo ' <td><a href="'.BASEDIR.'register.php">
<img src="'.THEME.'images/menu_20.jpg" width="75" height="30" alt="" border="0" /></td>';
}
echo '<td>
<img src="'.THEME.'images/menu_21.jpg" width="4" height="30" alt="" border="0" /></td>
<td width="180" background="'.THEME.'images/menu_22_2.jpg" width="180" height="30">
'.$colour_switcher->makeForm("flright").'
'.$column_switcher->makeForm("flright").'
'.$fontsize_switcher->makeForm("flright").'
</td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td background="'.THEME.'images/menu_22.jpg" width="118" height="30"><font color="white" class="date" style="margin-left:22px"><small><center>'.showsubdate().'</center></small></font>
</td>
<td>
<img src="'.THEME.'images/menu_23.jpg" width="10" height="30" alt="" border="0" /></td>
</tr>
</table>';
// Menu Ends
echo "<table align='center' cellspacing='0' cellpadding='0' width='935' >
<tr>
<td>\n";
// Content
echo "<br /><table cellpadding='0' cellspacing='0' width='935' class='$main_style' align='center'>\n<tr>\n
<td class='side-border-left' valign='top' width='160'>".LEFT."</td>
<td class='main-bg' align='center' valign='top' width='615'>".
U_CENTER.CONTENT.L_CENTER."</td>
<td class='side-border-right' valign='top' width='160'>".RIGHT."</td>
</tr>\n</table>\n";
//Footer
echo "</td></tr></table>";
echo "<center><table cellpadding='0' cellspacing='0' width='935' >\n<tr>\n";
echo "<td align='center' class='main-footer' style='color:#fff;'>".stripslashes($settings['footer']);
echo "DarkZik Theme Designed By <a href='http://www.iranzik.com/music_film/index.html' target='_blank'>| IranZik.com |</a>";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n</center>";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
echo "<br />";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "<br />";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='98%'>
<tr>
<td class='capmain'> $title</td>
</tr>
<tr>
<td class='main'>\n";
}
function closetable() {
echo "</td>
</tr>
</table><br />\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='29' class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</td></tr>\n<tr><td class='side-body' background='#10161D'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
</table><br />";
}
?>
Styles
a {
color : #B5D8F6;
text-decoration : none;
}
a:hover {
color : #005599;
text-decoration : none;
}
a.side {
color : #B5D8F6;
text-decoration : none;
}
a:hover.side {
color : #005599;
text-decoration : none;
}
a.white, li.white a {
color: #ddd;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #ddd;
text-decoration: underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.69em;
background-image: url(images/bg.jpg);
margin:0px;
}
form {
margin : 0px;
}
hr {
border:none;
height:10px;
background:url(images/hr.png) no-repeat center;
border:0px;
}
hr-normal {
border:1px;
}
hr.side-hr {
height:10px;
background:url(images/hr.png) no-repeat center;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.69em;
}
pre {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 0.69em;
}
.alt {
color : #555;
}
.outer-border {
border : 1px solid #000;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.63em;
color : #000;
background-color : #888;
border-top : 1px solid #000;
border-bottom : 1px solid #000;
padding : 5px;
}
.sub-header ul{
margin: 0;
padding: 0;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.63em;
color : #ddd;
background-color : #444;
padding : 10px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size: 0.63em;
color : #fff;
padding : 5px;
}
.admin-message {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.69em;
text-align : center;
color : #fff;
background-color : #313538;
padding : 3px 4px 5px 4px;
margin : 5px;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size : 0.63em;
color:#fff;
background-color: #4C80B0;
background-image:url(images/buttonh.gif);
background-repeat:repeat-x;
border:#1E5288 1px solid;
margin-top:0px;
padding-bottom:2px;
height:16px;
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.63em;
color : #555;
background-color : #f1f1f1;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size : 0.63em;
font-weight:bold;
color:#000;
background-color: #FDFBFC;
background-image:url(images/textbox.jpg);
background-repeat:repeat-x;
border:1px #3c3c3c solid;
width: 100%;
}
.main-body {
font-size : 0.69em;
color : #E8EFF6;
background-color : #242424;
padding-left:5px;
padding-right:5px;
padding-bottom:5px;
margin-left:5px;
margin-right:5px;
border-left : 1px solid #323B44;
border-right : 1px solid #323B44;
border-bottom : 1px solid #323B44;
text-align: left
}
.side-body {
font-size : 0.63em;
color : #555;
background-color : #10161D;
padding : 4px;
border-left : 1px solid #323B44;
border-right : 1px solid #323B44;
border-bottom : 1px solid #323B44;
}
#main-bg {
color : #555;
background-color : #070707;
padding : 10px 5px 5px 5px;
}
.side-both #main-bg {margin: 0 187px;}
.side-left #main-bg {margin-left: 187px;}
.side-right #main-bg {margin-right: 187px;}
.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 #333A44;
}
#side-border-left {
color : #777;
background-color : #fff;
float:left;
padding : 0px 0px 0px 0px;
width: 175px;
}
#side-border-right {
color : #777;
background-color : #fff;
float:right;
padding : 0px 0px 0px 0px;
width: 175px;
}
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
.news-footer {
text-align: center;
font-size: 0.63em;
color : #555;
background-color : #313538;
padding : 3px 4px 4px 4px;
border-left : 1px solid #323B44;
border-right : 1px solid #323B44;
border-bottom : 1px solid #323B44;
margin-left:5px;
margin-right:5px;
}
.barmain {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 0.63em;
color : #aaa;
padding : 4px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.63em;
font-weight : bold;
color : #fff;
background-image : url(images/panelbg.jpg);
padding : 6px 6px 6px 6px;
border-top : 1px solid #323B44;
border-left : 1px solid #323B44;
border-right : 1px solid #323B44;
margin-left:5px;
margin-right:5px;
text-align: left
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.63em;
font-weight : bold;
color : #fff;
background-image : url(images/sidebg.jpg);
border-top : 1px solid #323B44;
border-left : 1px solid #323B44;
border-right : 1px solid #323B44;
padding : 4px;
}
.tbl {
font-size : 0.69em;
color : #E8EFF6;
background-color : #313538;
padding : 4px;
}
.tbl1 {
font-size : 0.69em;
color : #E8EFF6;
background-color : #313538;
padding : 4px;
}
.tbl2 {
font-size : 0.69em;
color : #E8EFF6;
background-color : #131313;
padding : 4px;
}
.forum-caption {
font-size : 0.69em;
font-weight : bold;
color : #fff;
background-color : #273343;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 0.69em;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #005599;
}
.shoutboxname {
font-weight : bold;
color : #005599;
background-color : #1C2734;
}
.shoutbox {
color : #A7D8F6;
background-color : #10161D;
}
.shoutboxdate {
font-size : 8px;
color : #888;
background-color : #10161D;
}
.small {
font-size : 0.63em;
font-weight : normal;
}
.small2 {
font-size : 0.63em;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 0.63em;
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: 0.63em;
color : #555;
background-color: #10161D;
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: #B5D8F6;
background-color: #10161D;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #f6f6f6;
background-color: #4F6D8F;
margin-left:2px;
}
/* Page Navigation */
.pagenav {
padding: 0.4em;
}
.pagenav span {
color: #fff;
background-color: #005599;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
}
.pagenav a {
color: #005599;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #005599;
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;}
.MemberForm {
padding-top:0;
padding-bottom:5;
padding-left:35;
padding-right:0;
}
.LoginForm {
padding-top:0;
padding-bottom:8;
padding-left:20;
padding-right:0;
}
.buttonReg {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size : 0.63em;
color:#fff;
background-color: #4C80B0;
background-image:url(images/buttonr.gif);
background-repeat:repeat-x;
border:#000 1px solid;
margin-top:0px;
padding-bottom:2px;
height:16px;
}
.main {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 0.69em;
color : #E8EFF6;
background-color : #242424;
padding : 2px 0px 4px 0px;
border-left : 1px solid #323B44;
border-bottom : 1px solid #323B44;
border-right : 1px solid #323B44;
text-align: left
}
.textbox, .button {
border-width: 1px;
font-size: 1em;
margin-top: 0.1em;
padding: 0.25em;
}
.buttonHeader {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size : 0.63em;
color:#000;
background-color: #4C80B0;
background-image:url(images/buttonh.gif);
background-repeat:repeat-x;
border:#1E5288 1px solid;
margin-top:0px;
padding-bottom:2px;
height:16px;
}
#bigbuttons {
padding: 0 0 0 0;
margin: 0;
width: 81px;
}
#bigbuttons li{
list-style: none;
padding: 0 0 0 0;
margin: 0;
.homemenu {
background-image: url(images/menu_02_hover.jpg);
background-repeat: no-repeat;
height: 30px;
width: 81px;
}
.homemenu a{
background-image: url(images/menu_02.jpg);
background-repeat: no-repeat;
height: 30px;
width: 81px;
display: block;
}
.homemenu a:hover{
background: none;
}
#wrap {
position: relative;
margin: 0 auto;
padding: 0;
font-size: 95%;
text-align: left;
width: 800px;
background: #0b415f;
}
Edytowane przez Pieka dnia 28.12.2009 23:00:41
|