__( 'Primary Navigation', 'awotech' ), 'secondary' => __( 'Secondary Navigation', 'awotech' ), ) ); require_once('wp_bootstrap_navwalker.php'); /* * Loads the Options Panel * * If you're loading from a child theme use stylesheet_directory * instead of template_directory */ // This theme allows users to set a custom background add_theme_support( 'custom-background', $args ); // Your changeable header business starts here define( 'HEADER_TEXTCOLOR', '' ); // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); // The height and width of your custom header. You can hook into the theme's own filters to change these values. // Add a filter to awotech_header_image_width and awotech_header_image_height to change these values. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'awotech_header_image_width', 940 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'awotech_header_image_height', 198 ) ); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Don't support text inside the header image. define( 'NO_HEADER_TEXT', true ); // Add a way for the custom header to be styled in the admin panel that controls // custom headers. See awotech_admin_header_style(), below. //disabled by Lubith //add_custom_image_header( '', 'awotech_admin_header_style' ); // ... and thus ends the changeable header business. // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'berries' => array( 'url' => '%s/images/headers/berries.jpg', 'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Berries', 'awotech' ) ), 'cherryblossom' => array( 'url' => '%s/images/headers/cherryblossoms.jpg', 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Cherry Blossoms', 'awotech' ) ), 'concave' => array( 'url' => '%s/images/headers/concave.jpg', 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Concave', 'awotech' ) ), 'fern' => array( 'url' => '%s/images/headers/fern.jpg', 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Fern', 'awotech' ) ), 'forestfloor' => array( 'url' => '%s/images/headers/forestfloor.jpg', 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Forest Floor', 'awotech' ) ), 'inkwell' => array( 'url' => '%s/images/headers/inkwell.jpg', 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Inkwell', 'awotech' ) ), 'path' => array( 'url' => '%s/images/headers/path.jpg', 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Path', 'awotech' ) ), 'sunset' => array( 'url' => '%s/images/headers/sunset.jpg', 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Sunset', 'awotech' ) ) ) ); } endif; if ( ! function_exists( 'awotech_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header() in awotech_setup(). * * @since awotech 1.0 */ function awotech_admin_header_style() { ?> ' . __( 'Continue reading ', 'awotech' ) . ''; } /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and awotech_continue_reading_link(). * * To override this in a child theme, remove the filter and add your own * function tied to the excerpt_more filter hook. * * @since awotech 1.0 * @return string An ellipsis */ function awotech_auto_excerpt_more( $more ) { return ' …' . awotech_continue_reading_link(); } add_filter( 'excerpt_more', 'awotech_auto_excerpt_more' ); /** * Adds a pretty "Continue Reading" link to custom post excerpts. * * To override this link in a child theme, remove the filter and add your own * function tied to the get_the_excerpt filter hook. * * @since awotech 1.0 * @return string Excerpt with a pretty "Continue Reading" link */ function awotech_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= awotech_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'awotech_custom_excerpt_more' ); /** * Remove inline styles printed when the gallery shortcode is used. * * Galleries are styled by the theme in awotech's style.css. * * @since awotech 1.0 * @return string The gallery style filter, with the styles themselves removed. */ function awotech_remove_gallery_css( $css ) { return preg_replace( "##s", '', $css ); } add_filter( 'gallery_style', 'awotech_remove_gallery_css' ); if ( ! function_exists( 'awotech_comment' ) ) : /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own awotech_comment(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since awotech 1.0 */ function awotech_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
__( 'Home Up Widget', 'awotech' ), 'id' => 'home-up-widget-area', 'description' => __( 'The primary widget area', 'awotech' ), 'before_widget' => '