Extension:YotpoReviews
Appearance
If you are using version 0.3 or earlier of this extensions you are advised to immediately upgrade to the recent version of this extension to mitigate a security vulnerability.
État de la version : stable |
|
|---|---|
| Implémentation | Balise |
| Description | Adds the <yotporeviews> tag that inserts the Yotpo reviews system |
| Auteur(s) | Sophivorusdiscussion |
| Dernière version | 0.4 (2018-09-01) |
| MediaWiki | 1.25+ |
| PHP | 5.3+ |
| Modifie la base de données |
Non |
| Licence | Licence publique générale GNU v3.0 ou supérieur |
| Téléchargement | |
| Exemple | [1] |
|
$wgYotpoAppKey |
|
<yotporeviews> |
|
| Traduire l’extension YotpoReviews sur translatewiki.net si elle y est disponible | |
The YotpoReviews extension adds a <yotporeviews> tag that allows to insert the Yotpo reviews system to any page.
Installation
- Téléchargez et placez le(s) fichier(s) dans un répertoire appelé
YotpoReviewsdans votre dossierextensions/.
Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YotpoReviews
- Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
wfLoadExtension( 'YotpoReviews' ); $wgYotpoAppKey = 'your-yotpo-app-key';
Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.
Utilisation
To insert a Yotpo review system into any page, simply edit the page add the following tag to the wikitext:
<yotporeviews />
You can also modify the width, height and alignment of the reviews by setting the following parameters (showed with their default values):
<yotporeviews width="100%" height="100%" align="center"></yotporeviews>
