added lot of things

This commit is contained in:
infeeeee
2019-07-18 23:55:33 +02:00
parent 0f3aaed434
commit 7ea5c5d1e8
13 changed files with 538 additions and 230 deletions

View File

@@ -1,15 +1,5 @@
# Felhasználói kézikönyv # Felhasználói kézikönyv
## Telepítés utáni teendők:
### function.php
esemény cat-id-t átírni!! (Line 195)
### wp beállítások
settings>reading>Blog pages show at most 6
## Különböző elemek szerkesztése ## Különböző elemek szerkesztése
### Bejegyzések ### Bejegyzések
@@ -78,9 +68,29 @@ dis-esemeny-link
A leírást itt kell szerkeszteni: A leírást itt kell szerkeszteni:
Bejegyzés>Címkék>Szerkesztés - Bejegyzés > Címkék > Szerkesztés
## Beállítások
### Események
Megjelenés > Testreszabás > Designisso 2019
Be kell írni az események category-id-ját. Ez egy darab szám.
Így lehet megtudni ezt a számot: Bejegyzés > Kategóriák > Esemény > szerkesztés és az url-ben a szám a `tag_ID=` után fog szerepelni.
### Megjelenő cikkek száma
Beállítások > Olvasás
- A megjelenő oldal mutasson legfeljebb: Ez a beállítás csak a 'Mutass többet' gombra való kattintáskor megjelenő cikkek számát jelenti. Ez a beállítás minden listázott oldalt befolyásol!
- Ide mindenképp 6-tal osztható számot kell írni! 6, 12, 18...
Megjelenés > Testreszabás > Designisso 2019
Itt kell beállítani hogy hány cikk jelenjen meg a kezdőlapon illetve az archívumokban
## Developement verzió telepítése ## Developement verzió telepítése

View File

@@ -1,40 +1,21 @@
# Single # Single
lightbox
og: tag: pluginnal! og: tag: pluginnal!
crop thumbnail a fenti képnél
állókép körbefut a szöveg!!!! állókép körbefut a szöveg!!!!
képaláírás asztalin csak hoverre
címhez scrolloljon
Hasonló cikkek:
Ugyanabból a kategóriából a 3 legfrisebb
bal felső sarokban nem jó a sarok border!! bal felső sarokban nem jó a sarok border!!
jobb oldali margó dupla akkora minimum, és nőjön, hogy a szöveg fix széles maradhasson jobb oldali margó dupla akkora minimum, és nőjön, hogy a szöveg fix széles maradhasson
margók összébb húzni a tartalmat: 1024px | elválasztó vonalakat is szűkebbre venni
szövegtörzs betűméretek: mint a mostani designisso
Nagy idézet balra zárjon
Címsor 2 serif betű
Idézet forrás balra zárt, kicsit behúzva
Kijelölés színe a tagtől függ: sárga a kékkel, piros a zölddel
Szerző: üres mint az asztali tervben
lightbox: mobilon ott ahol van most lightbox: mobilon ott ahol van most
Asztalin menjen ki a képernyő szélére Asztalin menjen ki a képernyő szélére
galéria jobb/bal nyilat a képernyő széléhez igazítani | X-et is
Link a kiemelt hátterű szövegben mint a mostani designisson! Lásd annabella cikke, valamelyik kérdés Link a kiemelt hátterű szövegben mint a mostani designisson! Lásd annabella cikke, valamelyik kérdés
szövegben kiemelt résznél link opacity
# Esemény oldal # Esemény oldal
@@ -77,13 +58,9 @@ képek magassága és maszk
tag archive: tag archive:
Magyarázat betűméret, baloldali magyarázó szöveg legyen nagyobb Magyarázat betűméret, baloldali magyarázó szöveg legyen nagyobb
reszponzivitás több oldalméreten megnézni
vonalak néhol túlvékonyodik, vastagodik - egyenletlen
# menü # menü
# Oldal # Oldal
Nem kell dátum fentre
Oldal: ne legyen első vonal <hr>
Nincs kiemelt kép, fehér háttér, csak egy vonalként látszik a border, ugyanaz a margó fent mint oldalt

View File

@@ -19,7 +19,7 @@ html {
font-size: 62.5%; } font-size: 62.5%; }
body { body {
font: 300 14px/1.4 "Westeinde Caption", "Helvetica Neue", Helvetica, Arial, sans-serif; font: 300 18px/1.8 "Westeinde Caption", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #000; } color: #000; }
/* clear */ /* clear */
@@ -1617,15 +1617,15 @@ body.category.category-esemeny main {
padding: 0; } padding: 0; }
.single article .titlewrapper, .single article .titlewrapper,
.page article .titlewrapper { .page article .titlewrapper {
position: absolute; position: relative;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-start;
align-content: flex-start; align-content: flex-start;
padding: 0; } padding: 0;
padding-top: 10rem; }
.single article .titlewrapper .metadata, .single article .titlewrapper .metadata,
.page article .titlewrapper .metadata { .page article .titlewrapper .metadata {
width: calc(100vw - 5rem); width: calc(100vw - 5rem);
@@ -1651,16 +1651,26 @@ body.category.category-esemeny main {
margin: 0; margin: 0;
font: 800 3rem "Butler"; font: 800 3rem "Butler";
color: #000; color: #000;
min-height: 25vh;
padding: 2rem; padding: 2rem;
background-color: #fff; } background-color: #fff; }
@media (min-width: 769px) { @media (min-width: 769px) {
.single article .titlewrapper h1.single-title, .single article .titlewrapper h1.single-title,
.page article .titlewrapper h1.single-title { .page article .titlewrapper h1.single-title {
font-size: 5rem; } } font-size: 5rem; } }
@media (max-width: 768px) {
.single article.has-post-thumbnail .titlewrapper,
.page article.has-post-thumbnail .titlewrapper {
position: absolute;
height: 100vh;
justify-content: flex-end;
padding: 0; }
.single article.has-post-thumbnail .titlewrapper h1.single-title,
.page article.has-post-thumbnail .titlewrapper h1.single-title {
min-height: 25vh; } }
@media (min-width: 769px) { @media (min-width: 769px) {
.single article, .single article,
.page article { .page article {
min-height: calc(100vh - 10rem);
margin-top: 100vh; margin-top: 100vh;
margin-left: 5rem; margin-left: 5rem;
background-color: #fff; background-color: #fff;
@@ -1685,7 +1695,8 @@ body.category.category-esemeny main {
.page article .titlewrapper { .page article .titlewrapper {
position: relative; position: relative;
justify-content: flex-start; justify-content: flex-start;
height: unset; } height: unset;
padding-top: 0; }
.single article .titlewrapper .metadata, .single article .titlewrapper .metadata,
.page article .titlewrapper .metadata { .page article .titlewrapper .metadata {
top: -5rem; top: -5rem;
@@ -1744,15 +1755,18 @@ body.category.category-esemeny main {
width: 40%; } width: 40%; }
.single article hr.content-begin, .single article hr.content-begin,
.page article hr.content-begin { .page article hr.content-begin {
margin-top: calc(25vh + 2rem); } margin-top: 2rem; }
@media (min-width: 769px) { @media (min-width: 769px) {
.single article hr.content-begin, .single article hr.content-begin,
.page article hr.content-begin { .page article hr.content-begin {
margin-top: 0; } } margin-top: 0 !important; } }
.single article hr.content-end, .single article hr.content-end,
.page article hr.content-end { .page article hr.content-end {
margin-top: 2rem; margin-top: 2rem;
margin-bottom: 2rem; } margin-bottom: 2rem; }
.single article.has-post-thumbnail hr.content-begin,
.page article.has-post-thumbnail hr.content-begin {
margin-top: calc(25vh + 2rem); }
.single article .single-content, .single article .single-content,
.page article .single-content { .page article .single-content {
position: relative; position: relative;
@@ -1763,6 +1777,9 @@ body.category.category-esemeny main {
top: -5rem; top: -5rem;
padding-left: 0; padding-left: 0;
padding-right: 10rem; } } padding-right: 10rem; } }
.single article .single-content h2,
.page article .single-content h2 {
font: 800 3rem "Butler"; }
.single article .single-content h3, .single article .single-content h3,
.page article .single-content h3 { .page article .single-content h3 {
font: 800 2rem "Butler"; font: 800 2rem "Butler";
@@ -1776,7 +1793,8 @@ body.category.category-esemeny main {
.single article .single-content h4, .single article .single-content h4,
.page article .single-content h4 { .page article .single-content h4 {
font-weight: 500; font-weight: 500;
font-size: 2rem; } font-size: 2.4rem;
line-height: 1.6; }
.single article .single-content a:hover, .single article .single-content a:hover,
.page article .single-content a:hover { .page article .single-content a:hover {
text-decoration: underline; } text-decoration: underline; }
@@ -1798,9 +1816,14 @@ body.category.category-esemeny main {
box-shadow: 10px 0 #ff5f5f, -5px 0 #ff5f5f; } box-shadow: 10px 0 #ff5f5f, -5px 0 #ff5f5f; }
.single article .single-content blockquote cite, .single article .single-content blockquote cite,
.page article .single-content blockquote cite { .page article .single-content blockquote cite {
display: block;
position: relative; position: relative;
font-size: 80%; font-size: 80%;
top: 2rem; } top: 0.5rem;
left: 2rem; }
.single article .single-content .wp-block-pullquote,
.page article .single-content .wp-block-pullquote {
text-align: unset; }
.single article .single-content .wp-block-image, .single article .single-content .wp-block-image,
.page article .single-content .wp-block-image { .page article .single-content .wp-block-image {
margin: 2rem 0; margin: 2rem 0;
@@ -1937,6 +1960,20 @@ body.category.category-esemeny main {
.page article .single-content .wp-block-gallery .alignright, .page article .single-content .wp-block-gallery .alignright,
.page article .single-content .wp-block-image .alignright { .page article .single-content .wp-block-image .alignright {
text-align: right; } text-align: right; }
.single article .single-content .authors,
.page article .single-content .authors {
font-weight: 500;
font-size: 2.4rem;
line-height: 1.6; }
.single article .single-content .authors a,
.page article .single-content .authors a {
font: bold 1rem "Westeinde Caption"; }
@media (min-width: 769px) {
.single article .single-content .authors a,
.page article .single-content .authors a {
font: 900 2rem "Westeinde Caption";
color: #fff;
-webkit-text-stroke: #000 1px; } }
.single #cboxOverlay, .single #cboxOverlay,
.page #cboxOverlay { .page #cboxOverlay {
width: 100%; width: 100%;
@@ -2040,7 +2077,14 @@ body.category.category-esemeny main {
@media (min-width: 769px) { @media (min-width: 769px) {
.single .toHome, .single .toHome,
.page .toHome { .page .toHome {
padding-top: 4rem; } } position: relative;
padding-top: 4rem;
top: -5rem;
padding-right: 10rem; }
.single .toHome a,
.page .toHome a {
margin-bottom: 4rem;
display: block; } }
.single #related_posts, .single #related_posts,
.page #related_posts { .page #related_posts {
/* ------------------------ related posts on desktop ------------------------ */ } /* ------------------------ related posts on desktop ------------------------ */ }
@@ -2100,7 +2144,10 @@ body.category.category-esemeny main {
@media (min-width: 769px) { @media (min-width: 769px) {
.single #related_posts, .single #related_posts,
.page #related_posts { .page #related_posts {
padding-right: 10rem; } padding-right: 10rem;
top: -5rem;
position: relative;
padding-top: 2rem; }
.single #related_posts > h3, .single #related_posts > h3,
.page #related_posts > h3 { .page #related_posts > h3 {
display: block; } display: block; }
@@ -2236,6 +2283,11 @@ body.category.category-esemeny main {
.page #related_posts ul li h2 a { .page #related_posts ul li h2 a {
width: calc(100% - 10rem); } } width: calc(100% - 10rem); } }
/* -------------------------------- page only------------------------------- */
@media (min-width: 769px) {
body.page article {
margin-top: 10rem; } }
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* TAG COLORS */ /* TAG COLORS */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@@ -2280,6 +2332,10 @@ body.category.category-esemeny main {
.tag-be.archive.tag article *:not(.vr) { .tag-be.archive.tag article *:not(.vr) {
background-color: #fdff00 !important; } background-color: #fdff00 !important; }
.tag-be ::selection {
color: #000;
background-color: #3c00ff; }
@media (min-width: 769px) { @media (min-width: 769px) {
.tag-be.random .thumbnailwrapper > img { .tag-be.random .thumbnailwrapper > img {
-webkit-mask: url(../img/clip/be_desktop.svg); -webkit-mask: url(../img/clip/be_desktop.svg);
@@ -2330,6 +2386,10 @@ body.category.category-esemeny main {
.tag-do.archive.tag article *:not(.vr) { .tag-do.archive.tag article *:not(.vr) {
background-color: #3c00ff !important; } background-color: #3c00ff !important; }
.tag-do ::selection {
color: #000;
background-color: #fdff00; }
@media (min-width: 769px) { @media (min-width: 769px) {
.tag-do.random .thumbnailwrapper > img { .tag-do.random .thumbnailwrapper > img {
-webkit-mask: url(../img/clip/do_desktop.svg); -webkit-mask: url(../img/clip/do_desktop.svg);
@@ -2380,6 +2440,10 @@ body.category.category-esemeny main {
.tag-think.archive.tag article *:not(.vr) { .tag-think.archive.tag article *:not(.vr) {
background-color: #00ffb8 !important; } background-color: #00ffb8 !important; }
.tag-think ::selection {
color: #000;
background-color: #ff5f5f; }
@media (min-width: 769px) { @media (min-width: 769px) {
.tag-think.random .thumbnailwrapper > img { .tag-think.random .thumbnailwrapper > img {
-webkit-mask: url(../img/clip/think_desktop.svg); -webkit-mask: url(../img/clip/think_desktop.svg);
@@ -2430,6 +2494,10 @@ body.category.category-esemeny main {
.tag-love.archive.tag article *:not(.vr) { .tag-love.archive.tag article *:not(.vr) {
background-color: #ff5f5f !important; } background-color: #ff5f5f !important; }
.tag-love ::selection {
color: #000;
background-color: #00ffb8; }
@media (min-width: 769px) { @media (min-width: 769px) {
.tag-love.random .thumbnailwrapper > img { .tag-love.random .thumbnailwrapper > img {
-webkit-mask: url(../img/clip/love_desktop.svg); -webkit-mask: url(../img/clip/love_desktop.svg);
@@ -2441,13 +2509,14 @@ body.category.category-esemeny main {
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-be .titlewrapper .metadata { .single .tag-be .titlewrapper .metadata {
color: #fff !important;
-webkit-text-stroke: #fdff00 1px !important; } } -webkit-text-stroke: #fdff00 1px !important; } }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-be .titlewrapper .metadata a { .single .tag-be .titlewrapper .metadata a {
color: #fff !important; color: #fff !important;
-webkit-text-stroke: #fdff00 1px !important; } } -webkit-text-stroke: #fdff00 1px !important; }
.single .tag-be .titlewrapper .metadata a:hover {
color: #fdff00 !important; } }
.single .tag-be .single-content blockquote p, .single .tag-be .single-content blockquote p,
.single .tag-be .single-content h3 { .single .tag-be .single-content h3 {
@@ -2459,15 +2528,22 @@ body.category.category-esemeny main {
.single .tag-be .single-content a { .single .tag-be .single-content a {
color: #fdff00; } color: #fdff00; }
.single .tag-be .single-content .authors a {
-webkit-text-stroke: #fdff00 1px !important; }
.single .tag-be .single-content .authors a:hover {
color: #fdff00 !important;
text-decoration: none; }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-do .titlewrapper .metadata { .single .tag-do .titlewrapper .metadata {
color: #fff !important;
-webkit-text-stroke: #3c00ff 1px !important; } } -webkit-text-stroke: #3c00ff 1px !important; } }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-do .titlewrapper .metadata a { .single .tag-do .titlewrapper .metadata a {
color: #fff !important; color: #fff !important;
-webkit-text-stroke: #3c00ff 1px !important; } } -webkit-text-stroke: #3c00ff 1px !important; }
.single .tag-do .titlewrapper .metadata a:hover {
color: #3c00ff !important; } }
.single .tag-do .single-content blockquote p, .single .tag-do .single-content blockquote p,
.single .tag-do .single-content h3 { .single .tag-do .single-content h3 {
@@ -2479,15 +2555,22 @@ body.category.category-esemeny main {
.single .tag-do .single-content a { .single .tag-do .single-content a {
color: #3c00ff; } color: #3c00ff; }
.single .tag-do .single-content .authors a {
-webkit-text-stroke: #3c00ff 1px !important; }
.single .tag-do .single-content .authors a:hover {
color: #3c00ff !important;
text-decoration: none; }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-think .titlewrapper .metadata { .single .tag-think .titlewrapper .metadata {
color: #fff !important;
-webkit-text-stroke: #00ffb8 1px !important; } } -webkit-text-stroke: #00ffb8 1px !important; } }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-think .titlewrapper .metadata a { .single .tag-think .titlewrapper .metadata a {
color: #fff !important; color: #fff !important;
-webkit-text-stroke: #00ffb8 1px !important; } } -webkit-text-stroke: #00ffb8 1px !important; }
.single .tag-think .titlewrapper .metadata a:hover {
color: #00ffb8 !important; } }
.single .tag-think .single-content blockquote p, .single .tag-think .single-content blockquote p,
.single .tag-think .single-content h3 { .single .tag-think .single-content h3 {
@@ -2499,15 +2582,22 @@ body.category.category-esemeny main {
.single .tag-think .single-content a { .single .tag-think .single-content a {
color: #00ffb8; } color: #00ffb8; }
.single .tag-think .single-content .authors a {
-webkit-text-stroke: #00ffb8 1px !important; }
.single .tag-think .single-content .authors a:hover {
color: #00ffb8 !important;
text-decoration: none; }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-love .titlewrapper .metadata { .single .tag-love .titlewrapper .metadata {
color: #fff !important;
-webkit-text-stroke: #ff5f5f 1px !important; } } -webkit-text-stroke: #ff5f5f 1px !important; } }
@media (min-width: 769px) { @media (min-width: 769px) {
.single .tag-love .titlewrapper .metadata a { .single .tag-love .titlewrapper .metadata a {
color: #fff !important; color: #fff !important;
-webkit-text-stroke: #ff5f5f 1px !important; } } -webkit-text-stroke: #ff5f5f 1px !important; }
.single .tag-love .titlewrapper .metadata a:hover {
color: #ff5f5f !important; } }
.single .tag-love .single-content blockquote p, .single .tag-love .single-content blockquote p,
.single .tag-love .single-content h3 { .single .tag-love .single-content h3 {
@@ -2519,6 +2609,12 @@ body.category.category-esemeny main {
.single .tag-love .single-content a { .single .tag-love .single-content a {
color: #ff5f5f; } color: #ff5f5f; }
.single .tag-love .single-content .authors a {
-webkit-text-stroke: #ff5f5f 1px !important; }
.single .tag-love .single-content .authors a:hover {
color: #ff5f5f !important;
text-decoration: none; }
body.hover-tag-be, body.hover-tag-be,
.header-1.hover-tag-be, .header-1.hover-tag-be,
.header-2.hover-tag-be { .header-2.hover-tag-be {

60
customizer.php Normal file
View File

@@ -0,0 +1,60 @@
<?php
/**
* Create Logo Setting and Upload Control
*/
function dis2019_customizer_settings($wp_customize)
{
$wp_customize->add_section('dis-2019', array(
'title' => 'Designisso 2019',
));
$wp_customize->add_setting('dis-2019-event-cat-id');
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dis-2019-event-cat-id',
array(
'label' => __('Event category id', 'dis2019'),
'section' => 'dis-2019',
'description' => __('This category will be hidden from the start page.', 'dis2019'),
'settings' => 'dis-2019-event-cat-id',
'type' => 'number',
)));
$wp_customize->add_setting('dis-2019-event-cat-slug');
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dis-2019-event-cat-slug',
array(
'label' => __('Event category slug', 'dis2019'),
'section' => 'dis-2019',
'description' => __('This category will be hidden from the start page. Write category slug here', 'dis2019'),
'settings' => 'dis-2019-event-cat-slug',
)));
$wp_customize->add_setting('dis-2019-posts-on-home');
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dis-2019-posts-on-home',
array(
'label' => __('Number of posts on homepage', 'dis2019'),
'section' => 'dis-2019',
'description' => __('Use 6*n+2 numbers, e.g. 8, 14, 20, 26...', 'dis2019'),
'settings' => 'dis-2019-posts-on-home',
'type' => 'number',
)));
$wp_customize->add_setting('dis-2019-posts-on-tag');
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dis-2019-posts-on-tag',
array(
'label' => __('Number of posts on tag archives', 'dis2019'),
'section' => 'dis-2019',
'description' => __('Be, do, think, love pages. Use 6*n-2 numbers, e.g. 4, 10, 16, 22... ', 'dis2019'),
'settings' => 'dis-2019-posts-on-tag',
'type' => 'number',
)));
//__('Choose from most used writer', 'dis2019')
// get_theme_mod( 'dis-2019-posts-on-home' );
}
add_action('customize_register', 'dis2019_customizer_settings');
?>

View File

@@ -16,11 +16,17 @@ External Modules/Files
//ChromePhp::log('Hello console!'); //ChromePhp::log('Hello console!');
// Debug $data will display in console // Debug $data will display in console
function console_debug( $data ) { function console_debug($data)
{
$data = json_encode($data); $data = json_encode($data);
echo "<script>console.dir($data)</script>"; echo "<script>console.dir($data)</script>";
} }
/**
* Customizer additions.
*/
include get_template_directory() . '/customizer.php';
/*------------------------------------*\ /*------------------------------------*\
Theme Support Theme Support
\*------------------------------------*/ \*------------------------------------*/
@@ -196,12 +202,11 @@ function dis2019_styles()
} }
//remove events from home page //remove events from home page
// !!!add event cat id to here!!!!
//search keywords: event esemeny esemény category
function exclude_category_home($query) function exclude_category_home($query)
{ {
if ($query->is_home) { if ($query->is_home) {
$query->set('cat', '-5'); $minus_catid = '-' . get_theme_mod('dis-2019-event-cat-id');
$query->set('cat', $minus_catid);
} }
return $query; return $query;
@@ -209,17 +214,13 @@ function exclude_category_home($query)
add_filter('pre_get_posts', 'exclude_category_home'); add_filter('pre_get_posts', 'exclude_category_home');
// order events by date on events page // order events by date on events page
// !!!add event cat id to here!!!!
//search keywords: event esemeny esemény category
add_action('pre_get_posts', 'dis_2019_order_events_by_date', 1); add_action('pre_get_posts', 'dis_2019_order_events_by_date', 1);
function dis_2019_order_events_by_date(&$query) function dis_2019_order_events_by_date(&$query)
{ {
//Before anything else, make sure this is the right query... //Before anything else, make sure this is the right query...
if (!$query->get('category_name') == 'esemeny') { if (!$query->get('category_name') == get_theme_mod('dis-2019-event-cat-slug')) {
return; return;
} }
@@ -524,13 +525,14 @@ function dis_2019_more_posts_on_home(&$query)
} }
if ($query->is_home()) { if ($query->is_home()) {
$pposts = 14; $pposts = get_theme_mod( 'dis-2019-posts-on-home' );
} elseif ($query->is_tag()) { } elseif ($query->is_tag()) {
$pposts = 10; $pposts = get_theme_mod( 'dis-2019-posts-on-tag' );;
} elseif (!$query->in_the_loop()) { } elseif (!$query->in_the_loop()) {
return; return;
} else { } else {
$pposts = 6; $pposts = get_option( 'posts_per_page' );
// $pposts = 6;
} }
//set post_per_page if it's homepage //set post_per_page if it's homepage
@@ -734,7 +736,6 @@ function dis2019_register_taxonomy_writer()
'not_found' => __('No writer found', 'dis2019'), 'not_found' => __('No writer found', 'dis2019'),
'back_to_items' => __('Back to writers', 'dis2019'), 'back_to_items' => __('Back to writers', 'dis2019'),
]; ];
$args = [ $args = [
'hierarchical' => false, // make it hierarchical (like categories) 'hierarchical' => false, // make it hierarchical (like categories)

View File

@@ -101,7 +101,7 @@
</a> </a>
</div> </div>
<div class="events-link"> <div class="events-link">
<a href="/index.php/category/esemeny" target="_top"> <a href="/index.php/category/<?php echo get_theme_mod('dis-2019-event-cat-slug');?>" target="_top">
<object data="<?php echo get_template_directory_uri(); ?>/img/naptar_icon.svg" <object data="<?php echo get_template_directory_uri(); ?>/img/naptar_icon.svg"
type="image/svg+xml"> type="image/svg+xml">
<img src="<?php echo get_template_directory_uri(); ?>/img/naptar_icon.png" /> <img src="<?php echo get_template_directory_uri(); ?>/img/naptar_icon.png" />

View File

@@ -871,6 +871,11 @@
window.open(href, "_self") window.open(href, "_self")
}) })
/* ----------------------------- scroll to title ---------------------------- */
const titleWrapperHeight = $('article>.titlewrapper')[0].getBoundingClientRect().height
$('html, body').stop().animate({ scrollTop: titleWrapperHeight }, 400);
}//if single end }//if single end

View File

@@ -2,7 +2,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: dis-2019 WordPress Theme\n" "Project-Id-Version: dis-2019 WordPress Theme\n"
"POT-Creation-Date: 2019-07-11 03:38+0200\n" "POT-Creation-Date: 2019-07-18 20:06+0200\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Jürgen Rabe | www.egado.de <rabe@egado.de>\n" "Last-Translator: Jürgen Rabe | www.egado.de <rabe@egado.de>\n"
"Language-Team: \n" "Language-Team: \n"
@@ -24,169 +24,201 @@ msgstr ""
msgid "Return home?" msgid "Return home?"
msgstr "" msgstr ""
#: ../category-esemeny.php:74 ../loop.php:99 ../page.php:30 ../single.php:138 #: ../category-esemeny.php:74 ../loop.php:99 ../singular.php:158
msgid "Sorry, nothing to display." msgid "Sorry, nothing to display."
msgstr "" msgstr ""
#: ../functions.php:238 #: ../customizer.php:16
msgid "Main menu left" msgid "Event category id"
msgstr ""
#: ../customizer.php:18
msgid "This category will be hidden from the start page."
msgstr ""
#: ../customizer.php:27
msgid "Event category slug"
msgstr ""
#: ../customizer.php:29
msgid "This category will be hidden from the start page. Write category slug here"
msgstr ""
#: ../customizer.php:37
msgid "Number of posts on homepage"
msgstr ""
#: ../customizer.php:39
msgid "Use 6*n+2 numbers, e.g. 8, 14, 20, 26..."
msgstr ""
#: ../customizer.php:48
msgid "Number of posts on tag archives"
msgstr ""
#: ../customizer.php:50
msgid "Be, do, think, love pages. Use 6*n-2 numbers, e.g. 4, 10, 16, 22... "
msgstr "" msgstr ""
#: ../functions.php:239 #: ../functions.php:239
msgid "Main menu left"
msgstr ""
#: ../functions.php:240
msgid "Main menu right" msgid "Main menu right"
msgstr "" msgstr ""
#: ../functions.php:241 #: ../functions.php:242
msgid "Circular tags" msgid "Circular tags"
msgstr "" msgstr ""
#: ../functions.php:367 #: ../functions.php:368
msgid "View Article" msgid "View Article"
msgstr "" msgstr ""
#: ../functions.php:431 #: ../functions.php:432
#, php-format #, php-format
msgid "<cite class=\"fn\">%s</cite> <span class=\"says\">says:</span>" msgid "<cite class=\"fn\">%s</cite> <span class=\"says\">says:</span>"
msgstr "" msgstr ""
#: ../functions.php:434 #: ../functions.php:435
msgid "Your comment is awaiting moderation." msgid "Your comment is awaiting moderation."
msgstr "" msgstr ""
#: ../functions.php:440 #: ../functions.php:441
#, php-format #, php-format
msgid "%1$s at %2$s" msgid "%1$s at %2$s"
msgstr "" msgstr ""
#: ../functions.php:440 #: ../functions.php:441
msgid "(Edit)" msgid "(Edit)"
msgstr "" msgstr ""
#: ../functions.php:682 #: ../functions.php:684
msgid "Search Formats" msgid "Search Formats"
msgstr "" msgstr ""
#: ../functions.php:683 #: ../functions.php:685
msgid "All Formats" msgid "All Formats"
msgstr "" msgstr ""
#: ../functions.php:684 #: ../functions.php:686
msgid "Parent Format" msgid "Parent Format"
msgstr "" msgstr ""
#: ../functions.php:685 #: ../functions.php:687
msgid "Parent Format:" msgid "Parent Format:"
msgstr "" msgstr ""
#: ../functions.php:686 #: ../functions.php:688
msgid "Edit Format" msgid "Edit Format"
msgstr "" msgstr ""
#: ../functions.php:687 #: ../functions.php:689
msgid "Update Format" msgid "Update Format"
msgstr "" msgstr ""
#: ../functions.php:688 #: ../functions.php:690
msgid "Add New Format" msgid "Add New Format"
msgstr "" msgstr ""
#: ../functions.php:689 #: ../functions.php:691
msgid "New Format Name" msgid "New Format Name"
msgstr "" msgstr ""
#: ../functions.php:690 #: ../functions.php:692
msgid "Formats" msgid "Formats"
msgstr "" msgstr ""
#: ../functions.php:692 #: ../functions.php:694
msgid "View Formats" msgid "View Formats"
msgstr "" msgstr ""
#: ../functions.php:693 #: ../functions.php:695
msgid "Popular Formats" msgid "Popular Formats"
msgstr "" msgstr ""
#: ../functions.php:694 #: ../functions.php:696
msgid "Separate formats with commas" msgid "Separate formats with commas"
msgstr "" msgstr ""
#: ../functions.php:695 #: ../functions.php:697
msgid "Add or remove formats" msgid "Add or remove formats"
msgstr "" msgstr ""
#: ../functions.php:696 #: ../functions.php:698
msgid "Choose from most used formats" msgid "Choose from most used formats"
msgstr "" msgstr ""
#: ../functions.php:697 #: ../functions.php:699
msgid "No formats found" msgid "No formats found"
msgstr "" msgstr ""
#: ../functions.php:698 #: ../functions.php:700
msgid "Back to formats" msgid "Back to formats"
msgstr "" msgstr ""
#: ../functions.php:719 #: ../functions.php:721
msgid "Search Writers" msgid "Search Writers"
msgstr "" msgstr ""
#: ../functions.php:720 #: ../functions.php:722
msgid "All Writers" msgid "All Writers"
msgstr "" msgstr ""
#: ../functions.php:721 #: ../functions.php:723
msgid "Parent Writer" msgid "Parent Writer"
msgstr "" msgstr ""
#: ../functions.php:722 #: ../functions.php:724
msgid "Parent Writer:" msgid "Parent Writer:"
msgstr "" msgstr ""
#: ../functions.php:723 #: ../functions.php:725
msgid "Edit Writer" msgid "Edit Writer"
msgstr "" msgstr ""
#: ../functions.php:724 #: ../functions.php:726
msgid "Update Writer" msgid "Update Writer"
msgstr "" msgstr ""
#: ../functions.php:725 #: ../functions.php:727
msgid "Add New Writer" msgid "Add New Writer"
msgstr "" msgstr ""
#: ../functions.php:726 #: ../functions.php:728
msgid "New Writer Name" msgid "New Writer Name"
msgstr "" msgstr ""
#: ../functions.php:727 #: ../functions.php:729
msgid "Writers" msgid "Writers"
msgstr "" msgstr ""
#: ../functions.php:729 #: ../functions.php:731
msgid "View Writers" msgid "View Writers"
msgstr "" msgstr ""
#: ../functions.php:730 #: ../functions.php:732
msgid "Popular Writers" msgid "Popular Writers"
msgstr "" msgstr ""
#: ../functions.php:731 #: ../functions.php:733
msgid "Separate writers with commas" msgid "Separate writers with commas"
msgstr "" msgstr ""
#: ../functions.php:732 #: ../functions.php:734
msgid "Add or remove writers" msgid "Add or remove writers"
msgstr "" msgstr ""
#: ../functions.php:733 #: ../functions.php:735
msgid "Choose from most used writer" msgid "Choose from most used writer"
msgstr "" msgstr ""
#: ../functions.php:734 #: ../functions.php:736
msgid "No writer found" msgid "No writer found"
msgstr "" msgstr ""
#: ../functions.php:735 #: ../functions.php:737
msgid "Back to writers" msgid "Back to writers"
msgstr "" msgstr ""
@@ -294,11 +326,11 @@ msgstr ""
msgid "%s Search Results for " msgid "%s Search Results for "
msgstr "" msgstr ""
#: ../single.php:93 #: ../singular.php:93
msgid "More posts:" msgid "More posts:"
msgstr "" msgstr ""
#: ../single.php:121 #: ../singular.php:138
msgid "Back to home:" msgid "Back to home:"
msgstr "" msgstr ""

Binary file not shown.

View File

@@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: dis-2019 WordPress Theme\n" "Project-Id-Version: dis-2019 WordPress Theme\n"
"POT-Creation-Date: 2019-07-11 03:39+0200\n" "POT-Creation-Date: 2019-07-18 20:06+0200\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Sallay Arnold <arnold@sallay.info>\n" "Last-Translator: Sallay Arnold <arnold@sallay.info>\n"
"Language-Team: \n" "Language-Team: \n"
@@ -24,169 +24,201 @@ msgstr "A keresett oldal nem található"
msgid "Return home?" msgid "Return home?"
msgstr "Vissza a főoldalra?" msgstr "Vissza a főoldalra?"
#: ../category-esemeny.php:74 ../loop.php:99 ../page.php:30 ../single.php:138 #: ../category-esemeny.php:74 ../loop.php:99 ../singular.php:158
msgid "Sorry, nothing to display." msgid "Sorry, nothing to display."
msgstr "Nincs tartalom." msgstr "Nincs tartalom."
#: ../functions.php:238 #: ../customizer.php:16
msgid "Event category id"
msgstr "Esemény kategória ID"
#: ../customizer.php:18
msgid "This category will be hidden from the start page."
msgstr "Ez a kategória el lesz rejtve a kezdőlapról."
#: ../customizer.php:27
msgid "Event category slug"
msgstr "Esemény kategóra keresőbarát név (\"slug\")"
#: ../customizer.php:29
msgid "This category will be hidden from the start page. Write category slug here"
msgstr "Ez a kategória el lesz rejtve a kezdőlapról. Írd ide a kategória \"slug\"-ot"
#: ../customizer.php:37
msgid "Number of posts on homepage"
msgstr "Kezdőlapon megjelenő posztok száma"
#: ../customizer.php:39
msgid "Use 6*n+2 numbers, e.g. 8, 14, 20, 26..."
msgstr "Használj 6*n+2 számokat, például 8, 14, 20, 26..."
#: ../customizer.php:48
msgid "Number of posts on tag archives"
msgstr "Címke archívumban megjelenő posztok száma"
#: ../customizer.php:50
msgid "Be, do, think, love pages. Use 6*n-2 numbers, e.g. 4, 10, 16, 22... "
msgstr "Be, do, think, love listák. Használj 6*n-2 számokat, például 4, 10, 16, 22... "
#: ../functions.php:239
msgid "Main menu left" msgid "Main menu left"
msgstr "Főmenü bal" msgstr "Főmenü bal"
#: ../functions.php:239 #: ../functions.php:240
msgid "Main menu right" msgid "Main menu right"
msgstr "Főmenü jobb" msgstr "Főmenü jobb"
#: ../functions.php:241 #: ../functions.php:242
msgid "Circular tags" msgid "Circular tags"
msgstr "Kör címkék" msgstr "Kör címkék"
#: ../functions.php:367 #: ../functions.php:368
msgid "View Article" msgid "View Article"
msgstr "Tartalom Megtekintése" msgstr "Tartalom Megtekintése"
#: ../functions.php:431 #: ../functions.php:432
#, php-format #, php-format
msgid "<cite class=\"fn\">%s</cite> <span class=\"says\">says:</span>" msgid "<cite class=\"fn\">%s</cite> <span class=\"says\">says:</span>"
msgstr "<cite class=\"fn\">%s</cite> <span class=\"says\">:</span>" msgstr "<cite class=\"fn\">%s</cite> <span class=\"says\">:</span>"
#: ../functions.php:434 #: ../functions.php:435
msgid "Your comment is awaiting moderation." msgid "Your comment is awaiting moderation."
msgstr "A hozzászólás moderálásra vár." msgstr "A hozzászólás moderálásra vár."
#: ../functions.php:440 #: ../functions.php:441
#, php-format #, php-format
msgid "%1$s at %2$s" msgid "%1$s at %2$s"
msgstr "%1$s - %2$s" msgstr "%1$s - %2$s"
#: ../functions.php:440 #: ../functions.php:441
msgid "(Edit)" msgid "(Edit)"
msgstr "(Szerkesztés)" msgstr "(Szerkesztés)"
#: ../functions.php:682 #: ../functions.php:684
msgid "Search Formats" msgid "Search Formats"
msgstr "Formátumok keresése" msgstr "Formátumok keresése"
#: ../functions.php:683 #: ../functions.php:685
msgid "All Formats" msgid "All Formats"
msgstr "Minden formátum" msgstr "Minden formátum"
#: ../functions.php:684 #: ../functions.php:686
msgid "Parent Format" msgid "Parent Format"
msgstr "Szülő formátum" msgstr "Szülő formátum"
#: ../functions.php:685 #: ../functions.php:687
msgid "Parent Format:" msgid "Parent Format:"
msgstr "Szülő formátum:" msgstr "Szülő formátum:"
#: ../functions.php:686 #: ../functions.php:688
msgid "Edit Format" msgid "Edit Format"
msgstr "Formátum szerkesztése" msgstr "Formátum szerkesztése"
#: ../functions.php:687 #: ../functions.php:689
msgid "Update Format" msgid "Update Format"
msgstr "Formátum frissítése" msgstr "Formátum frissítése"
#: ../functions.php:688 #: ../functions.php:690
msgid "Add New Format" msgid "Add New Format"
msgstr "Új formátum hozzáadása" msgstr "Új formátum hozzáadása"
#: ../functions.php:689 #: ../functions.php:691
msgid "New Format Name" msgid "New Format Name"
msgstr "Új formátum neve" msgstr "Új formátum neve"
#: ../functions.php:690 #: ../functions.php:692
msgid "Formats" msgid "Formats"
msgstr "Formátumok" msgstr "Formátumok"
#: ../functions.php:692 #: ../functions.php:694
msgid "View Formats" msgid "View Formats"
msgstr "Formátumok megjelenítése" msgstr "Formátumok megjelenítése"
#: ../functions.php:693 #: ../functions.php:695
msgid "Popular Formats" msgid "Popular Formats"
msgstr "Népszerű formátumok" msgstr "Népszerű formátumok"
#: ../functions.php:694 #: ../functions.php:696
msgid "Separate formats with commas" msgid "Separate formats with commas"
msgstr "Formátumokat vesszővel válaszd el" msgstr "Formátumokat vesszővel válaszd el"
#: ../functions.php:695 #: ../functions.php:697
msgid "Add or remove formats" msgid "Add or remove formats"
msgstr "Formátumok hozzáadása vagy eltávolítása" msgstr "Formátumok hozzáadása vagy eltávolítása"
#: ../functions.php:696 #: ../functions.php:698
msgid "Choose from most used formats" msgid "Choose from most used formats"
msgstr "Választás a leggyakoribb formátumok közül" msgstr "Választás a leggyakoribb formátumok közül"
#: ../functions.php:697 #: ../functions.php:699
msgid "No formats found" msgid "No formats found"
msgstr "Formátum nem található" msgstr "Formátum nem található"
#: ../functions.php:698 #: ../functions.php:700
msgid "Back to formats" msgid "Back to formats"
msgstr "Vissza a formátumokhoz" msgstr "Vissza a formátumokhoz"
#: ../functions.php:719 #: ../functions.php:721
msgid "Search Writers" msgid "Search Writers"
msgstr "Cikkírók keresése" msgstr "Cikkírók keresése"
#: ../functions.php:720 #: ../functions.php:722
msgid "All Writers" msgid "All Writers"
msgstr "Minden cikkíró" msgstr "Minden cikkíró"
#: ../functions.php:721 #: ../functions.php:723
msgid "Parent Writer" msgid "Parent Writer"
msgstr "Szülő cikkíró" msgstr "Szülő cikkíró"
#: ../functions.php:722 #: ../functions.php:724
msgid "Parent Writer:" msgid "Parent Writer:"
msgstr "Szülő cikkíró:" msgstr "Szülő cikkíró:"
#: ../functions.php:723 #: ../functions.php:725
msgid "Edit Writer" msgid "Edit Writer"
msgstr "Cikkíró szerkesztése" msgstr "Cikkíró szerkesztése"
#: ../functions.php:724 #: ../functions.php:726
msgid "Update Writer" msgid "Update Writer"
msgstr "Cikkíró frissítése" msgstr "Cikkíró frissítése"
#: ../functions.php:725 #: ../functions.php:727
msgid "Add New Writer" msgid "Add New Writer"
msgstr "Új cikkíró hozzáadása" msgstr "Új cikkíró hozzáadása"
#: ../functions.php:726 #: ../functions.php:728
msgid "New Writer Name" msgid "New Writer Name"
msgstr "Új cikkíró neve" msgstr "Új cikkíró neve"
#: ../functions.php:727 #: ../functions.php:729
msgid "Writers" msgid "Writers"
msgstr "Cikkírók" msgstr "Cikkírók"
#: ../functions.php:729 #: ../functions.php:731
msgid "View Writers" msgid "View Writers"
msgstr "Cikkírók Megtekintése" msgstr "Cikkírók Megtekintése"
#: ../functions.php:730 #: ../functions.php:732
msgid "Popular Writers" msgid "Popular Writers"
msgstr "Népszerű cikkírók" msgstr "Népszerű cikkírók"
#: ../functions.php:731 #: ../functions.php:733
msgid "Separate writers with commas" msgid "Separate writers with commas"
msgstr "Cikkírókat vesszővel válaszd el" msgstr "Cikkírókat vesszővel válaszd el"
#: ../functions.php:732 #: ../functions.php:734
msgid "Add or remove writers" msgid "Add or remove writers"
msgstr "Cikkírók hozzáadása vagy eltávolítása" msgstr "Cikkírók hozzáadása vagy eltávolítása"
#: ../functions.php:733 #: ../functions.php:735
msgid "Choose from most used writer" msgid "Choose from most used writer"
msgstr "Választás a leggyakoribb cikkírók közül" msgstr "Választás a leggyakoribb cikkírók közül"
#: ../functions.php:734 #: ../functions.php:736
msgid "No writer found" msgid "No writer found"
msgstr "Cikkíró nem található" msgstr "Cikkíró nem található"
#: ../functions.php:735 #: ../functions.php:737
msgid "Back to writers" msgid "Back to writers"
msgstr "Vissza a cikkírókhoz" msgstr "Vissza a cikkírókhoz"
@@ -294,11 +326,11 @@ msgstr ""
msgid "%s Search Results for " msgid "%s Search Results for "
msgstr "%s Találatok " msgstr "%s Találatok "
#: ../single.php:93 #: ../singular.php:93
msgid "More posts:" msgid "More posts:"
msgstr "További cikkeink:" msgstr "További cikkeink:"
#: ../single.php:121 #: ../singular.php:138
msgid "Back to home:" msgid "Back to home:"
msgstr "Vissza a főoldalra" msgstr "Vissza a főoldalra"

View File

@@ -149,12 +149,18 @@
font: 900 2rem "Westeinde Caption"; font: 900 2rem "Westeinde Caption";
color: #fff; color: #fff;
-webkit-text-stroke: #000 1px; -webkit-text-stroke: #000 1px;
} }
} }
@mixin single-h2 {
font: 800 3rem "Butler";
}
@mixin single-h4 { @mixin single-h4 {
font-weight: 500; font-weight: 500;
font-size: 2rem; font-size: 2.4rem;
line-height: 1.6;
} }
@mixin captiontext { @mixin captiontext {

View File

@@ -19,7 +19,8 @@ html {
font-size: 62.5%; font-size: 62.5%;
} }
body { body {
font: 300 14px/1.4 "Westeinde Caption", "Helvetica Neue", Helvetica, Arial, sans-serif; font: 300 18px/1.8 "Westeinde Caption", "Helvetica Neue", Helvetica, Arial, sans-serif;
// font: 300 14px/1.4 "Westeinde Caption", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #000; color: #000;
} }
/* clear */ /* clear */
@@ -1311,11 +1312,6 @@ body.category.category-esemeny {
$padd: 2rem; $padd: 2rem;
/* ---------------------------- single on mobile ---------------------------- */ /* ---------------------------- single on mobile ---------------------------- */
article { article {
// & > *,
// h1.single-title {
// padding: $padd;
// margin: 0;
// }
padding-bottom: $h-unit-1; padding-bottom: $h-unit-1;
.thumbnailwrapper { .thumbnailwrapper {
@@ -1331,15 +1327,16 @@ body.category.category-esemeny {
} }
.titlewrapper { .titlewrapper {
position: absolute; position: relative;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100vh; // height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-start;
align-content: flex-start; align-content: flex-start;
padding: 0; padding: 0;
padding-top: $h-unit-2;
.metadata { .metadata {
width: calc(100vw - #{$h-unit-1}); width: calc(100vw - #{$h-unit-1});
@@ -1359,15 +1356,30 @@ body.category.category-esemeny {
h1.single-title { h1.single-title {
margin: 0; margin: 0;
@include single-title(); @include single-title();
min-height: 25vh;
padding: $padd; padding: $padd;
background-color: #fff; background-color: #fff;
} }
} }
//override if thumbnail
&.has-post-thumbnail {
@media #{$only-mobile} {
.titlewrapper {
position: absolute;
height: 100vh;
justify-content: flex-end;
padding: 0;
h1.single-title {
min-height: 25vh;
}
}
}
}
/* ---------------------------- single header on desktop --------------------------- */ /* ---------------------------- single header on desktop --------------------------- */
@media #{$smalldesktop} { @media #{$smalldesktop} {
min-height: calc(100vh - #{$h-unit-2});
margin-top: 100vh; margin-top: 100vh;
margin-left: $h-unit-1; margin-left: $h-unit-1;
background-color: #fff; background-color: #fff;
@@ -1404,6 +1416,7 @@ body.category.category-esemeny {
position: relative; position: relative;
justify-content: flex-start; justify-content: flex-start;
height: unset; height: unset;
padding-top: 0;
// display: block; // display: block;
.metadata { .metadata {
@@ -1453,9 +1466,9 @@ body.category.category-esemeny {
width: 40%; width: 40%;
} }
&.content-begin { &.content-begin {
margin-top: calc(25vh + #{$padd}); margin-top: $padd;
@media #{$smalldesktop} { @media #{$smalldesktop} {
margin-top: 0; margin-top: 0 !important;
} }
} }
&.content-end { &.content-end {
@@ -1464,6 +1477,13 @@ body.category.category-esemeny {
} }
} }
//override if thumbnail
&.has-post-thumbnail {
hr.content-begin {
margin-top: calc(25vh + #{$padd});
}
}
.single-content { .single-content {
position: relative; position: relative;
padding: $padd; padding: $padd;
@@ -1473,6 +1493,10 @@ body.category.category-esemeny {
padding-right: $h-unit-2; padding-right: $h-unit-2;
} }
h2 {
@include single-h2();
}
h3 { h3 {
@include single-quote(); @include single-quote();
margin: 2rem 0; margin: 2rem 0;
@@ -1500,15 +1524,22 @@ body.category.category-esemeny {
background: #ff5f5f; background: #ff5f5f;
display: inline; display: inline;
padding: 3px 0; padding: 3px 0;
@include box-shadow(10px 0 #ff5f5f, -5px 0 #ff5f5f); @include box-shadow(10px 0 #ff5f5f, -5px 0 #ff5f5f);
} }
cite { cite {
display: block;
position: relative; position: relative;
font-size: 80%; font-size: 80%;
top: 2rem; top: 0.5rem;
left: 2rem;
} }
} }
.wp-block-pullquote {
text-align: unset;
}
.wp-block-image { .wp-block-image {
// padding: $padd 0; // padding: $padd 0;
margin: $padd 0; margin: $padd 0;
@@ -1583,7 +1614,6 @@ body.category.category-esemeny {
float: unset; float: unset;
margin: 0; margin: 0;
@media #{$smalldesktop} { @media #{$smalldesktop} {
width: 100%; width: 100%;
} }
} }
@@ -1591,8 +1621,15 @@ body.category.category-esemeny {
text-align: right; text-align: right;
} }
} }
.authors {
@include single-h4();
a {
@include single-metadata();
} }
} }
} //.single-content end
} //article end
/* -------------------------------- lightbox -------------------------------- */ /* -------------------------------- lightbox -------------------------------- */
#cboxOverlay { #cboxOverlay {
@@ -1674,7 +1711,14 @@ body.category.category-esemeny {
} }
.toHome { .toHome {
@media #{$smalldesktop} { @media #{$smalldesktop} {
position: relative;
padding-top: $padd * 2; padding-top: $padd * 2;
top: -#{$h-unit-1};
padding-right: $h-unit-2;
a {
margin-bottom: $padd * 2;
display: block;
}
} }
} }
@@ -1746,6 +1790,9 @@ body.category.category-esemeny {
/* ------------------------ related posts on desktop ------------------------ */ /* ------------------------ related posts on desktop ------------------------ */
@media #{$smalldesktop} { @media #{$smalldesktop} {
padding-right: $h-unit-2; padding-right: $h-unit-2;
top: -#{$h-unit-1};
position: relative;
padding-top: $padd;
& > h3 { & > h3 {
display: block; display: block;
@@ -1852,7 +1899,16 @@ body.category.category-esemeny {
} }
} }
} }
} //body.single end } //body.single, page end
/* -------------------------------- page only------------------------------- */
body.page {
@media #{$smalldesktop} {
article {
margin-top: $h-unit-2;
}
}
}
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* TAG COLORS */ /* TAG COLORS */
@@ -1948,13 +2004,16 @@ body.category.category-esemeny {
.titlewrapper { .titlewrapper {
.metadata { .metadata {
@media #{$smalldesktop} { @media #{$smalldesktop} {
color: #fff !important; // color: #fff !important;
-webkit-text-stroke: $color 1px !important; -webkit-text-stroke: $color 1px !important;
} }
a { a {
@media #{$smalldesktop} { @media #{$smalldesktop} {
color: #fff !important; color: #fff !important;
-webkit-text-stroke: $color 1px !important; -webkit-text-stroke: $color 1px !important;
&:hover {
color: $color !important;
}
} }
} }
} }
@@ -1968,6 +2027,15 @@ body.category.category-esemeny {
a { a {
color: $color; color: $color;
} }
.authors {
a {
-webkit-text-stroke: $color 1px !important;
&:hover {
color: $color !important;
text-decoration: none;
}
}
}
} }
} }
$color-be: #fdff00; $color-be: #fdff00;
@@ -1979,6 +2047,10 @@ $color-love: #ff5f5f;
.tag-be { .tag-be {
@include tagcolors($color-be); @include tagcolors($color-be);
::selection {
color: #000;
background-color: $color-do;
}
&.random { &.random {
@include tagclip(be); @include tagclip(be);
} }
@@ -1986,6 +2058,10 @@ $color-love: #ff5f5f;
.tag-do { .tag-do {
@include tagcolors($color-do); @include tagcolors($color-do);
::selection {
color: #000;
background-color: $color-be;
}
&.random { &.random {
@include tagclip(do); @include tagclip(do);
} }
@@ -1993,6 +2069,10 @@ $color-love: #ff5f5f;
.tag-think { .tag-think {
@include tagcolors($color-think); @include tagcolors($color-think);
::selection {
color: #000;
background-color: $color-love;
}
&.random { &.random {
@include tagclip(think); @include tagclip(think);
} }
@@ -2000,6 +2080,10 @@ $color-love: #ff5f5f;
.tag-love { .tag-love {
@include tagcolors($color-love); @include tagcolors($color-love);
::selection {
color: #000;
background-color: $color-think;
}
&.random { &.random {
@include tagclip(love); @include tagclip(love);
} }

View File

@@ -19,7 +19,9 @@
<!-- /post thumbnail --> <!-- /post thumbnail -->
<div class="titlewrapper"> <div class="titlewrapper">
<div class="metadata"> <div class="metadata">
<?php if (!is_page()): ?>
<div class="time-cat"> <div class="time-cat">
<?php the_time('Y. m. d.');?> | <?php the_time('Y. m. d.');?> |
<?php the_category(' | ');?> <?php the_category(' | ');?>
@@ -37,7 +39,7 @@
} }
} ?> } ?>
</div> </div>
<?php endif; ?>
</div> </div>
<h1 class="single-title"> <h1 class="single-title">
<?php the_title();?> <?php the_title();?>
@@ -47,7 +49,9 @@
<!-- /post title --> <!-- /post title -->
<div class="single-content"> <div class="single-content">
<?php if (!is_page()): ?>
<hr class="content-wrap content-begin"> <hr class="content-wrap content-begin">
<?php endif; ?>
<?php the_content(); // Dynamic Content ?> <?php the_content(); // Dynamic Content ?>
<?php <?php
@@ -137,9 +141,10 @@
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
← <?php _e('Back to home:', 'dis2019');?> ← <?php _e('Back to home:', 'dis2019');?>
</a> </a>
<hr class="related-wrap single-end">
</div> </div>
<hr class="related-wrap single-end">
</article> </article>
<!-- /article --> <!-- /article -->