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

69 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.
*/
?>
<input type="hidden" id="bookmarkFilterTag" value="<?php echo $_['req_tag']; ?>" />
<div id="controls">
2012-08-13 21:58:46 +02: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" />
<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">
<div class="centercontent">
<span class="left_img"> <?php echo $l->t('Hide')?> &lt;&lt;</span>
<span class="right_img"> <?php echo $l->t('Show')?> &gt;&gt;</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>
<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">
<ul class="controls">
<li style="float: right">
<button id="settingsbtn" title="<?php echo $l->t('Settings'); ?>">
2012-11-01 00:42:37 +01:00
<img class="svg" src="<?php echo OCP\Util::imagePath('core', 'actions/settings.png'); ?>"
alt="<?php echo $l->t('Settings'); ?>" /></button>
</li>
</ul>
</div>
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');
$embedded = true;
require_once OC_App::getAppPath('bookmarks') .'/templates/bookmarklet.php' ;
2012-06-27 16:32:04 +02:00
createBookmarklet();
?>
<div id="appsettings" class="popup bottomleft hidden"></div>
2012-06-28 11:40:42 +02:00
</div>
<script>
var fullTags = <?php echo $_['tags'];?>;
2012-08-06 18:43:28 +02:00
var init_view = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'bookmarks', 'currentview', 'text');?>';
var init_sidebar = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'bookmarks', 'sidebar', 'true');?>';
2012-10-10 21:05:34 +02: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 22:48:11 +02:00
//http://api.thumbalizr.com/?width={width}&url={url}
</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';?>