aboutsummaryrefslogtreecommitdiff
path: root/app/views/subscription/bookmarklet.phtml
blob: 8e53a5b303b49743b57b6f36e1979b9aec2fafd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	$this->partial('aside_subscription');
?>
<main class="post">
	<h1><?= _t('sub.menu.subscription_tools') ?></h1>
	<h2><?= _t('sub.bookmarklet.title') ?></h2>
	<p><a class="btn btn-important"
		href="javascript:(function(){var%20url%20=%20location.href;var%20otherWindow=window.open('about:blank','_blank');otherWindow.opener=null;otherWindow.location='<?=
		Minz_Url::display(['c' => 'feed', 'a' => 'add'], 'html', true) ?>&amp;url_rss='+encodeURIComponent(url);})();"><?= _t('sub.bookmarklet.label') ?></a></p>
	<?= _t('sub.bookmarklet.documentation') ?>

	<h2><?= _t('sub.api.title') ?></h2>
	<p><?= _t('sub.api.documentation') ?></p>
	<kbd><?= Minz_Url::display(['c' => 'feed', 'a' => 'add'], 'html', true) ?>&amp;url_rss=%s</kbd>
</main>