From 75574b01f7a361ef27ba3605e1a124424bb83014 Mon Sep 17 00:00:00 2001 From: "Quintino A. G. Souza" Date: Tue, 17 Mar 2026 10:53:27 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20=C3=ADcone=20'home'=20=C3=A0=20exten?= =?UTF-8?q?s=C3=A3o=20Twig=20de=20=C3=ADcones=20acad=C3=AAmicos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- README.md | 1 + src/TwigExtension/AcademicIconsExtension.php | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index fcff917..0e59eec 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ A função `site_tools_academic_icon(name)` retorna o SVG inline do ícone solic | Nome | Plataforma | Cor | |------|------------|-----| +| `home` | Página pessoal | sem fill (definir via CSS) | | `lattes` | Plataforma Lattes (CNPq) | `#005195` | | `orcid` | ORCID | `#a6ce39` | | `mathscinet` | MathSciNet (AMS) | `#0f4f96` | diff --git a/src/TwigExtension/AcademicIconsExtension.php b/src/TwigExtension/AcademicIconsExtension.php index c3f6dbf..960edbc 100644 --- a/src/TwigExtension/AcademicIconsExtension.php +++ b/src/TwigExtension/AcademicIconsExtension.php @@ -43,6 +43,7 @@ class AcademicIconsExtension extends AbstractExtension { */ public function renderIcon(string $name): MarkupInterface { return Markup::create(match ($name) { + 'home' => $this->iconHome(), 'lattes' => $this->iconLattes(), 'orcid' => $this->iconOrcid(), 'mathscinet' => $this->iconMathSciNet(), @@ -50,6 +51,17 @@ class AcademicIconsExtension extends AbstractExtension { }); } + /** + * Ícone de página pessoal (casinha). + */ + protected function iconHome(): string { + return <<<'SVG' + +SVG; + } + /** * Ícone da Plataforma Lattes (CNPq). *