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-27 21:44:20 +00:00
|
|
|
<input type="hidden" id="bookmarkFilterTag" value="<?php echo $_['req_tag']; ?>" />
|
2011-10-08 13:54:45 +02:00
|
|
|
<div id="controls">
|
2012-08-13 19:58:46 +00:00
|
|
|
<input type="text" id="add_url" value="" placeholder="<?php echo $l->t('Address'); ?>"/>
|
|
|
|
<input type="submit" value="<?php echo $l->t('Add bookmark'); ?>" id="bookmark_add_submit" />
|
2012-07-01 22:12:59 +00:00
|
|
|
|
|
|
|
<div id="view_type">
|
|
|
|
<input type="button" class="list" value="<?php echo $l->t('List')?>" />
|
|
|
|
<input type="button" class="image" style="display:none" value="<?php echo $l->t('Image')?>" />
|
|
|
|
</div>
|
2011-08-15 22:05:07 +02:00
|
|
|
</div>
|
2012-06-27 16:32:04 +02:00
|
|
|
<div id="leftcontent">
|
2012-08-09 22:03:56 +00:00
|
|
|
<div class="centercontent">
|
|
|
|
<span class="left_img"> <?php echo $l->t('Hide')?> <<</span>
|
|
|
|
<span class="right_img"> <?php echo $l->t('Show')?> >></span>
|
|
|
|
</div>
|
|
|
|
|
2012-06-27 16:32:04 +02:00
|
|
|
<p id="tag_filter">
|
2012-06-28 11:40:42 +02:00
|
|
|
<input type="text" placeholder="Filter By tag" value="<?php echo $_['req_tag']; ?>"/>
|
2012-06-27 16:32:04 +02:00
|
|
|
</p>
|
|
|
|
|
2012-06-27 21:44:20 +00:00
|
|
|
<label><?php echo $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-07-03 13:47:09 +02:00
|
|
|
</div>
|
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');
|
2012-06-29 11:33:13 +02:00
|
|
|
$embedded = true;
|
2012-09-18 19:39:53 +00:00
|
|
|
require_once OC_App::getAppPath('bookmarks') .'/templates/bookmarklet.php' ;
|
2012-06-27 16:32:04 +02:00
|
|
|
createBookmarklet();
|
|
|
|
?>
|
2012-06-28 11:40:42 +02:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
var fullTags = <?php echo $_['tags'];?>;
|
2012-08-06 16:43:28 +00:00
|
|
|
var init_view = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'bookmarks', 'currentview', 'text');?>';
|
2012-07-03 14:14:30 +02:00
|
|
|
var init_sidebar = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'bookmarks', 'sidebar', 'true');?>';
|
2012-10-10 19:05:34 +00:00
|
|
|
var shot_provider = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(),
|
|
|
|
'bookmarks', 'shot_provider', 'http://screenshots.bookmarkly.com/thumb?url={url}');?>';
|
2012-07-31 20:48:11 +00:00
|
|
|
//http://api.thumbalizr.com/?width={width}&url={url}
|
2012-06-29 11:33:13 +02:00
|
|
|
</script>
|
2012-09-01 14:18:39 +00:00
|
|
|
|
|
|
|
<script type="text/html" id="edit_dialog_tmpl">
|
2012-10-10 19:05:34 +00:00
|
|
|
<?php require 'addBm.php';?>
|
2012-09-01 14:18:39 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="item_tmpl">
|
|
|
|
<div class="bookmark_single" data-id="<%= id %>">
|
|
|
|
<p class="bookmark_actions">
|
|
|
|
<span class="bookmark_edit">
|
2012-10-10 19:05:34 +00:00
|
|
|
<img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>"
|
|
|
|
title="<?php echo $l->t('Edit');?>">
|
2012-09-01 14:18:39 +00:00
|
|
|
</span>
|
|
|
|
<span class="bookmark_delete">
|
2012-10-10 19:05:34 +00:00
|
|
|
<img class="svg" src="<?php echo OCP\image_path("", "actions/delete.svg");?>"
|
|
|
|
title="<?php echo $l->t('Delete');?>">
|
2012-09-01 14:18:39 +00:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p class="bookmark_title">
|
2012-10-10 19:05:34 +00:00
|
|
|
<a href="<%= encodeEntities(url) %>" target="_blank" class="bookmark_link">
|
|
|
|
<%= encodeEntities(title == '' ? url : title ) %>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<p class="bookmark_url">
|
|
|
|
<a href="<%= encodeEntities(url) %>" target="_blank" class="bookmark_link">
|
|
|
|
<%= encodeEntities(url) %>
|
|
|
|
</a>
|
2012-09-01 14:18:39 +00:00
|
|
|
</p>
|
|
|
|
<p class="bookmark_date"><%= formatDate(added_date) %></p>
|
|
|
|
<p class="bookmark_desc"><%= encodeEntities(description)%> </p>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/html" id="item_form_tmpl">
|
|
|
|
<div class="bookmark_single_form" data-id="<%= id %>">
|
|
|
|
<form method="post" action="<?php echo OCP\Util::linkTo('bookmarks', 'ajax/editBookmark.php');?>" >
|
|
|
|
<input type="hidden" name="record_id" value="<%= id %>" />
|
|
|
|
<p class="bookmark_form_title">
|
2012-10-10 19:05:34 +00:00
|
|
|
<input type="text" name="title" placeholder="<?php echo $l->t('The title of the page');?>"
|
|
|
|
value="<%= title %>"/>
|
|
|
|
</p>
|
|
|
|
<p class="bookmark_form_url">
|
|
|
|
<input type="text" name="url" placeholder="<?php echo $l->t('The address of the page');?>"
|
|
|
|
value="<%= encodeEntities(url)%>"/>
|
2012-09-01 14:18:39 +00:00
|
|
|
</p>
|
|
|
|
<div class="bookmark_form_tags"><ul>
|
|
|
|
<% for ( var i = 0; i < tags.length; i++ ) { %>
|
|
|
|
<li><%=tags[i]%></li>
|
|
|
|
<% } %>
|
|
|
|
</ul></div>
|
2012-10-10 19:05:34 +00:00
|
|
|
<p class="bookmark_form_desc">
|
|
|
|
<textarea name="description" placeholder="<?php echo $l->t('Description of the page');?>"
|
|
|
|
><%= description%></textarea>
|
|
|
|
</p>
|
|
|
|
<p class="bookmark_form_submit"><button class="reset" ><?php echo $l->t('Cancel');?></button>
|
|
|
|
<input type="submit" value="<?php echo $l->t('Save');?>">
|
|
|
|
</p>
|
2012-09-01 14:18:39 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</script>
|