87 lines
2.6 KiB
PHP
87 lines
2.6 KiB
PHP
|
<script>console.log('title', document.title);</script>
|
||
|
<?php
|
||
|
|
||
|
if (!defined('ABSPATH')) {
|
||
|
exit; // Exit if accessed directly.
|
||
|
}
|
||
|
|
||
|
get_template_part('template-parts/footer');
|
||
|
?>
|
||
|
<!-- <div class="copyright"><?php /*the_field('copyright', 'options');*/ ?></div> -->
|
||
|
|
||
|
<!-- .content-wrapper END -->
|
||
|
</div>
|
||
|
|
||
|
<!-- .i-body END -->
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- Modal -->
|
||
|
<?php // get_template_part('template-parts/modals');
|
||
|
?>
|
||
|
|
||
|
<?php wp_footer(); ?>
|
||
|
|
||
|
<!-- <script type="text/javascript">
|
||
|
jQuery(document).ready(function() {
|
||
|
var slider = jQuery('#index-trust-slider').lightSlider({
|
||
|
item: 1,
|
||
|
autoWidth: false,
|
||
|
slideMove: 1, // slidemove will be 1 if loop is true
|
||
|
slideMargin: 0,
|
||
|
loop:true,
|
||
|
pager: false,
|
||
|
auto: true,
|
||
|
pauseOnHover: true,
|
||
|
});
|
||
|
jQuery('#nextSlide').click(function(){
|
||
|
slider.goToNextSlide();
|
||
|
});
|
||
|
jQuery('#prevSlide').click(function(){
|
||
|
slider.goToPrevSlide();
|
||
|
});
|
||
|
});
|
||
|
</script> -->
|
||
|
<script>
|
||
|
|
||
|
jQuery(document).ready(function() {
|
||
|
|
||
|
jQuery(document).on("click",".article-body .article-comments__count", function(){
|
||
|
let currid = jQuery(this).data("id");
|
||
|
jQuery(`#article-${currid}-comments__container`).prev(".article-details__social").children('.show-commmentsform').toggle();
|
||
|
jQuery(`#article-${currid}-comments__container`).toggle();
|
||
|
});
|
||
|
|
||
|
jQuery(document).on("click",".article-header .article-comments__count", function(){
|
||
|
// console.log(jQuery(this).data("id"));
|
||
|
let currid = jQuery(this).data("id");
|
||
|
jQuery(`#article-${currid}-comments__container`).toggle();
|
||
|
jQuery(`#article-${currid}-comments__container`).prev(".article-details__social").children('.show-commmentsform').toggle();
|
||
|
// jQuery( `#article-${currid}-comments__container` ).scrollTop( 300 );
|
||
|
jQuery('html, body').animate({
|
||
|
scrollTop: jQuery(`#article-${currid}-comments__container`).offset().top
|
||
|
}, 500);
|
||
|
});
|
||
|
|
||
|
jQuery(document).on("click",".show-commmentsform", function(){
|
||
|
jQuery(this).hide();
|
||
|
jQuery(this).parent('.article-details__social').next('.article-comments').show();
|
||
|
});
|
||
|
|
||
|
jQuery(document).on("click",".article-share__icon", function(){
|
||
|
jQuery(this).next(".article-share__list").show();
|
||
|
});
|
||
|
|
||
|
jQuery(document).mouseup(function (e) {
|
||
|
if (jQuery(e.target).
|
||
|
closest(".article-share__list").
|
||
|
length=== 0) {
|
||
|
jQuery(".article-share__list").hide();
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
|
||
|
</html>
|