diff --git a/src/calend-block.php b/src/calend-block.php
index b6bc171..7e84a6d 100644
--- a/src/calend-block.php
+++ b/src/calend-block.php
@@ -15,7 +15,10 @@ function calend_block($month, $year, $script=false){
$find_sql = "
SELECT `post_id`
FROM `wp_postmeta`
- WHERE `meta_key` = 'startevent' AND `meta_value` BETWEEN '$year-$str_month-01T00:00:00' AND '$year-$str_month-31T23:59:59'
+ WHERE `meta_key` = 'startevent'
+ AND `meta_value`
+ BETWEEN '$year-$str_month-01T00:00:00' AND '$year-$str_month-31T23:59:59'
+
";
@@ -26,7 +29,7 @@ function calend_block($month, $year, $script=false){
if ($ins !== '') {
$posts = db_get("
- SELECT ID, post_date, post_title FROM `wp_posts` WHERE ID IN ($ins)
+ SELECT ID, post_date, post_title FROM `wp_posts` WHERE ID IN ($ins) AND `post_status` = 'publish'
");
}
diff --git a/style.css b/style.css
index 45a1b40..a0363e1 100644
--- a/style.css
+++ b/style.css
@@ -106,6 +106,23 @@ a{
}
+ #mainbanner{
+ width: 100%;
+ display: block;
+ padding: 10px;
+}
+
+ #mainbanner img {
+ display: block;
+ width: 100%;
+ max-width: 1600px;
+ margin: auto;
+ border: 1px solid black;
+ text-align: center;
+ }
+
+
+
#left{
max-width: 330px;
display: flex;
@@ -358,15 +375,21 @@ a{
margin-bottom: 28px;
padding-top: 28px;
padding-bottom: 28px;
+ padding-left: 12px;
}
#footer_qr{
- width: 20%;
+ width: 25%;
+ display: grid;
margin-right: 12px;
text-align: center;
+ grid-gap: .5rem;
+ grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
}
+
+
#img_qr{
padding: 4px;
background-color: white;
@@ -374,12 +397,13 @@ a{
#footer-contact{
width: 20%;
+ text-align: center;
}
#footer_subscript{
margin-left: 32px;
margin-right: 22px;
- width: 25%;
+ width: 30%;
}
#footer_logo{
@@ -484,7 +508,7 @@ a{
.vazh{
font-size: 9px;
text-transform: uppercase;
- letter-spacing: 0.45em;
+ /*letter-spacing: 0.45em;*/
}
.current-number{
@@ -1098,8 +1122,7 @@ a{
.mini-card-block{
display: grid;
grid-gap: 2rem;
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- /*grid-template-columns: repeat(2, minmax(250px, 1fr));*/
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
@@ -2126,6 +2149,10 @@ span.rub_back_title{
margin: 0;
}
+ #mainbanner {
+ display: none;
+ }
+
#header_icons{
margin-left: 0;
padding-right: 8px;
@@ -2336,6 +2363,7 @@ span.rub_back_title{
#footer-contact{
display: none;
+ text-align: center;
}
#content{
@@ -2448,6 +2476,8 @@ span.rub_back_title{
and (min-device-width : 340px)
and (max-device-width : 667px) {
+
+
h1 {
font-size: 24px;
}
@@ -2467,6 +2497,9 @@ and (max-device-width : 667px) {
display: block;
}
+ #mainbanner {
+ display: none;
+ }
.mini-card{
width: 100%;