Kaynağa Gözat

Ticket #4721 - "Favorite List" block isn't working correctly. Point 2.

AntonLV 2 yıl önce
ebeveyn
işleme
1806dfeb8f

+ 10 - 6
modules/base/general/template/favorite-lists.html

@@ -1,6 +1,10 @@
-<bx_repeat:items>
-    <div>
-        <h2><a href="__content_url__">__title__</a></h2>
-        __content__
-    </div>
-</bx_repeat:items>
+<div class="bx-base-general-favorite-lists space-y-4">
+    <bx_repeat:items>
+        <div class="bx-base-general-favorite-list">
+            <div class="bx-base-general-fl-title text-3xl">
+                <a href="__content_url__">__title__</a>
+            </div>
+            <div class="bx-base-general-fl-content pt-2">__content__</div>
+        </div>
+    </bx_repeat:items>
+</div>

+ 1 - 1
modules/boonex/artificer/data/template/bx_forum/unit_gallery.html

@@ -1,4 +1,4 @@
-<div class="__class__ relative bx-lnk-cnt w-full bx-base-text-unit bx-base-text-unit-gallery bx-def-gal-unit-size group p-1 -m-1">
+<div class="__class__ relative bx-lnk-cnt w-full bx-base-text-unit bx-base-text-unit-gallery bx-def-gal-unit-size group p-2">
     <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">
             <bx_if:thumb>

+ 0 - 43
modules/boonex/forum/classes/BxForumModule.php

@@ -533,49 +533,6 @@ class BxForumModule extends BxBaseModTextModule
         ), false);
     }
 
-    /**
-     * @page service Service Calls
-     * @section bx_forum Discussions
-     * @subsection bx_forum-page_blocks Page Blocks
-     * @subsubsection bx_forum-browse_favorite browse_favorite
-     * 
-     * @code bx_srv('bx_forum', 'browse_favorite', [...]); @endcode
-     * 
-     * Get page block with a list of favorited items by some profile and represented as table.
-     * 
-     * @param $iProfileId (optional) integer value with profile ID. If empty value is provided, an attempt to get it from GET/POST arrays will be performed.
-     * @param $aParams (optional) an array of additional params. It's not used for now.
-     * @return HTML string with block content to display on the site or false if something is wrong. All necessary CSS and JS files are automatically added to the HEAD section of the site HTML.
-     * 
-     * @see BxForumModule::serviceBrowseFavorite
-     */
-    /** 
-     * @ref bx_forum-browse_favorite "browse_favorite"
-     */
-    public function serviceBrowseFavorite ($iProfileId = 0, $aParams = array())
-    {
-        $CNF = &$this->_oConfig->CNF;
-
-        $bEmptyMessage = false;
-        if(isset($aParams['empty_message'])) {
-            $bEmptyMessage = (bool)$aParams['empty_message'];
-            unset($aParams['empty_message']);
-        }
-
-        $bAjaxPaginate = true;
-        if(isset($aParams['ajax_paginate'])) {
-            $bAjaxPaginate = (bool)$aParams['ajax_paginate'];
-            unset($aParams['ajax_paginate']);
-        }
-
-        return $this->_serviceBrowseTable(array(
-            'type' => 'favorite', 
-            'per_page' => (int)$this->_oDb->getParam('bx_forum_per_page_profile'),
-            'empty_message' => $bEmptyMessage,
-            'ajax_paginate' => $bAjaxPaginate
-        ), false);
-    }
-
     /**
      * @page service Service Calls
      * @section bx_forum Discussions

+ 4 - 4
plugins_public/tailwind/css/tailwind.css

@@ -1324,24 +1324,24 @@
     .bx-artificer .bx-base-text-unit-gallery-wrapper.bx-forum-wrapper,
     .bx-artificer .bx-base-unit-showcase-wrapper.bx-forum-wrapper:not(.flickity-enabled)
     {
-        @apply max-w-full mx-auto grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-4 md:max-w-none;
+        @apply max-w-full grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-4 md:max-w-none;
     }
     
     .bx-artificer .bx-layout-column-wide .bx-base-text-unit-gallery-wrapper.bx-forum-wrapper,
     .bx-artificer .bx-layout-column-wide .bx-base-unit-showcase-wrapper.bx-forum-wrapper:not(.flickity-enabled)
     {
-        @apply max-w-full mx-auto grid sm:grid-cols-2 md:grid-cols-3 gap-4 md:max-w-none;
+        @apply max-w-full grid sm:grid-cols-2 md:grid-cols-3 gap-4 md:max-w-none;
     }
     
     .bx-artificer .bx-layout-column-half .bx-base-text-unit-gallery-wrapper.bx-forum-wrapper,
     .bx-artificer .bx-layout-column-half .bx-base-unit-showcase-wrapper.bx-forum-wrapper:not(.flickity-enabled)
     {
-        @apply max-w-full mx-auto grid sm:grid-cols-1 md:grid-cols-2 gap-4 md:max-w-none;
+        @apply max-w-full grid sm:grid-cols-1 md:grid-cols-2 gap-4 md:max-w-none;
     }
     .bx-artificer .bx-layout-column-thin .bx-base-text-unit-gallery-wrapper.bx-forum-wrapper,
     .bx-artificer .bx-layout-column-thin .bx-base-unit-showcase-wrapper.bx-forum-wrapper:not(.flickity-enabled)
     {
-        @apply max-w-full mx-auto grid sm:grid-cols-1 gap-4 md:max-w-none;
+        @apply max-w-full grid sm:grid-cols-1 gap-4 md:max-w-none;
     }
     .bx-artificer .bx-base-unit-showcase-wrapper.bx-forum-wrapper.flickity-enabled
     { 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
plugins_public/tailwind/css/tailwind.min.css


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor