mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/site_tools.git
synced 2026-04-22 14:31:57 -03:00
Initial commit
Módulo site_tools com ferramentas utilitárias para outros módulos: - Bloco ShareLinks para compartilhamento em redes sociais - Seção "Local Modules" no menu de configuração do Drupal Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
25
templates/site-tools-share-links.html.twig
Normal file
25
templates/site-tools-share-links.html.twig
Normal file
@@ -0,0 +1,25 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Template para o bloco de links de compartilhamento.
|
||||
*
|
||||
* Variáveis disponíveis:
|
||||
* - links: Array de links de compartilhamento, cada um contendo:
|
||||
* - content: Render array ou markup do link.
|
||||
* - weight: Peso para ordenação.
|
||||
* - provider: Módulo que fornece o link.
|
||||
* - attributes: Atributos HTML do container.
|
||||
*/
|
||||
#}
|
||||
{% if links %}
|
||||
<div{{ attributes.addClass('site-tools-share-links') }}>
|
||||
<span class="site-tools-share-links__label">{{ 'Share'|t }}:</span>
|
||||
<div class="site-tools-share-links__items">
|
||||
{% for key, link in links %}
|
||||
<div class="site-tools-share-links__item site-tools-share-links__item--{{ key }}">
|
||||
{{ link.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user