bookmarklet.phtml 1.2 KB

123456789101112131415161718192021222324
  1. <?php $this->partial('aside_subscription'); ?>
  2. <div class="post">
  3. <div class="link-back-wrapper">
  4. <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
  5. </div>
  6. <h2><?= _t('sub.bookmarklet.title') ?></h2>
  7. <p><a class="btn btn-important"
  8. href="javascript:(function(){var%20url%20=%20location.href;var%20otherWindow=window.open('about:blank','_blank');otherWindow.opener=null;otherWindow.location='<?=
  9. Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&amp;url_rss='+encodeURIComponent(url);})();"><?= _t('sub.bookmarklet.label') ?></a></p>
  10. <?= _t('sub.bookmarklet.documentation') ?>
  11. <h2><?= _t('sub.firefox.title') ?></h2>
  12. <p class="alert alert-warn">
  13. <?= _t('sub.firefox.obsolete_63', $this->default_category->name()) ?>
  14. </p>
  15. <p><?= _t('sub.firefox.documentation') ?></p>
  16. <pre>browser.contentHandlers.types.number.uri → <?= Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&amp;url_rss=%s</pre>
  17. <h2><?= _t('sub.api.title') ?></h2>
  18. <p><?= _t('sub.api.documentation') ?></p>
  19. <pre><?= Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&amp;url_rss=%s</pre>
  20. </div>