Kirby 3 Plugin Instagram

site/templates/instagram.php

<?php
/** @var Kirby\Cms\App $kirby */
/** @var Kirby\Cms\Site $site */
/** @var Kirby\Cms\Page $page */
?><!DOCTYPE html>
<html <?= site()->attrLang() ?>>

  <head><?php snippet('plugin-htmlhead') ?></head>

  <body>

    <h1><?= $page->title()->html() ?></h1>

    <h2>site/templates/instagram.php</h2>
    <pre><code data-language="php"><?=
        lapse(md5($page->id()), function() {
          $m = 'https://raw.githubusercontent.com/bnomei/kirby3-plugins.bnomei.com/master/site/';
          return html(Kirby\Http\Remote::get($m.'templates/instagram.php')->content());
        }); ?></code></pre>

    <h2>images</h2>
    <blockquote>
    <?php
      $token = env('INSTAGRAM_TOKEN'); // dotenv plugin
      foreach (site()->instagram($token) as $data) {
          echo Kirby\Toolkit\Html::img(
          $data['images']['standard_resolution']['url']
        );
      }
    ?>
    </blockquote>

    <?php snippet('footer') ?>
  </body>
</html>

images