diff options
author | friendica <info@friendica.com> | 2012-04-22 16:25:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-22 16:25:02 -0700 |
commit | 724e1d15d0441fa169598397416d1e470e539d02 (patch) | |
tree | ea3df9b38646ed1d6343426b84cf50a8a3e3004c /view/theme/diabook/theme.php | |
parent | 00cb7f9efb4826a6ad5c0791f26bc5e8db644f77 (diff) | |
parent | c0dffa7442abdcaee8bcc2eb97a3ed71d60ce554 (diff) | |
download | volse-hubzilla-724e1d15d0441fa169598397416d1e470e539d02.tar.gz volse-hubzilla-724e1d15d0441fa169598397416d1e470e539d02.tar.bz2 volse-hubzilla-724e1d15d0441fa169598397416d1e470e539d02.zip |
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-x | view/theme/diabook/theme.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index e8518a1c6..269015d0a 100755 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -3,13 +3,13 @@ /* * Name: Diabook * Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu - * Version: (Version: 1.021) + * Version: (Version: 1.022) * Author: */ //print diabook-version for debugging -$diabook_version = "Diabook (Version: 1.021)"; +$diabook_version = "Diabook (Version: 1.022)"; $a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version); //change css on network and profilepages @@ -291,7 +291,9 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){ // custom css if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile); - +//footer +$tpl = get_markup_template('footer.tpl'); +$a->page['footer'] .= replace_macros($tpl, array()); //load jquery.cookie.js $cookieJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.cookie.js"; @@ -355,12 +357,18 @@ $(document).ready(function() { } else $(this).attr("src",ifr_source+"?"+wmode); }); + + $("a[href=#top]").click(function() { + $("html, body").animate({scrollTop:0}, "slow"); + return false; + }); }); function yt_iframe() { - + + $("iframe").load(function() { var ifr_src = $(this).contents().find("body iframe").attr("src"); $("iframe").contents().find("body iframe").attr("src", ifr_src+"&wmode=transparent"); @@ -480,7 +488,7 @@ function close_lastlikes(){ $a->page['htmlhead'] .= ' <script> -function insertFormatting(BBcode,id) { +function insertFormatting(comment,BBcode,id) { var tmpStr = $("#comment-edit-text-" + id).val(); if(tmpStr == comment) { |