Skip to content

Instantly share code, notes, and snippets.

@sashtown
Created November 8, 2012 22:35
Show Gist options
  • Save sashtown/4042284 to your computer and use it in GitHub Desktop.
Save sashtown/4042284 to your computer and use it in GitHub Desktop.
A simple, static Tweet button/link in Kirby.
<a class="button" href="https://twitter.com/intent/tweet?source=webclient&text=<?php echo rawurlencode($page->title()); ?>%20<?php echo rawurlencode ($page->url()); ?>%20<?php echo ('via @your_account')?>" target="blank" title="Tweet this">Tweet</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment