[Skip to main content](#vessel-content)

#   function \_quickiconButton

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2706
- Thank you received: 74
-
-

14 years 8 months ago -  14 years 8 months ago [\#44840](#44840) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[function \_quickiconButton](/forum/5-support-en-francais-french-support-/44840-function-quickiconbutton#44840 "Bonjour  serait il possible dans une prochaine version de changer le code de .z/components/com&#95;hikashop/views/user/view.html.php  pour quelque chose de plus utilisable sans table et pas de styles codes en dur ? et pas de float left  j'ai change pour du code minimaliste")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

serait il possible dans une prochaine version de changer le code de .z/components/com_hikashop/views/user/view.html.php

> function \_quickiconButton( $link, $image, $text,$description,$level){
> $url = hikashop\_level($level) ? 'onclick="document.location.href=\\''.$link.'\\';"' : '';
> $html = '&lt;div style="float:left;width: 100%;" '.$url.' class="icon"&gt;&lt;a href="';
> $html .= hikashop\_level($level) ? $link : '#';
> $html .= '"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td style="text-align: center;" width="120px"&gt;';
> $html .= '&lt;span class="icon-48-'.$image.'" style="background-repeat:no-repeat;background-position:center;height:48px" title="'.$text.'"&gt; &lt;/span&gt;';
> $html .= '&lt;span class="hikashop\_cpanel\_button\_text"&gt;'.$text.'&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;div class="hikashop\_cpanel\_button\_description"&gt;'.$description.'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/a&gt;';
> $html .= '&lt;/div&gt;';
> return $html;
> }

pour quelque chose de plus utilisable sans table et pas de styles codes en dur ? et pas de float left

j'ai change pour du code minimaliste

> function \_quickiconButton( $link, $image, $text,$description,$level){
> $url = hikashop\_level($level) ? 'onclick="document.location.href=\\''.$link.'\\';"' : '';
> $levelLink = hikashop\_level($level) ? $link : '#';
> $html = '&lt;a href="' . $levelLink . '"&gt;' . $description . '&lt;/a&gt;';
> return $html;
> }

Last edit: 14 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDQ4NDAtZnVuY3Rpb24tcXVpY2tpY29uYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 8 months ago [\#45048](#45048) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: function \_quickiconButton](/forum/5-support-en-francais-french-support-/44840-function-quickiconbutton#45048 "Bonjour  serait il possible dans une prochaine version de changer le code de .z/components/com&#95;hikashop/views/user/view.html.php  pour quelque chose de plus utilisable sans table et pas de styles codes en dur ? et pas de float left  j'ai change pour du code minimaliste")*

Non, pas de simplification.
Par contre, déplacer cette affichage dans la vue et mettre le CSS dans la feuille de style, oui.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDQ4NDAtZnVuY3Rpb24tcXVpY2tpY29uYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2706
- Thank you received: 74
-
-

14 years 8 months ago [\#45049](#45049) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: function \_quickiconButton](/forum/5-support-en-francais-french-support-/44840-function-quickiconbutton#45049 "Bonjour  serait il possible dans une prochaine version de changer le code de .z/components/com&#95;hikashop/views/user/view.html.php  pour quelque chose de plus utilisable sans table et pas de styles codes en dur ? et pas de float left  j'ai change pour du code minimaliste")*

c'est encore mieux !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDQ4NDAtZnVuY3Rpb24tcXVpY2tpY29uYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
