Skip to content

Commit

Permalink
[TASK] Replace twitter with x
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Oct 17, 2024
1 parent 37c387e commit 62d6b7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
15 changes: 0 additions & 15 deletions public/images/twitter.svg

This file was deleted.

5 changes: 5 additions & 0 deletions public/images/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Twig/Extension/GlobalVariablesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function getGlobals(): array
'name' => 'Benjamin Kott',
'email' => '[email protected]',
'hash' => md5('[email protected]'),
'twitter' => 'benjaminkott',
'x' => 'benjaminkott',
'github' => 'benjaminkott',
'description' => 'Benjamin is Frontend-Developer at <a class="font-weight-bold" href="https://www.typo3.com" target="_blank">TYPO3</a> and worked on projects based on TYPO3 CMS from mid- to enterprise size. Since 2014 his <a class="font-weight-bold" href="https://github.com/benjaminkott/bootstrap_package" target="_blank">Bootstrap Package</a> is used as codebase for the official TYPO3 CMS Introduction Package with the goal to provide an extensive best practice example on how to create websites efficiently with TYPO3 CMS.',
],
Expand Down
8 changes: 4 additions & 4 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
<span class="btn-text">GitHub</span>
</a>
{% endif %}
{% if template.author.twitter %}
<a href="https://www.twitter.com/{{ template.author.twitter }}" class="btn btn-outline-primary">
{{ contentget( 'images/twitter.svg' ) }}
<span class="btn-text">Twitter</span>
{% if template.author.x %}
<a href="https://x.com/{{ template.author.x }}" class="btn btn-outline-primary">
{{ contentget( 'images/x.svg' ) }}
<span class="btn-text">@{{ template.author.x }}</span>
</a>
{% endif %}
</p>
Expand Down

0 comments on commit 62d6b7e

Please sign in to comment.