'; print_r($data); echo ''; } } if(!function_exists('ap_start')) { function ap_start() { } } if(!function_exists('ap_end')) { function ap_end() { } } if(!function_exists('ap_pagination')) { function ap_pagination() { global $wpdb; if(!is_admin() && is_main_query())// && $wpdb->num_rows>0) { if(!function_exists('ap_where')) { function ap_where($where) { global $wpdb; $where .= ' AND '.$wpdb->prefix.'posts.post_title LIKE "'.mysql_real_escape_string($_GET['ap']).'%"'; return $where; } } add_filter( 'posts_where' , 'ap_where' ); if(!function_exists('render_alphabets')){ function render_alphabets(){ $default_place = get_option('ap_dom')==''?'#content':get_option('ap_dom'); $alphabets = ap_alphabets(); $alphabets_bar = ''; $script = ''; echo $script; } } add_action("wp_footer", 'render_alphabets'); } } } if(!function_exists('ap_alphabets')) { function ap_alphabets() { //LETS START WITH AN OLD STRING $str = "quick brown fox jumps over the lazy dog"; $alpha_array = array_unique(str_split(str_replace(' ', '', $str))); asort($alpha_array); $alphabets = array_values($alpha_array); return $alphabets; } } ?>