foldershare-8.x-1.2/templates/foldershare.html.twig
templates/foldershare.html.twig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | {# /** * @file * Defines the theme template to show a folder or file view. * * Available variables: * - 'item' = the FolderShare entity, with limited access to * object properties and methods. Only method names starting with * 'get', 'has', or 'is', and a few common methods such as 'id' * and 'label' are available. * * - 'url' = the URL of the item. * * - 'title_prefix' and 'title_suffix' = additional output populated * by modules and intended to be shown before and after the main title. * * - 'attributes' = HTML attributes for the containing element * (e.g. an <article>). * * - 'title_attributes' = HTML attributes for the title element. * * - 'content_attributes' = HTML attributes for the content element. * * - 'view_mode' = the name of the view mode (e.g. "full"). * * - 'page' = TRUE/FALSE indicating if the view is a full page. * * - 'logged_in' = TRUE/FALSE indicating if the user is logged in. * * - 'is_admin' = TRUE/FALSE indicating if the user is an admin. * * @ingroup foldershare */ #} <article{{ attributes }} class = "foldershare-content" > {% if not page %} {{ title_prefix }} <h2{{ title_attributes }}> <a href= "{{ url }}" rel= "bookmark" >{{ label }}</a> </h2> {{ title_suffix }} {% endif %} <div{{ content_attributes }}> {{ content }} </div> </article> |