aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-24 19:38:54 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-24 19:38:54 -0400
commit8a6c407282fe10f676f08f21e28647a5c8794e11 (patch)
treeb5a5bc5881bf5b35cdb52bb997498ef36a391720 /view/theme/diabook/theme.php
parent803f79e0912c4a526a16fdda4809277d8ad3195d (diff)
parent3ae43c24487450a749942ef4c3c19fa2a61461b6 (diff)
downloadvolse-hubzilla-8a6c407282fe10f676f08f21e28647a5c8794e11.tar.gz
volse-hubzilla-8a6c407282fe10f676f08f21e28647a5c8794e11.tar.bz2
volse-hubzilla-8a6c407282fe10f676f08f21e28647a5c8794e11.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: prevent duplicate friend suggestions block filed items from deletion add the bang network filter is now a permission group small fix in css add right_aside to diabook-blue add connectable services to right_aside add PostIt to right_aside, fixes in css * master:
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index b487b8f88..adf31746f 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -130,6 +130,17 @@ function diabook_community_info(){
}
}
+ $fostitJS = "javascript: (function() {
+ the_url = '".$a->get_baseurl($ssl_state)."/view/theme/diabook/fpostit/fpostit.php?url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' + encodeURIComponent(''+(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text));
+ a_funct = function() {
+ if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) location.href = the_url};
+ if (/Firefox/.test(navigator.userAgent)) {setTimeout(a_funct, 0)}
+ else {a_funct()}})()" ;
+
+ $aside['$fostitJS'] = $fostitJS;
+
+ $url = $a->get_baseurl($ssl_state);
+ $aside['$url'] = $url;
$tpl = file_get_contents(dirname(__file__).'/communityhome.tpl');
$a->page['right_aside'] = replace_macros($tpl, $aside);