Просмотр исходного кода

Ticket #5184 - Add pissibility to use another iconset.

AntonLV 1 год назад
Родитель
Сommit
9d0c49321e

+ 2 - 2
inc/js/classes/BxDolCreatePost.js

@@ -91,13 +91,13 @@ BxDolCreatePost.prototype.getForm = function (sModuleName, sModuleUri, oElement)
                         if($(sForm).length == 0)
                             $('.sys-cpf-close').before($('<div class="sys-cpf-form sys-cpf-' + oData.module + '"></div>').hide());
 
-                        $(sForm).html(oData.content).show().siblings('.sys-cpf-close:hidden').show();
+                        $(sForm).html(oData.content).show().bxProcessHtml().siblings('.sys-cpf-close:hidden').show();
                     }, 
                     'json'
                 );
             }
             else 
-                $('.sys-cpf-form.sys-cpf-' + sModuleName).show().siblings('.sys-cpf-close:hidden').show();
+                $('.sys-cpf-form.sys-cpf-' + sModuleName).show().bxProcessHtml().siblings('.sys-cpf-close:hidden').show();
         }
     });
 

+ 1 - 1
inc/js/classes/BxDolUploader.js

@@ -170,7 +170,7 @@ BxDolUploaderBase.prototype.restoreGhosts = function (bInitReordering, onComplet
                     $this.showGhost(iFileId, oVars);
                 });
 
-            $('#' + $this._sResultContainerId).bx_show_more_check_overflow();
+            $('#' + $this._sResultContainerId).bxProcessHtml().bx_show_more_check_overflow();
 
             if(bInitReordering) {
                 var sClassGhost = 'bx-uploader-ghost';

+ 1 - 4
modules/boonex/artificer/js/utils.js

@@ -84,10 +84,7 @@ BxArtificerUtils.prototype.setColorSchemeHtml = function()
 
 BxArtificerUtils.prototype.setColorSchemeIcon = function() 
 {
-    if(this.isColorSchemeDark())
-        $('.bx-sb-theme-switcher .sys-icon').addClass('moon').removeClass('sun');
-    else
-        $('.bx-sb-theme-switcher .sys-icon').addClass('sun').removeClass('moon');
+    $('.bx-sb-theme-current').html('<i class="sys-icon ' + (this.isColorSchemeDark() ? 'moon' : 'sun') + '"></i>').bxProcessHtml();
 };
 
 BxArtificerUtils.prototype.onColorSchemeChange = function(iCode) 

+ 2 - 2
modules/boonex/artificer/template/color_scheme_switcher.html

@@ -1,4 +1,4 @@
-<div class="bx-sb-theme-switcher absolute h-10 top-0 ltr:right-4 rtl:left-4 leading-10">
-    <a class="hover:no-underline" href="javascript:" onclick="oBxArtificerUtils.getColorSchemeMenu()"><i class="sys-icon desktop"></i></a>
+<div class="bx-sb-theme-switcher absolute flex items-center h-10 top-0 ltr:right-4 rtl:left-4 leading-10">
+    <a class="bx-sb-theme-current hover:no-underline" href="javascript:" onclick="oBxArtificerUtils.getColorSchemeMenu()"><i class="sys-icon sun"></i></a>
 </div>
 __popup__

+ 2 - 2
modules/boonex/events/template/timeline_post.html

@@ -1,11 +1,11 @@
 <div class="bx-tl-item-raw-cnt bx-event">
     <bx_if:date>
-        <div class="bx-tl-info bx-def-margin-sec-bottom bx-def-font-h3">
+        <div class="bx-tl-info bx-def-margin-sec-bottom bx-def-font-h3 flex items-center">
             <i class="sys-icon calendar-alt bx-def-margin-thd-right"></i> <span class="dtstart" title="__date_c__">__date__</span>
         </div>
     </bx_if:date>
     <bx_if:location>
-        <div class="bx-tl-info bx-def-margin-sec-bottom bx-def-font-h3">
+        <div class="bx-tl-info bx-def-margin-sec-bottom bx-def-font-h3 flex items-center">
             <i class="sys-icon map-marker-alt bx-def-margin-thd-right"></i> <span class="location">__location__</span>
         </div>
     </bx_if:location>

+ 6 - 0
template/scripts/BxBaseIconsetLucide.php

@@ -25,13 +25,16 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'angle-double-left' => 'chevrons-left',
             'angle-double-right' => 'chevrons-right',
             'arrows-alt' => 'move',
+            'bars' => 'menu',
             'book-reader' => 'book-open-text',
             'buffer' => 'layers',
             'building' => 'building',
             'bullhorn' => 'megaphone',
+            'calendar-alt' => 'calendar-days',
             'calendar-day' => 'calendar-days',
             'calendar-plus' => 'calendar-plus',
             'camera-retro' => 'camera',
+            'caret-right' => 'chevron-right',
             'cart-arrow-down' => 'shopping-cart',
             'cart-plus' => 'shopping-cart',
             'cc-stripe' => 'credit-card',
@@ -45,6 +48,7 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'comment' => 'message-circle',
             'comment-dots' => 'message-square-dashed',
             'comments' => 'messages-square',
+            'desktop' => 'monitor',
             'donate' => 'hand-coins',
             'ellipsis-h' => 'more-horizontal',
             'ellipsis-v' => 'more-vertical',
@@ -62,6 +66,7 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'file-export' => 'file-output',
             'file-invoice' => 'receipt',
             'file-word' => 'file-text',
+            'fire' => 'flame',
             'group' => 'users',
             'hand-holding-usd' => 'hand-coins',
             'hashtag' => 'hash',
@@ -74,6 +79,7 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'lockopen' => 'unlock',
             'mail-bulk' => 'mails',
             'map-marker' => 'map-pin',
+            'map-marker-alt' => 'map-pin',
             'money-check-alt' => 'wallet-cards',
             'object-group' => 'layout-dashboard',
             'pencil-alt' => 'pencil-line',