Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: panel_side
Parašė ---· 2009 Rugs. 13 18:09:40
#1
kitaip nei v6, v7 nera side_left.php ir side_right.php, iš kur po velnių ištaukt užklausą, iš kurios traukia panel_side? Reikia dizaine pasidaryt skirtingas paneles. v6 žinau, v7 kitaip :)
Parašė Žmogus· 2009 Rugs. 13 19:09:25
#2
V7 tas pats kas ir ant V6, esu pasidaręs
Parašė ---· 2009 Rugs. 13 19:09:52
#3
Nu ne. $p_data ant v7 neveikia.
Parašė Žmogus· 2009 Rugs. 13 19:09:16
#4
Tai gal ne ten rašai :D
Parašė ---· 2009 Rugs. 13 19:09:49
#5
Ten ten. Dok koda paziuresim :P
Parašė Žmogus· 2009 Rugs. 13 19:09:41
#6
//paneles
//kaire
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse, $p_data, $panel_id; $panel_collapse = $collapse;
if ($p_data['panel_side'] == 1) {
//kaire
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='kaire' align='center'>".$panel_id." ".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
//pabaiga
}else{
//desine
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='desine' align='center'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
//pabaiga
}
}
function closeside($collapse = false) {
global $panel_collapse, $p_data;
if ($p_data['panel_side'] == 1) {
//kaire closeside
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
//pabaiga
}else{
//desine closeside
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
//pabaiga
}
Redagavo Žmogus· 2009 Rugs. 13 19:09:25
Parašė ---· 2009 Rugs. 13 19:09:53
#7
nu blt v7 zudo. vien del to kad po $panel_collapse = $collapse parasiau neveike. Dekui tau ;)