Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit 5364ae61 by Romain Duminil

Update README.md

parent 7ee559f9
......@@ -19,6 +19,29 @@ communityvoice.eu
`[comment_nbr]` : return comments number
## Templates override
You can override default plugin templates by creating `communityVoice` folder in your theme and adding your own templates.
Templates list :
| Filename | Description | Arguments |
|--------------------------|----------------------|-------------------------------------|
| comments_count.php | Comments number | commentNbr (optional) |
| negative_vote_button.php | Negative vote button | data, name, class, value (optional) |
| negative_vote_count.php | Negative vote number | nbVote |
| positive_vote_button.php | Positive vote button | data, name, class, value (optional) |
| positive_vote_count.php | Positive vote number | nbVote |
Example :
> wp-content/themes/myAwesomeTheme/communityVoice/positive_vote_button.php
```
<input type='button' <?= $args['name'] . ' ' . $args['data'] ?> value='<?= $args['value'] ?>' class="<?= $args['class'] ?>"/>
```
To get help you can copy templates in the CommunityVoice plugin.
# CommunityProject
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment