comments.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <div class="comments-content">
  2. <!-- comment header -->
  3. <div class="comments-header has-text-centered">
  4. <p class="title is-4">{{ _('Publicar un comentario en "%(title)s"', title=article.title) }}</p>
  5. </div>
  6. <div class="comments-wrapper">
  7. <!-- comments content -->
  8. <div class="comments-content">
  9. <!-- form begin -->
  10. <form id="commentform" method="POST" action="{{ SITEURL }}/vendor/form-comments/commentsubmit.php">
  11. <input type="hidden" name="post_id" value="{{ article.url }}"/>
  12. {% if RELATIVE_URLS == False %}
  13. <input type="hidden" name="return_url" value="{{ SITEURL }}/{{ article.url }}"/>
  14. {% else %}
  15. <input type="hidden" name="return_url" value="../../{{ article.url }}"/>
  16. {% endif %}
  17. <div class="field is-horizontal">
  18. <div class="field-label is-normal">
  19. <label class="has-text-white" for="name">{{ _('Nombre') }}</label>
  20. </div>
  21. <div class="field-body">
  22. <div class="field">
  23. <div class="control">
  24. <input id="name"
  25. class="input"
  26. type="text"
  27. name="name"
  28. placeholder="{{ _('Su nombre o nick') }}"/>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="field is-horizontal">
  34. <div class="field-label is-normal">
  35. <label class="has-text-white" for="email">{{ _('Email') }}</label>
  36. </div>
  37. <div class="field-body">
  38. <div class="field">
  39. <div class="control">
  40. <input id="email"
  41. class="input"
  42. type="email"
  43. name="email"
  44. placeholder="{{ _('E-mail (requerido, no será publicado)') }}"/>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="field is-horizontal">
  50. <div class="field-label is-normal">
  51. <label class="has-text-white" for="web">{{ _('Sitio Web') }}</label>
  52. </div>
  53. <div class="field-body">
  54. <div class="field">
  55. <div class="control">
  56. <input id="web"
  57. class="input"
  58. type="url"
  59. name="link"
  60. placeholder="{{ _('Su sitio web (opcional)') }}"/>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="warning-sp">
  66. <div class="field-label is-normal">
  67. <label for="empty">{{ _('Deja esto vacío:') }}</label>
  68. </div>
  69. <input id="empty" type="text" name="url" />
  70. </div>
  71. <div class="field is-horizontal">
  72. <div class="field-label is-normal">
  73. <label class="has-text-white" for="comment">{{ _('Comentario') }}</label>
  74. </div>
  75. <div class="field-body">
  76. <div class="field">
  77. <div class="control">
  78. <textarea id="comment"
  79. class="textarea"
  80. name="comment"
  81. placeholder="{{ _('Agrega un comentario...') }}"></textarea>
  82. </div>
  83. <p>{{ _('Puede formatear su comentario con') }}
  84. {% if DEFAULT_LANG == 'de' %}
  85. <a href="https://de.wikipedia.org/wiki/Markdown"
  86. rel="noopener noreferrer" target="_blank">Markdown</a>.
  87. {% elif DEFAULT_LANG == 'en' %}
  88. <a href="https://en.wikipedia.org/wiki/Markdown"
  89. rel="noopener noreferrer" target="_blank">Markdown</a>.
  90. {% elif DEFAULT_LANG == 'eo' %}
  91. <a href="https://epo.wikitrans.net/Markdown"
  92. rel="noopener noreferrer" target="_blank">Markdown</a>.
  93. {% elif DEFAULT_LANG == 'es' %}
  94. <a href="https://es.wikipedia.org/wiki/Markdown"
  95. rel="noopener noreferrer" target="_blank">Markdown</a>.
  96. {% elif DEFAULT_LANG == 'fr' %}
  97. <a href="https://fr.wikipedia.org/wiki/Markdown"
  98. rel="noopener noreferrer" target="_blank">Markdown</a>.
  99. {% endif %}
  100. {{ _('Avatar desde') }}
  101. <a href="https://libravatar.org"
  102. rel="noopener noreferrer" target="_blank">Libravatar</a>
  103. </p>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="field is-horizontal">
  108. <div class="field-label">
  109. <!-- Left empty for spacing -->
  110. </div>
  111. <div class="field-body">
  112. <div class="field">
  113. <p class="control">
  114. <input class="button is-button-grey" name="submit" type="submit" value="{{ _('Enviar comentario') }}"/>
  115. <!-- Política de Uso -->
  116. {% if DEFAULT_LANG == 'en' %}
  117. <a href="{{ SITEURL}}/pages/usage-policy.html">{{ _('Política de uso') }}</a>
  118. {% elif DEFAULT_LANG == 'fr' %}
  119. <a href="{{ SITEURL}}/pages/politica-de-uso-es.html">{{ _('Política de uso') }}</a>
  120. {% elif DEFAULT_LANG == 'eo' %}
  121. <a href="{{ SITEURL}}/pages/regularo-pri-uzado.html">{{ _('Política de uso') }}</a>
  122. {% else %}
  123. <a href="{{ SITEURL}}/pages/politica-de-uso.html">{{ _('Política de uso') }}</a>
  124. {% endif %}
  125. <!-- /Política de Uso -->
  126. </p>
  127. </div>
  128. </div>
  129. </div>
  130. </form>
  131. <!-- form end -->
  132. </div>
  133. </div>
  134. </div>
  135. {% if article.comments %}
  136. <div class="comments-content" itemscope itemtype="https://schema.org/UserComments">
  137. <!-- comment header -->
  138. <div class="comments-header has-text-centered">
  139. <p class="title is-4">{{ _('Comentarios') }}</p>
  140. </div>
  141. <div class="comments-wrapper">
  142. <!-- comments content -->
  143. <div class="comments-content">
  144. <!-- end of comment header -->
  145. {% for comment in article.comments %}
  146. <!-- start of comment -->
  147. <div class="media" id="comment-{{comment.slug}}">
  148. <!-- comment user image -->
  149. <figure class="media-left">
  150. <p class="image is-64x64">
  151. {% if comment.avatar %}
  152. <img src="{{ comment.avatar }}"
  153. alt="{{ _('Avatar de %(user)s', user=comment.author) }}"
  154. title="{{ _('Avatar de %(user)s', user=comment.author) }}">
  155. {% else %}
  156. <img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/avatar/avatar.png"
  157. alt="{{ _('Avatar predeterminado para %(user)s', user=comment.author) }}"
  158. title="{{ _('Avatar predeterminado para %(user)s', user=comment.author) }}">
  159. {% endif %}
  160. </p>
  161. </figure>
  162. <!-- end of comment user image -->
  163. <!-- comment content -->
  164. <div class="media-content">
  165. <div class="content">
  166. <div class="content" itemprop="creator" itemscope itemtype="https://schema.org/Person">
  167. {% if comment.web %}
  168. <p itemprop="name">
  169. <strong>
  170. <a href="{{ comment.web }}"
  171. rel="noopener noreferrer"
  172. target="_blank">{{ comment.author }}</a>
  173. </strong>
  174. </p>
  175. {% else %}
  176. <p itemprop="name"><strong>{{ comment.author }}</strong></p>
  177. {% endif %}
  178. </div>
  179. <div class="content" itemprop="commentText">
  180. {{ comment.content }}
  181. </div>
  182. <time class="entry-date published" itemprop="commentTime" datetime="{{ comment.date.isoformat() }}">
  183. <small>
  184. <a href="{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" title='Permalink'>
  185. <abbr title='{{ comment.date|strftime("%Y-%m-%d-T%H-%M-%S") }}'>{{ _('Enlace Permanente') }}</abbr>
  186. </a> | {{ comment.date|strftime("%H:%M:%S") }}
  187. </small>
  188. </time>
  189. </div>
  190. </div>
  191. <!-- end of comment content -->
  192. </div>
  193. <!-- end of comments -->
  194. {% endfor %}
  195. </div>
  196. </div>
  197. </div>
  198. {% endif %}