daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {{ drupal_entity('profile', comment.uid.target_id, 'teaser') }}
  2.    
  3. {#
  4. /**
  5.  * @file
  6.  * Default theme implementation for comments.
  7.  *
  8.  * Available variables:
  9.  * - author: Comment author. Can be a link or plain text.
  10.  * - content: The content-related items for the comment display. Use
  11.  *   {{ content }} to print them all, or print a subset such as
  12.  *   {{ content.field_example }}. Use the following code to temporarily suppress
  13.  *   the printing of a given child element:
  14.  *   @code
  15.  *   {{ content|without('field_example') }}
  16.  *   @endcode
  17.  * - created: Formatted date and time for when the comment was created.
  18.  *   Preprocess functions can reformat it by calling format_date() with the
  19.  *   desired parameters on the 'comment.created' variable.
  20.  * - changed: Formatted date and time for when the comment was last changed.
  21.  *   Preprocess functions can reformat it by calling format_date() with the
  22.  *   desired parameters on the 'comment.changed' variable.
  23.  * - permalink: Comment permalink.
  24.  * - submitted: Submission information created from author and created
  25.  *   during template_preprocess_comment().
  26.  * - user_picture: The comment author's profile picture.
  27.  * - status: Comment status. Possible values are:
  28.  *   unpublished, published, or preview.
  29.  * - title: Comment title, linked to the comment.
  30.  * - attributes: HTML attributes for the containing element.
  31.  *   The attributes.class may contain one or more of the following classes:
  32.  *   - comment: The current template type; for instance, 'theming hook'.
  33.  *   - by-anonymous: Comment by an unregistered user.
  34.  *   - by-{entity-type}-author: Comment by the author of the parent entity,
  35.  *     eg. by-node-author.
  36.  *   - preview: When previewing a new or edited comment.
  37.  *   The following applies only to viewers who are registered users:
  38.  *   - unpublished: An unpublished comment visible only to administrators.
  39.  * - title_prefix: Additional output populated by modules, intended to be
  40.  *   displayed in front of the main title tag that appears in the template.
  41.  * - title_suffix: Additional output populated by modules, intended to be
  42.  *   displayed after the main title tag that appears in the template.
  43.  * - content_attributes: List of classes for the styling of the comment content.
  44.  * - title_attributes: Same as attributes, except applied to the main title
  45.  *   tag that appears in the template.
  46.  * - threaded: A flag indicating whether the comments are threaded or not.
  47.  *
  48.  * These variables are provided to give context about the parent comment (if
  49.  * any):
  50.  * - comment_parent: Full parent comment entity (if any).
  51.  * - parent_author: Equivalent to author for the parent comment.
  52.  * - parent_created: Equivalent to created for the parent comment.
  53.  * - parent_changed: Equivalent to changed for the parent comment.
  54.  * - parent_title: Equivalent to title for the parent comment.
  55.  * - parent_permalink: Equivalent to permalink for the parent comment.
  56.  * - parent: A text string of parent comment submission information created from
  57.  *   'parent_author' and 'parent_created' during template_preprocess_comment().
  58.  *   This information is presented to help screen readers follow lengthy
  59.  *   discussion threads. You can hide this from sighted users using the class
  60.  *   visually-hidden.
  61.  *
  62.  * These two variables are provided for context:
  63.  * - comment: Full comment object.
  64.  * - entity: Entity the comments are attached to.
  65.  *
  66.  * @see template_preprocess_comment()
  67.  *
  68.  * @ingroup themeable
  69.  */
  70. #}
  71.  
  72. <article{{ attributes.addClass('js-comment comment--field-article-commentaire') }}>
  73.  
  74.   <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 bs-region-comment">
  75.  
  76.     <div class="col-xs-3 col-sm-3 col-md-2 col-lg-2 bs-left">
  77.       {{ drupal_entity('profile', comment.uid.target_id, 'teaser') }}
  78.       {{ created }}
  79.     </div>
  80.  
  81.     <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10 bs-right">
  82.      {{ content.field_article_commentaire }}
  83.      {{ content.links }}
  84.      {{ content.flag_report_comment }}
  85.     </div>
  86.  
  87.   </div>
  88.  
  89. </article>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top