<?php

/**
 * Secondary Menu Template
 */
?>
	
<nav class="nav-secondary" <?php 
omega_attr('menu');
?>
>
	
	<?php 
do_action('omega_before_secondary_menu');
?>

	<?php 
wp_nav_menu(array('theme_location' => 'secondary', 'container' => '', 'menu_class' => 'menu omega-nav-menu menu-secondary'));
?>

	<?php 
do_action('omega_after_secondary_menu');
?>

	
</nav><!-- .nav-secondary -->
Example #2
0
<?php

/**
 * The template for displaying Archive pages.
 *
 * @package Omega
 */
get_header();
?>

	<main  class="<?php 
echo apply_atomic('main_class', 'content');
?>
" <?php 
omega_attr('content');
?>
>

		<?php 
do_atomic('before_content');
// omega_before_content
?>

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

			<header class="page-header">
				<h1 class="archive-title">
					<?php 
    if (is_category()) {
Example #3
0
<?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');
    ?>
Example #4
0
<article <?php 
omega_attr('post');
?>
><div class="entry-wrap">
	<?php 
do_action('omega_before_entry');
do_action('omega_entry');
do_action('omega_after_entry');
?>
</div></article>
Example #5
0
/**
 * Display the default entry metadata.
 */
function omega_entry()
{
    if (is_home() || is_archive() || is_search()) {
        ?>
	
		<div <?php 
        omega_attr('entry-summary');
        ?>
>
	<?php 
        if (get_theme_mod('post_thumbnail', 1) && has_post_thumbnail()) {
            if (!class_exists('Get_The_Image')) {
                apply_filters('omega_featured_image', printf('<a href="%s" title="%s">%s</a>', 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'));
        }
        ?>
	
		</div>
	<?php 
    } else {
        ?>
	
		<div <?php 
        omega_attr('entry-content');
        ?>
>
	<?php 
        the_content();
        wp_link_pages(array('before' => '<p class="page-links">' . '<span class="before">' . __('Pages:', 'omega') . '</span>', 'after' => '</p>'));
        ?>
	
		</div>
	<?php 
    }
}
Example #6
0
?>
">
<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">
Example #7
0
<div class="entry-meta">
	<time <?php 
omega_attr('entry-published');
?>
><?php 
echo get_the_date();
?>
</time>
	<span <?php 
omega_attr('entry-author');
?>
><?php 
echo __('by ', 'omega');
the_author_posts_link();
?>
</span>	
	<?php 
echo omega_post_comments();
?>
	<?php 
edit_post_link(__('Edit', 'omega'), ' | ');
?>
</div><!-- .entry-meta -->
Example #8
0
function composer_banner()
{
    ?>
	<div class="banner" style="background-image:url(<?php 
    if (is_front_page()) {
        echo "http://zolotastruna.esy.es/wp-content/uploads/2015/10/Back_min.png";
    } else {
        composer_get_header_image();
    }
    ?>
)">

		<div class="filter">
			<div class="wrap">
				<?php 
    $id = get_option('page_for_posts');
    // get title
    if (is_front_page() || is_home() && $id == '0') {
        $the_title = "<h1 class='banner-title site-description'>" . get_bloginfo('description') . "</h1>";
    } elseif (is_day() || is_month() || is_year() || is_tag() || is_category() || is_home()) {
        $id = get_option('page_for_posts');
        if ('posts' == get_option('show_on_front')) {
            $the_title = get_bloginfo('description');
        } else {
            $the_title = get_the_title($id);
        }
        $the_title = "<h2 class='banner-title'>{$the_title}</h2>";
    } else {
        $the_title = "<h1 class='banner-title'>" . get_the_title() . "</h1>";
    }
    echo $the_title;
    if (is_singular('post')) {
        global $post;
        ?>
					<div class="entry-meta">
						<time <?php 
        omega_attr('entry-published');
        ?>
><?php 
        echo get_the_date();
        ?>
</time>
						<span <?php 
        omega_attr('entry-author');
        ?>
><?php 
        echo __('by ', 'composer');
        the_author_posts_link();
        ?>
 <a href="<?php 
        echo get_author_posts_url($post->post_author);
        ?>
"><?php 
        echo get_the_author_meta('nickname', $post->post_author);
        ?>
</a></span>	
						<?php 
        echo omega_post_comments();
        ?>
						<?php 
        edit_post_link(__('Edit', 'composer'), ' | ');
        ?>
					</div><!-- .entry-meta -->
					<?php 
    } elseif (is_archive() || is_search()) {
        composer_archive_title();
    }
    ?>
			</div><!-- .wrap -->
		</div>
  	</div><!-- .banner -->
  	<?php 
}
/**
 * @since      0.2.0
 * @deprecated 0.9.0
 */
function hybrid_comment_class($class = '')
{
    _deprecated_function(__FUNCTION__, '0.9.0', "omega_attr( 'comment' )");
    omega_attr('comment');
}
Example #10
0
?>
>
		<p <?php 
omega_attr('comment-author');
?>
>
			<?php 
echo get_avatar($comment, 48);
?>
			<?php 
printf(__('<cite class="fn">%s</cite>', 'omega'), get_comment_author_link());
?>
		</p>
		<p class="comment-meta"> 
			<time <?php 
omega_attr('comment-published');
?>
><a href="<?php 
echo esc_url(get_comment_link($comment->comment_ID));
?>
"><?php 
printf(__('%1$s at %2$s', 'omega'), get_comment_date(), get_comment_time());
?>
</a></time>
				<?php 
edit_comment_link(__('(Edit)', 'omega'), '');
?>
		</p>
		<div class="comment-content">
			<?php 
comment_text();
Example #11
0
/**
 * Display the default entry metadata.
 */
function omega_entry()
{
    if (is_home() || is_archive() || is_search()) {
        ?>
	
		<div <?php 
        omega_attr('entry-summary');
        ?>
>
	<?php 
        if (get_theme_mod('post_thumbnail')) {
            get_the_image(array('attachment' => false, 'meta_key' => 'Thumbnail', 'default_size' => get_theme_mod('image_size')));
        }
        if ('excerpts' === get_theme_mod('post_excerpt')) {
            if (get_theme_mod('excerpt_chars_limit')) {
                the_content_limit((int) get_theme_mod('excerpt_chars_limit'), get_theme_mod('more_text'));
            } else {
                the_excerpt();
            }
        } else {
            the_content(get_theme_mod('more_text'));
        }
        ?>
	
		</div>
	<?php 
    } else {
        ?>
	
		<div <?php 
        omega_attr('entry-content');
        ?>
>
	<?php 
        the_content();
        wp_link_pages(array('before' => '<p class="page-links">' . '<span class="before">' . __('Pages:', 'omega') . '</span>', 'after' => '</p>'));
        ?>
	
		</div>
	<?php 
    }
}
        omega_entry_class();
        ?>
"  <?php 
        omega_attr('post');
        ?>
>

					<header class="entry-header">
						<h1 class="entry-title"><?php 
        single_post_title();
        ?>
</h1>
					</header><!-- .entry-header -->

					<div <?php 
        omega_attr('entry-content');
        ?>
>

						<?php 
        if (has_excerpt()) {
            $src = wp_get_attachment_image_src(get_the_ID(), 'full');
            echo do_shortcode(sprintf('[caption align="aligncenter" width="%1$s"]%3$s %2$s[/caption]', esc_attr($src[1]), get_the_excerpt(), wp_get_attachment_image(get_the_ID(), 'full', false)));
        } else {
            echo wp_get_attachment_image(get_the_ID(), 'full', false, array('class' => 'aligncenter'));
        }
        ?>

						<?php 
        the_content();
        ?>
Example #13
0
 */
?>
<li <?php 
comment_class();
?>
 id="comment-<?php 
comment_ID();
?>
">

	<article <?php 
omega_attr('comment');
?>
>
		<p <?php 
omega_attr('comment-author');
?>
>
			<?php 
echo get_avatar($comment, 48);
?>
			<?php 
printf(__('<cite class="fn">%s</cite> <span class="says">%s:</span>', 'omega'), get_comment_author_link(), apply_filters('comment_author_says_text', __('says', 'omega')));
?>
		</p>
		<p class="comment-meta"> 
			<a href="<?php 
echo esc_url(get_comment_link($comment->comment_ID));
?>
"><?php 
printf(__('%1$s at %2$s', 'omega'), get_comment_date(), get_comment_time());