Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panelės kodavimas

Parašė bedievis· 2013 Vas. 17 17:02:20
#1

Sveiki, prireikė jūsų pagalbos. Redaguoju panelę ir nesigauna padaryti apačios štai kaip atrodo:

Gal kas žinot kaip tai sutvarkyti?
O štai kodas:

.scapmain-top {
	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);
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
   -moz-border-radius-topleft 8px;
   -moz-border-radius-topright: 8px;
   -webkit-border-radius-topleft 8px;
   -webkit-border-radius-topright: 8px;
	padding: 6px;
}
 
.scapmain {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #fff;
	background-color: #1487c9;
	padding: 0px 10px 6.5px 10px;
}
 
.side-body {
	font-size: 11px;
	color: #555;
	background-color: #1487c9;
	padding: 4px;
}
 
.scapmain-bottom {
	background-color: #1487c9;
	background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#1487c9),color-stop(100%,#2b9dde));
    background-image: -webkit-linear-gradient(#1487c9,#2b9dde);
    background-image: -moz-linear-gradient(#1487c9,#2b9dde);
    background-image: -o-linear-gradient(#1487c9,#2b9dde);
    background-image: linear-gradient(#1487c9,#2b9dde);
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
   -moz-border-radius-bottomleft 8px;
   -moz-border-radius-bottomright: 8px;
   -webkit-border-radius-bottomleft 8px;
   -webkit-border-radius-bottomright: 8px;
	padding: 6px;
}


function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<div class='scapmain-top'></div>\n";
	echo "<div class='scapmain floatfix 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 floatfix spacer'>\n";
	if ($collapse == true) { echo panelstate($state, $boxname); }
 
}
 
function closeside() {
 
	global $panel_collapse;
 
	if ($panel_collapse == true) { echo "</div><div class='scapmain-bottom'></div>\n"; }
	echo "<div class='scapmain-bottom'></div>\n";
	echo "</div>\n";
}