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-06-21 13:57:18 +02:00
|
|
|
<input type="hidden" id="bookmarkFilterTag" value="<?php if(isset($_GET['tag'])) echo OCP\Util::sanitizeHTML($_GET['tag']); ?>" />
|
2011-10-08 13:54:45 +02:00
|
|
|
<div id="controls">
|
2012-06-27 16:32:04 +02:00
|
|
|
<input type="submit" value="<?php echo $l->t('New bookmark'); ?>" id="bookmark_add_submit" />
|
2011-08-15 22:05:07 +02:00
|
|
|
</div>
|
2012-06-27 16:32:04 +02:00
|
|
|
<div id="leftcontent">
|
|
|
|
<p id="tag_filter">
|
2012-06-27 17:05:35 +02:00
|
|
|
<input type="text" placeholder="Filter By tag" value="<?php if(isset($_GET['tag'])) echo OCP\Util::sanitizeHTML($_GET['tag']); ?>"/>
|
2012-06-27 16:32:04 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<ul class="tag_list">
|
|
|
|
<?php foreach($_['tags'] as $tag):?>
|
2012-06-27 17:37:38 +02:00
|
|
|
<li><span class="tag"><?php echo $tag['tag'];?></span>
|
|
|
|
<p class="tags_actions">
|
|
|
|
<span class="bookmark_edit">
|
|
|
|
<img class="svg" src="<?php echo OCP\image_path('core','actions/rename.svg') ?>" title="Edit">
|
|
|
|
</span>
|
|
|
|
<span class="bookmark_delete">
|
|
|
|
<img class="svg" src="<?php echo OCP\image_path('core','actions/delete.svg') ?>" title="Delete">
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<em><?php echo $tag['nbr'];?></em>
|
|
|
|
</li>
|
2012-06-27 16:32:04 +02:00
|
|
|
<?php endforeach;?>
|
|
|
|
</ul>
|
2012-06-27 17:05:35 +02:00
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<ul class="share_list">
|
2012-06-27 17:37:38 +02:00
|
|
|
<?php foreach($_['shared'] as $users):?>
|
|
|
|
<li><span class="tag"><?php echo $users['name'];?></span>
|
|
|
|
<p class="tags_actions">
|
|
|
|
<span class="bookmark_edit">
|
|
|
|
<img class="svg" src="<?php echo OCP\image_path('core','actions/rename.svg') ?>" title="Edit">
|
|
|
|
</span>
|
|
|
|
<span class="bookmark_delete">
|
|
|
|
<img class="svg" src="<?php echo OCP\image_path('core','actions/delete.svg') ?>" title="Delete">
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<em><?php echo $users['nbr'];?></em>
|
|
|
|
</li>
|
2012-06-27 17:05:35 +02:00
|
|
|
<?php endforeach;?>
|
|
|
|
<ul>
|
2012-02-20 02:18:27 +01:00
|
|
|
</div>
|
2012-06-27 17:05:35 +02:00
|
|
|
|
|
|
|
|
2012-06-27 16:32:04 +02:00
|
|
|
<div id="rightcontent" class="rightcontent">
|
|
|
|
<div class="bookmarks_list"></div>
|
|
|
|
<div id="firstrun" style="display: none;">
|
|
|
|
<?php
|
|
|
|
echo $l->t('You have no bookmarks');
|
|
|
|
require_once(OC_App::getAppPath('bookmarks') .'/templates/bookmarklet.php');
|
|
|
|
createBookmarklet();
|
|
|
|
?>
|
|
|
|
</div>
|