18 Commits

Author SHA1 Message Date
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
infeeeee
f37bc329af todo update 2019-09-11 19:57:44 +02:00
infeeeee
f9b7bb5d3a mobile thumbnail fixed 2019-09-11 19:55:42 +02:00
infeeeee
5ba4282209 1.0.6 2019-09-11 19:49:49 +02:00
infeeeee
c1ad3bba53 bump 1.0.5 2019-09-11 19:46:38 +02:00
infeeeee
4766e59307 fix figcaption in js 2019-09-11 19:46:07 +02:00
infeeeee
916439f4d5 fix old images 2019-09-11 19:37:50 +02:00
infeeeee
cb2b7f13ac hide tohome from pages 2019-09-11 18:39:10 +02:00
12 changed files with 117 additions and 48 deletions

View File

@@ -6,4 +6,4 @@ og: tag: pluginnal!
`@media print{}` `@media print{}`
képaláírás régi scroll a galléria nézetben

File diff suppressed because one or more lines are too long

View File

@@ -42,7 +42,7 @@ if (function_exists('add_theme_support')) {
add_image_size('home-big-thumbnail', 1024, 1024, true); // Custom Thumbnail Size call using the_post_thumbnail('home-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-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('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 Support for Custom Backgrounds - Uncomment below if you're going to use
/*add_theme_support('custom-background', array( /*add_theme_support('custom-background', array(
@@ -107,8 +107,8 @@ function dis2019_header_scripts()
wp_deregister_script('jquery'); 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('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_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_enqueue_script('conditionizr'); // Enqueue it!
wp_register_script('modernizr', get_template_directory_uri() . '/js/lib/modernizr-custom.js', array(), '2.7.1'); // Modernizr 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_enqueue_script('modernizr'); // Enqueue it!
@@ -136,7 +136,7 @@ function dis2019_header_scripts()
wp_register_script('dis2019scripts', get_template_directory_uri() . '/js/scripts.js', array( wp_register_script('dis2019scripts', get_template_directory_uri() . '/js/scripts.js', array(
'jquery', 'jquery',
'conditionizr', // 'conditionizr',
'modernizr', 'modernizr',
'simpler-sidebar', 'simpler-sidebar',
'fittext', 'fittext',

View File

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

View File

@@ -811,10 +811,12 @@
/* ------------------------- Click on small articles ------------------------ */ /* ------------------------- Click on small articles ------------------------ */
$('article.home-small').click(function () { $(document).on({
mouseup: function () {
let href = $(this).children('a.thumbnailwrapper').attr("href") let href = $(this).children('a.thumbnailwrapper').attr("href")
window.open(href, "_self") window.open(href, "_self")
}) }
}, 'article.home-small');
/* ------------------------------ hover on home ----------------------------- */ /* ------------------------------ hover on home ----------------------------- */
@@ -1032,19 +1034,67 @@
/* SINGLE */ /* SINGLE */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
jQuery.fn.changeTag = function (newTag) {
var q = this;
this.each(function (i, el) {
var h = "<" + el.outerHTML.replace(/(^<\w+|\w+>$)/g, newTag) + ">";
try {
el.outerHTML = h;
} catch (e) { //elem not in dom
q[i] = jQuery(h)[0];
}
});
return this;
};
if (isSingle) { if (isSingle) {
/* ---------------------------- wrap figcaptions --------------------------- */
$("figcaption").wrapInner("<span></span>")
/* ----------------------------- images, gallery ---------------------------- */ /* ----------------------------- images, gallery ---------------------------- */
//hide caption on desktop //wrap old galleries
$('.single-content>p, .single-content>.wp-caption').each(function () {
let nrOfImgs = $(this).children('img').length
if (nrOfImgs > 1) {
$(this).addClass('wp-block-gallery')
} else if (nrOfImgs == 1) {
$(this).addClass('wp-block-image')
}
})
//wrap images on old posts
$('.single-content>.wp-block-image>img, .single-content>.wp-block-gallery>img').each(function () {
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')
})
//change figcaption tag on old posts
$('.single-content div.wp-caption .wp-caption-text').changeTag("figcaption")
//wrap figcaptions
$("figcaption").wrapInner("<span></span>")
//hover on images on desktop
if (!isMobile) { if (!isMobile) {
$('.wp-block-gallery .blocks-gallery-item, .wp-block-image').hover(function () { $('.wp-block-gallery .blocks-gallery-item, .wp-block-image').hover(function () {
$(this).find("figcaption").addClass("vis") $(this).find("figcaption").addClass("vis")

View File

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

View File

@@ -1870,7 +1870,7 @@ $padd: 2rem;
.thumbnailwrapper { .thumbnailwrapper {
padding: 0; padding: 0;
img.attachment-post-thumbnail { img.attachment-single-thumbnail {
// post thumbnail on home // post thumbnail on home
height: 75vh; height: 75vh;
width: 100vw; width: 100vw;
@@ -1904,6 +1904,10 @@ $padd: 2rem;
@include single-metadata(); @include single-metadata();
a {
@include single-metadata();
}
.metaWrapper { .metaWrapper {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@@ -2091,7 +2095,7 @@ $padd: 2rem;
font-weight: 900; font-weight: 900;
} }
iframe{ iframe {
width: 100%; width: 100%;
} }
@@ -2112,6 +2116,10 @@ $padd: 2rem;
top: 0.5rem; top: 0.5rem;
left: 2rem; left: 2rem;
} }
em {
//fix italics in old articles
font-style: normal;
}
} }
//nagyon nagy kiemelt //nagyon nagy kiemelt
@@ -2140,11 +2148,19 @@ $padd: 2rem;
// ---------------------------- images on single ---------------------------- */ // ---------------------------- images on single ---------------------------- */
// old images
.wp-caption {
max-width: 100%;
border: none;
background: unset;
}
img { img {
height: auto; height: auto;
} }
.wp-block-image { .wp-block-image,
.wp-caption {
margin: $padd 0; margin: $padd 0;
position: relative !important; position: relative !important;
@@ -2478,6 +2494,9 @@ $padd: 2rem;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
padding: 0; padding: 0;
* {
@include related-metadata();
}
.vr { .vr {
height: 100%; height: 100%;

View File

@@ -75,7 +75,7 @@
<!-- Facebook --> <!-- Facebook -->
<?php <?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-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> <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>
@@ -129,13 +129,19 @@
$post = $orig_post; $post = $orig_post;
wp_reset_query(); ?> wp_reset_query(); ?>
<?php
if (is_single()) {
?>
<div class="toHome"> <div class="toHome">
<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"> <hr class="related-wrap single-end">
</div> </div>
<?php
};
?>

View File

@@ -2,7 +2,7 @@
Theme Name: dis-2019 Theme Name: dis-2019
Theme URI: https://git.gyetpet.dynu.net/infeeeee/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> 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.3 Version: 1.0.10
Author: Gyetvai Péter Author: Gyetvai Péter
Author URI: https://gyetvai-peter.hu Author URI: https://gyetvai-peter.hu
Tags: Designisso Tags: Designisso