thelia-modules / comment Goto Github PK
View Code? Open in Web Editor NEWComment system for customers
License: GNU Lesser General Public License v3.0
Comment system for customers
License: GNU Lesser General Public License v3.0
The "comment-customer" id on div in ajax-comment file is into a loop. So this id is repeated and its not w3c valide ;)
Two routing have the same ID:
<route id="admin.comment.comments.activation" path="/admin/module/comment/activation/{ref}/{refId}" methods="post">
<default key="_controller">Comment\Controller\Back\CommentController::activationAction</default>
<requirement key="ref">.*</requirement>
<requirement key="refId">\d+</requirement>
</route>
<route id="admin.comment.comments.activation" path="/admin/module/comment/request-customer">
<default key="_controller">Comment\Controller\Back\CommentController::requestCustomerCommentAction</default>
</route>
the first one - Comments activation for product doesn't work
It can be very useful to get notified by email when a new comment is posted.
In back-office, any link exists to get to the comment list (route : /admin/module/comments).
La class content est déja définie et c'est d'ailleurs curieux car dans le template sur layout.tpl,
il y a <div
id="content">
alors que c'est une class.
Enfin bon du coup il y a un "conflit" entre les 2, et il ne faudrait pas dire id= mais class=,
non ?
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>
{comment_stars} should be a smarty helper to be usable everywhere on a page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.