//Таск для изображений
gulp.task('images', function(){
return gulp
.src('./src/img/**/*', { encoding: false })
.pipe(imagemin({verbose: true}))
.pipe(gulp.dest('./dist/img/'));
})
[Error] Origin null is not allowed by Access-Control-Allow-Origin. Status code: 0
[Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin. Status code: 0 (index-n_ryQ3BS.css, line 0)
// package.json
"scripts": {
// ....
"preview": "vite preview"
// ....
},
<?php
// Получаем значение даты из ACF
$date = get_field('data_cont_front');
// Разделяем дату на число и месяц
$date_parts = explode(' ', $date);
$day = $date_parts[0]; // Число
$month = $date_parts[1]; // Месяц
// Выводим с нужной разметкой
?>
<div class="new-front-cart__span">
<span class="new-date__number"><?php echo $day; ?></span>
<span class="new-date__month"><?php echo $month; ?></span>
</div>
PS C:\Users\ДОМ\OneDrive\Рабочий стол\project
var i = 0;
$('.datepicker-onlinezapis').datepicker({
onRenderCell: function (date, cellType) {
var day = date.getDay(), isDisabled = false;
var dt4 = new Date(date);
dt4.setDate(dt4.getDate() + 1 );
var curcalday = dt4.toJSON().slice(0, 10); // преобразуем дату из формата DateTime в yyyy-mm-dd
for (i = 0; i < arrDpres.length; i++){
if (arrDpres[i] == curcalday){
return {
classes: 'datapicker-datesindb'
}
}
}
for (i = 0; i < arrDlbu.length; i++){
if (arrDlbu[i] == curcalday){
return {
classes: 'datapicker-lockedbyuser'
}
}
}
for (i = 0; i < holDays.length; i++){
if (holDays[i] == dateFormat(curcalday)){
isDisabled = true;
return {
disabled: isDisabled
}
}
}
if (cellType == 'day') {
isDisabled = disabledDays.indexOf(day) != -1;
return {
disabled: isDisabled
}
}
}
if ($wc_query->have_posts()) :
$i = 0;
while ($wc_query->have_posts()) : $wc_query->the_post();
?>
<label class="logo-brand<?php i === 0 ? ' active' : ''?>">
<input type="radio" name="brand_id" value="<?php the_ID(); ?>" />
<span>
<img class="img__logo-brand" src="<?php the_field('logo_brands'); ?>" alt="<?php the_title(); ?>" />
</span>
</label>
<?php
$i++;
endwhile;