roman.lesnikov@gmail.com 4 лет назад
Родитель
Сommit
6c23d5d204

+ 5 - 0
modules/boonex/artificer/data/template/bx_forum/css/main.css

@@ -94,4 +94,9 @@ div.bx-forum-participants.none .bx-forum-participant {
 .bx-menu-meta-item-ex .bx-menu-meta-icon{
     min-width: 16px;
     text-align: center;
+}
+
+.bx-base-unit-showcase-wrapper.bx-forum-wrapper{
+    display: flex;
+    flex-wrap: nowrap;
 }

+ 6 - 2
modules/boonex/forum/classes/BxForumTemplate.php

@@ -247,10 +247,14 @@ class BxForumTemplate extends BxBaseModTextTemplate
         if(isset($aCategoryData['icon']))
             $sIcon = $this->getImage($aCategoryData['icon'], array('class' => 'sys-icon'));
         
-        $aTmplVars['category'] = $oCategory->getCategoryTitle($aData[$CNF['FIELD_CATEGORY']]);
-        $aTmplVars['category_icon'] = $sIcon;
         $oProfile = BxDolProfile::getInstanceMagic($aData[$CNF['FIELD_AUTHOR']]);
         $aTmplVars['author'] = $oProfile->getUnit();
+        $aTmplVars['category'] = $oCategory->getCategoryTitle($aData[$CNF['FIELD_CATEGORY']]);
+        $aTmplVars['category_icon'] = $sIcon;
+        $aTmplVars['bx_if:thumb']['content']['badges'] = $aTmplVars['badges'];
+        $aTmplVars['bx_if:no_thumb']['content']['badges'] = $aTmplVars['badges'];
+        $aTmplVars['bx_if:no_thumb']['content']['title'] = $aTmplVars['title'];
+        $aTmplVars['bx_if:no_thumb']['content']['summary_attr'] = $aTmplVars['bx_if:thumb']['content']['summary_attr'];
 
         return $aTmplVars;
     }

+ 1 - 4
modules/boonex/forum/template/css/main.css

@@ -546,10 +546,7 @@
     display: none;
 }
 
-.bx-base-unit-showcase-wrapper.bx-forum-wrapper{
-    display: flex;
-    flex-wrap: nowrap;
-}
+
 
 
 /* ---------------new meta menu need to move incore*/

+ 3 - 1
modules/boonex/forum/template/unit_gallery.html

@@ -2,7 +2,9 @@
     <div class="bg-white dark:bg-gray-800 shadow ring-1 ring-gray-300 dark:ring-gray-700 rounded-md xl:mx-auto h-full">
         <div class="h-full space-y-4 p-1 pb-4 flex flex-col justify-between">
             <bx_if:thumb>
-                <a href="__content_url__" title="__summary_attr__">   <img class="flex grow-0 w-full aspect-video overflow-y-auto align-top  object-cover rounded" src="__gallery_url__" alt=""></a>  
+                <a href="__content_url__" title="__summary_attr__">
+                    <img class="flex grow-0 w-full aspect-video overflow-y-auto align-top  object-cover rounded" src="__gallery_url__" alt="">
+                </a>  
             </bx_if:thumb>
             <div class="grow-none px-3 mt-4 text-lg leading-tight font-semibold text-gray-700 group-hover:text-gray-900 dark:text-gray-200 dark:group-hover:text-white">
                 <a href="__content_url__" title="__summary_attr__" class=" text-lg leading-tight font-semibold text-gray-600 group-hover:text-gray-900 dark:text-gray-300 dark:group-hover:text-white">__title__</a>