__( 'Blog Sidebar', 'bizwide' ), 'description' => __( 'Appears on blog page sidebar', 'bizwide' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'bizwide_widgets_init' ); define('GRC_URL','http://www.themestulip.com','bizwide'); define('GRC_THEME_DOC','http://themestulip.com/documentation/bizwide/','bizwide'); define('GRC_PRO_THEME_URL','http://themestulip.com/themes/bizwide-business-wordpress-theme/','bizwide'); define('GRC_LIVE_DEMO','http://themestulip.com/demo/bizwide/','bizwide'); /** * Implement the Custom Header feature. */ require get_template_directory() . '/librarey/core-bizwide-header.php'; /** * Custom template for about theme. */ require get_template_directory() . '/librarey/use-bizwide-themes.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/librarey/layout-bizwide.php'; /** * Custom functions that act independently of the theme templates and layouts. */ require get_template_directory() . '/librarey/other-bizwide.php'; /** * Customizer additions. */ require get_template_directory() . '/librarey/customizer-bizwide.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/librarey/compatible-jetpack-bizwide.php'; function bizwide_pagination() { global $wp_query; $big = 12345678; $page_format = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'type' => 'array' ) ); if( is_array($page_format) ) { $paged = ( get_query_var('paged') == 0 ) ? 1 : get_query_var('paged'); echo ''; } } function bizwide_custom_blogpost_pagination( $wp_query ){ $big = 999999999; // need an unlikely integer if ( get_query_var('paged') ) { $pageVar = 'paged'; } elseif ( get_query_var('page') ) { $pageVar = 'page'; } else { $pageVar = 'paged'; } $pagin = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?'.$pageVar.'=%#%', 'current' => max( 1, get_query_var($pageVar) ), 'total' => $wp_query->max_num_pages, 'prev_text' => '« Prev', 'next_text' => 'Next »', 'type' => 'array' ) ); if( is_array($pagin) ) { $paged = ( get_query_var('paged') == 0 ) ? 1 : get_query_var('paged'); echo ''; } } // get slug by id function bizwide_get_slug_by_id($id) { $post_data = get_post($id, ARRAY_A); $slug = $post_data['post_name']; return $slug; } ?>