Compare commits
7 Commits
1.0.3
...
f37bc329af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f37bc329af | ||
|
|
f9b7bb5d3a | ||
|
|
5ba4282209 | ||
|
|
c1ad3bba53 | ||
|
|
4766e59307 | ||
|
|
916439f4d5 | ||
|
|
cb2b7f13ac |
@@ -6,4 +6,6 @@ og: tag: pluginnal!
|
|||||||
|
|
||||||
`@media print{}`
|
`@media print{}`
|
||||||
|
|
||||||
képaláírás régi
|
régi interjú ne legyen dőlt
|
||||||
|
|
||||||
|
scroll a galléria nézetben
|
||||||
File diff suppressed because one or more lines are too long
@@ -811,10 +811,12 @@
|
|||||||
|
|
||||||
/* ------------------------- Click on small articles ------------------------ */
|
/* ------------------------- Click on small articles ------------------------ */
|
||||||
|
|
||||||
$('article.home-small').click(function () {
|
$(document).on({
|
||||||
let href = $(this).children('a.thumbnailwrapper').attr("href")
|
mouseup: function () {
|
||||||
window.open(href, "_self")
|
let href = $(this).children('a.thumbnailwrapper').attr("href")
|
||||||
})
|
window.open(href, "_self")
|
||||||
|
}
|
||||||
|
}, 'article.home-small');
|
||||||
|
|
||||||
/* ------------------------------ hover on home ----------------------------- */
|
/* ------------------------------ hover on home ----------------------------- */
|
||||||
|
|
||||||
@@ -1032,19 +1034,50 @@
|
|||||||
/* 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 () {
|
||||||
|
let src = $(this).attr('src')
|
||||||
|
$(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")
|
||||||
|
|||||||
@@ -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%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2140,11 +2144,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;
|
||||||
|
|
||||||
|
|||||||
@@ -129,13 +129,19 @@
|
|||||||
$post = $orig_post;
|
$post = $orig_post;
|
||||||
wp_reset_query(); ?>
|
wp_reset_query(); ?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ($categories) {
|
||||||
|
?>
|
||||||
<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
|
||||||
|
};
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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.7
|
||||||
Author: Gyetvai Péter
|
Author: Gyetvai Péter
|
||||||
Author URI: https://gyetvai-peter.hu
|
Author URI: https://gyetvai-peter.hu
|
||||||
Tags: Designisso
|
Tags: Designisso
|
||||||
|
|||||||
Reference in New Issue
Block a user