2011-10-08 13:10:49 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2012-02-22 16:04:17 +01:00
|
|
|
* Copyright (c) 2011 Marvin Thomas Rabe <mrabe@marvinrabe.de>
|
2011-10-08 13:10:49 +02:00
|
|
|
* Copyright (c) 2011 Arthur Schiwon <blizzz@arthur-schiwon.de>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
2012-11-07 00:52:14 +01:00
|
|
|
function bookmarklet(){
|
|
|
|
$l = new OC_l10n('bookmarks');
|
|
|
|
$blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=document.title,d=a.open('";
|
|
|
|
$blet .= OCP\Util::linkToAbsolute('bookmarks', 'addBm.php');
|
|
|
|
$blet .= "?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=400px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();";
|
|
|
|
$help_msg = $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:');
|
2013-03-02 15:42:54 +01:00
|
|
|
return '<div class="bkm_hint">'.$help_msg.'</div><br /><a class="button bookmarklet" href="' . $blet . '">' . $l->t('Read later') . '</a>';
|
2012-11-07 00:52:14 +01:00
|
|
|
}
|
2011-10-08 13:10:49 +02:00
|
|
|
?>
|
2012-11-07 00:05:52 +01:00
|
|
|
|
|
|
|
<div id="leftcontent">
|
|
|
|
|
2012-11-05 21:34:09 +01:00
|
|
|
<form id="add_form">
|
2013-02-28 00:01:59 +01:00
|
|
|
<input type="text" id="add_url" value="" placeholder="<?php p($l->t('Address')); ?>"/>
|
|
|
|
<input type="submit" value="<?php p($l->t('Add')); ?>" id="bookmark_add_submit" />
|
2012-11-04 23:55:03 +01:00
|
|
|
</form>
|
2012-08-10 00:03:56 +02:00
|
|
|
|
2012-06-27 16:32:04 +02:00
|
|
|
<p id="tag_filter">
|
2013-02-28 00:01:59 +01:00
|
|
|
<input type="text" value="<?php p($_['req_tag']); ?>"/>
|
2012-06-27 16:32:04 +02:00
|
|
|
</p>
|
2013-02-28 00:01:59 +01:00
|
|
|
<input type="hidden" id="bookmarkFilterTag" value="<?php p($_['req_tag']); ?>" />
|
2012-06-27 16:32:04 +02:00
|
|
|
|
2013-02-28 00:01:59 +01:00
|
|
|
<label><?php p($l->t('Related Tags')); ?></label>
|
2012-06-27 16:32:04 +02:00
|
|
|
<ul class="tag_list">
|
|
|
|
</ul>
|
2012-06-27 17:05:35 +02:00
|
|
|
|
2012-10-31 22:31:43 +01:00
|
|
|
|
2012-11-05 23:53:46 +01:00
|
|
|
<div id="bookmark_settings" class="">
|
2012-11-03 22:46:42 +01:00
|
|
|
<ul class="controls">
|
2013-02-28 00:01:59 +01:00
|
|
|
<li id="settingsbtn" title="<?php p($l->t('Settings')); ?>">
|
|
|
|
<img class="svg" src="<?php print_unescaped(OCP\Util::imagePath('core', 'actions/settings.png')); ?>"
|
|
|
|
alt="<?php p($l->t('Settings')); ?>" />
|
2013-02-12 13:55:17 +01:00
|
|
|
</li>
|
2012-11-03 22:46:42 +01:00
|
|
|
</ul>
|
|
|
|
<div id="bm_setting_panel">
|
|
|
|
<?php require 'settings.php';?>
|
2012-10-31 22:31:43 +01:00
|
|
|
</div>
|
2012-11-03 22:46:42 +01:00
|
|
|
</div>
|
2012-10-31 22:31:43 +01:00
|
|
|
|
2012-07-03 13:47:09 +02:00
|
|
|
</div>
|
2012-06-27 16:32:04 +02:00
|
|
|
<div id="rightcontent" class="rightcontent">
|
|
|
|
<div id="firstrun" style="display: none;">
|
2013-02-07 00:33:47 +01:00
|
|
|
<div id="distance"></div>
|
|
|
|
<div id="firstrun_message">
|
2013-03-02 15:42:54 +01:00
|
|
|
<p class="title"><?php
|
2013-02-28 00:01:59 +01:00
|
|
|
p($l->t('You have no bookmarks'));
|
2012-11-07 00:52:14 +01:00
|
|
|
$embedded = true;
|
|
|
|
|
2013-03-02 15:42:54 +01:00
|
|
|
print_unescaped(bookmarklet());?></p><br/><br />
|
2012-11-07 00:52:14 +01:00
|
|
|
|
2013-03-02 15:42:54 +01:00
|
|
|
<div class="bkm_hint"><a href="#" id="firstrun_setting"><?php p($l->t('You can also try to import a bookmark file'));?></a></div>
|
2013-02-07 00:33:47 +01:00
|
|
|
</div>
|
2012-11-07 23:41:00 +01:00
|
|
|
</div>
|
2012-11-07 00:52:14 +01:00
|
|
|
<div class="bookmarks_list"></div>
|
2012-06-28 11:40:42 +02:00
|
|
|
</div>
|
2013-02-28 00:01:59 +01:00
|
|
|
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('bookmarks/js', 'full_tags.php'));?>"></script>
|
2013-01-22 20:44:40 +01:00
|
|
|
|
2012-10-21 13:37:30 +02:00
|
|
|
<?php require 'js_tpl.php';?>
|