__( 'Primary Menu', 'aldehyde' ), ) ); add_theme_support( 'custom-background', apply_filters( 'aldehyde_custom_background_args', array( 'default-color' => 'eeeeee', 'default-image' => '', ) ) ); } endif; // aldehyde_setup add_action( 'after_setup_theme', 'aldehyde_setup' ); function aldehyde_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'aldehyde' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'aldehyde_widgets_init' ); add_action('optionsframework_custom_scripts', 'aldehyde_custom_scripts'); function aldehyde_custom_scripts() { ?> ".of_get_option('style2', true).""; } if ( (function_exists( 'of_get_option' )) && (of_get_option('slider_enabled') != 0) ) { echo ""; } if ( get_header_image() ) : echo ""; endif; } add_action('wp_head', 'aldehyde_custom_head_codes'); function aldehyde_nav_menu_args( $args = '' ) { $args['container'] = false; return $args; } // function add_filter( 'wp_page_menu_args', 'aldehyde_nav_menu_args' ); function aldehyde_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 ''; } } /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. Import Widgets */ require get_template_directory() . '/inc/extras.php'; require get_template_directory() . '/inc/widgets.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php';