1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-12-11 12:24:10 +01:00
OwncloudBookmarksOfficial/templates/list.php

68 lines
2.4 KiB
PHP
Raw Normal View History

<?php
/**
2012-02-22 16:04:17 +01:00
* Copyright (c) 2011 Marvin Thomas Rabe <mrabe@marvinrabe.de>
* 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.
*/
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:');
return '<small>'.$help_msg.'</small><br /><a class="button bookmarklet" href="' . $blet . '">' . $l->t('Read later') . '</a>';
}
?>
<div id="leftcontent">
<form id="add_form">
<input type="text" id="add_url" value="" placeholder="<?php echo $l->t('Address'); ?>"/>
<input type="submit" value="<?php echo $l->t('Add'); ?>" id="bookmark_add_submit" />
</form>
2012-06-27 16:32:04 +02:00
<p id="tag_filter">
<input type="text" value="<?php echo $_['req_tag']; ?>"/>
2012-06-27 16:32:04 +02:00
</p>
<input type="hidden" id="bookmarkFilterTag" value="<?php echo $_['req_tag']; ?>" />
2012-06-27 16:32:04 +02:00
<label><?php echo $l->t('Related Tags'); ?></label>
2012-06-27 16:32:04 +02:00
<ul class="tag_list">
</ul>
<div id="bookmark_settings" class="">
<ul class="controls">
<li style="float: right">
<button id="settingsbtn" title="<?php echo $l->t('Settings'); ?>">
<img class="svg" src="<?php echo OCP\Util::imagePath('core', 'actions/settings.png'); ?>"
alt="<?php echo $l->t('Settings'); ?>" /></button>
</li>
</ul>
<div id="bm_setting_panel">
<?php require 'settings.php';?>
</div>
</div>
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;">
<?php
echo $l->t('You have no bookmarks');
$embedded = true;
echo bookmarklet();?><br/><br />
<small><a href="#" id="firstrun_setting"><?php echo $l->t('You can also try to import a bookmark file');?></a></small>
2012-11-07 23:41:00 +01:00
</div>
<div class="bookmarks_list"></div>
2012-06-28 11:40:42 +02:00
</div>
2013-01-22 20:44:40 +01:00
<script type="text/javascript" src="<?php echo OC_Helper::linkTo('bookmarks/js', 'full_tags.php');?>"></script>
<script type="text/html" id="edit_dialog_tmpl">
2012-10-10 21:05:34 +02:00
<?php require 'addBm.php';?>
</script>
<?php require 'js_tpl.php';?>