tag based on what is being viewed. * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. */ function accesspress_basic_wp_title( $title, $sep ) { if ( is_feed() ) { return $title; } global $page, $paged; // Add the blog name $title .= get_bloginfo( 'name', 'display' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { $title .= " $sep $site_description"; } // Add a page number if necessary: if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $title .= " $sep " . sprintf( __( 'Page %s', 'accesspress-basic' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'accesspress_basic_wp_title', 10, 2 ); endif; function accesspress_basic_slidercb(){ global $apbasic_options; $old_setting = get_option('apbasic_options', $apbasic_options); $apbasic_settings = wp_parse_args($old_setting, $apbasic_options); $mode = $apbasic_settings['slider_mode']; $slider_type = $apbasic_settings['slider_type']; $ositab = isset($apbasic_settings['open_slider_link_in_new_tab']) ? $apbasic_settings['open_slider_link_in_new_tab'] : ''; for($i = 1; $i <= 4; $i++) : if(!empty($apbasic_settings['slide'.$i])) : $slides[] = array( 'slide' => $apbasic_settings['slide'.$i], 'caption_title' => $apbasic_settings['slide'.$i.'_title'], 'caption_description' => $apbasic_settings['slide'.$i.'_description'], 'readmore_text' => $apbasic_settings['slide'.$i.'_readmore_text'], 'readmore_link' => $apbasic_settings['slide'.$i.'_readmore_link'], 'readmore_icon' => $apbasic_settings['slide'.$i.'_readmore_button_icon'] ); endif; endfor; ?>

>