Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image représenante d'une catégorie #331

Closed
Philippe-M opened this issue Sep 27, 2019 · 1 comment
Closed

Image représenante d'une catégorie #331

Philippe-M opened this issue Sep 27, 2019 · 1 comment
Assignees
Labels
changes new features
Milestone

Comments

@Philippe-M
Copy link
Contributor

Philippe-M commented Sep 27, 2019

Un petit PR pour gérer l'affichage d'une image représentante une catégorie : #330

image

image

Mise à jour de la doc plxShow

function catThumbnail

Usage

<?php $plxShow->catThumbnail('$format', $echo); ?>

Détails des paramètres

    $format (string) (optionnel) : format du texte pour chaque tag ; valeurs par défauts : <a href="#img_url"><img class="cat_thumbnail" src="#img_thumb_url" alt="#img_alt" title="#img_title" /></a> ; valeurs possibles :
        img_url : l'URL de l'image d'accroche
        img_thumb_url : l'URL de la miniature de l'image d'accroche
        img_title : Titre de l'image d'accroche
        img_alt : Texte alternatif d'affichage de l'image d'accroche
    $echo (boolean) (optionnel) : valeurs possibles : true / false. Par défaut la valeur est à true. Si la valeur est à false, alors l'image ne sera pas affiché

Exemples

<?php $plxShow->catThumbnail() ?>
<?php $plxShow->catThumbnail('<a href="#img_url"><img class="cat_thumbnail" src="#img_thumb_url" alt="#img_alt" title="#img_title" /></a>', true) ?>
@haruka-7 haruka-7 self-assigned this Sep 27, 2019
@haruka-7 haruka-7 added the changes new features label Sep 27, 2019
@haruka-7 haruka-7 added this to the PluXml 5.8 milestone Sep 27, 2019
haruka-7 added a commit that referenced this issue Sep 27, 2019
@haruka-7
Copy link
Collaborator

PR mergé dans PluXml 5.8 (branche develop).
Merci beaucoup !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes new features
Projects
None yet
Development

No branches or pull requests

2 participants