Compare commits
1 Commits
c1ad3bba53
...
1.0.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ba4282209 |
@@ -1054,7 +1054,7 @@
|
|||||||
/* ----------------------------- images, gallery ---------------------------- */
|
/* ----------------------------- images, gallery ---------------------------- */
|
||||||
|
|
||||||
//wrap old galleries
|
//wrap old galleries
|
||||||
$('.single-content>p, .single-content>wp-caption').each(function () {
|
$('.single-content>p, .single-content>.wp-caption').each(function () {
|
||||||
let nrOfImgs = $(this).children('img').length
|
let nrOfImgs = $(this).children('img').length
|
||||||
if (nrOfImgs > 1) {
|
if (nrOfImgs > 1) {
|
||||||
$(this).addClass('wp-block-gallery')
|
$(this).addClass('wp-block-gallery')
|
||||||
@@ -1064,7 +1064,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
//wrap images on old posts
|
//wrap images on old posts
|
||||||
$('.single-content div.wp-caption img, .single-content>.wp-block-image>img, .single-content>.wp-block-gallery>img').each(function () {
|
$('.single-content>.wp-block-image>img, .single-content>.wp-block-gallery>img').each(function () {
|
||||||
let src = $(this).attr('src')
|
let src = $(this).attr('src')
|
||||||
$(this).wrap('<a class="cb-gallery" href="' + src + '" ></a>')
|
$(this).wrap('<a class="cb-gallery" href="' + src + '" ></a>')
|
||||||
// $(this).parent('p').addClass('wp-block-image')
|
// $(this).parent('p').addClass('wp-block-image')
|
||||||
|
|||||||
@@ -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.5
|
Version: 1.0.6
|
||||||
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