<h5>Twitter Backup Cache</h5>
			<?php 
$all_tweets = get_transient('tweets_backup');
$time = get_transient('tweets_backup_time');
echo humanTiming($time);
echo '<br/>';
if (!is_array($all_tweets) || !isset($all_tweets[0]->created_at)) {
    echo '<pre>';
    print_r($all_tweets);
    echo '</pre>';
}
$count = count($all_tweets);
echo '<div class="count">' . $count . ' tweets cached.</div>';
echo '<ol>';
foreach ($all_tweets as $tweet) {
    echo '<li>' . tweets($tweet) . '</li>';
}
echo '</ol>';
?>
	
		</div>

		<div class="col-md-3">
			<h5>Instagram Cache</h5>
			<?php 
$all_instas = get_transient('instas');
$time = get_transient('instas_time');
echo humanTiming($time);
echo '<br/>';
if (!is_array($all_instas) || !isset($all_instas[0]->created_time)) {
    echo '<pre>';
Пример #2
0
?>

	<main role="main" class="Contain Copy">

		<h1><?php 
echo $page->title()->smartypants()->widont();
?>
</h1>

		<?php 
echo $page->text()->kirbytext();
?>

		<div class="Tweets">
			<?php 
$tweets = tweets('studiodumbar', array('hiderep' => true, 'limit' => 25, 'cache' => true, 'refresh' => 60 * 30));
?>
			<ul>
				<?php 
$i = 1;
?>
				<?php 
foreach ($tweets as $tweet) {
    ?>
					<?php 
    if ($i <= 5) {
        ?>
					<li>
						<p><?php 
        echo $tweet->text(true);
        ?>
Пример #3
0
<?php

$tweets = tweets('getkirby');
?>

<ul class="tweets">
  <?php 
foreach ($tweets as $tweet) {
    ?>
  <li>
    <a class="user" href="<?php 
    echo $tweet->user()->url();
    ?>
">
      <img src="<?php 
    echo $tweet->user()->image();
    ?>
" /> 
      <strong><?php 
    echo $tweet->user()->name();
    ?>
</strong>
      <small>@<?php 
    echo $tweet->user()->username();
    ?>
</small>
    </a>    
    <p><?php 
    echo $tweet->text(true);
    ?>
</p>
Пример #4
0
  features: {
    scrollbar: true,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'all'
  }
}).render().setList('NTASAlerts', '').start();
</script>
<?php 
tweets('MichEMHS', '#eeeeee', 'black', 'navy', 300, 'navy', 'yellow', 'MSP EMHSD');
tweets('ReadydotGov', 'white', 'black', 'firebrick', 200, '#77ccee', '#880000', 'Ready dot gov');
tweets('Citizen_Corps', '#dddddd', 'navy', 'blue', 200, 'red', 'white', 'Citizen Corps');
tweets('CentUS_ShakeOut', 'white', 'black', 'navy', 200, 'black', '#ff7777', 'ShakeOut');
?>
      </center>
<hr />
<!--
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 250,
  height: 300,
  theme: {
    shell: {