Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update plugins/tweets/readme.mdown

Adjusted the example to return tweets with URLs and @handles linked correctly. This had me scratching my head for a while :) 
Also documented the "show replies" parameter.
  • Loading branch information...
commit e4675eeb1621ccfc962039c6c592596cfa9933ea 1 parent d258f24
@adrianthomas adrianthomas authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 plugins/tweets/readme.mdown
View
8 plugins/tweets/readme.mdown
@@ -26,7 +26,7 @@ You can add it to your templates like this:
<strong><?php echo $tweet->user()->name() ?></strong>
<small>@<?php echo $tweet->user()->username() ?></small>
</a>
- <p><?php echo html($tweet->text()) ?></p>
+ <p><?php echo $tweet->text(true) ?></p>
<a class="date" href="<?php echo $tweet->url() ?>"><?php echo $tweet->date('h:i A - d M y') ?></a>
</li>
<?php endforeach ?>
@@ -54,6 +54,10 @@ Sets the number of returned tweets.
Disable or enable the cache. Caching the results is highly recommended. Otherwise the plugin will be super slow. You must make sure that `site/cache` is writable (change permissions to 0755) You must also set c::set('cache', true); in site/config/config.php to enable the cache.
+### hiderep (default: false)
+
+Show or hide replies you've tweeted, e.g. for users with a large number of replies that aren't interesting for the general public.
+
### refresh (default: 20 minutes)
Set the cache expiry in seconds. By default it will be set to 20 minutes. After 20 minutes the plugin will fetch fresh data from the Twitter API.
@@ -80,4 +84,4 @@ Set the cache expiry in seconds. By default it will be set to 20 minutes. After
## Author
Bastian Allgeier
-<http://getkirby.com>
+<http://getkirby.com>
Please sign in to comment.
Something went wrong with that request. Please try again.