/**
  * Enqueue scripts.
  */
 public function styles()
 {
     // Get the theme version to use on all our assrts
     $ver = Ornea()->version;
     wp_enqueue_style('ornea-styles', get_stylesheet_uri(), array(), $ver);
     wp_enqueue_style('dashicons');
 }
Example #2
0
<?php

/**
 * The template for displaying archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Ornea
 */
get_header();
?>

	<div id="primary" class="content-area <?php 
echo Ornea()->layout->get_main_width();
?>
">
		<main id="main" class="site-main" role="main">

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<?php 
    the_archive_title('<h1 class="page-title">', '</h1>');
    the_archive_description('<div class="taxonomy-description">', '</div>');
    ?>
			</header><!-- .page-header -->

			<?php 
    /* Start the Loop */
Example #3
0
				<div class="footer-3 <?php 
    echo Ornea()->layout->get_footer_area_width();
    ?>
">
					<?php 
    dynamic_sidebar('footer-3');
    ?>
				</div>
			<?php 
}
?>
			<?php 
if (is_active_sidebar('footer-4')) {
    ?>
				<div class="footer-4 <?php 
    echo Ornea()->layout->get_footer_area_width();
    ?>
">
					<?php 
    dynamic_sidebar('footer-4');
    ?>
				</div>
			<?php 
}
?>
		</div>
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php 
wp_footer();
            require get_template_directory() . '/inc/class-ornea-wc.php';
            /**
             * Custom template tags for this theme.
             */
            require get_template_directory() . '/inc/template-tags.php';
            /**
             * Custom functions that act independently of the theme templates.
             */
            require get_template_directory() . '/inc/extras.php';
            /**
             * Load Jetpack compatibility file.
             */
            require get_template_directory() . '/inc/jetpack.php';
            /**
             * If jetpack is not installed then we need to include its site-logo module
             */
            if (!function_exists('site_logo_init')) {
                require get_template_directory() . '/inc/site-logo.php';
            }
        }
    }
}
if (!function_exists('Ornea')) {
    function Ornea()
    {
        return Ornea::get_instance();
    }
}
// Global for backwards compatibility.
$GLOBALS['ornea'] = Ornea();
global $ornea;
Example #5
0
<?php

/**
 * The sidebar containing the main widget area.
 *
 * @package Ornea
 */
if (!is_active_sidebar('sidebar-1')) {
    return;
}
if (0 == get_theme_mod('sidebar_width', 3)) {
    return;
}
?>

<div id="secondary" class="widget-area <?php 
echo Ornea()->layout->get_sidebar_width();
?>
" role="complementary">
	<?php 
dynamic_sidebar('sidebar-1');
?>
</div><!-- #secondary -->