added lot of things
This commit is contained in:
32
KÉZIKÖNYV.md
32
KÉZIKÖNYV.md
@@ -1,15 +1,5 @@
|
||||
# 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
|
||||
|
||||
### Bejegyzések
|
||||
@@ -78,9 +68,29 @@ dis-esemeny-link
|
||||
|
||||
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
|
||||
|
||||
|
||||
37
_teendők.md
37
_teendők.md
@@ -1,40 +1,21 @@
|
||||
# Single
|
||||
|
||||
lightbox
|
||||
|
||||
og: tag: pluginnal!
|
||||
|
||||
crop thumbnail a fenti képnél
|
||||
|
||||
á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!!
|
||||
|
||||
jobb oldali margó dupla akkora minimum, és nőjön, hogy a szöveg fix széles maradhasson
|
||||
|
||||
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
|
||||
margók összébb húzni a tartalmat: 1024px | elválasztó vonalakat is szűkebbre venni
|
||||
|
||||
lightbox: mobilon ott ahol van most
|
||||
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
|
||||
szövegben kiemelt résznél link opacity
|
||||
|
||||
|
||||
# Esemény oldal
|
||||
|
||||
@@ -77,13 +58,9 @@ képek magassága és maszk
|
||||
tag archive:
|
||||
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ü
|
||||
|
||||
# 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
|
||||
|
||||
138
css/base.css
138
css/base.css
@@ -19,7 +19,7 @@ html {
|
||||
font-size: 62.5%; }
|
||||
|
||||
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; }
|
||||
|
||||
/* clear */
|
||||
@@ -1617,15 +1617,15 @@ body.category.category-esemeny main {
|
||||
padding: 0; }
|
||||
.single article .titlewrapper,
|
||||
.page article .titlewrapper {
|
||||
position: absolute;
|
||||
position: relative;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
justify-content: flex-start;
|
||||
align-content: flex-start;
|
||||
padding: 0; }
|
||||
padding: 0;
|
||||
padding-top: 10rem; }
|
||||
.single article .titlewrapper .metadata,
|
||||
.page article .titlewrapper .metadata {
|
||||
width: calc(100vw - 5rem);
|
||||
@@ -1651,16 +1651,26 @@ body.category.category-esemeny main {
|
||||
margin: 0;
|
||||
font: 800 3rem "Butler";
|
||||
color: #000;
|
||||
min-height: 25vh;
|
||||
padding: 2rem;
|
||||
background-color: #fff; }
|
||||
@media (min-width: 769px) {
|
||||
.single article .titlewrapper h1.single-title,
|
||||
.page article .titlewrapper h1.single-title {
|
||||
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) {
|
||||
.single article,
|
||||
.page article {
|
||||
min-height: calc(100vh - 10rem);
|
||||
margin-top: 100vh;
|
||||
margin-left: 5rem;
|
||||
background-color: #fff;
|
||||
@@ -1685,7 +1695,8 @@ body.category.category-esemeny main {
|
||||
.page article .titlewrapper {
|
||||
position: relative;
|
||||
justify-content: flex-start;
|
||||
height: unset; }
|
||||
height: unset;
|
||||
padding-top: 0; }
|
||||
.single article .titlewrapper .metadata,
|
||||
.page article .titlewrapper .metadata {
|
||||
top: -5rem;
|
||||
@@ -1744,15 +1755,18 @@ body.category.category-esemeny main {
|
||||
width: 40%; }
|
||||
.single article hr.content-begin,
|
||||
.page article hr.content-begin {
|
||||
margin-top: calc(25vh + 2rem); }
|
||||
margin-top: 2rem; }
|
||||
@media (min-width: 769px) {
|
||||
.single article hr.content-begin,
|
||||
.page article hr.content-begin {
|
||||
margin-top: 0; } }
|
||||
margin-top: 0 !important; } }
|
||||
.single article hr.content-end,
|
||||
.page article hr.content-end {
|
||||
margin-top: 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,
|
||||
.page article .single-content {
|
||||
position: relative;
|
||||
@@ -1763,6 +1777,9 @@ body.category.category-esemeny main {
|
||||
top: -5rem;
|
||||
padding-left: 0;
|
||||
padding-right: 10rem; } }
|
||||
.single article .single-content h2,
|
||||
.page article .single-content h2 {
|
||||
font: 800 3rem "Butler"; }
|
||||
.single article .single-content h3,
|
||||
.page article .single-content h3 {
|
||||
font: 800 2rem "Butler";
|
||||
@@ -1776,7 +1793,8 @@ body.category.category-esemeny main {
|
||||
.single article .single-content h4,
|
||||
.page article .single-content h4 {
|
||||
font-weight: 500;
|
||||
font-size: 2rem; }
|
||||
font-size: 2.4rem;
|
||||
line-height: 1.6; }
|
||||
.single article .single-content a:hover,
|
||||
.page article .single-content a:hover {
|
||||
text-decoration: underline; }
|
||||
@@ -1798,9 +1816,14 @@ body.category.category-esemeny main {
|
||||
box-shadow: 10px 0 #ff5f5f, -5px 0 #ff5f5f; }
|
||||
.single article .single-content blockquote cite,
|
||||
.page article .single-content blockquote cite {
|
||||
display: block;
|
||||
position: relative;
|
||||
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,
|
||||
.page article .single-content .wp-block-image {
|
||||
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-image .alignright {
|
||||
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,
|
||||
.page #cboxOverlay {
|
||||
width: 100%;
|
||||
@@ -2040,7 +2077,14 @@ body.category.category-esemeny main {
|
||||
@media (min-width: 769px) {
|
||||
.single .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,
|
||||
.page #related_posts {
|
||||
/* ------------------------ related posts on desktop ------------------------ */ }
|
||||
@@ -2100,7 +2144,10 @@ body.category.category-esemeny main {
|
||||
@media (min-width: 769px) {
|
||||
.single #related_posts,
|
||||
.page #related_posts {
|
||||
padding-right: 10rem; }
|
||||
padding-right: 10rem;
|
||||
top: -5rem;
|
||||
position: relative;
|
||||
padding-top: 2rem; }
|
||||
.single #related_posts > h3,
|
||||
.page #related_posts > h3 {
|
||||
display: block; }
|
||||
@@ -2236,6 +2283,11 @@ body.category.category-esemeny main {
|
||||
.page #related_posts ul li h2 a {
|
||||
width: calc(100% - 10rem); } }
|
||||
|
||||
/* -------------------------------- page only------------------------------- */
|
||||
@media (min-width: 769px) {
|
||||
body.page article {
|
||||
margin-top: 10rem; } }
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* TAG COLORS */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -2280,6 +2332,10 @@ body.category.category-esemeny main {
|
||||
.tag-be.archive.tag article *:not(.vr) {
|
||||
background-color: #fdff00 !important; }
|
||||
|
||||
.tag-be ::selection {
|
||||
color: #000;
|
||||
background-color: #3c00ff; }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.tag-be.random .thumbnailwrapper > img {
|
||||
-webkit-mask: url(../img/clip/be_desktop.svg);
|
||||
@@ -2330,6 +2386,10 @@ body.category.category-esemeny main {
|
||||
.tag-do.archive.tag article *:not(.vr) {
|
||||
background-color: #3c00ff !important; }
|
||||
|
||||
.tag-do ::selection {
|
||||
color: #000;
|
||||
background-color: #fdff00; }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.tag-do.random .thumbnailwrapper > img {
|
||||
-webkit-mask: url(../img/clip/do_desktop.svg);
|
||||
@@ -2380,6 +2440,10 @@ body.category.category-esemeny main {
|
||||
.tag-think.archive.tag article *:not(.vr) {
|
||||
background-color: #00ffb8 !important; }
|
||||
|
||||
.tag-think ::selection {
|
||||
color: #000;
|
||||
background-color: #ff5f5f; }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.tag-think.random .thumbnailwrapper > img {
|
||||
-webkit-mask: url(../img/clip/think_desktop.svg);
|
||||
@@ -2430,6 +2494,10 @@ body.category.category-esemeny main {
|
||||
.tag-love.archive.tag article *:not(.vr) {
|
||||
background-color: #ff5f5f !important; }
|
||||
|
||||
.tag-love ::selection {
|
||||
color: #000;
|
||||
background-color: #00ffb8; }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.tag-love.random .thumbnailwrapper > img {
|
||||
-webkit-mask: url(../img/clip/love_desktop.svg);
|
||||
@@ -2441,13 +2509,14 @@ body.category.category-esemeny main {
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.single .tag-be .titlewrapper .metadata {
|
||||
color: #fff !important;
|
||||
-webkit-text-stroke: #fdff00 1px !important; } }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.single .tag-be .titlewrapper .metadata a {
|
||||
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 h3 {
|
||||
@@ -2459,15 +2528,22 @@ body.category.category-esemeny main {
|
||||
.single .tag-be .single-content a {
|
||||
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) {
|
||||
.single .tag-do .titlewrapper .metadata {
|
||||
color: #fff !important;
|
||||
-webkit-text-stroke: #3c00ff 1px !important; } }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.single .tag-do .titlewrapper .metadata a {
|
||||
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 h3 {
|
||||
@@ -2479,15 +2555,22 @@ body.category.category-esemeny main {
|
||||
.single .tag-do .single-content a {
|
||||
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) {
|
||||
.single .tag-think .titlewrapper .metadata {
|
||||
color: #fff !important;
|
||||
-webkit-text-stroke: #00ffb8 1px !important; } }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.single .tag-think .titlewrapper .metadata a {
|
||||
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 h3 {
|
||||
@@ -2499,15 +2582,22 @@ body.category.category-esemeny main {
|
||||
.single .tag-think .single-content a {
|
||||
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) {
|
||||
.single .tag-love .titlewrapper .metadata {
|
||||
color: #fff !important;
|
||||
-webkit-text-stroke: #ff5f5f 1px !important; } }
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.single .tag-love .titlewrapper .metadata a {
|
||||
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 h3 {
|
||||
@@ -2519,6 +2609,12 @@ body.category.category-esemeny main {
|
||||
.single .tag-love .single-content a {
|
||||
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,
|
||||
.header-1.hover-tag-be,
|
||||
.header-2.hover-tag-be {
|
||||
|
||||
60
customizer.php
Normal file
60
customizer.php
Normal 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');
|
||||
|
||||
?>
|
||||
@@ -16,11 +16,17 @@ External Modules/Files
|
||||
//ChromePhp::log('Hello console!');
|
||||
|
||||
// Debug $data will display in console
|
||||
function console_debug( $data ) {
|
||||
function console_debug($data)
|
||||
{
|
||||
$data = json_encode($data);
|
||||
echo "<script>console.dir($data)</script>";
|
||||
}
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
include get_template_directory() . '/customizer.php';
|
||||
|
||||
/*------------------------------------*\
|
||||
Theme Support
|
||||
\*------------------------------------*/
|
||||
@@ -144,16 +150,16 @@ function dis2019_header_scripts()
|
||||
wp_register_script('modernizr', get_template_directory_uri() . '/js/lib/modernizr-custom.js', array(), '2.7.1'); // Modernizr
|
||||
wp_enqueue_script('modernizr'); // Enqueue it!
|
||||
|
||||
wp_register_script('simpler-sidebar', get_template_directory_uri() . '/js/lib/jquery.simpler-sidebar.min.js', array('jquery'), '2.2.5'); //
|
||||
wp_register_script('simpler-sidebar', get_template_directory_uri() . '/js/lib/jquery.simpler-sidebar.min.js', array('jquery'), '2.2.5'); //
|
||||
wp_enqueue_script('simpler-sidebar'); // Enqueue it!
|
||||
|
||||
// wp_register_script('snap-scroll', get_template_directory_uri() . '/js/lib/snap-scroll.min.js', array('jquery'), '1.0.0'); //
|
||||
// wp_register_script('snap-scroll', get_template_directory_uri() . '/js/lib/snap-scroll.min.js', array('jquery'), '1.0.0'); //
|
||||
// wp_enqueue_script('snap-scroll'); // Enqueue it!
|
||||
|
||||
wp_register_script('jquery.colorbox', get_template_directory_uri() . '/js/lib/jquery.colorbox-min.js', array('jquery'), '1.0.0'); //
|
||||
wp_register_script('jquery.colorbox', get_template_directory_uri() . '/js/lib/jquery.colorbox-min.js', array('jquery'), '1.0.0'); //
|
||||
wp_enqueue_script('jquery.colorbox'); // Enqueue it!
|
||||
|
||||
wp_register_script('lettering', get_template_directory_uri() . '/js/lib/jquery.lettering.js', array('jquery'), '1.0.0'); //
|
||||
wp_register_script('lettering', get_template_directory_uri() . '/js/lib/jquery.lettering.js', array('jquery'), '1.0.0'); //
|
||||
wp_enqueue_script('lettering'); // Enqueue it!
|
||||
|
||||
wp_register_script('dis2019scripts', get_template_directory_uri() . '/js/scripts.js', array(
|
||||
@@ -196,12 +202,11 @@ function dis2019_styles()
|
||||
}
|
||||
|
||||
//remove events from home page
|
||||
// !!!add event cat id to here!!!!
|
||||
//search keywords: event esemeny esemény category
|
||||
function exclude_category_home($query)
|
||||
{
|
||||
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;
|
||||
@@ -209,17 +214,13 @@ function exclude_category_home($query)
|
||||
|
||||
add_filter('pre_get_posts', 'exclude_category_home');
|
||||
|
||||
|
||||
|
||||
// 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);
|
||||
function dis_2019_order_events_by_date(&$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;
|
||||
}
|
||||
|
||||
@@ -522,15 +523,16 @@ function dis_2019_more_posts_on_home(&$query)
|
||||
if (!$query->is_home() && !$query->is_archive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if ($query->is_home()) {
|
||||
$pposts = 14;
|
||||
$pposts = get_theme_mod( 'dis-2019-posts-on-home' );
|
||||
} elseif ($query->is_tag()) {
|
||||
$pposts = 10;
|
||||
$pposts = get_theme_mod( 'dis-2019-posts-on-tag' );;
|
||||
} elseif (!$query->in_the_loop()) {
|
||||
return;
|
||||
} else {
|
||||
$pposts = 6;
|
||||
$pposts = get_option( 'posts_per_page' );
|
||||
// $pposts = 6;
|
||||
}
|
||||
|
||||
//set post_per_page if it's homepage
|
||||
@@ -734,7 +736,6 @@ function dis2019_register_taxonomy_writer()
|
||||
'not_found' => __('No writer found', 'dis2019'),
|
||||
'back_to_items' => __('Back to writers', 'dis2019'),
|
||||
|
||||
|
||||
];
|
||||
$args = [
|
||||
'hierarchical' => false, // make it hierarchical (like categories)
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<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"
|
||||
type="image/svg+xml">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/naptar_icon.png" />
|
||||
|
||||
@@ -871,6 +871,11 @@
|
||||
window.open(href, "_self")
|
||||
})
|
||||
|
||||
/* ----------------------------- scroll to title ---------------------------- */
|
||||
|
||||
const titleWrapperHeight = $('article>.titlewrapper')[0].getBoundingClientRect().height
|
||||
$('html, body').stop().animate({ scrollTop: titleWrapperHeight }, 400);
|
||||
|
||||
|
||||
}//if single end
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"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"
|
||||
"Last-Translator: Jürgen Rabe | www.egado.de <rabe@egado.de>\n"
|
||||
"Language-Team: \n"
|
||||
@@ -24,169 +24,201 @@ msgstr ""
|
||||
msgid "Return home?"
|
||||
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."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:238
|
||||
msgid "Main menu left"
|
||||
#: ../customizer.php:16
|
||||
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 ""
|
||||
|
||||
#: ../functions.php:239
|
||||
msgid "Main menu left"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:240
|
||||
msgid "Main menu right"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:241
|
||||
#: ../functions.php:242
|
||||
msgid "Circular tags"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:367
|
||||
#: ../functions.php:368
|
||||
msgid "View Article"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:431
|
||||
#: ../functions.php:432
|
||||
#, php-format
|
||||
msgid "<cite class=\"fn\">%s</cite> <span class=\"says\">says:</span>"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:434
|
||||
#: ../functions.php:435
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:440
|
||||
#: ../functions.php:441
|
||||
#, php-format
|
||||
msgid "%1$s at %2$s"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:440
|
||||
#: ../functions.php:441
|
||||
msgid "(Edit)"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:682
|
||||
#: ../functions.php:684
|
||||
msgid "Search Formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:683
|
||||
#: ../functions.php:685
|
||||
msgid "All Formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:684
|
||||
#: ../functions.php:686
|
||||
msgid "Parent Format"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:685
|
||||
#: ../functions.php:687
|
||||
msgid "Parent Format:"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:686
|
||||
#: ../functions.php:688
|
||||
msgid "Edit Format"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:687
|
||||
#: ../functions.php:689
|
||||
msgid "Update Format"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:688
|
||||
#: ../functions.php:690
|
||||
msgid "Add New Format"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:689
|
||||
#: ../functions.php:691
|
||||
msgid "New Format Name"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:690
|
||||
#: ../functions.php:692
|
||||
msgid "Formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:692
|
||||
#: ../functions.php:694
|
||||
msgid "View Formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:693
|
||||
#: ../functions.php:695
|
||||
msgid "Popular Formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:694
|
||||
#: ../functions.php:696
|
||||
msgid "Separate formats with commas"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:695
|
||||
#: ../functions.php:697
|
||||
msgid "Add or remove formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:696
|
||||
#: ../functions.php:698
|
||||
msgid "Choose from most used formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:697
|
||||
#: ../functions.php:699
|
||||
msgid "No formats found"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:698
|
||||
#: ../functions.php:700
|
||||
msgid "Back to formats"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:719
|
||||
#: ../functions.php:721
|
||||
msgid "Search Writers"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:720
|
||||
#: ../functions.php:722
|
||||
msgid "All Writers"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:721
|
||||
#: ../functions.php:723
|
||||
msgid "Parent Writer"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:722
|
||||
#: ../functions.php:724
|
||||
msgid "Parent Writer:"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:723
|
||||
#: ../functions.php:725
|
||||
msgid "Edit Writer"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:724
|
||||
#: ../functions.php:726
|
||||
msgid "Update Writer"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:725
|
||||
#: ../functions.php:727
|
||||
msgid "Add New Writer"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:726
|
||||
#: ../functions.php:728
|
||||
msgid "New Writer Name"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:727
|
||||
#: ../functions.php:729
|
||||
msgid "Writers"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:729
|
||||
#: ../functions.php:731
|
||||
msgid "View Writers"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:730
|
||||
#: ../functions.php:732
|
||||
msgid "Popular Writers"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:731
|
||||
#: ../functions.php:733
|
||||
msgid "Separate writers with commas"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:732
|
||||
#: ../functions.php:734
|
||||
msgid "Add or remove writers"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:733
|
||||
#: ../functions.php:735
|
||||
msgid "Choose from most used writer"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:734
|
||||
#: ../functions.php:736
|
||||
msgid "No writer found"
|
||||
msgstr ""
|
||||
|
||||
#: ../functions.php:735
|
||||
#: ../functions.php:737
|
||||
msgid "Back to writers"
|
||||
msgstr ""
|
||||
|
||||
@@ -294,11 +326,11 @@ msgstr ""
|
||||
msgid "%s Search Results for "
|
||||
msgstr ""
|
||||
|
||||
#: ../single.php:93
|
||||
#: ../singular.php:93
|
||||
msgid "More posts:"
|
||||
msgstr ""
|
||||
|
||||
#: ../single.php:121
|
||||
#: ../singular.php:138
|
||||
msgid "Back to home:"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"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"
|
||||
"Last-Translator: Sallay Arnold <arnold@sallay.info>\n"
|
||||
"Language-Team: \n"
|
||||
@@ -24,169 +24,201 @@ msgstr "A keresett oldal nem található"
|
||||
msgid "Return home?"
|
||||
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."
|
||||
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"
|
||||
msgstr "Főmenü bal"
|
||||
|
||||
#: ../functions.php:239
|
||||
#: ../functions.php:240
|
||||
msgid "Main menu right"
|
||||
msgstr "Főmenü jobb"
|
||||
|
||||
#: ../functions.php:241
|
||||
#: ../functions.php:242
|
||||
msgid "Circular tags"
|
||||
msgstr "Kör címkék"
|
||||
|
||||
#: ../functions.php:367
|
||||
#: ../functions.php:368
|
||||
msgid "View Article"
|
||||
msgstr "Tartalom Megtekintése"
|
||||
|
||||
#: ../functions.php:431
|
||||
#: ../functions.php:432
|
||||
#, php-format
|
||||
msgid "<cite class=\"fn\">%s</cite> <span class=\"says\">says:</span>"
|
||||
msgstr "<cite class=\"fn\">%s</cite> <span class=\"says\">:</span>"
|
||||
|
||||
#: ../functions.php:434
|
||||
#: ../functions.php:435
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "A hozzászólás moderálásra vár."
|
||||
|
||||
#: ../functions.php:440
|
||||
#: ../functions.php:441
|
||||
#, php-format
|
||||
msgid "%1$s at %2$s"
|
||||
msgstr "%1$s - %2$s"
|
||||
|
||||
#: ../functions.php:440
|
||||
#: ../functions.php:441
|
||||
msgid "(Edit)"
|
||||
msgstr "(Szerkesztés)"
|
||||
|
||||
#: ../functions.php:682
|
||||
#: ../functions.php:684
|
||||
msgid "Search Formats"
|
||||
msgstr "Formátumok keresése"
|
||||
|
||||
#: ../functions.php:683
|
||||
#: ../functions.php:685
|
||||
msgid "All Formats"
|
||||
msgstr "Minden formátum"
|
||||
|
||||
#: ../functions.php:684
|
||||
#: ../functions.php:686
|
||||
msgid "Parent Format"
|
||||
msgstr "Szülő formátum"
|
||||
|
||||
#: ../functions.php:685
|
||||
#: ../functions.php:687
|
||||
msgid "Parent Format:"
|
||||
msgstr "Szülő formátum:"
|
||||
|
||||
#: ../functions.php:686
|
||||
#: ../functions.php:688
|
||||
msgid "Edit Format"
|
||||
msgstr "Formátum szerkesztése"
|
||||
|
||||
#: ../functions.php:687
|
||||
#: ../functions.php:689
|
||||
msgid "Update Format"
|
||||
msgstr "Formátum frissítése"
|
||||
|
||||
#: ../functions.php:688
|
||||
#: ../functions.php:690
|
||||
msgid "Add New Format"
|
||||
msgstr "Új formátum hozzáadása"
|
||||
|
||||
#: ../functions.php:689
|
||||
#: ../functions.php:691
|
||||
msgid "New Format Name"
|
||||
msgstr "Új formátum neve"
|
||||
|
||||
#: ../functions.php:690
|
||||
#: ../functions.php:692
|
||||
msgid "Formats"
|
||||
msgstr "Formátumok"
|
||||
|
||||
#: ../functions.php:692
|
||||
#: ../functions.php:694
|
||||
msgid "View Formats"
|
||||
msgstr "Formátumok megjelenítése"
|
||||
|
||||
#: ../functions.php:693
|
||||
#: ../functions.php:695
|
||||
msgid "Popular Formats"
|
||||
msgstr "Népszerű formátumok"
|
||||
|
||||
#: ../functions.php:694
|
||||
#: ../functions.php:696
|
||||
msgid "Separate formats with commas"
|
||||
msgstr "Formátumokat vesszővel válaszd el"
|
||||
|
||||
#: ../functions.php:695
|
||||
#: ../functions.php:697
|
||||
msgid "Add or remove formats"
|
||||
msgstr "Formátumok hozzáadása vagy eltávolítása"
|
||||
|
||||
#: ../functions.php:696
|
||||
#: ../functions.php:698
|
||||
msgid "Choose from most used formats"
|
||||
msgstr "Választás a leggyakoribb formátumok közül"
|
||||
|
||||
#: ../functions.php:697
|
||||
#: ../functions.php:699
|
||||
msgid "No formats found"
|
||||
msgstr "Formátum nem található"
|
||||
|
||||
#: ../functions.php:698
|
||||
#: ../functions.php:700
|
||||
msgid "Back to formats"
|
||||
msgstr "Vissza a formátumokhoz"
|
||||
|
||||
#: ../functions.php:719
|
||||
#: ../functions.php:721
|
||||
msgid "Search Writers"
|
||||
msgstr "Cikkírók keresése"
|
||||
|
||||
#: ../functions.php:720
|
||||
#: ../functions.php:722
|
||||
msgid "All Writers"
|
||||
msgstr "Minden cikkíró"
|
||||
|
||||
#: ../functions.php:721
|
||||
#: ../functions.php:723
|
||||
msgid "Parent Writer"
|
||||
msgstr "Szülő cikkíró"
|
||||
|
||||
#: ../functions.php:722
|
||||
#: ../functions.php:724
|
||||
msgid "Parent Writer:"
|
||||
msgstr "Szülő cikkíró:"
|
||||
|
||||
#: ../functions.php:723
|
||||
#: ../functions.php:725
|
||||
msgid "Edit Writer"
|
||||
msgstr "Cikkíró szerkesztése"
|
||||
|
||||
#: ../functions.php:724
|
||||
#: ../functions.php:726
|
||||
msgid "Update Writer"
|
||||
msgstr "Cikkíró frissítése"
|
||||
|
||||
#: ../functions.php:725
|
||||
#: ../functions.php:727
|
||||
msgid "Add New Writer"
|
||||
msgstr "Új cikkíró hozzáadása"
|
||||
|
||||
#: ../functions.php:726
|
||||
#: ../functions.php:728
|
||||
msgid "New Writer Name"
|
||||
msgstr "Új cikkíró neve"
|
||||
|
||||
#: ../functions.php:727
|
||||
#: ../functions.php:729
|
||||
msgid "Writers"
|
||||
msgstr "Cikkírók"
|
||||
|
||||
#: ../functions.php:729
|
||||
#: ../functions.php:731
|
||||
msgid "View Writers"
|
||||
msgstr "Cikkírók Megtekintése"
|
||||
|
||||
#: ../functions.php:730
|
||||
#: ../functions.php:732
|
||||
msgid "Popular Writers"
|
||||
msgstr "Népszerű cikkírók"
|
||||
|
||||
#: ../functions.php:731
|
||||
#: ../functions.php:733
|
||||
msgid "Separate writers with commas"
|
||||
msgstr "Cikkírókat vesszővel válaszd el"
|
||||
|
||||
#: ../functions.php:732
|
||||
#: ../functions.php:734
|
||||
msgid "Add or remove writers"
|
||||
msgstr "Cikkírók hozzáadása vagy eltávolítása"
|
||||
|
||||
#: ../functions.php:733
|
||||
#: ../functions.php:735
|
||||
msgid "Choose from most used writer"
|
||||
msgstr "Választás a leggyakoribb cikkírók közül"
|
||||
|
||||
#: ../functions.php:734
|
||||
#: ../functions.php:736
|
||||
msgid "No writer found"
|
||||
msgstr "Cikkíró nem található"
|
||||
|
||||
#: ../functions.php:735
|
||||
#: ../functions.php:737
|
||||
msgid "Back to writers"
|
||||
msgstr "Vissza a cikkírókhoz"
|
||||
|
||||
@@ -294,11 +326,11 @@ msgstr ""
|
||||
msgid "%s Search Results for "
|
||||
msgstr "%s Találatok "
|
||||
|
||||
#: ../single.php:93
|
||||
#: ../singular.php:93
|
||||
msgid "More posts:"
|
||||
msgstr "További cikkeink:"
|
||||
|
||||
#: ../single.php:121
|
||||
#: ../singular.php:138
|
||||
msgid "Back to home:"
|
||||
msgstr "Vissza a főoldalra"
|
||||
|
||||
|
||||
@@ -149,12 +149,18 @@
|
||||
font: 900 2rem "Westeinde Caption";
|
||||
color: #fff;
|
||||
-webkit-text-stroke: #000 1px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@mixin single-h2 {
|
||||
font: 800 3rem "Butler";
|
||||
}
|
||||
|
||||
@mixin single-h4 {
|
||||
font-weight: 500;
|
||||
font-size: 2rem;
|
||||
font-size: 2.4rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@mixin captiontext {
|
||||
|
||||
122
sass/base.scss
122
sass/base.scss
@@ -19,7 +19,8 @@ html {
|
||||
font-size: 62.5%;
|
||||
}
|
||||
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;
|
||||
}
|
||||
/* clear */
|
||||
@@ -1311,11 +1312,6 @@ body.category.category-esemeny {
|
||||
$padd: 2rem;
|
||||
/* ---------------------------- single on mobile ---------------------------- */
|
||||
article {
|
||||
// & > *,
|
||||
// h1.single-title {
|
||||
// padding: $padd;
|
||||
// margin: 0;
|
||||
// }
|
||||
padding-bottom: $h-unit-1;
|
||||
|
||||
.thumbnailwrapper {
|
||||
@@ -1331,15 +1327,16 @@ body.category.category-esemeny {
|
||||
}
|
||||
|
||||
.titlewrapper {
|
||||
position: absolute;
|
||||
position: relative;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
// height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
justify-content: flex-start;
|
||||
align-content: flex-start;
|
||||
padding: 0;
|
||||
padding-top: $h-unit-2;
|
||||
|
||||
.metadata {
|
||||
width: calc(100vw - #{$h-unit-1});
|
||||
@@ -1359,15 +1356,30 @@ body.category.category-esemeny {
|
||||
h1.single-title {
|
||||
margin: 0;
|
||||
@include single-title();
|
||||
min-height: 25vh;
|
||||
padding: $padd;
|
||||
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 --------------------------- */
|
||||
|
||||
@media #{$smalldesktop} {
|
||||
min-height: calc(100vh - #{$h-unit-2});
|
||||
margin-top: 100vh;
|
||||
margin-left: $h-unit-1;
|
||||
background-color: #fff;
|
||||
@@ -1404,6 +1416,7 @@ body.category.category-esemeny {
|
||||
position: relative;
|
||||
justify-content: flex-start;
|
||||
height: unset;
|
||||
padding-top: 0;
|
||||
// display: block;
|
||||
|
||||
.metadata {
|
||||
@@ -1453,9 +1466,9 @@ body.category.category-esemeny {
|
||||
width: 40%;
|
||||
}
|
||||
&.content-begin {
|
||||
margin-top: calc(25vh + #{$padd});
|
||||
margin-top: $padd;
|
||||
@media #{$smalldesktop} {
|
||||
margin-top: 0;
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
}
|
||||
&.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 {
|
||||
position: relative;
|
||||
padding: $padd;
|
||||
@@ -1473,6 +1493,10 @@ body.category.category-esemeny {
|
||||
padding-right: $h-unit-2;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@include single-h2();
|
||||
}
|
||||
|
||||
h3 {
|
||||
@include single-quote();
|
||||
margin: 2rem 0;
|
||||
@@ -1500,15 +1524,22 @@ body.category.category-esemeny {
|
||||
background: #ff5f5f;
|
||||
display: inline;
|
||||
padding: 3px 0;
|
||||
|
||||
@include box-shadow(10px 0 #ff5f5f, -5px 0 #ff5f5f);
|
||||
}
|
||||
cite {
|
||||
display: block;
|
||||
position: relative;
|
||||
font-size: 80%;
|
||||
top: 2rem;
|
||||
top: 0.5rem;
|
||||
left: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
.wp-block-image {
|
||||
// padding: $padd 0;
|
||||
margin: $padd 0;
|
||||
@@ -1583,16 +1614,22 @@ body.category.category-esemeny {
|
||||
float: unset;
|
||||
margin: 0;
|
||||
@media #{$smalldesktop} {
|
||||
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.alignright{
|
||||
.alignright {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.authors {
|
||||
@include single-h4();
|
||||
a {
|
||||
@include single-metadata();
|
||||
}
|
||||
}
|
||||
} //.single-content end
|
||||
} //article end
|
||||
/* -------------------------------- lightbox -------------------------------- */
|
||||
|
||||
#cboxOverlay {
|
||||
@@ -1674,7 +1711,14 @@ body.category.category-esemeny {
|
||||
}
|
||||
.toHome {
|
||||
@media #{$smalldesktop} {
|
||||
position: relative;
|
||||
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 ------------------------ */
|
||||
@media #{$smalldesktop} {
|
||||
padding-right: $h-unit-2;
|
||||
top: -#{$h-unit-1};
|
||||
position: relative;
|
||||
padding-top: $padd;
|
||||
|
||||
& > h3 {
|
||||
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 */
|
||||
@@ -1948,13 +2004,16 @@ body.category.category-esemeny {
|
||||
.titlewrapper {
|
||||
.metadata {
|
||||
@media #{$smalldesktop} {
|
||||
color: #fff !important;
|
||||
// color: #fff !important;
|
||||
-webkit-text-stroke: $color 1px !important;
|
||||
}
|
||||
a {
|
||||
@media #{$smalldesktop} {
|
||||
color: #fff !important;
|
||||
-webkit-text-stroke: $color 1px !important;
|
||||
&:hover {
|
||||
color: $color !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1968,6 +2027,15 @@ body.category.category-esemeny {
|
||||
a {
|
||||
color: $color;
|
||||
}
|
||||
.authors {
|
||||
a {
|
||||
-webkit-text-stroke: $color 1px !important;
|
||||
&:hover {
|
||||
color: $color !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$color-be: #fdff00;
|
||||
@@ -1979,6 +2047,10 @@ $color-love: #ff5f5f;
|
||||
|
||||
.tag-be {
|
||||
@include tagcolors($color-be);
|
||||
::selection {
|
||||
color: #000;
|
||||
background-color: $color-do;
|
||||
}
|
||||
&.random {
|
||||
@include tagclip(be);
|
||||
}
|
||||
@@ -1986,6 +2058,10 @@ $color-love: #ff5f5f;
|
||||
|
||||
.tag-do {
|
||||
@include tagcolors($color-do);
|
||||
::selection {
|
||||
color: #000;
|
||||
background-color: $color-be;
|
||||
}
|
||||
&.random {
|
||||
@include tagclip(do);
|
||||
}
|
||||
@@ -1993,6 +2069,10 @@ $color-love: #ff5f5f;
|
||||
|
||||
.tag-think {
|
||||
@include tagcolors($color-think);
|
||||
::selection {
|
||||
color: #000;
|
||||
background-color: $color-love;
|
||||
}
|
||||
&.random {
|
||||
@include tagclip(think);
|
||||
}
|
||||
@@ -2000,6 +2080,10 @@ $color-love: #ff5f5f;
|
||||
|
||||
.tag-love {
|
||||
@include tagcolors($color-love);
|
||||
::selection {
|
||||
color: #000;
|
||||
background-color: $color-think;
|
||||
}
|
||||
&.random {
|
||||
@include tagclip(love);
|
||||
}
|
||||
|
||||
87
singular.php
87
singular.php
@@ -11,34 +11,36 @@
|
||||
|
||||
<!-- post thumbnail -->
|
||||
<?php if (has_post_thumbnail()): // Check if Thumbnail exists ?>
|
||||
<div class="thumbnailwrapper">
|
||||
<?php the_post_thumbnail(); // Fullsize image for the single post ?>
|
||||
</div>
|
||||
<div class="thumbnailwrapper">
|
||||
<?php the_post_thumbnail(); // Fullsize image for the single post ?>
|
||||
</div>
|
||||
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<!-- /post thumbnail -->
|
||||
|
||||
<div class="titlewrapper">
|
||||
|
||||
<div class="metadata">
|
||||
<div class="time-cat">
|
||||
<?php the_time('Y. m. d.');?> |
|
||||
<?php the_category(' | ');?>
|
||||
</div>
|
||||
<div class="format">
|
||||
<?php
|
||||
$terms = get_the_terms( $post->ID, 'Format' );
|
||||
if ($terms && ! is_wp_error( $terms )) {
|
||||
foreach($terms as $term) {
|
||||
?>
|
||||
<a href="<?php echo esc_url(get_term_link( $term));?>">
|
||||
<?php
|
||||
echo $term->name;
|
||||
echo '</a>';
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php if (!is_page()): ?>
|
||||
<div class="time-cat">
|
||||
<?php the_time('Y. m. d.');?> |
|
||||
<?php the_category(' | ');?>
|
||||
</div>
|
||||
<div class="format">
|
||||
<?php
|
||||
$terms = get_the_terms( $post->ID, 'Format' );
|
||||
if ($terms && ! is_wp_error( $terms )) {
|
||||
foreach($terms as $term) {
|
||||
?>
|
||||
<a href="<?php echo esc_url(get_term_link( $term));?>">
|
||||
<?php
|
||||
echo $term->name;
|
||||
echo '</a>';
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<h1 class="single-title">
|
||||
<?php the_title();?>
|
||||
</h1>
|
||||
@@ -47,24 +49,26 @@
|
||||
<!-- /post title -->
|
||||
|
||||
<div class="single-content">
|
||||
<hr class="content-wrap content-begin">
|
||||
<?php the_content(); // Dynamic Content ?>
|
||||
<?php if (!is_page()): ?>
|
||||
<hr class="content-wrap content-begin">
|
||||
<?php endif; ?>
|
||||
<?php the_content(); // Dynamic Content ?>
|
||||
|
||||
<?php
|
||||
$terms = get_the_terms( $post->ID, 'Writer' );
|
||||
if ($terms && ! is_wp_error( $terms )) {
|
||||
?>
|
||||
<p class="authors">Szerző:
|
||||
<?php
|
||||
foreach($terms as $term) {
|
||||
?>
|
||||
<a href="<?php echo esc_url(get_term_link( $term));?>">
|
||||
<?php echo $term->name; ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
echo '<p>';
|
||||
} ?>
|
||||
<?php
|
||||
$terms = get_the_terms( $post->ID, 'Writer' );
|
||||
if ($terms && ! is_wp_error( $terms )) {
|
||||
?>
|
||||
<p class="authors">Szerző:
|
||||
<?php
|
||||
foreach($terms as $term) {
|
||||
?>
|
||||
<a href="<?php echo esc_url(get_term_link( $term));?>">
|
||||
<?php echo $term->name; ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
echo '<p>';
|
||||
} ?>
|
||||
|
||||
<hr class="content-wrap content-end">
|
||||
</div>
|
||||
@@ -137,9 +141,10 @@
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
← <?php _e('Back to home:', 'dis2019');?>
|
||||
</a>
|
||||
<hr class="related-wrap single-end">
|
||||
</div>
|
||||
|
||||
<hr class="related-wrap single-end">
|
||||
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
Reference in New Issue
Block a user