f4763aac by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent c1b76676
......@@ -18079,7 +18079,6 @@ ul.sf_date_field .sf-datepicker {
.side-caption:hover, .side-caption:focus-within {
bottom: 0 !important;
}
.side-caption {
position: absolute;
bottom: -100%;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -20901,26 +20901,10 @@
jQuery('.side-caption').each(function () {
var that = this;
var _bottom = jQuery(this).find('.image-side-caption').innerHeight();
if (!Responsive.isDesktop()) {
if (jQuery(that).parent().is('.entry-header') && !jQuery(that).parent().is('.no-photo')) {
jQuery(that).css('margin-bottom', -_bottom);
var _bottom = jQuery(that).parent().find('.title-container').innerHeight();
jQuery(that).css('bottom', _bottom);
setTimeout(function () {
jQuery(that).addClass('ready');
}, 500);
} else {
jQuery(that).css('bottom', -_bottom);
setTimeout(function () {
jQuery(that).addClass('ready');
}, 500);
}
} else {
jQuery(this).css('bottom', -_bottom);
setTimeout(function () {
jQuery(that).addClass('ready');
}, 500);
}
jQuery(this).css('bottom', -_bottom);
setTimeout(function () {
jQuery(that).addClass('ready');
}, 500);
});
}
};
......@@ -21008,7 +20992,7 @@
if (img_width != '0') {
var _bottom = jQuery(this).find('figcaption').innerHeight();
jQuery(this).find('figcaption').css('bottom', -_bottom);
if ($('.post-template-default.page').length == 0) {
if ($('.post-template-default').length == 0) {
jQuery(this).find('.cap-wrapper').css('width', img_width);
}
jQuery(this).addClass('captionized');
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -29,6 +29,10 @@ if ($thumbnail_image && isset($thumbnail_image[0])) {
$img_alt = get_post_meta($post_thumbnail_id , '_wp_attachment_image_alt', true);
$img_title = $thumbnail_image[0]->post_title;
$copy = get_field('copy', $post_thumbnail_id );
if(!$copy){
$en_post_thumbnail_id = apply_filters( 'wpml_object_id', $post_thumbnail_id , 'attachment', FALSE, 'en' );
$copy = get_field('copy', $en_post_thumbnail_id );
}
}
......
......@@ -7,26 +7,12 @@ var HeaderMenu = (function() {
jQuery('.side-caption').each(function() {
var that = this;
var _bottom = jQuery(this).find('.image-side-caption').innerHeight();
if(!Responsive.isDesktop()) {
if(jQuery(that).parent().is('.entry-header') && !jQuery(that).parent().is('.no-photo')) {
jQuery(that).css('margin-bottom', -_bottom);
var _bottom = jQuery(that).parent().find('.title-container').innerHeight();
jQuery(that).css('bottom', _bottom);
setTimeout(function() {
jQuery(that).addClass('ready');
}, 500);
} else {
jQuery(that).css('bottom', -_bottom);
setTimeout(function() {
jQuery(that).addClass('ready');
}, 500);
}
} else {
jQuery(this).css('bottom', -_bottom);
setTimeout(function() {
jQuery(that).addClass('ready');
}, 500);
}
});
}
}
......
......@@ -8,7 +8,7 @@ jQuery(function($) {
if(img_width != '0') {
var _bottom = jQuery(this).find('figcaption').innerHeight();
jQuery(this).find('figcaption').css('bottom', -_bottom);
if($('.post-template-default.page').length == 0) {
if($('.post-template-default').length == 0) {
jQuery(this).find('.cap-wrapper').css('width', img_width);
}
jQuery(this).addClass('captionized');
......
......@@ -124,6 +124,9 @@
.side-caption {
&:hover, &:focus-within {
bottom:0 !important;
@media screen and (max-width: 48rem) {
}
}
}
......@@ -145,6 +148,7 @@
max-width: 30%;
@media screen and (max-width: 48rem) {
max-width: 100%;
}
}
......
......@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.6
Version: 1.0.7
*/
\ No newline at end of file
......