<div class="woocommerce">
<div class="bs-content">
<h2 class="products-section__title"><?php echo get_the_category_by_ID(376); ?></h2>
<div class="bs-products-loops">
<?php
$products = new WP_Query([
'post_type' => 'product',
'posts_per_page' => 10,
'product_cat' => 'ready-made-products'
]);
?>
<?php if ($products->have_posts()): ?>
<?php while ($products->have_posts()): ?><?php $products->the_post(); ?>
<?php do_action('woocommerce_product_loop_start'); ?>
<?php wc_get_template_part('content', 'product'); ?>
<?php do_action('woocommerce_product_loop_end'); ?>
<?php endwhile; ?><?php wp_reset_postdata(); ?>
<?php else: ?><?php endif; ?>
</div>
<h2 class="products-section__title"><?php echo get_the_category_by_ID(380); ?></h2>
<div class="bs-products-loops">
<?php
$products_proposal = new WP_Query([
'post_type' => 'product',
'posts_per_page' => 10,
'product_cat' => 'new-proposals'
]);
?>
<?php if ($products_proposal->have_posts()): ?>
<?php while ($products_proposal->have_posts()): ?><?php $products_proposal->the_post(); ?>
<?php do_action('woocommerce_product_loop_start'); ?>
<?php wc_get_template_part('content', 'product'); ?>
<?php do_action('woocommerce_product_loop_end'); ?>
<?php endwhile; ?><?php wp_reset_postdata(); ?>
<?php else: ?><?php endif; ?>
</div>
</div>
</div>
$('.dark-scroll').each(function (index) {
let elemItem = $(this);
let elemOffsetTop = elemItem.offset().top - navigationOffsetTop;
let elemHeight = elemOffsetTop + elemItem.innerHeight();
if (index === 0) {
$(document).on('scroll', function () {
if ($(this).scrollTop() > elemOffsetTop && $(this).scrollTop() < (elemHeight - navigationOffsetTop)) {
console.log('in');
if (navigation.hasClass('light')) {
navigation.removeClass('light');
}
} else {
console.log('out');
if (!navigation.hasClass('light')) {
navigation.addClass('light');
}
}
});
}
});
let showVideoTime = function () {
let videoPageGallery = document.querySelectorAll('.video-page .video-page__item video');
for (let i = 0; i < videoPageGallery.length; i++){
videoPageGallery[i].addEventListener('loadedmetadata', (event) => {
var mind = videoPageGallery[i].duration % (60 * 60);
var minutes = Math.floor(mind / 60);
var secd = mind % 60;
var seconds = Math.ceil(secd);
$(videoPageGallery[i]).parent().append('<span class="video-time">'+minutes+': '+seconds+'</span>');
});
}
};
showVideoTime();
serii@serii-Lenovo-G710 ~/Downloads/jpeg $ jpg 30 "*.jpg"
jpegoptim: skipping special file: 30
jpegoptim: skipping special file: *.jpg
Average compression (0 files): -nan% (0k)
jpg() {
jpegoptim --strip-all --all-progressive -ptm "$1" "$2"
}
#images
alias j='jpg'
wp-benefis.host1670806.hostland.pro/product/stage-...