Skip to content

Kirby 3.6.6

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

<?= twitter('getkirby') ?>
<?= twitter('getkirby', 'Follow Kirby on Twitter') ?>