From 9a65063c99843e8396952883b1e3b004d42a96db Mon Sep 17 00:00:00 2001 From: "arlemp@selectel.ru" Date: Wed, 8 Dec 2021 00:31:33 +0300 Subject: [PATCH] correct design citata --- functions.php | 20 ++++++++++++++++++++ style.css | 9 +++++++++ 2 files changed, 29 insertions(+) diff --git a/functions.php b/functions.php index 32d4622..03659b5 100644 --- a/functions.php +++ b/functions.php @@ -457,6 +457,26 @@ function lang_version(){ } +function citata_title($percon){ + + $result = []; + $pos_zpt = strpos($percon, ','); + + if ($pos_zpt) { + + $result['percon'] = substr($percon, 0, $pos_zpt); + $result['status'] = substr($percon, $pos_zpt + 1); + + } + else { + $result['percon'] = $citata; + } + + + return $result; + +} + add_action( 'pre_get_posts', function ($query) { diff --git a/style.css b/style.css index 8efb7da..74cfa07 100644 --- a/style.css +++ b/style.css @@ -1354,6 +1354,15 @@ a{ text-transform: uppercase; } + .left_citata_status{ + + color: #909294; + font-size: 13px; + line-height: 140%; + margin-top: 10px; + + } + .moread{ display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));