'primary', 'name' => _x( 'Primary', 'sidebar', 'omega' ), 'description' => __( 'The main sidebar. It is displayed on either the left or right side of the page based on the chosen layout.', 'omega' ) ) ); } /** * Adds custom default theme settings. * * @since 0.3.0 * @access public * @param array $settings The default theme settings. * @return array $settings */ function omega_set_default_theme_settings( $settings ) { $settings = array( 'comments_pages' => 0, 'content_archive' => 'full', 'content_archive_limit' => 0, 'post_thumbnail' => 1, 'more_text' => '[Read more...]', 'no_more_scroll' => 1, 'image_size' => 'large', ); return $settings; } function omega_header_markup_open() { echo '
'; } function omega_header_markup_close() { echo '
'; } function omega_footer_markup_open() { echo ''; } /** * Dynamic element to wrap the site title and site description. */ function omega_branding() { echo '
'; /* Get the site title. If it's not empty, wrap it with the appropriate HTML. */ if ( $title = get_bloginfo( 'name' ) ) { if ( $logo = get_theme_mod( 'custom_logo' ) ) { $title = sprintf( '
', home_url(), esc_attr( $title ), esc_attr( $title ), $logo ); } else { if (is_home()) { $title = sprintf( '

%3$s

', home_url(), esc_attr( $title ), $title ); } else { $title = sprintf( '

%3$s

', home_url(), esc_attr( $title ), $title ); } } } /* Display the site title and apply filters for developers to overwrite. */ echo omega_apply_atomic( 'site_title', $title ); /* Get the site description. If it's not empty, wrap it with the appropriate HTML. */ if ( $desc = get_bloginfo( 'description' ) ) $desc = sprintf( '

%1$s

', $desc ); /* Display the site description and apply filters for developers to overwrite. */ echo omega_apply_atomic( 'site_description', $desc ); echo '
'; } /** * default footer insert filter */ function omega_default_footer_insert( $settings ) { /* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */ return '' . "\n\n" . '

' . omega_get_theme_name() . __( ' WordPress Theme by ', 'omega' ) . omega_get_author_uri() . '.

'; } /** * Loads footer content */ function omega_footer_insert() { echo ''; } /** * Loads the menu-primary.php template. */ function omega_get_primary_menu() { get_template_part( 'partials/menu', 'primary' ); } /** * print menu icon */ function omega_menu_icon() { echo ''; } /** * Display primary sidebar */ function omega_primary_sidebar() { get_sidebar(); } /** * Display the default entry header. */ function omega_entry_header() { echo '
'; get_template_part( 'partials/entry', 'title' ); if ( 'post' == get_post_type() ) : get_template_part( 'partials/entry', 'byline' ); endif; echo '
'; } /** * Display the default entry metadata. */ function omega_entry() { if ( is_home() || is_archive() || is_search() ) { ?>
> %s', get_permalink(), the_title_attribute( 'echo=0' ), get_the_post_thumbnail(get_the_ID(), get_theme_mod( 'image_size' ), array('class' => get_theme_mod( 'image_size' )) ) )); } else { get_the_image( array( 'size' => get_theme_mod( 'image_size' ) ) ); } } if ( 'excerpts' === get_theme_mod( 'post_excerpt', 'excerpts' ) ) { if ( get_theme_mod( 'excerpt_chars_limit', 0 ) ) { the_content_limit( (int) get_theme_mod( 'excerpt_chars_limit' ), get_theme_mod( 'more_text', '[Read more...]' ) ); } else { the_excerpt(); } } else { the_content( get_theme_mod( 'more_text' ) ); } ?>
> '' ) ); ?>
' . get_theme_mod( 'more_text', '[Read more...]' ) . ''; } add_filter('excerpt_more', 'omega_excerpt_more'); /** * Display the default entry footer. */ function omega_entry_footer() { if ( 'post' == get_post_type() ) get_template_part( 'partials/entry', 'footer' ); } /** * Enqueue scripts and styles */ function omega_scripts() { wp_enqueue_style( 'omega-style', get_stylesheet_uri() ); } /** * Insert conditional script / style for the theme used sitewide. */ function omega_styles() { ?>