Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sanengineer committed Jan 9, 2021
1 parent 46003a2 commit 4abd05a
Show file tree
Hide file tree
Showing 49 changed files with 24,225 additions and 702 deletions.
38 changes: 38 additions & 0 deletions footer-custom.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package SAN_WP_Bootstrap
*/

?>
<?php if(!is_page_template( 'blank-page.php' ) && !is_page_template( 'blank-page-with-container.php' )): ?>
</div><!-- .row -->
</div><!-- .container -->
</div><!-- #content -->

<?php get_template_part( 'footer-widget' ); ?>

<footer id="colophon" class="site-footer <?php echo san_wp_bootstrap_bg_class(); ?>" role="contentinfo">

<div class="container pt-3 pb-3">

<div class="site-info">

<span>Enjoy Everywhere. <span>
<span>Theme by <a href="https://sanengineer.com" target="_blank">San Engineer</a></span>

</div><!-- close .site-info -->
</div>
</footer><!-- #colophon -->
<?php endif; ?>
</div><!-- #page -->

<?php wp_footer(); ?>
</body>

</html>
37 changes: 27 additions & 10 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,25 +336,25 @@ function san_pagination( $args = array(), $class = 'pagination' ) {

?>

<nav aria-label="<?php echo $args['screen_reader_text']; ?>">
<nav aria-label="<?php echo $args['screen_reader_text']; ?>">

<ul class="pagination">
<ul class="pagination">

<?php
<?php
foreach ( $links as $key => $link ) {
?>
<li class="page-item <?php echo strpos( $link, 'current' ) ? 'active' : ''; ?>">
<?php echo str_replace( 'page-numbers', 'page-link', $link ); ?>
</li>
<?php
<li class="page-item <?php echo strpos( $link, 'current' ) ? 'active' : ''; ?>">
<?php echo str_replace( 'page-numbers', 'page-link', $link ); ?>
</li>
<?php
}
?>

</ul>
</ul>

</nav>
</nav>

<?php
<?php
}
}

Expand Down Expand Up @@ -577,4 +577,21 @@ function snsupersticky() {

add_action('wp_enqueue_scripts','snsupersticky');

/**
*
* Add Post Date
*
*/
function sn_posted_on(){
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
}

$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);

echo '<span class="date-post-wrapper">'.$time_string. '</span>';
}
3 changes: 0 additions & 3 deletions inc/assets/css/presets/color-scheme/body.css

This file was deleted.

Loading

0 comments on commit 4abd05a

Please sign in to comment.