Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: paneliu paveiksliukas

Parašė RAFFAK· 2009 Bir. 18 08:06:07
#1

Sveiki. Pakeiciau paneliu paveiksliukas. Noriu, kad paneles pavadinimas butu per viduri, o ne kaireje puseje. Kaip padaryti? Stai theme.php isimtas kodas:

}



function openside($title) {

   echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='2'><tr>";

   echo "<td width='100%' class='panel'>";

   echo "<img align='right' border='0' src='".THEME."images/cellpic.png'>$title</td></tr>";

   echo "<tr><td bgcolor='#AAAAAA' class='side-body' width='100%'>";

}




Bandziau ivairius variantus, prie $title meginau <p text align ir t.t.. Padekite, labai reikia.

Parašė MobyDick· 2009 Bir. 18 08:06:43
#2

}



function openside($title) {

   echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='2'><tr>";

   echo "<td width='100%' class='panel'>";

   echo "<img align='center' border='0' src='".THEME."images/cellpic.png'>$title</td></tr>";

   echo "<tr><td bgcolor='#AAAAAA' class='side-body' width='100%'>";

}




Parašė RAFFAK· 2009 Bir. 18 08:06:43
#3

Dabar stai tai jau atrodo:


Kazkaip netaip..

Parašė MobyDick· 2009 Bir. 18 08:06:21
#4

O tekstą ne per style css reikai redaguot?

Parašė RAFFAK· 2009 Bir. 18 08:06:32
#5

Stai styles.css failiukas. Padekit, ziauriai reikia.

a {
   color : #D7D7D7;
   text-decoration : none;
}

a:hover {
   color : #FAC92B;
   text-decoration : underline;
}

a.side {
   color : #D7D7D7;
   text-decoration : none;
}

a:hover.side {
   color : #2BC4FA;
   text-decoration : underline;
}


a.resursai {
   color : #FFFFFF;
   text-decoration : none;
}

a:hover.resursai {
   color : #2BC4FA;
   text-decoration : underline;
}

a.konkursai {
   color : #FFFFFF;
   text-decoration : none;
}

a:hover.konkursai {
   color : #FAC92B;
   text-decoration : underline;
}

a.sub {
font-family : Tahoma;
   font-size : 12px;
   font-weight:bold;
   color : #FFF;
   text-decoration : none;
}


a:hover.sub {
    font-family : Tahoma;
   font-size : 12px;
   color : #FAC92B;
   text-decoration : none;
}

a.sub2 {
    font-family : Tahoma;
   font-size : 11px;
   color : #D7D7D7;
   text-decoration : none;
}

a:hover.sub2 {
    font-family : Tahoma;
   font-size : 11px;
   color : #D7D7D7;
   text-decoration : underline;
}

a.white {
   color : #ddd;
   text-decoration : none;
}

a:hover.white {
   color : #ddd;
   text-decoration : underline;
}

body {
background-color:#181818;
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   margin-bottom:0px;
}

form {
   margin : 0px;
}

hr {
   border-top:1px #20BEF9 solid;
   border-bottom:1px #292929 solid;
}

hr.side-hr {
   border:1px #20BEF9 solid;
   border-bottom:1px #292929 solid;
}

td {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

pre {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

.alt {
   color : #D7D7D7;
}
 
 
.new {
    font-family : Tahoma;
   font-size : 10px;
   color : #FFF;
   text-decoration : none;
}


.outer-border {
   border : 0px solid #000;
}

.panelleft {
        text-align:center;
   width: 267px;
   height:142px;
   background-image : url(images/panelleft.png);
}

.panelcenter {
        text-align:center;
   width: 294px;
   height:142px;
   background-image : url(images/panelcenter.png);
}

.panelright {
        text-align:center;
   width: 272px;
   height:142px;
   background-image : url(images/panelright.png);
}


.sub-header {
   font-family : Tahoma;
   font-size : 12px;
   font-weight:bold;
   color : #FFF;
   height: 44px;
   background-image : url(images/sub1.png);
   padding : 0px;
}

.sub-header2 {
   font-family : Tahoma;
   font-size : 12px;
   color : #D7D7D7;
   height: 24px;
   background-image : url(images/sub2.png);
   padding : 0px;
}

.full-header {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   background-image:url(images/header.png);
   background-repeat:no-repeat;
   color : #ddd;
   width:833px;
   height:153px;
   padding : 0px;
}

.footer {
   font-family : Tahoma;
   font-size : 12px;
   color : #FFF;
    height:44px;
   background-image: url(images/footer.png);
   border : 0px solid #ccc;
   padding : 5px;
}

.button {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #20BEF9;
   background-color : #242424;
   height : 20px;
   border : 1px dashed #20BEF9;
   margin-top : 2px;
}

.textbox {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #D7D7D7;
   background-color : #242424;
   border : 1px dashed #2BC4FA;
}

.main-body {
   font-size : 11px;
   color : #D7D7D7;
   background-color : #242424;
   padding : 4px 4px 5px 4px;
}

.side-body {
   font-size : 10px;
   color : #D7D7D7;
   background-color : #242424;
   padding : 4px;
}

.main-bg {
   color : #D7D7D7;
   background-color : #181818;
   padding : 10px 5px 10px 5px;
}

.border {
   border : 0px solid #e1e1e1;
}

.side-border-left {
   color : #D7D7D7;
   background-color : #181818;
   padding : 10px 10px 10px 5px;
}

.side-border-right {
   color : #D7D7D7;
   background-color : #181818;
   padding : 10px 10px 10px 5px;
}

.news-footer {
   font-size : 10px;
   color : #fff;
   height: 14px;
   background-image : url(images/newsdown.png);
   padding : 0px 0px 0px 0px;
}

.a-footer {
   font-size : 10px;
   color : #fff;
   height: 11px;
   background-image : url(images/cellpicdown.png);
   padding : 3px 4px 4px 4px;
}

.capmain {
   font-family : Tahoma;
   font-size : 12px;
   font-weight : bold;
   color : #fff;
   text-align:center;
    height:45px;
   background-image: url(images/news.png);
   padding : 2px 2px 4px 2px;
}

.scapmain {
   font-family : Tahoma;
   font-size : 12px;
   font-weight : bold;
   color : #fff;
   text-align:center;
   height:35px;
   background-image: url(images/cellpic.png);
   padding : 2px 2px 4px 2px;
}

.tbl-border {
   color : #D7D7D7;
   background-color : #252724;
}

.tbl {
   font-size : 11px;
   color : #D7D7D7;
   background-color : #252724;
   padding : 4px;
}

.tbl1 {
   font-size : 11px;
   color : #D7D7D7;
   background-color : #2e302d;
   padding : 4px;
}

.tbl2 {
   font-size : 11px;
   color : #D7D7D7;
   background-color : #353734;
   padding : 4px;
}

.forum-caption {
   font-size : 11px;
   font-weight : bold;
   color : #D7D7D7;
   background-color : #242424;
   padding : 2px 4px 4px 4px;
}

.quote {
   font-size : 11px;
   color : #fff;
   background-color : #242424;
   padding : 4px;
   margin : 0px 20px 0px 20px;
   border : 1px dashed #20BEF9;
}

.poll {
   height : 12px;
   border : 1px solid #bbb;
}

.comment-name {
   font-weight : bold;
   color : #D7D7D7;
}

.shoutboxname {
   font-weight : bold;
   color : #D7D7D7;
}

.shoutbox {
   color : #D7D7D7;
}

.shoutboxdate {
   font-size : 10px;
   color : #D7D7D7;
}

.small {
   font-size : 10px;
   font-weight : normal;
}

.small2 {
   font-size : 10px;
   font-weight : normal;
   color : #D7D7D7;
}

.side-small {
   font-size : 10px;
   font-weight : normal;
   color : #D7D7D7;
}

.side-label {
   color : #D7D7D7;
   padding : 2px 2px 3px 2px;
}



Redagavo RAFFAK· 2009 Bir. 18 08:06:11

Parašė Nepas· 2009 Bir. 18 09:06:02
#6

ei i theme.php pirštuku nekišai ?

Parašė MobyDick· 2009 Bir. 18 09:06:08
#7

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='panel-cellpic'align='center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}


šitą įdėk į theme ir veiks

Redagavo MobyDick· 2009 Bir. 18 09:06:35

Parašė Pakartoti slaptažodį· 2009 Bir. 18 09:06:46
#8

Theme.php ir Styles.css ni pričiom. Eini kur yra openside(<center>Tavo panelės pavadinimas</center>); Ir veiks. :)