2015-09-26 04:08:27 +02:00
< ? php
/**
* Created by PhpStorm .
* User : sarahetter
* Date : 15 - 09 - 24
* Time : 5 : 32 PM
*/
2015-11-03 14:59:46 +01:00
2015-11-05 11:14:41 +01:00
require 'controller/init.php' ;
2015-11-03 14:59:46 +01:00
2015-09-26 04:08:27 +02:00
?>
2016-01-16 18:46:45 +01:00
< header class = " header " >
2016-01-16 17:51:30 +01:00
< div class = " row " >
2016-03-17 17:26:52 +01:00
< a href = " <?php echo get_bloginfo('wpurl');?> " >
< img
src = " <?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png "
srcset = " <?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png 1x, <?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white@2x.png 2x "
alt = " ascribe logo "
class = " logo phone-and-up " >
</ a >
< a href = " <?php echo get_bloginfo('wpurl');?> " >
< img
src = " <?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-white.svg "
alt = " ascribe logo "
class = " logo phone-only " >
</ a >
2015-12-17 15:55:34 +01:00
< div class = " app-links " >
< a href = " <?php echo $signInLink ; ?> " > Log In </ a > / < a href = " <?php echo $signUpLink ; ?> " > Sign Up </ a >
< img src = " <?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg " class = " phone-only hamburger " >
</ div >
< nav class = " tour-switcher " >< ? php wp_nav_menu ( array (
'theme_location' => 'landing-menu' ,
'container' => false
)); ?>
</ nav >
< div class = " mobile-nav " >
< ? php wp_nav_menu ( array ( 'theme_location' => 'main-footer-menu' , 'container' => false ) ); ?>
</ div >
</ div >
< div class = " chevron-divider " ></ div >
2016-03-10 15:18:34 +01:00
< ? php
$blogPage = get_page_by_title ( 'Blog' );
$blogUrl = get_permalink ( $blogPage -> ID );
?>
< h1 >< a href = " <?php echo $blogUrl ; ?> " > ascribe blog </ a ></ h1 >
2015-09-26 04:08:27 +02:00
</ header >
< nav class = " blog-categories " >
2016-01-16 17:51:30 +01:00
< div class = " row " >
2015-12-17 15:55:34 +01:00
< ul >
< ? php
$args = array (
'hide_empty' => 0
);
2016-03-17 17:25:19 +01:00
echo " <li><a href=' { $blogUrl } '>All</a></li> " ;
2015-12-17 15:55:34 +01:00
foreach (( get_categories ( $args )) as $category ) {
if ( $category -> cat_name != 'Uncategorized' ) {
echo '<li><a href="' . get_category_link ( $category -> term_id ) . '" title="' . sprintf ( __ ( " View all posts in %s " ), $category -> name ) . '" ' . '><span>' . $category -> name . '</span></a></li> ' ;
}
}
?>
</ ul >
</ div >
2015-09-26 04:08:27 +02:00
</ nav >