parent
5138b4a360
commit
aaf2d5fdd1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1,16 +1,4 @@
|
||||
<div class="footer">
|
||||
<strong><a href="https://code.3err0.ru/3err0/wordpress-zerro" target="_blank">©</a> 2022</strong>
|
||||
<div class="right">
|
||||
<?php if(!is_front_page() || !is_home()){
|
||||
echo "<a href='/'>Главная</a> /";
|
||||
}?>
|
||||
<?php if(!is_page('archive')){
|
||||
echo "<a href='/archive/'>Архив</a>";
|
||||
} else {
|
||||
echo "<a href='", bloginfo('rss2_url'), "'>RSS</a>";
|
||||
}?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,18 +1,38 @@
|
||||
<!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri() ?>" />
|
||||
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.png" />
|
||||
<link rel="alternate" type="application/rss+xml" title='<?php echo get_bloginfo('name'); ?>' href='<?php bloginfo('rss2_url'); ?>' />
|
||||
<title>
|
||||
<?php if(is_front_page() || is_home()){
|
||||
echo get_bloginfo('name');
|
||||
} else{
|
||||
echo wp_title(''), " » ", get_bloginfo('name');
|
||||
}?>
|
||||
</title>
|
||||
</head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.png" />
|
||||
<? wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light shadow fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#"><?php bloginfo( 'name' ); ?></a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||
<ul class="navbar-nav ms-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/">Главная</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/archive">Блог</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/hardware">Железо</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/services">Услуги</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class='container'>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,22 @@
|
||||
var SCROLL_SPEED = 400;
|
||||
|
||||
var ready = function(callback) {
|
||||
if (document.readyState != "loading") callback();
|
||||
else document.addEventListener("DOMContentLoaded", callback);
|
||||
}
|
||||
|
||||
ready(function() {
|
||||
jQuery(window).scroll(function() {
|
||||
if (jQuery(this).scrollTop() > 50) {
|
||||
jQuery('#back-to-top').fadeIn();
|
||||
} else {
|
||||
jQuery('#back-to-top').fadeOut();
|
||||
}
|
||||
});
|
||||
jQuery('#back-to-top').click(function() {
|
||||
jQuery('body,html').animate({
|
||||
scrollTop: 0
|
||||
}, SCROLL_SPEED);
|
||||
return false;
|
||||
});
|
||||
});
|
Loading…
Reference in new issue