Compare commits
No commits in common. "4a006d7d3308830719a84b0c0c57239eb7fd7017" and "5138b4a360403f5a905a16b07ebb58253c53e37a" have entirely different histories.
4a006d7d33
...
5138b4a360
1876
css/bootstrap-icons.css
vendored
1876
css/bootstrap-icons.css
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
3738
css/bootstrap-icons.scss
vendored
3738
css/bootstrap-icons.scss
vendored
File diff suppressed because it is too large
Load Diff
6
css/bootstrap.min.css
vendored
6
css/bootstrap.min.css
vendored
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.
16
footer.php
16
footer.php
@ -1,4 +1,16 @@
|
||||
</main>
|
||||
|
||||
<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>
|
||||
|
||||
</html>
|
@ -1,12 +1,6 @@
|
||||
<?php
|
||||
|
||||
define('BOOTSTRAP_VERSION', '5.3.1');
|
||||
define('BOOTSTRAP_ICON_VERSION', '1.9.1');
|
||||
|
||||
function zerro_setup() {
|
||||
|
||||
add_theme_support( 'menus' );
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
add_theme_support(
|
||||
'post-formats',
|
||||
@ -15,17 +9,6 @@ function zerro_setup() {
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function bootstrap_script_init() {
|
||||
wp_enqueue_style( 'bootstrap_icons', get_template_directory_uri() . '/css/bootstrap-icons.css', array(), BOOTSTRAP_ICON_VERSION, 'all' );
|
||||
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), BOOTSTRAP_VERSION, 'all' );
|
||||
wp_enqueue_style( 'main-style', get_stylesheet_uri());
|
||||
|
||||
wp_enqueue_script('main', get_template_directory_uri() . '/js/main.js');
|
||||
wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', [ 'jquery' ] );
|
||||
}
|
||||
|
||||
add_action( 'after_setup_theme', 'zerro_setup' );
|
||||
add_action( 'wp_enqueue_scripts', 'bootstrap_script_init' );
|
||||
|
||||
?>
|
52
header.php
52
header.php
@ -1,38 +1,18 @@
|
||||
<!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" />
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<!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>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<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'>
|
||||
<?php wp_body_open(); ?>
|
@ -7,7 +7,7 @@
|
||||
<p>
|
||||
<span>
|
||||
Гик, Безумец, IT'шник, Linux'оид
|
||||
<hr />
|
||||
<br / ><br />
|
||||
<u>Известен в сети под псевдонимами:</u><br />
|
||||
> Kamikadze, 3err0
|
||||
<br /><br />
|
||||
@ -19,6 +19,6 @@
|
||||
</span>
|
||||
</p>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php get_footer();?>
|
7
js/bootstrap.bundle.min.js
vendored
7
js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
22
js/main.js
22
js/main.js
@ -1,22 +0,0 @@
|
||||
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;
|
||||
});
|
||||
});
|
24
style.css
24
style.css
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Theme Name: ZERRO
|
||||
Version: 1.0
|
||||
Version: 0.3
|
||||
Description: Personal theme
|
||||
Author: Pavel Kuleshov
|
||||
Author URI: https://3err0.ru
|
||||
@ -43,13 +43,18 @@ a:hover {
|
||||
}
|
||||
|
||||
.content {
|
||||
background-color: white;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 4px 6px 1px rgba(50, 50, 50, 0.14);
|
||||
box-sizing: border-box;
|
||||
color: black;
|
||||
line-height: 1.5;
|
||||
margin: 5.5em auto 0;
|
||||
max-width: 640px;
|
||||
padding: 30px 35px 30px 37px;
|
||||
width: 100%;
|
||||
font-family: 'Segoe UI', Tahoma, sans-serif;
|
||||
max-width: 960px;
|
||||
font-size: 75%;
|
||||
}
|
||||
.content:after {
|
||||
visibility: hidden;
|
||||
@ -108,6 +113,21 @@ html[dir='rtl'] .icon {
|
||||
}
|
||||
}
|
||||
|
||||
.form {
|
||||
background-color: white;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 4px 6px 1px rgba(50, 50, 50, 0.14);
|
||||
box-sizing: border-box;
|
||||
color: black;
|
||||
line-height: 1.5;
|
||||
margin: 1em auto 0;
|
||||
max-width: 640px;
|
||||
padding: 10px 2px 1px 5px;
|
||||
width: 100%;
|
||||
font-family: 'Segoe UI', Tahoma, sans-serif;
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
.footer{
|
||||
box-sizing: border-box;
|
||||
color: gray;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<?php
|
||||
echo '<div class="content">';
|
||||
echo "<h1># ", the_title(), "</h1><hr />";
|
||||
echo "<h1>", the_title(), "</h1>";
|
||||
the_content();
|
||||
echo '</div>';
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<?php
|
||||
echo '<div class="content">';
|
||||
echo "<h1># ", the_title(), "</h1><hr />";
|
||||
echo "<h1>", the_title(), "</h1>";
|
||||
the_content();
|
||||
echo '</div>';
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user