@ -1,27 +1,14 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
/** |
/** |
||||||
* ownCloud - bookmarks plugin |
* Copyright (c) 2011 Marvin Thomas Rabe <m.rabe@echtzeitraum.de> |
||||||
* |
* Copyright (c) 2011 Arthur Schiwon <blizzz@arthur-schiwon.de> |
||||||
* @author Arthur Schiwon |
* This file is licensed under the Affero General Public License version 3 or |
||||||
* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de |
* later. |
||||||
* |
* See the COPYING-README file. |
||||||
* This library is free software; you can redistribute it and/or |
|
||||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
||||||
* License as published by the Free Software Foundation; either |
|
||||||
* version 3 of the License, or any later version. |
|
||||||
* |
|
||||||
* This library is distributed in the hope that it will be useful, |
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
||||||
* |
|
||||||
* You should have received a copy of the GNU Lesser General Public |
|
||||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
* |
|
||||||
*/ |
*/ |
||||||
|
|
||||||
OC_App::register( array( 'order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks' )); |
OC_App::register( array( 'order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks' )); |
||||||
|
|
||||||
OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => 'Bookmarks' )); |
OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => 'Bookmarks' )); |
||||||
|
|
||||||
|
OC_App::registerPersonal('bookmarks', 'settings'); |
||||||
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Copyright (c) 2011 Marvin Thomas Rabe <m.rabe@echtzeitraum.de> |
||||||
|
* This file is licensed under the Affero General Public License version 3 or |
||||||
|
* later. |
||||||
|
* See the COPYING-README file. |
||||||
|
*/ |
||||||
|
|
||||||
|
$tmpl = new OC_Template( 'bookmarks', 'settings'); |
||||||
|
|
||||||
|
OC_Util::addScript('bookmarks','settings'); |
||||||
|
|
||||||
|
return $tmpl->fetchPage(); |
@ -1,27 +1,25 @@ |
|||||||
|
<?php
|
||||||
|
/** |
||||||
|
* Copyright (c) 2011 Marvin Thomas Rabe <m.rabe@echtzeitraum.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 if(isset($_GET['tag'])) echo htmlentities($_GET['tag']); ?>" />
|
<input type="hidden" id="bookmarkFilterTag" value="<?php if(isset($_GET['tag'])) echo htmlentities($_GET['tag']); ?>" />
|
||||||
<h2 class="bookmarks_headline"><?php echo isset($_GET["tag"]) ? $l->t('Bookmarks with tag: ') . urldecode($_GET["tag"]) : $l->t('All bookmarks'); ?></h2>
|
<div id="controls"> |
||||||
<div class="bookmarks_menu"> |
<input type="button" class="bookmarks_addBtn" value="<?php echo $l->t('Add bookmark'); ?>"/>
|
||||||
<input type="button" class="bookmarks_addBtn" value="<?php echo $l->t('Add bookmark'); ?>"/>
|
|
||||||
<a class="bookmarks_addBml" href="javascript:var url = encodeURIComponent(location.href);window.open('<?php echo OC_Helper::linkTo('bookmarks', 'addBm.php', null, true); ?>?url='+url, 'owncloud-bookmarks');" title="<?php echo $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage.'); ?>"><?php echo $l->t('Add page to ownCloud'); ?></a>
|
|
||||||
</div> |
</div> |
||||||
<div class="bookmarks_add"> |
<div class="bookmarks_add"> |
||||||
<input type="hidden" id="bookmark_add_id" value="0" /> |
<input type="hidden" id="bookmark_add_id" value="0" /> |
||||||
<p><label class="bookmarks_label"><?php echo $l->t('Address'); ?></label><input type="text" id="bookmark_add_url" class="bookmarks_input" /></p>
|
<p><label class="bookmarks_label"><?php echo $l->t('Address'); ?></label><input type="text" id="bookmark_add_url" class="bookmarks_input" /></p>
|
||||||
<p><label class="bookmarks_label"><?php echo $l->t('Title'); ?></label><input type="text" id="bookmark_add_title" class="bookmarks_input" />
|
<p><label class="bookmarks_label"><?php echo $l->t('Title'); ?></label><input type="text" id="bookmark_add_title" class="bookmarks_input" />
|
||||||
<img class="loading_meta" src="<?php echo OC_Helper::imagePath('core', 'loading.gif'); ?>" /></p>
|
|
||||||
<p><label class="bookmarks_label"><?php echo $l->t('Description'); ?></label><input type="text" id="bookmark_add_description" class="bookmarks_input" />
|
|
||||||
<img class="loading_meta" src="<?php echo OC_Helper::imagePath('core', 'loading.gif'); ?>" /></p>
|
<img class="loading_meta" src="<?php echo OC_Helper::imagePath('core', 'loading.gif'); ?>" /></p>
|
||||||
<p><label class="bookmarks_label"><?php echo $l->t('Tags'); ?></label><input type="text" id="bookmark_add_tags" class="bookmarks_input" /></p>
|
<p><label class="bookmarks_label"><?php echo $l->t('Tags'); ?></label><input type="text" id="bookmark_add_tags" class="bookmarks_input" /></p>
|
||||||
<p><label class="bookmarks_label"> </label><label class="bookmarks_hint"><?php echo $l->t('Hint: Use space to separate tags.'); ?></label></p>
|
<p><label class="bookmarks_label"> </label><label class="bookmarks_hint"><?php echo $l->t('Hint: Use space to separate tags.'); ?></label></p>
|
||||||
<p><label class="bookmarks_label"></label><input type="submit" value="<?php echo $l->t('Add bookmark'); ?>" id="bookmark_add_submit" /></p>
|
<p><label class="bookmarks_label"></label><input type="submit" value="<?php echo $l->t('Add bookmark'); ?>" id="bookmark_add_submit" /></p>
|
||||||
</div> |
</div> |
||||||
<div class="bookmarks_sorting pager"> |
|
||||||
<ul> |
|
||||||
<li class="bookmarks_sorting_recent"><?php echo $l->t('Recent Bookmarks'); ?></li>
|
|
||||||
<li class="bookmarks_sorting_clicks"><?php echo $l->t('Most clicks'); ?></li>
|
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
<div class="clear"></div> |
|
||||||
<div class="bookmarks_list"> |
<div class="bookmarks_list"> |
||||||
<?php echo $l->t('You have no bookmarks'); ?> |
<?php echo $l->t('You have no bookmarks'); ?> |
||||||
</div> |
</div> |
@ -0,0 +1,14 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Copyright (c) 2011 Marvin Thomas Rabe <m.rabe@echtzeitraum.de> |
||||||
|
* This file is licensed under the Affero General Public License version 3 or |
||||||
|
* later. |
||||||
|
* See the COPYING-README file. |
||||||
|
*/ |
||||||
|
?> |
||||||
|
<form id="bookmarks"> |
||||||
|
<fieldset class="personalblock"> |
||||||
|
<span class="bold"><?php echo $l->t('Bookmarklet:');?></span> <a class="bookmarks_addBml" href="javascript:var url = encodeURIComponent(location.href);window.open('<?php echo OC_Helper::linkTo('bookmarks', 'addBm.php', null, true); ?>?url='+url, 'owncloud-bookmarks');"><?php echo $l->t('Add page to ownCloud'); ?></a>
|
||||||
|
<br/><em><?php echo $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage.'); ?></em><br />
|
||||||
|
</fieldset> |
||||||
|
</form> |
@ -1,2 +1,3 @@ |
|||||||
.contacts_details_left {text-align:right;vertical-align:top;padding:2px;} |
.contacts_details_left {text-align:right;vertical-align:top;padding:2px;} |
||||||
.contacts_details_right {text-align:left;vertical-align:top;padding:2px;} |
.contacts_details_right {text-align:left;vertical-align:top;padding:2px;} |
||||||
|
#contacts_deletecard {position:absolute;top:15px;right:0;} |
||||||
|
@ -1,14 +1,11 @@ |
|||||||
<?php |
<?php |
||||||
require_once('../../../lib/base.php'); |
require_once('../../../lib/base.php'); |
||||||
|
OC_JSON::checkLoggedIn(); |
||||||
if( !OC_User::isLoggedIn()){ |
OC_JSON::checkAppEnabled('gallery'); |
||||||
echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => 'You need to log in.'))); |
|
||||||
exit(); |
|
||||||
} |
|
||||||
|
|
||||||
$stmt = OC_DB::prepare('INSERT INTO *PREFIX*gallery_albums ("uid_owner", "album_name") VALUES ("'.OC_User::getUser().'", "'.$_GET['album_name'].'")'); |
$stmt = OC_DB::prepare('INSERT INTO *PREFIX*gallery_albums ("uid_owner", "album_name") VALUES ("'.OC_User::getUser().'", "'.$_GET['album_name'].'")'); |
||||||
$stmt->execute(array()); |
$stmt->execute(array()); |
||||||
|
|
||||||
echo json_encode(array( 'status' => 'success', 'name' => $_GET['album_name'])); |
OC_JSON::success(array('name' => $_GET['album_name'])); |
||||||
|
|
||||||
?> |
?> |
||||||
|
@ -1,14 +1,11 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
require_once('../../../lib/base.php'); |
require_once('../../../lib/base.php'); |
||||||
|
OC_JSON::checkLoggedIn(); |
||||||
|
OC_JSON::checkAppEnabled('gallery'); |
||||||
require_once('../lib_scanner.php'); |
require_once('../lib_scanner.php'); |
||||||
|
|
||||||
if (!OC_User::IsLoggedIn()) { |
OC_JSON::success(array('albums' => OC_GALLERY_SCANNER::scan(''))); |
||||||
echo json_encode(array('status' => 'error', 'message' => 'You need to log in')); |
//OC_JSON::success(array('albums' => array(array('name' => 'test', 'imagesCount' => 1, 'images' => array('dupa'))))); |
||||||
exit(); |
|
||||||
} |
|
||||||
|
|
||||||
echo json_encode(array( 'status' => 'success', 'albums' => OC_GALLERY_SCANNER::scan(''))); |
|
||||||
//echo json_encode(array('status' => 'success', 'albums' => array(array('name' => 'test', 'imagesCount' => 1, 'images' => array('dupa'))))); |
|
||||||
|
|
||||||
?> |
?> |
||||||
|
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 385 B |
After Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 294 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 537 B |
After Width: | Height: | Size: 813 B |
After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 606 B |
After Width: | Height: | Size: 923 B |
After Width: | Height: | Size: 452 B |
After Width: | Height: | Size: 566 B |
After Width: | Height: | Size: 519 B |
After Width: | Height: | Size: 538 B |
After Width: | Height: | Size: 519 B |
@ -0,0 +1,22 @@ |
|||||||
|
Silk icon set 1.3 |
||||||
|
|
||||||
|
_________________________________________ |
||||||
|
Mark James |
||||||
|
http://www.famfamfam.com/lab/icons/silk/ |
||||||
|
_________________________________________ |
||||||
|
|
||||||
|
This work is licensed under a |
||||||
|
Creative Commons Attribution 2.5 License. |
||||||
|
[ http://creativecommons.org/licenses/by/2.5/ ] |
||||||
|
|
||||||
|
This means you may use it for any purpose, |
||||||
|
and make any changes you like. |
||||||
|
All I ask is that you include a link back |
||||||
|
to this page in your credits. |
||||||
|
|
||||||
|
Are you using this icon set? Send me an email |
||||||
|
(including a link or picture if available) to |
||||||
|
mjames@gmail.com |
||||||
|
|
||||||
|
Any other questions about this icon set please |
||||||
|
contact mjames@gmail.com |
After Width: | Height: | Size: 626 B |
After Width: | Height: | Size: 859 B |
After Width: | Height: | Size: 566 B |
After Width: | Height: | Size: 675 B |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 578 B |
After Width: | Height: | Size: 621 B |
After Width: | Height: | Size: 587 B |
After Width: | Height: | Size: 700 B |
After Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 533 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 555 B |
After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 561 B |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |