Skip to content

balisage schema rating #18

@vz777

Description

@vz777

Le module n'a pas de balisage, voila ce que j'ai ajouté à la ligne 113 de comment.html,
peut être que c'est pas très joli et qu'il y a mieux à faire,
en espérant que ça serve.

Dsl je suis pas à l'aise avec github pour faire des PR, et je sais pas mettre en forme le code alors c'est un peu difficile à lire.

<div id="comment-body" class="comment-body"> <div class="well well-sm"> {intl d="comment.fo.default" l="Comments"} {if $definition->hasRating()} {$rating={meta meta="COMMENT_RATING" key="{$definition->getRef()}" id="{$definition->getRefId()}"}} {if $rating} <span class="pull-right"> {intl d="comment.fo.default" l="rating:"} {comment_stars value=$rating} </span> <div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <meta itemprop="ratingValue" content="{$rating}" /> <span itemprop="reviewCount">{count type="comment" ref="{$ref}" ref_id="{$ref_id}" status="1" }</span> </div> {loop name="comments-review" type="comment" ref="{$ref}" ref_id="{$ref_id}" status="1" } <span itemscope itemtype="http://schema.org/Review"> <span itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing"></span> <span itemprop="author" itemscope itemtype="http://schema.org/Person"> <meta itemprop="name" content="{customer attr="firstname"}{customer attr="lastname"}" /> </span> <meta itemprop="reviewBody" content="{$CONTENT}" /> <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> <meta itemprop="ratingValue" content="{$RATING}" /><meta itemprop="bestRating" content="5" /> </span> </span> {/loop} {/if} {/if} </div> </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions