Browse Source

where its at

windhamdavid 5 years ago
parent
commit
57a85de8a9
4 changed files with 74 additions and 14 deletions
  1. 4 0
      header.php
  2. 1 1
      page.php
  3. 7 13
      style.css
  4. 62 0
      underscore-archive.php

+ 4 - 0
header.php

@@ -28,4 +28,8 @@
 </header>
 <nav class="navmenu navmenu-default navmenu-fixed-right offcanvas" role="complementary">
 	<?php wp_nav_menu( array( 'menu' => 'main','sort_column' => 'menu_order', 'container_class' => 'nav-stacked', 'menu_class' => 'nav nav-stacked' ) ); ?>
+	<a href="#archives" class="list-group-item list-group-item-success" data-toggle="collapse" data-parent=".navmenu">Archives</a>
+	<div class="collapse" id="archives">
+	<?php wp_get_archives( array( 'type' => 'yearly', 'limit' => 40 ) ); ?>
+	</div>
 </nav>

+ 1 - 1
page.php

@@ -1,5 +1,5 @@
 <?php get_header(); ?>
-	<div id="container" class="one-column">
+	<div class="container">
 		<div id="content" role="main">
 			<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
 			<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

+ 7 - 13
style.css

@@ -219,7 +219,7 @@ img.dw {
 
 .navmenu,
 .navbar-offcanvas {
-  width: 120px;
+  width: 150px;
   height: auto;
   border-style: solid;
   border-width: 1px;
@@ -235,23 +235,17 @@ img.dw {
   border-radius: 0;
   background-color: rgba(237, 237, 237, 0.7);
 }
-.navmenu-fixed-left,
-.navbar-offcanvas.navmenu-fixed-left {
-  right: auto;
-  left: 0;
-  border-width: 0 1px 0 0;
-}
-.navmenu-fixed-right,
-.navbar-offcanvas {
-  left: 0;
-  right: auto;
-  border-width: 0 0 0 1px;
+
+.navmenu-fixed-right {
+  left: auto;
+  right: 0;
+  border-width: 0 0 0 0px;
 }
 
 .nav-toggle { 
 	padding: 15px 0;
 	padding: 10px 35px 16px 0px;
-	left: 15px;
+	right: 15px;
 	top: 25px;
 	cursor: pointer;
 	position: absolute; 

+ 62 - 0
underscore-archive.php

@@ -0,0 +1,62 @@
+<script type="text/html" id="content-template">
+	<article id="post-<%= post.ID %>" class="post">
+		<header class="entry-header">
+			<h1 class="entry-title"><a href="<%= post.link %>" rel="bookmark"><%= post.title %></a></h1>
+
+			<% if ( 'post' === post.type ) { %>
+			<div class="entry-meta">
+				<% postDate = new Date( post.date ); %>
+				<span class="posted-on">
+					<?php esc_html_e( 'Posted on', '_s_backbone' ); ?>
+
+					<time class="entry-date published">
+						<% print( ( postDate.getMonth() + 1 ) + '/' + postDate.getDate() + '/' + postDate.getFullYear() ); %>
+					</time>
+				</span>
+				<span class="byline">
+					<?php esc_html_e( 'by', '_s_backbone' ); ?>
+
+					<span class="author vcard">
+						<a class="url fn n" href="<%= settings.pathInfo['author_permastruct'].replace( '%author%', post.author.get( 'username' ) ) %>">
+							<%= post.author.get( 'nickname' ) %>
+						</a>
+					</span>
+				</span>
+			</div><!-- .entry-meta -->
+			<% } %>
+		</header><!-- .entry-header -->
+
+		<div class="entry-content">
+			<%= post.content %>
+		</div><!-- .entry-content -->
+
+		<footer class="entry-footer">
+			<% if ( 'post' === post.type ) { %>
+				<% if ( post.terms.category ) { %>
+					<span class="cat-links">
+						<?php esc_html_e( 'Posted in', '_s_backbone' ); ?>
+						<% _.each( post.terms.category, function( category ) { %>
+							<a href="<%= category.link %>"><%= category.name %></a>
+						<% } ); %>
+					</span>
+				<% } %>
+
+				<% if ( post.terms.tag ) { %>
+					<span class="tags-links">
+						<% _.each( post.terms.tag, function( tag ) { %>
+							<a href="<%= tag.link %>"><%= tag.name %></a>
+						<% } ); %>
+					</span>
+				<% } %>
+			<% } %>
+		</footer><!-- .entry-footer -->
+	</article><!-- #post-<%= post.ID %> -->
+</script>
+
+<script type="text/html" id="more-button-template">
+	<div class="more-posts">
+
+		<a class="more-button button btn-lg btn btn-danger" href="#"><?php esc_html_e( 'More', '_s_backbone' ); ?></a>
+
+	</div>
+</script>