<?php /** * The template for displaying Archive pages. * * @package Omega */ get_header(); ?> <main class="<?php echo omega_apply_atomic('main_class', 'content'); ?> " <?php omega_attr('content'); ?> > <?php do_action('omega_before_content'); do_action('omega_content'); do_action('omega_after_content'); ?> </main><!-- .content --> <?php get_footer();
<?php /** * The Sidebar containing the main widget areas. * * @package Omega */ if (is_active_sidebar('primary')) { ?> <aside class="<?php echo omega_apply_atomic('sidebar_class', 'sidebar sidebar-primary widget-area'); ?> " <?php omega_attr('sidebar'); ?> > <?php do_action('before_primary'); ?> <?php dynamic_sidebar('primary'); ?> <?php do_action('after_primary'); ?>
/** * Wraps the output of omega_apply_atomic() in a call to do_shortcode(). This allows developers to use * context-aware functionality alongside shortcodes. Rather than adding a lot of code to the * function itself, developers can create individual functions to handle shortcodes. * * @since 0.9.0 * @access public * @param string $tag Usually the location of the hook but defines what the base hook is. * @param mixed $value The value to be filtered. * @return mixed $value The value after it has been filtered. */ function omega_apply_atomic_shortcode($tag = '', $value = '') { return do_shortcode(omega_apply_atomic($tag, $value)); }
<title><?php wp_title('|', true, 'right'); ?> </title> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?> <?php omega_attr('body'); ?> > <?php do_action('omega_before'); ?> <div class="<?php echo omega_apply_atomic('site_container_class', 'site-container'); ?> "> <?php do_action('omega_before_header'); do_action('omega_header'); do_action('omega_after_header'); ?> <div class="site-inner"> <?php do_action('omega_before_main');
/** * Dynamic element to wrap the site title and site description. */ function omega_branding() { echo '<div class="' . omega_apply_atomic('title_area_class', 'title-area') . '">'; /* 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('<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home"><span><img src="%3$s"/></span></a></h1>', home_url(), esc_attr($title), $logo); } else { $title = sprintf('<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home"><span>%3$s</span></a></h1>', 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('<h2 class="site-description"><span>%1$s</span></h2>', $desc); } /* Display the site description and apply filters for developers to overwrite. */ echo omega_apply_atomic('site_description', $desc); echo '</div>'; }
/** * @since 0.7.0 * @deprecated 0.9.0 */ function apply_atomic($tag = '', $value = '') { _deprecated_function(__FUNCTION__, '0.9.0', 'omega_apply_atomic'); return omega_apply_atomic($tag, $value); }
function omega_wrap_close() { echo omega_apply_atomic('wrap_close', '</div>'); }
/** Template Name: Fixed Height Content Page * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package Omega */ get_header(); ?> <main class="<?php echo omega_apply_atomic('main_class', 'content-fixed-height'); ?> " <?php omega_attr('content'); ?> > <?php do_action('omega_before_content'); do_action('omega_content'); do_action('omega_after_content'); ?> </main><!-- .content --> <?php