Esempio n. 1
0
script('bookmarks', 'settings');
script('bookmarks', 'bookmarks');
style('bookmarks', 'bookmarks');
script('bookmarks', '3rdparty/tag-it');
script('bookmarks', '3rdparty/js_tpl');
style('bookmarks', '3rdparty/jquery.tagit');
/**
 * Copyright (c) 2011 Marvin Thomas Rabe <*****@*****.**>
 * Copyright (c) 2011 Arthur Schiwon <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
$bookmarkleturl = $_['bookmarkleturl'];
$bookmarkletscript = bookmarklet($bookmarkleturl);
function bookmarklet($bookmarkleturl)
{
    $l = new OC_l10n('bookmarks');
    $blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('";
    $blet .= $bookmarkleturl;
    $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:');
    $output = '<div id="bookmarklet_hint" class="bkm_hint">' . $help_msg . '</div><a class="button bookmarklet" href="' . $blet . '">' . $l->t('Add to ownCloud') . '</a>';
    return $output;
}
?>

<div id="app-navigation">
    <ul id="navigation-list">
        <li>
Esempio n. 2
0
/**
 * Copyright (c) 2011 Marvin Thomas Rabe <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
?>

<fieldset class="personalblock">
	<legend><strong><?php 
p($l->t('Bookmarklet'));
?>
</strong></legend>
	<?php 
print_unescaped(bookmarklet());
?>
<br />
</fieldset>

<form id="import_bookmark" action="<?php 
print_unescaped(OCP\Util::linkTo("bookmarks", "ajax/import.php"));
?>
"
 method="post" enctype="multipart/form-data">
	<fieldset class="personalblock">
		<?php 
if (isset($_['error'])) {
    ?>
			<h3><?php 
    p($_['error']['error']);
Esempio n. 3
0
/**
 * Copyright (c) 2011 Marvin Thomas Rabe <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
?>

<fieldset class="personalblock">
	<legend><strong><?php 
echo $l->t('Bookmarklet');
?>
</strong></legend>
	<?php 
echo bookmarklet();
?>
<br />
</fieldset>

<form id="import_bookmark" action="<?php 
echo OCP\Util::linkTo("bookmarks", "ajax/import.php");
?>
"
 method="post" enctype="multipart/form-data">
	<fieldset class="personalblock">
		<?php 
if (isset($_['error'])) {
    ?>
			<h3><?php 
    echo $_['error']['error'];