Skip to content

Commit

Permalink
Main Stage post types expanded + more
Browse files Browse the repository at this point in the history
— Main Stage post types expanded to 'post', 'opinion_post', 'news'
— jquerymenu Main Nav option also given Schema
— attempted to remove invisible/bad line ending
  • Loading branch information
Andre Bulatov committed Feb 2, 2016
1 parent 44da978 commit c1aa8d1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions wp-content/themes/mag-wp/header.php
Expand Up @@ -148,14 +148,16 @@
<div class="sticky-on">
<?php if ($logo_align_select == 'Center') { ?>
<!-- Navigation Menu Left -->
<nav id="myjquerymenu" class="jquerycssmenu">
<nav id="myjquerymenu" class="jquerycssmenu"
role="navigation" itemprop="hasPart" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php wp_nav_menu( array( 'container' => false, 'items_wrap' => '<ul>%3$s</ul>', 'theme_location' => 'primary-menu' ) ); ?>
</nav><!-- end #myjquerymenu -->
<?php } ?>
<!-- Navigation Menu Right -->
<nav id="myjquerymenu2" class="jquerycssmenu-right">
<?php wp_nav_menu( array( 'container' => false, 'items_wrap' => '<ul>%3$s</ul>', 'theme_location' => 'secondary-menu' ) ); ?>
</nav><!-- end #myjquerymenu -->
<nav id="myjquerymenu2" class="jquerycssmenu-right"
role="navigation" itemprop="hasPart" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php wp_nav_menu( array( 'container' => false, 'items_wrap' => '<ul>%3$s</ul>', 'theme_location' => 'secondary-menu' ) ); ?>
</nav><!-- end #myjquerymenu -->

<!-- logo middle -->
<a class="" href="<?php echo esc_url(home_url( '/' )); ?>"><img id="earmilk-logo" <?php if ($logo_align_select == 'Left') { ?>style="float: left;"<?php } ?> class="logo" src="<?php echo ($site_logo); ?>" alt="<?php bloginfo('sitename'); ?>" /></a>
Expand Down Expand Up @@ -230,7 +232,7 @@
</div><!-- end .line-box -->

<ul class="big-thing" style="display:none;">
<?php query_posts( array( 'post_type' => 'post', 'category_name' => 'mainstage', 'posts_per_page' => $smof_data['current-posts'] ) ); ?>
<?php query_posts( array( 'post_type' => array( 'post', 'opinion_post', 'news'), 'category_name' => 'mainstage', 'posts_per_page' => $smof_data['current-posts'] ) ); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<li class="hentry h-entry"><?php if ( has_post_thumbnail()) { ?>
Expand Down Expand Up @@ -273,5 +275,5 @@
</div><!-- end .wrap-center -->
</div><!-- end #featured-boxes -->
<div class="clear"></div>
<?php } ?>
<?php } ?>
<?php } ?>

0 comments on commit c1aa8d1

Please sign in to comment.