Skip to main content

function _quickiconButton

More
14 years 6 months ago - 14 years 6 months ago #44840 by erickb
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 = '<div style="float:left;width: 100%;" '.$url.' class="icon"><a href="';
$html .= hikashop_level($level) ? $link : '#';
$html .= '"><table width="100%"><tr><td style="text-align: center;" width="120px">';
$html .= '<span class="icon-48-'.$image.'" style="background-repeat:no-repeat;background-position:center;height:48px" title="'.$text.'"> </span>';
$html .= '<span class="hikashop_cpanel_button_text">'.$text.'</span></td><td><div class="hikashop_cpanel_button_description">'.$description.'</div></td></tr></table></a>';
$html .= '</div>';
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 = '<a href="' . $levelLink . '">' . $description . '</a>';
return $html;
}

Last edit: 14 years 6 months ago by erickb.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #45048 by nicolas
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 or Create an account to join the conversation.

More
14 years 6 months ago #45049 by erickb
c'est encore mieux !

Please Log in or Create an account to join the conversation.

Time to create page: 0.176 seconds
Powered by Kunena Forum