windhamdavid 1 year ago
parent
commit
9dfbf47aa3
5 changed files with 47 additions and 42 deletions
  1. 10 13
      category.php
  2. 2 2
      inc/template.php
  3. 33 26
      search.php
  4. 2 1
      style.css
  5. 0 0
      v4-style.min.css

+ 10 - 13
category.php

@@ -7,27 +7,24 @@
 					<h1 class="super cm-sans">Topic: <?php single_cat_title(); ?></h1>
 				</header>
 				<?php while ( have_posts() ) : the_post();?>
-				<div class="col-sm-6">
-					<div class="entry-meta">
-						<div class="date">
-							<?php the_date(); ?>
-						</div>
-					</div>
-					<h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
-					<?php the_excerpt(); ?>
-
-				</div>
+          <div class="col-sm-6 offset-lg-1">
+            <div class="entry-meta">
+              <div class="date">
+                <?php the_date(); ?>
+              </div>
+            </div>
+            <h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
+          </div>
 				<?php endwhile; ?>
-				
 				<div class="clear">&nbsp;</div>
 				<hr>
 				<?php dw_paging_nav();
 				else :
-					printf( __( 'Nothing Found', 'dw' ));		
+					printf( __( 'Nothing Found', 'dw' ));
 					get_search_form();
 				endif;
 				?>
 			</div>
 		</article>
 	</div>
-<?php get_footer('home'); ?>
+<?php get_footer('home'); ?>

+ 2 - 2
inc/template.php

@@ -149,9 +149,9 @@ function dw_paging_nav() {
 
 	?>
 	<nav class="navigation pagination paging-navigation" role="navigation">
-		<div class="pagination loop-pagination">
+		<ul class="pagination loop-pagination justify-content-center">
 			<?php echo $links; ?>
-		</div>
+  </ul>
 	</nav>
 	<?php
 	endif;

+ 33 - 26
search.php

@@ -1,31 +1,38 @@
 <?php get_header(); ?>
 
 	<div class="container">
-		<article id="content" class="single" role="main">
-				<div class="entry-content">
-					<?php if ( have_posts() ) : ?>
-					<header class="page-header">
-						<h1 class="super cm-sans"></strong><?php printf( __( 'Search for: %s', 'dw' ), get_search_query() ); ?></h1>
-					</header>
-						<?php while ( have_posts() ) : the_post();?>
-						<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
-						<div class="entry-meta">
-							<div class="date">
-								<?php the_date(); ?>
-							</div>
-						</div>
 
-						<?php the_excerpt(); ?>
-						<?php endwhile;
-							dw_paging_nav();
-						else :
-							printf( __( 'Nothing Found', 'dw' ));		
-							get_search_form();
-						endif;
-						?>
-				</div>
-			</div>
-		</div>
+      <article id="content" class="single" role="main">
+          <div class="entry-content">
+            <?php if ( have_posts() ) : ?>
+            <header class="page-header">
+              <h1 class="super cm-sans"></strong><?php printf( __( 'Search for: %s', 'dw' ), get_search_query() ); ?></h1>
+            </header>
+              <?php while ( have_posts() ) : the_post();?>
+              <div class="col-sm-6 offset-lg-1">
+              <h3 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
+              <div class="entry-meta">
+                <div class="date">
+                  <?php the_date(); ?>
+                </div>
+              </div>
+
+              <?php the_excerpt(); ?>
+              </div>
+              <?php endwhile;?>
+              <div class="clear">&nbsp;</div>
+              <hr>
+              <?php
+              dw_paging_nav();
+              else :
+                printf( __( 'Nothing Found', 'dw' ));
+                get_search_form();
+              endif;
+              ?>
+          </div>
+        </div>
+      </div>
+
 	</div>
-	
-<?php get_footer(); ?>
+
+<?php get_footer(); ?>

+ 2 - 1
style.css

@@ -2601,7 +2601,8 @@ img.me {
 }
 .pagination a.next,
 .pagination a.prev {
-	padding: 4px 7px;
+	padding: 4px 7px 25px;
+  margin-top:-7px;
 	color: #ec0000;
 	font-weight: bold;
 	font-size: 27px;

File diff suppressed because it is too large
+ 0 - 0
v4-style.min.css


Some files were not shown because too many files changed in this diff