Logo css change
This commit is contained in:
parent
375ef7c953
commit
9f6db74f67
2 changed files with 432 additions and 435 deletions
File diff suppressed because it is too large
Load diff
136
header.php
136
header.php
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html <?php language_attributes(); ?>>
|
<html <?php language_attributes(); ?>>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title><?php bloginfo("name"); ?> - <?php wp_title(); ?></title>
|
<title><?php bloginfo("name"); ?> - <?php wp_title(); ?></title>
|
||||||
<meta charset="<?php bloginfo("charset"); ?>">
|
<meta charset="<?php bloginfo("charset"); ?>">
|
||||||
|
@ -8,14 +9,14 @@
|
||||||
<meta name="author" content="Nippy">
|
<meta name="author" content="Nippy">
|
||||||
<meta name="keywords" content="RavePriest1, Blog,">
|
<meta name="keywords" content="RavePriest1, Blog,">
|
||||||
<link rel="shortcut icon" href="<?php echo get_bloginfo(
|
<link rel="shortcut icon" href="<?php echo get_bloginfo(
|
||||||
"template_directory"
|
"template_directory"
|
||||||
); ?>/assets/img/favicons/favicon.ico">
|
); ?>/assets/img/favicons/favicon.ico">
|
||||||
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo get_bloginfo(
|
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo get_bloginfo(
|
||||||
"template_directory"
|
"template_directory"
|
||||||
); ?>/assets/img/favicons/favicon-120.png">
|
); ?>/assets/img/favicons/favicon-120.png">
|
||||||
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo get_bloginfo(
|
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo get_bloginfo(
|
||||||
"template_directory"
|
"template_directory"
|
||||||
); ?>/assets/img/favicons/favicon-152.png">
|
); ?>/assets/img/favicons/favicon-152.png">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
|
@ -29,50 +30,50 @@
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$nav_position = get_theme_mod("esc_header_nav_position", "default");
|
$nav_position = get_theme_mod("esc_header_nav_position", "default");
|
||||||
$header_layout = get_theme_mod("esc_header_layout", "default");
|
$header_layout = get_theme_mod("esc_header_layout", "default");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<header id="header" class="header pinning-nav pinned pinning-top header--nav-position-<?php echo esc_attr(
|
<header id="header" class="header pinning-nav pinned pinning-top header--nav-position-<?php echo esc_attr(
|
||||||
$nav_position
|
$nav_position
|
||||||
); ?> header--layout-<?php echo esc_attr($header_layout); ?>">
|
); ?> header--layout-<?php echo esc_attr($header_layout); ?>">
|
||||||
|
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="header__logo header__logo--img">
|
<div class="header__logo header__logo--img">
|
||||||
<?php if (has_custom_logo()): ?>
|
<?php if (has_custom_logo()): ?>
|
||||||
<?php the_custom_logo(); ?>
|
<?php the_custom_logo(); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<h1 class="site-title">
|
<h1 class="site-title">
|
||||||
<a href="<?php echo esc_url(home_url("/")); ?>">
|
<a href="<?php echo esc_url(home_url("/")); ?>">
|
||||||
<?php bloginfo("name"); ?>
|
<?php bloginfo("name"); ?>
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Navigation -->
|
<!-- Main Navigation -->
|
||||||
<nav class="main-nav">
|
<nav class="main-nav">
|
||||||
<?php
|
<?php
|
||||||
$nav_classes = ["main-nav__list"];
|
$nav_classes = ["main-nav__list"];
|
||||||
$nav_link_active = get_theme_mod("esc_header_nav_active", "diagonal-line");
|
$nav_link_active = get_theme_mod("esc_header_nav_active", "diagonal-line");
|
||||||
$nav_link_hover = get_theme_mod("esc_header_nav_hover", "diagonal-line");
|
$nav_link_hover = get_theme_mod("esc_header_nav_hover", "diagonal-line");
|
||||||
|
|
||||||
if ("diagonal-line" === $nav_link_active) {
|
if ("diagonal-line" === $nav_link_active) {
|
||||||
$nav_classes[] = "main-nav__list--active-diagonal-line";
|
$nav_classes[] = "main-nav__list--active-diagonal-line";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("diagonal-line" === $nav_link_hover) {
|
if ("diagonal-line" === $nav_link_hover) {
|
||||||
$nav_classes[] = "main-nav__list--hover-diagonal-line";
|
$nav_classes[] = "main-nav__list--hover-diagonal-line";
|
||||||
}
|
}
|
||||||
$nav_classes = implode(" ", $nav_classes);
|
$nav_classes = implode(" ", $nav_classes);
|
||||||
|
|
||||||
wp_nav_menu([
|
wp_nav_menu([
|
||||||
"theme_location" => "header-menu",
|
"theme_location" => "header-menu",
|
||||||
"menu_id" => "menu-menu-1",
|
"menu_id" => "menu-menu-1",
|
||||||
"menu_class" => $nav_classes,
|
"menu_class" => $nav_classes,
|
||||||
"container" => false,
|
"container" => false,
|
||||||
]);
|
]);
|
||||||
?>
|
?>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="header__spacer"></div>
|
<div class="header__spacer"></div>
|
||||||
|
@ -82,49 +83,56 @@
|
||||||
<ul class="social-links social-links--circle">
|
<ul class="social-links social-links--circle">
|
||||||
|
|
||||||
|
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://search.rp1.hu" target="_blank" title="Keresés" alt="kereses" aria-label="Keresés"><i class="fa fa-search"></i></a>
|
<a class="social-links__link" href="https://search.rp1.hu" target="_blank" title="Keresés" alt="kereses"
|
||||||
|
aria-label="Keresés"><i class="fa fa-search"></i></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- -- <div id="search-overlay">
|
<!-- -- <div id="search-overlay">
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<form role="search" method="get" id="search-form" action="<?php echo esc_url(
|
<form role="search" method="get" id="search-form" action="<?php echo esc_url(
|
||||||
home_url("/")
|
home_url("/")
|
||||||
); ?>" class="input-group">
|
); ?>" class="input-group">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text">
|
<span class="input-group-text">
|
||||||
<i class="fas fa-search text-muted"></i>
|
<i class="fas fa-search text-muted"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<input type="search" class="form-control border-0" placeholder="Search" aria-label="search" name="s" id="search-input" value="<?php echo esc_attr(
|
<input type="search" class="form-control border-0" placeholder="Search" aria-label="search" name="s" id="search-input" value="<?php echo esc_attr(
|
||||||
get_search_query()
|
get_search_query()
|
||||||
); ?>">
|
); ?>">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://streamlabs.com/ravepriest1/tip" target="_blank" title="Támogatás" alt="tamogatas" aria-label="Támogatás"><i class="fa-solid fa-wallet"></i></a>
|
<a class="social-links__link" href="https://streamlabs.com/ravepriest1/tip" target="_blank"
|
||||||
|
title="Támogatás" alt="tamogatas" aria-label="Támogatás"><i class="fa-solid fa-wallet"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://git.rp1.hu/explore/repos" target="_blank" title="RP Gitea" alt="rpgitea" aria-label="RP Gitea"><i class="fab fa-git"></i></a>
|
<a class="social-links__link" href="https://git.rp1.hu/explore/repos" target="_blank" title="RP Gitea"
|
||||||
|
alt="rpgitea" aria-label="RP Gitea"><i class="fab fa-git"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://www.youtube.com/@RPslair" target="_blank" title="RP YouTube" alt="rpyoutube" aria-label="RP YouTube"><i class="fab fa-youtube"></i></a>
|
<a class="social-links__link" href="https://www.youtube.com/@RPslair" target="_blank" title="RP YouTube"
|
||||||
|
alt="rpyoutube" aria-label="RP YouTube"><i class="fab fa-youtube"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://www.twitch.tv/ravepriest1" target="_blank" title="RP Twitch" alt="rptwitch" aria-label="RP Twitch"><i class="fab fa-twitch"></i></a>
|
<a class="social-links__link" href="https://www.twitch.tv/ravepriest1" target="_blank" title="RP Twitch"
|
||||||
|
alt="rptwitch" aria-label="RP Twitch"><i class="fab fa-twitch"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://kick.com/ravepriest1" target="_blank" title="RP Kick" alt="rpkick" aria-label="RP Kick"><i class="fab fa-kickstarter"></i></a>
|
<a class="social-links__link" href="https://kick.com/ravepriest1" target="_blank" title="RP Kick"
|
||||||
|
alt="rpkick" aria-label="RP Kick"><i class="fab fa-kickstarter"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="social-links__item">
|
<li class="social-links__item">
|
||||||
<a class="social-links__link" href="https://discord.gg/gSdVMXRFQc" target="_blank" title="RP Discord" alt="rpdiscord" aria-label="RP Discord"><i class="fab fa-discord"></i></a>
|
<a class="social-links__link" href="https://discord.gg/gSdVMXRFQc" target="_blank" title="RP Discord"
|
||||||
|
alt="rpdiscord" aria-label="RP Discord"><i class="fab fa-discord"></i></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -137,4 +145,4 @@
|
||||||
<span class="burger-menu-icon__line"></span>
|
<span class="burger-menu-icon__line"></span>
|
||||||
</a>
|
</a>
|
||||||
<!-- Mobile Burger Menu Icon / End -->
|
<!-- Mobile Burger Menu Icon / End -->
|
||||||
</header>
|
</header>
|
Loading…
Reference in a new issue