project_photo группа
- images - повторитель
- Photo - повторитель
<?php
//часовой пояс
$timezone = +15;
//текущее время
$currentHour = gmdate("Hi", time() + 3600*($timezone+date("I")));
$today = date("Y-m-d");
echo $today;
$date = date_create('2021-02-12');
// date_modify($date, '+1 day');
$day = date_format($date, 'l');
echo " " . $currentHour . " ";
echo $day;
//$day == "Saturday" || $day == "Sunday"
if(($currentHour > 1159 and $currentHour < 2229) )
{ ?>
рабочее время
<?php
}
else {
if (($day == "Friday" and $currentHour > 1159)) {
echo " рабочее время";
}
if ($day == "Saturday") {
echo " рабочее время";
}
if ($day == "Sunday" and $currentHour < 2229) {
echo " рабочее время";
}
else {
echo " не рабочее время";
}
?>
<?php }
?>
<?php
// Your code here!
$schedule = [
1 => [12, 22],
2 => [12, 22],
3 => [12, 22],
4 => [12, 22],
5 => [12, 24],
6 => [00, 24],
7 => [00, 22]
];
$weekday = date('N');
$hour = date('G');
echo $weekday." ";
echo $hour ." " ;
if ($hour >= $schedule[$weekday][0] && $hour < $schedule[$weekday][1]) {
echo "рабочее";
}
else {
echo "не рабочее";
}
?>
a:hover {
color: #0056b3;
text-decoration: underline;
}
и даже препроцессор
@include hover() {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
.navtab:hover {
text-decoration: none!important;
}