"; // Gallery config $body .= ""; $body .= "
"; if( $options['isAlbum'] == "true" ) $body .= ""; else $body .= ""; return $body; } function ajaxgallery($content=''){ global $wpdb; //get_option("ajaxgallery_rows") $gItems = $wpdb->get_results("SELECT * FROM $wpdb->options WHERE option_name='agItem'"); foreach ( $gItems as $gItem ) { $gItemsopc = split( ":", $gItem->option_value ); $options['user'] = $gItemsopc[0]; $options['album'] = $gItemsopc[1]; $options['rows'] = $gItemsopc[2]; $options['cols'] = $gItemsopc[3]; $options['aligntable'] = $gItemsopc[4]; $options['pag'] = $gItemsopc[5]; $options['isAlbum'] = (trim($options['album']) == "") ? "false" : "true"; $options['showPagination'] = $gItemsopc[6]; $options['thumbsize'] = $gItemsopc[7]; $content = str_replace('[ajax_gallery id='. $gItem->option_id .']', GBody($gItem->option_id, $options), $content); } return $content; /*return str_replace('[ajax_gallery]', GBody(), $content);*/ } function ag_head() { global $galleryurl; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } ?>