$genericerror='<h2 class="error">'.yourls__('An error has occured :(','isq_translation').'</h2>';
if($message=$url.yourls__('added to database','isq_translation')){
$error='<h2>'.yourls__('URL shortened successfully','isq_translation').'</h2><p>'.yourls__('View the details of your short URL below.','isq_translation').'</p>';
}elseif($message=$url.yourls__('already exists in database','isq_translation')){
$error=$genericerror.'<p class="error">'.yourls__('This URL already exists in this database. This website does not allow a single URL to have multiple short links.','isq_translation').'</p>';
}elseif($message=yourls__('Short URL','isq_translation').$url.yourls__('already exists in database or is reserved','isq_translation')){
$error=$genericerror.'<p class="error">'.yourls__('This short URL already exists in this database or is reserved. This website does not allow a single URL to have multiple short links. It could\'ve also been reserved by the admin.','isq_translation').'</p>';
$error=$genericerror.'<p class="error">'.yourls__('You did not enter the URL you want to shorten or the server lost it. Please try again.','isq_translation').'</p>';
}elseif($message=yourls__('This URL is a short URL','isq_translation')){
$error=$genericerror.'<p class="error">'.yourls__('You cannot shorten a short URL!','isq_translation').'</p>';
}
?>
<html>
<head>
<title><?phpecho$ISQtitle;?></title> <!-- Site title defined in theme settings -->
if(!empty(ISQ::$general['qr'])){$ISQqr='<h2>'.yourls__('QR code','isq-translation').'</h2><p>'.yourls__('Share your link with external devices','isq-translation').'</p><img class="qr" src="https://chart.googleapis.com/chart?cht=qr&chs=250x250&chl=$shorturl&chld=L|0" alt="QR" width="250px" height="250px" />';}
if(!empty(ISQ::$general['clipboard'])){$ISQlongcopy='<button id="long-copy" data-clipboard-target="long-copy">'.yourls__('Copy to Clipboard','isq-translation').'</button>';}
if(!empty(ISQ::$general['clipboard'])){$ISQshortcopy='<button id="short-copy" data-clipboard-target="short-copy">'.yourls__('Copy to Clipboard','isq-translation').'</button>';}
if(!empty(ISQ::$general['clipboard'])){$ISQstatscopy='<button id="stats-copy" data-clipboard-target="stats-copy">'.yourls__('Copy to Clipboard','isq-translation').'</button>';}
<p><?phpyourls_e('To use the bookmarklets drag them to your bookmark bar or simply right click on them and select the appropriate option.','isq_translation')?></p>
<ahref="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 $page; ?>',l=d.location,p='?url='+enc(l.href)+'&title='+enc(d.title)+'&text='+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)()"title="<?php yourls_e( 'Shortens the URL of the current site and opens a new tab with the details of the shortened URL.', 'isq_translation') ?>"class="bookmarklet"><?phpyourls_e('Simple Shorten','isq_translation')?></a>
<ahref="javascript:(function()%7Bvar%20d=document,s=d.createElement('script');window.yourls_callback=function(r)%7Bif(r.short_url)%7Bprompt(r.message,r.short_url);%7Delse%7Balert('An%20error%20occured:%20'+r.message);%7D%7D;s.src='<?php echo $page; ?>?url='+encodeURIComponent(d.location.href)+'&jsonp=yourls';void(d.body.appendChild(s));%7D)();"title="<?php yourls_e( 'Opens a pop up with the short URL for the current page.', 'isq_translation') ?>"class="bookmarklet"><?phpyourls_e('Instant Shorten','isq_translation')?></a>
<ahref="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 $page; ?>',l=d.location,k=prompt(%22Custom%20URL%22),k2=(k?'&keyword='+k:%22%22),p='?url='+enc(l.href)+'&title='+enc(d.title)+'&text='+s2+k2,u=f+p;if(k!=null)%7Btry%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%7D)()"title="<?php yourls_e( 'Opens a popup which asks for the keyword for the current URL and opens a new tab with the details of the shortened URL.', 'isq_translation') ?>"class="bookmarklet"><?phpyourls_e('Custom Shorten','isq_translation')?></a>
<ahref="javascript:(function()%7Bvar%20d=document,k=prompt('Custom%20URL'),s=d.createElement('script');if(k!=null){window.yourls_callback=function(r)%7Bif(r.short_url)%7Bprompt(r.message,r.short_url);%7Delse%7Balert('An%20error%20occured:%20'+r.message);%7D%7D;s.src='<?php echo $page; ?>?url='+encodeURIComponent(d.location.href)+'&keyword='+k+'&jsonp=yourls';void(d.body.appendChild(s));%7D%7D)();"title="<?php yourls_e( 'This prompts you for the keyword for the current page and then opens a pop up with the short URL of the current page.', 'isq_translation') ?>"class="bookmarklet"><?phpyourls_e('Instant Custom Shorten','isq_translation')?></a>
</div>
<divclass="footer">
<p><?phpyourls_e('Powered by <a href="http://yourls.org/">YOURLS</a>. Design by <a href="http://tomslominski.net/">Tom Slominski</a>. Also used: <a href="http://formalize.me/">Formalize</a> and <a href="http://qtip2.com/">qTip²</a>. Find this theme on <a href="https://github.com/tomslominski/infinity-squared">GitHub</a>.','isq_translation')?></p>