various changes

This commit is contained in:
Pathduck 2023-01-17 21:00:32 +01:00
parent c58112fb36
commit d3fad64f6e
4 changed files with 39 additions and 16 deletions

View File

@ -20,10 +20,9 @@
</div><!-- .row -->
</div><!-- #main -->
</div><!-- #page -->
<?php wp_footer(); ?>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/jquery.js"></script>
<!-- Bootstrap WP386 Transitions -->
<!-- <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/jquery.js"></script>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/bootstrap-386.js"></script>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/bootstrap-transition.js"></script>
<script>
@ -32,7 +31,6 @@ _386 = {
onePass: false,
speedFactor: 1.5
};
</script>
</script> -->
</body>
</html>

View File

@ -12,9 +12,11 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<meta name="description" content="<?php bloginfo('description'); ?>" />
<meta name="description" content="<?php bloginfo('description'); ?>">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="me" href="https://mastodon.sdf.org/@stian">
<link rel="me" href="https://social.vivaldi.net/@Pathduck">
<?php wp_head(); ?>
</head>

View File

@ -27,10 +27,14 @@ function wp386_content_nav( $nav_id ) {
if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) )
return;
// Add rel attributes to next/previous posts links
// Add 'rel' attributes to next/previous nav links
add_filter('next_posts_link_attributes', function(){return 'rel="next"';});
add_filter('previous_posts_link_attributes', function(){return 'rel="prev"';});
// Swap 'rel' attributes for single post next/previous nav links
add_filter('previous_post_link', function($format){return str_replace('rel="prev"','rel="next"',$format);});
add_filter('next_post_link', function($format){return str_replace('rel="next"','rel="prev"',$format);});
$nav_class = ( is_single() ) ? 'post-navigation' : 'paging-navigation';
?>
@ -39,17 +43,17 @@ function wp386_content_nav( $nav_id ) {
<?php if ( is_single() ) : // navigation links for single posts ?>
<?php next_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'wp386' ) . '</span> %title' ); ?>
<?php previous_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'wp386' ) . '</span>' ); ?>
<?php next_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '«', 'Next post link', 'wp386' ) . '</span> %title' ); ?>
<?php previous_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '»', 'Previous post link', 'wp386' ) . '</span>' ); ?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<?php if ( get_previous_posts_link() ) : ?>
<div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">&larr;</span> Newer posts', 'wp386' ) ); ?></div>
<div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">«</span> Newer posts', 'wp386' ) ); ?></div>
<?php endif; ?>
<?php if ( get_next_posts_link() ) : ?>
<div class="nav-next"><?php next_posts_link( __( ' Older posts <span class="meta-nav">&rarr;</span>', 'wp386' ) ); ?></div>
<div class="nav-next"><?php next_posts_link( __( ' Older posts <span class="meta-nav">»</span>', 'wp386' ) ); ?></div>
<?php endif; ?>

View File

@ -1,5 +1,5 @@
@charset "UTF-8";
/*!
/*
Theme Name: WP386 (Stians)
Template: wp386
Theme URI: http://themes.kkob.us/blog/2013/08/05/wp386/
@ -15,17 +15,19 @@ WP386: A theme to make your blog look like some sort of thing from the future. B
WP386 is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.
*/
@import url("bootstrap.css");
/*!
/*
WP386 Theme
*/
/* For Bootstrap transitions */
/* body {visibility: hidden;} */
a:hover img,a:focus img{background:none;}
article.comment-body{margin:20px 0;}
article.post.sticky .page-header,article.post.sticky{background-color:#0A0;margin:30px 0;}
article.post{-ms-word-wrap:break-word;word-wrap:break-word;}
blockquote p, blockquote div {color:white;}
body {visibility: hidden;}
body.admin-bar .navbar-fixed-top{top:30px;}
body.admin-bar .sidebar-outer{margin-top:70px;}
body.admin-bar.mp6 .navbar-fixed-top{top:32px;}
@ -35,7 +37,7 @@ form input.search-field {border: inset;box-shadow: 3px 3px black;}
form input.search-submit {border: outset;background: #bbb;}
footer.entry-meta{display:block;clear:both;padding:5px 0 5px;border-top:2px solid #bbbbbb;}
footer.site-footer{margin-bottom:5px;}
img{-webkit-filter:contrast(100%);-moz-filter:contrast(100%);-ms-filter:contrast(100%);-o-filter:contrast(100%);filter:contrast(100%);}
img{-webkit-filter:unset;-moz-filter:unset;-ms-filter:unset;-o-filter:unset;filter:unset;}
label{display:inline;}
pre{color:lime;background-color:#002100;padding:10px;width:95%;box-shadow:5px 5px black;margin:1em auto;background-image:url("/img/crt-lines.png");}
table{width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}
@ -65,7 +67,7 @@ table th{color:white;text-align:left;}
.entry-header{margin:30px 0 auto;padding:10px;background-color:#0AA;}
.entry-content li{margin:0.5em 0 0.5em 1em;list-style:square;list-style-position:inside;}
.entry-content embed,iframe,object{display:block;margin:0 auto;}
.entry-content img:not(.emoji),.entry-content iframe {box-shadow: 5px 5px black !important; border:outset 2px #bbb !important; max-width: 90%}
.entry-content img:not(.emoji),.entry-content iframe {display: block; margin: 0 auto; box-shadow: 5px 5px black; border:outset 2px #bbb !important; max-width: 500px;max-height: 310px;background: black;}
.entry-title{color:#FEFE54;}
.gallery-caption{display:initial;}
.hentry{margin:30 0 1.5em;}
@ -91,6 +93,7 @@ table th{color:white;text-align:left;}
.sidebar-container ul,ol{margin:0 0 15px;}
.sidebar-container{padding:14px 16px;margin-bottom:0;box-shadow:5px 5px black;background:#555;color:white;}
.sidebar-container{width:225px;overflow-x:hidden;}
.sidebar-container img {display: block; margin: 0 auto;}
.sidebar-container a:hover img,.sidebar-container a:focus img {background: #555;}
.sidebar-outer{margin-top:45px;position:absolute;top:0;bottom:30px;}
.single .byline,.group-blog .byline{display:inline;}
@ -100,10 +103,26 @@ table th{color:white;text-align:left;}
.site-content .gallery{margin-bottom:1.5em;}
.site-content{margin:0 0 1.5em;overflow:hidden;}
.site-header{margin-bottom:15px;}
.theme-blackonwhite #site-description{color:#bbb;}
.theme-blackonwhite .page-header,.theme-blackonwhite .entry-header,.theme-blackonwhite .entry-header{background:#55FFFF;}
.theme-blackonwhite .sidebar-container{background-color:#AAA;color:black;}
.theme-blackonwhite .wp-caption{border-color:black;}
.theme-blackonwhite ::-moz-selection{background-color:#AA5500;color:white;}
.theme-blackonwhite ::-webkit-selection{background-color:#AA5500;color:white;}
.theme-blackonwhite ::selection{background-color:#AA5500;color:white;}
.theme-blackonwhite a:hover,.theme-blackonwhite a:focus{color:white;background:#FF5555;}
.theme-blackonwhite article.post.sticky .page-header, .theme-blackonwhite article.post.sticky .entry-header{background-color:#5F5;}
.theme-blackonwhite a{color:#0000AA;text-decoration:none;}
.theme-blackonwhite h1,.theme-blackonwhite h2,.theme-blackonwhite h3,.theme-blackonwhite h4,.theme-blackonwhite h5,.theme-blackonwhite h6{color:black;}
.theme-blackonwhite strong,.theme-blackonwhite em{color:black;}
.theme-blackonwhite{background-color:white;color:black;}
.video-player{margin-bottom:0.5em;}
.widget select{max-width:100%;}
.widget_search .search-submit{display:none;}
.widget_search input.search-field{width:100%;height:24px;}
.widget{margin:0 auto 0.7em;}
.wp-calendar-nav-prev{float: left;}
.wp-calendar-nav-next{float: right;}
.wp-caption{margin-bottom:0.5em;max-width:100%;clear:both;}
.wp-caption img{display:block;margin:2% auto 0;max-width:98%;}
.wp-caption-text{text-align:center;margin:5px 0 0;font-style:italic;}