twitter()
Builds a Twitter link
twitter(string $username, string $text = null, string $title = null, string $class = null): string
Parameters
| Name | Type | Default |
|---|---|---|
| $username * | string |
– |
| $text | string |
null |
| $title | string |
null |
| $class | string |
null |
Return type
string
Example
Without link text
<?= twitter('getkirby') ?>
With link text
<?= twitter('getkirby', 'Follow Kirby on Twitter') ?>