" /> 0){ echo strip_tags($newsheading[1]['shorttext']); } elseif($content[sitedescription]!=""){ echo $content[sitedescription]; } ?>" /> 0){ $fonts = array_unique($fonts); foreach($fonts as $fkey=>$fvalue){ $fontinfo = runquery("SELECT * FROM fonts WHERE id='".$fvalue."'"); echo $fontinfo[1]['code']; } } $slideconfig = runquery("SELECT * FROM slideshow_config WHERE page='".$s."'"); ?> 3){ ?> 0){ $counter=1; foreach($rows as $rkey=>$rvalue){ $widgets = explode(",",$rvalue['widgets']); if($rvalue['widgets']!="" || $rvalue['text']!=""){ if($featurearray[$rvalue['widgets']]['function']=="createslideshow" && $counter==1 && $siteconfig['headerstyle']=="2" && $editmode!="yes"){ $slideshow="yes"; } } } } ?> "; if($privilege>0){ echo ""; } if($privilege>3){ echo ""; } if($theme[1]['banner']!="" && $theme[1]['logo_placement']=="Absolute"){ ?>
>
array("Edit ".$content['type']." Page"), "2"=>array("Edit Normal Page")); createtabs($tabs,"no","formedit,emode","emode"); } else{ $emode=1; } echo "
"; echo "
"; if($emode==1){ $incval = runquery("SELECT * FROM modules WHERE type='".$content['type']."'"); if($incval[1]['function']!=""){ $incval[1]['function'](); } elseif($incval[1]['include']!=""){ include("includes/".$incval[1]['include']); } } elseif($emode==2){ include("includes/inc_normal.php"); } echo "
"; } echo "
"; } //------------- non-edit mode ------------- else{ //---------- extra rows ----------- $rows = runquery("SELECT * FROM content_rows WHERE page='".$s."' AND active='yes' AND placement='abovetext' ORDER BY sequence"); if(count($rows)>0){ $counter=1; foreach($rows as $rkey=>$rvalue){ $widgets = explode(",",$rvalue['widgets']); //--------- tell nested function that its in dynamic row $functioncontext = "row"; if($rvalue['widgets']!="" || $rvalue['text']!=""){ echo "
"; if($rvalue['text']!=""){ echo $rvalue['text']; } elseif(count($widgets)>0){ foreach($widgets as $wkey=>$wvalue){ if($wvalue!=""){ if(count($widgets)>1){ $featurearray[$wvalue]['function'](count($widgets)); } else{ // echo "
"; $featurearray[$wvalue]['function'](); //echo "
"; //} ///else{ //$featurearray[$wvalue]['function'](); //} } } } } echo ""; echo "
"; } $counter++; } $functioncontext = ""; } ?>
>
0){ $counter=1; foreach($rows as $rkey=>$rvalue){ if($rvalue['widgets']!="" || $rvalue['text']!=""){ echo "
"; $widgets = explode(",",$rvalue['widgets']); if($rvalue['text']!=""){ echo $rvalue['text']; } elseif(count($widgets)>0){ foreach($widgets as $wkey=>$wvalue){ if($wvalue!=""){ if(count($widgets)>1){ $featurearray[$wvalue]['function'](count($widgets)); } else{ //if($featurearray[$wvalue]['function']!="createslideshow"){ // echo "
"; // $featurearray[$wvalue]['function'](); // echo "
"; //} //else{ $featurearray[$wvalue]['function'](); //} } } } } echo ""; echo "
"; } $counter++; } } } footer(); ?> 2){ ?>