Shopping Cart Operations > Built-in Features

Resouce Library Modal Icon images

(1/1)

dhigz:
I am a  long term user of AbanteCart. It has always annoyed me that all icons how in the Resource Library Modal with the fa-code icon instead of the actual icon. Since my the issue has been corrected in the Media Manager and icons show as they truly are and my level of frustration reached a peak, I decided to fix the problem. Little did I know how easy it was.

A small edit to /admin/view/default/template/responses/common/resource_library.tpl is all it took.

On line 184 find:

--- Code: ---<?php if ($rl['resource_code']) { ?>
<div class="thmb-prev thmb-icon">
<i class="fa fa-code fa-3"></i>
        </div>
<?php } else { ?>

--- End code ---

Change it to:


--- Code: ---<?php if ($rl['resource_code']) { ?>
<div class="thmb-prev thmb-icon">
<?php echo $rl['resource_code']; ?>
         </div>
<?php } else { ?>

--- End code ---

Please consider making this change in future releases.

Basara:
Hello.
Thank you for the suggestion we will check your code.
One notice, to display font-awesome or other icons require additional CSS and font resources to be loaded in the admin.

HADY:

--- Quote from: dhigz on September 13, 2020, 04:08:49 PM ---I am a  long term user of AbanteCart. It has always annoyed me that all icons how in the Resource Library Modal with the fa-code icon instead of the actual icon. Since my the issue has been corrected in the Media Manager and icons show as they truly are and my level of frustration reached a peak, I decided to fix the problem. Little did I know how easy it was.

A small edit to /admin/view/default/template/responses/common/resource_library.tpl is all it took.

On line 184 find:

--- Code: ---<?php if ($rl['resource_code']) { ?>
<div class="thmb-prev thmb-icon">
<i class="fa fa-code fa-3"></i>
        </div>
<?php } else { ?>

--- End code ---

Change it to:


--- Code: ---<?php if ($rl['resource_code']) { ?>
<div class="thmb-prev thmb-icon">
<?php echo $rl['resource_code']; ?>
         </div>
<?php } else { ?>

--- End code ---

Please consider making this change in future releases.

--- End quote ---



good point...
Thanks...

abolabo:
not sure it's a good idea.
If you accidentally posted some wrong html-code as code of resource you cannot to change it back because whole page will be broken

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod