29 Commits

Author SHA1 Message Date
infeeeee
ae10f90786 fix regex for always full size image in lightbox 2019-10-08 21:32:35 +02:00
infeeeee
adf4fac0b6 1.0.14 fix js on images 2019-10-08 17:15:27 +02:00
infeeeee
5698d30b20 bump 1.0.13 2019-10-08 17:02:28 +02:00
infeeeee
e18fbae0cb load full image in lightbox 2019-10-08 17:01:06 +02:00
infeeeee
dc5fe103c8 loadmore on events page 2019-10-08 16:16:37 +02:00
infeeeee
b4249a2819 restore old single metadata top left corner 2019-10-08 15:43:32 +02:00
infeeeee
0f971d6028 show events on current day 2019-10-08 15:35:51 +02:00
infeeeee
ea1b0a3bd1 removed image size overwrites 2019-10-08 15:20:46 +02:00
infeeeee
220d070542 1.0.12 restore strange line on firefox mobile 2019-10-05 20:34:07 +02:00
infeeeee
aa1b55dc64 bump 1.0.11 2019-10-04 23:00:08 +02:00
infeeeee
2709f6bfa7 basic media print rules 2019-10-04 22:57:30 +02:00
infeeeee
98e962b7e8 fix swipe on iphone on lightbox 2019-10-04 18:24:31 +02:00
infeeeee
4a6741bcb7 half pixel line on firefox preview on single 2019-10-04 16:46:54 +02:00
infeeeee
1c50dbe6bf fix space after category on single 2019-10-04 15:58:46 +02:00
infeeeee
be6fc66034 home-big-thumbnal on mobile 2019-10-04 15:51:52 +02:00
infeeeee
86bc0e72b7 hide alcim if not enough space 2019-10-04 15:43:25 +02:00
infeeeee
c74d515a8a Merge branch 'master' of http://git.gyetpet.dynu.net/infeeeee/dis-2019 2019-10-03 16:19:45 +02:00
infeeeee
ea09fa398b work on alcim on big articles 2019-10-03 16:13:36 +02:00
2a4bf1719f bump 1.0.10 2019-09-13 17:49:22 +02:00
cbfeec7209 changed image sizes 2019-09-13 17:48:41 +02:00
e39cbe2022 bump 1.0.9 2019-09-13 17:23:18 +02:00
7bf40452c3 changed home-big-thumbnail size 2019-09-13 17:21:51 +02:00
infeeeee
ea796f041b bump 1.0.8 2019-09-13 16:29:58 +02:00
infeeeee
69a36eb456 fixed related post font size 2019-09-13 16:29:22 +02:00
infeeeee
810fdd7489 removed conditionizr and unused js libs 2019-09-13 16:14:50 +02:00
infeeeee
ec3e5525a5 fix lazyload on old images 2019-09-13 16:11:23 +02:00
infeeeee
f0e2e44980 change author text size 2019-09-13 15:46:23 +02:00
infeeeee
98fc38b770 fix italics in blockquote in old articles 2019-09-13 15:34:32 +02:00
infeeeee
50f424cfa7 show facebook boxes on bottom of single 2019-09-13 15:30:23 +02:00
19 changed files with 3678 additions and 263 deletions

View File

@@ -1,11 +0,0 @@
# Single - ✔
og: tag: pluginnal!
# egyéb
`@media print{}`
régi interjú ne legyen dőlt
scroll a galléria nézetben

View File

@@ -4,85 +4,9 @@
<!-- section -->
<section>
<?php if (have_posts()): while (have_posts()): the_post();?>
<?php
$event_datum = get_post_meta( get_the_ID(), 'dis-esemeny-datum', true );
$event_link = get_post_meta( get_the_ID(), 'dis-esemeny-link', true );
?>
<article id="post-<?php the_ID();?>" <?php post_class();?>>
<!-- post thumbnail -->
<?php if (has_post_thumbnail()): // Check if thumbnail exists ?>
<a class="thumbnailwrapper" href="<?php echo $event_link; ?>" title="<?php the_title();?>" target="_blank">
<?php the_post_thumbnail('home-event-thumbnail');?>
</a>
<?php endif;?>
<!-- /post thumbnail -->
<div class="event-metadata">
<div class="top-row">
<div class="ev-date">
<?php
echo preg_replace('/^(\d{4}\.)(\d{2}\.)(\d{2}\.)$/','\1</br>\2 \3',$event_datum );
// echo $event_datum;
?>
</div>
<!-- Arrow -->
<a href="<?php echo $event_link; ?>" target="_blank" class="arrow-link">
</a>
</div>
<div class="hr">
</div>
<div class="bottom-row">
<!-- title -->
<h2>
<a href="<?php echo $event_link; ?>" target="_blank"><?php the_title();?></a>
</h2>
<div class="vr"></div>
<!-- Tovább button -->
<a href="<?php echo $event_link; ?>" class="text-link" target="_blank">Tovább az eseményre</a>
</div>
</div><!-- end event-metadata -->
<!-- post title -->
<!-- /post title -->
</article>
<?php endwhile;?>
<?php else: ?>
<!-- article -->
<article>
<h2><?php _e('Sorry, nothing to display.', 'dis2019');?></h2>
</article>
<!-- /article -->
<?php endif;?>
<?php include locate_template('loop-esemeny.php', false, false);?>
<?php get_template_part('loadmore');?>
</section>
<!-- /section -->

File diff suppressed because one or more lines are too long

View File

@@ -36,13 +36,13 @@ if (function_exists('add_theme_support')) {
// Add Thumbnail Theme Support
add_theme_support('post-thumbnails');
add_image_size('large', 700, '', true); // Large Thumbnail
add_image_size('medium', 250, '', true); // Medium Thumbnail
add_image_size('small', 120, '', true); // Small Thumbnail
// add_image_size('large', 700, '', true); // Large Thumbnail
// add_image_size('medium', 250, '', true); // Medium Thumbnail
// add_image_size('small', 120, '', true); // Small Thumbnail
add_image_size('home-big-thumbnail', 1024, 1024, true); // Custom Thumbnail Size call using the_post_thumbnail('home-thumbnail');
add_image_size('home-small-thumbnail', 256, 256, true); // Custom Thumbnail Size call using the_post_thumbnail('home-thumbnail');
add_image_size('home-event-thumbnail', 1024, 537, true);
add_image_size('single-thumbnail', 1280, 1280, true);
add_image_size('single-thumbnail', 1366, 1280, true);
// Add Support for Custom Backgrounds - Uncomment below if you're going to use
/*add_theme_support('custom-background', array(
@@ -107,8 +107,8 @@ function dis2019_header_scripts()
wp_deregister_script('jquery');
wp_register_script('jquery', get_template_directory_uri() . '/js/lib/jquery-3.3.1.min.js', array(), '3.3.1');
wp_register_script('conditionizr', get_template_directory_uri() . '/js/lib/conditionizr-4.3.0.min.js', array(), '4.3.0'); // Conditionizr
wp_enqueue_script('conditionizr'); // Enqueue it!
// wp_register_script('conditionizr', get_template_directory_uri() . '/js/lib/conditionizr-4.3.0.min.js', array(), '4.3.0'); // Conditionizr
// wp_enqueue_script('conditionizr'); // Enqueue it!
wp_register_script('modernizr', get_template_directory_uri() . '/js/lib/modernizr-custom.js', array(), '2.7.1'); // Modernizr
wp_enqueue_script('modernizr'); // Enqueue it!
@@ -119,7 +119,7 @@ function dis2019_header_scripts()
wp_register_script('fittext', get_template_directory_uri() . '/js/lib/jquery.fittext.js', array('jquery'), '1.0.0'); //
wp_enqueue_script('fittext'); // 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-wpretina.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'); //
@@ -131,12 +131,12 @@ function dis2019_header_scripts()
wp_register_script('ftellipsis', get_template_directory_uri() . '/js/lib/ftellipsis.min.js', array(), '1.0.0'); //
wp_enqueue_script('ftellipsis'); // Enqueue it!
wp_register_script('touchSwipe', get_template_directory_uri() . '/js/lib/jquery.touchSwipe.min.js', array('jquery'), '1.6.18'); //
wp_register_script('touchSwipe', get_template_directory_uri() . '/js/lib/jquery.touchSwipe-1.6.18.min.js', array('jquery'), '1.6.19'); //
wp_enqueue_script('touchSwipe'); // Enqueue it!
wp_register_script('dis2019scripts', get_template_directory_uri() . '/js/scripts.js', array(
'jquery',
'conditionizr',
// 'conditionizr',
'modernizr',
'simpler-sidebar',
'fittext',
@@ -480,7 +480,12 @@ function misha_loadmore_ajax_handler()
$args['offset'] = $offset + (($_POST['page'] - 1) * $ppp);
query_posts($args);
if (($args[category_name] == get_theme_mod('dis-2019-event-cat-slug', 'esemeny'))) {
get_template_part('loop-esemeny');
}else{
get_template_part('loop');
}
die; // here we exit the script and even no wp_reset_query() required!
}
@@ -517,7 +522,7 @@ function dis_2019_order_events_by_date(&$query)
$query->set('orderby', 'meta_value');
$query->set('order', 'ASC');
$query->set('meta_value', date("Y.m.d.")); // change to how "event date" is stored
$query->set('meta_compare', '>');
$query->set('meta_compare', '>=');
}
add_action('pre_get_posts', 'dis_2019_order_events_by_date', 1);

View File

@@ -28,9 +28,11 @@ gulp.task('liverel', function () {
// });
gulp.task('watch', function () {
livereload.listen()
gulp.watch('./sass/**/*.scss', gulp.series('sass'))
gulp.watch(['./**', '!./node_modules/**'], gulp.series('liverel'))
livereload.listen()
});
gulp.task('minify-svg', function () {

View File

@@ -23,15 +23,6 @@
<meta name="description" content="<?php bloginfo('description');?>">
<?php wp_head();?>
<script>
// conditionizr.com
// configure environment tests
conditionizr.config({
assets: '<?php echo get_template_directory_uri(); ?>',
tests: {}
});
</script>
</head>
<body <?php body_class();?>>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
/*! Conditionizr v4.3.0 | (c) 2014 @toddmotto, @markgdyr | MIT license | conditionizr.com */
!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b:a.conditionizr=b()}(this,function(){"use strict";var a,b={},c=document.head||document.getElementsByTagName("head")[0],d=function(b,d,e){var f=e?b:a+b+("style"===d?".css":".js");switch(d){case"script":var g=document.createElement("script");g.src=f,c.appendChild(g);break;case"style":var h=document.createElement("link");h.href=f,h.rel="stylesheet",c.appendChild(h);break;case"class":document.documentElement.className+=" "+b}};return b.config=function(c){var e=c||{},f=e.tests;a=e.assets||"";for(var g in f){var h=g.toLowerCase();if(b[h])for(var i=f[g],j=i.length;j--;)d(h,i[j])}},b.add=function(a,c,e){var f=a.toLowerCase();if(b[f]=e(),b[f])for(var g=c.length;g--;)d(f,c[g])},b.on=function(a,c){var d=/^\!/;(b[a.toLowerCase()]||d.test(a)&&!b[a.replace(d,"")])&&c()},b.load=b.polyfill=function(a,c){for(var e=/\.js$/.test(a)?"script":"style",f=c.length;f--;)b[c[f].toLowerCase()]&&d(a,e,!0)},b});

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -862,33 +862,36 @@
if (!isMobile) {
// let cc = $(this)
let cArticle = cc.parents("article")
let cH2 = cc.parent('h2')
let cMetadata = cArticle.children(".metadata")
let cBevezetoWrapper = cMetadata.children(".bevezetoWrapper")
let cBevezeto = cBevezetoWrapper.children(".bevezeto")
let cAlcimWrapper = cMetadata.children(".alcimWrapper")
let cAlcim = cAlcimWrapper.children('.alcim')
// calculate default metadata height
metadataHeights.collapsedHeight = cMetadata[0].getBoundingClientRect().height
// check calculated metadata opened height
if (!cc.attr('data-metadataOpenedHeight')) {
// calculate opened metadata height:
let h2H = cH2[0].getBoundingClientRect().height
//calculate opened metadata height
let h2H = 0
$(".home-big h2").each(function () {
if ($(this)[0].getBoundingClientRect().height > h2H) {
h2H = $(this)[0].getBoundingClientRect().height
}
})
let artH = cArticle[0].getBoundingClientRect().height
metadataHeights.openedHeight = artH - bottomScrollHeight - h2H
// metadataHeights.openedHeight = artH - bottomScrollHeight - h2H
let metadataMaxheight = artH - bottomScrollHeight - h2H
let metadataOpenedHeight = (metadataMaxheight < metadataHeights.collapsedHeight) ? metadataHeights.collapsedHeight : metadataMaxheight
cc.attr('data-metadataOpenedHeight', metadataOpenedHeight)
// console.log('h2h', h2H, artH)
}
console.log('h2h', h2H, artH)
let metadataOpenedHeight = cc.attr('data-metadataOpenedHeight')
//add height to bevezetoWrapper
$('.bevezetoWrapper').css({ height: metadataHeights.openedHeight })
cBevezetoWrapper.css({ height: metadataOpenedHeight })
$('.alcimWrapper').css({ height: metadataHeights.openedHeight })
cAlcimWrapper.css({ height: metadataOpenedHeight })
//add hovered class
@@ -903,31 +906,34 @@
cMetadata.children(".categories, .postedon").addClass("transparent")
//animate border
cMetadata.stop().animate({ height: metadataHeights.openedHeight }, 400, _ => {
cMetadata.stop().animate({ height: metadataOpenedHeight }, 400, _ => {
//hide metadata
cMetadata.children(".categories, .postedon").hide().removeClass("transparent")
cMetadata.children(".bevezetoWrapper").show()
cMetadata.children(".alcimWrapper").css({ display: 'flex' })
cBevezetoWrapper.show()
cAlcimWrapper.css({ display: 'flex' }).addClass("transparent")
//set height for ellipsis
if (!metadataHeights.bevezetoHeight) {
metadataHeights.bevezetoHeight = cBevezetoWrapper.height()
if (!cc.attr('data-metadataBevezetoHeight')) {
let metadataBevezetoHeight = cBevezetoWrapper.height()
let bWidth = cBevezetoWrapper.width()
// let bWidth = cBevezetoWrapper[0].getBoundingClientRect().width
$('.bevezeto').css({
height: metadataHeights.bevezetoHeight,
cBevezetoWrapper.children('.bevezeto').css({
height: metadataBevezetoHeight,
width: bWidth + 'px'
})
$('.alcim').css({
height: metadataHeights.bevezetoHeight,
cAlcim.css({
height: metadataBevezetoHeight,
})
cc.attr('data-metadataBevezetoHeight', metadataBevezetoHeight)
}
//show bev+alcim
cMetadata.children(".bevezetoWrapper, .alcimWrapper").removeClass("transparent")
cBevezetoWrapper.removeClass("transparent")
//only show alcim, if enough space
if (!(cAlcim.children('.alcimInner').height() > cAlcim.height())) {
cAlcimWrapper.removeClass("transparent")
}
//clamp bevezető
let ellipsis = new Ellipsis(cBevezeto[0]);
@@ -940,7 +946,7 @@
// Uncomment for debugging hover
// if (!isMobile && isHome) {
// setTimeout(() => {
// bigArticleHoverShow($(".home_wrapper-1 .home-big h2 a"))
// bigArticleHoverShow($(".home_wrapper-2 .home-big h2 a"))
// }, 2000);
// }
@@ -1065,7 +1071,24 @@
//wrap images on old posts
$('.single-content>.wp-block-image>img, .single-content>.wp-block-gallery>img').each(function () {
let src = $(this).attr('src')
var src = $(this).attr('src')
var datasrc = $(this).attr('data-src')
var srcArr = src.split('.')
switch (srcArr[srcArr.length - 1]) {
case 'jpg':
case 'png':
case 'jpeg':
case 'gif':
break;
default:
if (datasrc) {
src = datasrc
}
break;
}
$(this).wrap('<a class="cb-gallery" href="' + src + '" ></a>')
// $(this).parent('p').addClass('wp-block-image')
})
@@ -1100,6 +1123,18 @@
const lightBoxMaxHeight = isMobile ? '65%' : '80%'
function prevdev(e) {
e.preventDefault();
}
const disableScroll = function () {
document.addEventListener('touchmove', prevdev, { passive: false })
}
const enableScroll = function () {
document.removeEventListener('touchmove', prevdev, { passive: false })
}
//http://www.jacklmoore.com/colorbox/
const colorboxSettings = {
transition: 'none',
@@ -1113,7 +1148,11 @@
next: '',
close: '',
xhrError: 'A tartalom betöltése nem sikerült. Kérlek próbáld meg később.',
imgError: 'A kép betöltése nem sikerült. Kérlek próbáld meg később.'
imgError: 'A kép betöltése nem sikerült. Kérlek próbáld meg később.',
onOpen: disableScroll,
onClosed: enableScroll,
retinaUrl: true,
retinaSuffix: '$1.$2'
}
@@ -1121,17 +1160,10 @@
$('#cboxOverlay, #colorbox').swipe({
swipeLeft: function () {
$.colorbox.next()
},
swipeRight: function () {
$.colorbox.prev()
},
swipeUp: function () {
return false
},
swipeDown: function () {
return false
},
})
// lightbox for galleries

77
loop-esemeny.php Normal file
View File

@@ -0,0 +1,77 @@
<?php if (have_posts()): while (have_posts()): the_post();?>
<?php
$event_datum = get_post_meta( get_the_ID(), 'dis-esemeny-datum', true );
$event_link = get_post_meta( get_the_ID(), 'dis-esemeny-link', true );
?>
<article id="post-<?php the_ID();?>" <?php post_class();?>>
<!-- post thumbnail -->
<?php if (has_post_thumbnail()): // Check if thumbnail exists ?>
<a class="thumbnailwrapper" href="<?php echo $event_link; ?>" title="<?php the_title();?>" target="_blank">
<?php the_post_thumbnail('home-event-thumbnail');?>
</a>
<?php endif;?>
<!-- /post thumbnail -->
<div class="event-metadata">
<div class="top-row">
<div class="ev-date">
<?php
echo preg_replace('/^(\d{4}\.)(\d{2}\.)(\d{2}\.)$/','\1</br>\2 \3',$event_datum );
// echo $event_datum;
?>
</div>
<!-- Arrow -->
<a href="<?php echo $event_link; ?>" target="_blank" class="arrow-link">
</a>
</div>
<div class="hr">
</div>
<div class="bottom-row">
<!-- title -->
<h2>
<a href="<?php echo $event_link; ?>" target="_blank"><?php the_title();?></a>
</h2>
<div class="vr"></div>
<!-- Tovább button -->
<a href="<?php echo $event_link; ?>" class="text-link" target="_blank">Tovább az eseményre</a>
</div>
</div><!-- end event-metadata -->
<!-- post title -->
<!-- /post title -->
</article>
<?php endwhile;?>
<?php else: ?>
<!-- article -->
<article>
<h2><?php _e('Sorry, nothing to display.', 'dis2019');?></h2>
</article>
<!-- /article -->
<?php endif;?>

View File

@@ -198,13 +198,9 @@
}
@mixin single-author {
@include single-metadata();
font-size: 2rem;
font: bold 2rem "Westeinde Caption";
color: #fff;
-webkit-text-stroke: #000 1px;
@media #{$smalldesktop} {
font-size: 3rem;
}
}
@mixin single-h2 {
@@ -240,8 +236,24 @@
}
@mixin related-title {
font: 500 2rem "Westeinde Caption";
font: 500 2rem "Westeinde Caption" !important;
line-height: 1.3;
@media #{$tablet} {
font-size: 0.9rem !important;
}
@media #{$smalldesktop} {
font-size: 1.3rem !important;
}
@media #{$bigdesktop} {
font-size: 1.6rem !important;
}
}
@mixin related-metadata {
@include home-metadata();
@media #{$verybigdesktop} {
font-size: 1.6rem !important;
}
}
/* ---------------------------------- event --------------------------------- */

View File

@@ -3,18 +3,18 @@
\*------------------------------------*/
::selection {
background:#04A4CC;
color:#FFF;
background: #04a4cc;
color: #fff;
text-shadow: none;
}
::-webkit-selection {
background:#04A4CC;
color:#FFF;
background: #04a4cc;
color: #fff;
text-shadow: none;
}
::-moz-selection {
background:#04A4CC;
color:#FFF;
background: #04a4cc;
color: #fff;
text-shadow: none;
}
@@ -55,8 +55,8 @@ a img.aligncenter {
margin-right: auto;
}
.wp-caption {
background:#FFF;
border:1px solid #F0F0F0;
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%;
padding: 5px 3px 10px;
text-align: center;
@@ -86,10 +86,8 @@ a img.aligncenter {
padding: 0 4px 5px;
}
.sticky {
}
.bypostauthor {
}
/*------------------------------------*\
@@ -97,7 +95,20 @@ a img.aligncenter {
\*------------------------------------*/
@media print {
@page {
margin: 2cm;
}
html {
overflow-y: unset !important;
}
* {
-webkit-print-color-adjust: exact;
color-adjust: exact !important;
}
*:not(header *) {
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
@@ -118,14 +129,16 @@ a img.aligncenter {
a[href^="#"]:after {
content: "";
}
pre,blockquote {
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,img {
tr,
img {
page-break-inside: avoid;
}
img {
@@ -144,4 +157,137 @@ a img.aligncenter {
h3 {
page-break-after: avoid;
}
//structure
.wrapper {
height: unset !important;
}
//header
header {
position: relative !important;
flex-direction: column !important;
align-items: flex-start !important;
justify-content: flex-start !important;
padding: 2rem !important;
.header-inner {
flex-direction: column !important;
justify-content: flex-start;
align-items: flex-start !important;
padding: 0 2rem !important;
.dis-logo {
background-image: url(../img/dis-logo-black.png) !important;
background-image: url(../img/dis-logo-black.svg) !important;
margin-bottom: 1rem;
}
a {
display: flex !important;
flex-direction: row;
justify-content: flex-start;
align-items: center;
div {
margin-right: 2rem;
}
}
.menubutton {
display: none;
}
.social-link {
display: block !important;
margin: 0.5rem 2rem !important;
}
.events-link {
display: none;
}
}
}
//masonrypage
.masonrypage {
article {
min-height: unset !important;
a.thumbnailwrapper {
img {
height: 50vw !important;
width: 100vw !important;
}
&:after {
content: "";
}
}
h2 {
display: block !important;
padding-bottom: 5rem !important;
}
.metadata {
top: calc(50vw - 5rem + 1px) !important;
position: absolute;
// border-top: 1px solid #000;
@include fit-content(width);
height: $h-unit-1;
background-color: #fff;
@include triangle-corner-bordered(#{$h-unit-1}, #{$h-unit-1}, white, #000, left);
&::after {
display: block !important;
}
}
}
}
//single
.singularpage {
.titlewrapper {
padding-top: 2rem !important;
.metadata {
a {
text-decoration: none;
&::after {
content: "";
}
}
}
}
.single-content {
hr.content-begin {
margin-top: 2rem !important;
}
a.cboxElement::after {
content: "" !important;
}
figcaption {
display: block !important;
}
.alignleft,
.alignright,
.wp-block-image {
page-break-inside: avoid;
width: 100% !important;
height: auto;
img {
page-break-inside: avoid;
width: 100%;
height: auto;
}
}
&::after{
content: "A fák érdekében feleslegesen ne nyomtasd ki ezt a cikket. A papírszemetet gyűjtsd szelektíven!";
top: 3rem;
position: relative;
}
}
.fb-like,
.fb-page,
.toHome {
display: none !important;
}
}
}

View File

@@ -267,7 +267,6 @@ $v-unit-6: 24rem;
top: 0;
background-color: $bgcolor;
z-index: 9;
@if $side==left {
left: $minusOffset;
border-left: $bordercolor solid 1px;
@@ -505,6 +504,9 @@ $v-unit-6: 24rem;
background-image: url(../img/#{$iconname}-black.png);
background-image: url(../img/#{$iconname}-black.svg);
}
@media print {
background-image: url(../img/#{$iconname}-black.png);
}
}
.facebook-icon {
@@ -568,7 +570,7 @@ $v-unit-6: 24rem;
.events-link {
margin: 0 2rem 0 0;
&.hidden {
display: none !important;
display: none;
}
@media #{$tablet} {
margin: 0;
@@ -1675,7 +1677,7 @@ body.category.category-esemeny {
height: 85vw;
max-height: calc(50vw + 180px);
.thumbnailwrapper {
height: 50vw;
// height: 50vw;
img {
width: 100%;
height: 100%;
@@ -1825,6 +1827,13 @@ body.category.category-esemeny {
}
}
}
/* ---------------------- loadmore on desktop on events --------------------- */
.misha_loadmore{
width: calc(50vw - #{$h-unit-4} - #{$h-unit-2});
max-width: unset;
}
}
}
}
@@ -1871,6 +1880,11 @@ $padd: 2rem;
padding: 0;
img.attachment-single-thumbnail {
//use home-big-thumbnail on mobile
display: none;
}
img.attachment-home-big-thumbnail {
// post thumbnail on home
height: 75vh;
width: 100vw;
@@ -1895,12 +1909,14 @@ $padd: 2rem;
width: calc(100vw - #{$h-unit-1});
bottom: unset !important;
height: $h-unit-1;
// height: calc(#{$h-unit-1} - 0.5px);
position: relative;
align-self: flex-end;
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 0;
// border-left: #fff solid 1px;
@include single-metadata();
@@ -1919,6 +1935,7 @@ $padd: 2rem;
.time-cat::after {
content: " ";
display: inline-block;
white-space: pre;
}
.format::before {
content: "|";
@@ -1972,9 +1989,13 @@ $padd: 2rem;
bottom: 0;
width: 100%;
img.attachment-home-big-thumbnail {
display: none;
}
img.attachment-single-thumbnail {
// post thumbnail on home
display: block;
object-fit: cover;
padding: 0;
@@ -2116,6 +2137,10 @@ $padd: 2rem;
top: 0.5rem;
left: 2rem;
}
em {
//fix italics in old articles
font-style: normal;
}
}
//nagyon nagy kiemelt
@@ -2490,6 +2515,9 @@ $padd: 2rem;
flex-wrap: nowrap;
align-items: center;
padding: 0;
* {
@include related-metadata();
}
.vr {
height: 100%;
@@ -2699,7 +2727,7 @@ body.page {
//metadata on mobile
.metadata {
@media #{$only-mobile} {
@media #{$only-mobile}, print {
color: $color !important;
.vr {
background-color: $color !important;
@@ -2710,7 +2738,7 @@ body.page {
color: $color !important;
}
@media #{$only-mobile} {
@media #{$only-mobile}, print {
&::before,
&::after {
border-color: $color !important;
@@ -2718,7 +2746,7 @@ body.page {
}
}
h2 {
@media #{$only-mobile} {
@media #{$only-mobile}, print {
border-top-color: $color !important;
}
}

View File

@@ -13,6 +13,7 @@
<?php if (has_post_thumbnail()): // Check if Thumbnail exists ?>
<div class="thumbnailwrapper">
<?php the_post_thumbnail('single-thumbnail'); ?>
<?php the_post_thumbnail('home-big-thumbnail'); ?>
</div>
<?php endif;?>
@@ -75,7 +76,7 @@
<!-- Facebook -->
<?php
if ($categories) {
if (is_single()) {
?>
<div class="fb-like" data-href="<?php the_permalink();?>" data-width="" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="true"></div>
<div class="fb-page" data-href="https://www.facebook.com/designisso/" data-tabs="" data-width="" data-height="" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"><blockquote cite="https://www.facebook.com/designisso/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/designisso/">designisso</a></blockquote></div>
@@ -131,7 +132,7 @@
<?php
if ($categories) {
if (is_single()) {
?>
<div class="toHome">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">

View File

@@ -2,7 +2,7 @@
Theme Name: dis-2019
Theme URI: https://git.gyetpet.dynu.net/infeeeee/dis-2019
Description: Designisso téma 2019 | <a target="_blank" href="https://git.gyetpet.dynu.net/infeeeee/dis-2019/src/branch/master/K%c3%89ZIK%c3%96NYV.md">Használati utasítás magyarul</a> | <a target="_blank" href="https://git.gyetpet.dynu.net/infeeeee/dis-2019/issues">Hibák, problémák jelentése</a>
Version: 1.0.7
Version: 1.0.14
Author: Gyetvai Péter
Author URI: https://gyetvai-peter.hu
Tags: Designisso