twitter($username, $text = null, $title = null, $class = null)

Builds a Twitter profile link by username

  • $username (string)
  • $text (string)
  • $title (string)
  • $class (string)
  • return (string)

Example

Without link text

<?php echo twitter('getkirby') ?>

With link text

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