2015-03-04 19:46:07 +00:00
< div class = " content " >
2013-12-30 23:27:33 +00:00
< h2 >< ? php yourls_e ( 'The bookmarklet' , 'isq_translation' ) ?> </h2>
2013-11-01 18:15:39 +00:00
2015-03-06 23:10:32 +00:00
< ? php $bookmarkletdialog = yourls__ ( 'Save this as a bookmark.' , 'isq_translation' ) // Can't put it where it belongs as there'd be too much char escaping ?>
< p >< ? php yourls_e ( 'Add this to your bookmarks or drag it to your bookmarks bar to quickly access shortening functions.' , 'isq_translation' ) ?> </p>
2015-03-07 00:01:11 +00:00
< p class = " bookmarklet-container " >< a href = " javascript:(function()%7Bvar%20d=document,w=window,enc=encodeURIComponent,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),s2=((s.toString()=='')?s:enc(s)),f='<?php echo YOURLS_SITE . '/index.php'; ?>',l=d.location,p='?url='+enc(l.href)+'&title='+enc(d.title)+'&keyword='+s2,u=f+p;try%7Bthrow('ozhismygod');%7Dcatch(z)%7Ba=function()%7Bif(!w.open(u))l.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();%7Dvoid(0);%7D)(); " onClick = " alert('<?php echo $bookmarkletdialog ; ?>'); return false; " class = " bookmarklet button " >< span class = " icon-move " >< ? php include ( 'public/images/move.svg' ); ?> </span><?php yourls_e( 'Shorten', 'isq_translation') ?></a></p>
2013-12-29 23:25:23 +00:00
< p >< ? php yourls_e ( 'This bookmarklet takes the page URL and title and opens a new tab, where you can fill out a CAPTCHA. If you have selected text before using the bookmarklet, that will be used as the keyword.' , 'isq_translation' ) ?> </p>
2013-12-30 23:27:33 +00:00
< p >< ? php yourls_e ( 'Support for bookmarklets on mobile varies. For example, they work on Chrome for Android but you have to add and sync them from your desktop.' , 'isq_translation' ) ?> </p>
2013-11-01 18:15:39 +00:00
</ div >
2015-03-08 15:34:35 +00:00
< footer class = " content site-footer " >
2019-01-09 14:38:43 +00:00
< p >< ? php yourls_e ( 'Powered by <a href="http://yourls.org/">YOURLS</a>. Designed by <a href="https://slomin.ski/">Tom Slominski</a>.' , 'isq_translation' ) ?> <a class="icon-github" href="https://github.com/tomslominski/infinity-squared"><?php include('public/images/github.svg'); ?></a></p>
< ? php if ( 'recaptcha' == is_get_antispam_method () || 'recaptcha_v3' == is_get_antispam_method () ) : ?>
< p class = " recaptcha-cookie " >< ? php yourls_e ( 'This site uses cookies for Google reCAPTCHA' , 'isq_translation' ); ?> .<p>
< ? php endif ; ?>
2013-11-01 18:15:39 +00:00
</ div >
</ div >
2015-03-04 19:39:54 +00:00
</ div >
2015-03-07 01:12:23 +00:00
2016-07-24 13:02:49 +01:00
< ? php global $dependencies ; ?>
2019-01-09 14:38:43 +00:00
< ? php if ( in_array ( 'recaptcha_v3' , $dependencies ) ) : ?>
< script type = " text/template " id = " recaptcha-sitekey " >< ? php echo ISQ :: $recaptcha [ 'sitekey' ]; ?> </script>
< script src = " https://www.google.com/recaptcha/api.js?render=<?php echo ISQ:: $recaptcha['sitekey'] ; ?> " ></ script >
< ? php elseif ( in_array ( 'recaptcha' , $dependencies ) ) : ?>
2016-07-24 17:25:25 +01:00
< script src = " https://www.google.com/recaptcha/api.js " ></ script >
2019-01-09 14:38:43 +00:00
< ? php endif ; ?>
< ? php if ( in_array ( 'clipboard.js' , $dependencies ) ) { ?>
< script src = " public/js/clipboard.min.js " ></ script >
2015-03-07 01:12:23 +00:00
< ? php } ?>
2019-01-09 14:38:43 +00:00
< ? php if ( in_array ( array ( 'recaptcha_v3' , 'clipboard.js' ), $dependencies ) ) : ?>
< script src = " public/js/app.js " ></ script >
< ? php endif ; ?>
2013-11-01 18:15:39 +00:00
</ body >
2013-11-01 19:21:45 +00:00
</ html >