[!MaxiGallery? &display=`childgalleries`!]
[!MaxiGallery? &css=`mg_css` &display=`childgalleries`!]
[[MaxiGallery? &display=`embedded` &embedtype=`slidebox` &pics_in_a_row=`3` &max_thumb_size=`150` &max_pic_size=`0`]]
if($_REQUEST['mode']!="admin" && count($pics)>0){
//add smoothgallery div css
if ($mg->mgconfig['display'] == "embedded" && $mg->mgconfig['embedtype'] == "smoothgallery") {
if ($mg->mgconfig['smoothgallery_id'] != -1){
$mg->regSmoothGalleryCSS($mg->mgconfig['smoothgallery_id']);
} else {
$mg->regSmoothGalleryCSS($pageinfo['id']);
}
}
$mg->regScriptsAndCSS();
}
return;
if($_REQUEST['mode']!="admin"){
if (count($pics)>0) {
//add smoothgallery div css
if ($mg->mgconfig['display'] == "embedded" && $mg->mgconfig['embedtype'] == "smoothgallery") {
if ($mg->mgconfig['smoothgallery_id'] != -1){
$mg->regSmoothGalleryCSS($mg->mgconfig['smoothgallery_id']);
} else {
$mg->regSmoothGalleryCSS($pageinfo['id']);
}
}
}
$mg->regScriptsAndCSS();
}
return;
This discussion is closed to further replies. Keep calm and carry on.