aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/theme.php
diff options
context:
space:
mode:
authortomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-04-07 07:41:23 -0700
committertomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-04-07 07:41:23 -0700
commit0fa3b7f348c3deeb85cb5f5f9bd35ba47b0e92ee (patch)
tree625102ab98b1f89f14b44ab729dc4b5a88fdeb3d /view/theme/diabook-blue/theme.php
parent1440786c319b25f870ef1f85dba7aaf50e49f842 (diff)
parent1c0700f371f96466be113a4184d7ab9acd39e22f (diff)
downloadvolse-hubzilla-0fa3b7f348c3deeb85cb5f5f9bd35ba47b0e92ee.tar.gz
volse-hubzilla-0fa3b7f348c3deeb85cb5f5f9bd35ba47b0e92ee.tar.bz2
volse-hubzilla-0fa3b7f348c3deeb85cb5f5f9bd35ba47b0e92ee.zip
Merge pull request #212 from tomtom84/master
fixes in diabook-themes
Diffstat (limited to 'view/theme/diabook-blue/theme.php')
-rwxr-xr-xview/theme/diabook-blue/theme.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/view/theme/diabook-blue/theme.php b/view/theme/diabook-blue/theme.php
index c64e9cd37..a8b4fcd6c 100755
--- a/view/theme/diabook-blue/theme.php
+++ b/view/theme/diabook-blue/theme.php
@@ -3,11 +3,15 @@
/*
* Name: Diabook-blue
* Description: Diabook-blue: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
- * Version: (Version: 1.013)
+ * Version: (Version: 1.014)
* Author:
*/
+//print diabook-version for debugging
+$diabook_version = "Diabook-blue (Version: 1.014)";
+$a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
+
//change css on network and profilepages
$cssFile = null;
@@ -333,8 +337,25 @@ if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet"
$cookieJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-blue/js/jquery.cookie.js";
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $cookieJS);
+//load jquery.ae.image.resize.js
+$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-blue/js/jquery.ae.image.resize.js";
+$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $imageresizeJS);
//js scripts
+//comment-edit-wrapper on photo_view
+if ($a->argv[0].$a->argv[2] === "photos"."image"){
+
+$a->page['htmlhead'] .= '
+<script>
+ $(function(){
+
+ $(".comment-edit-form").css("display","table");
+
+ });
+ </script>';
+
+}
+
$a->page['htmlhead'] .= '
@@ -350,6 +371,10 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] ==
$a->page['htmlhead'] .= '
<script>
+$(function() {
+ $(".oembed.photo img").aeImageResize({height: 400, width: 400});
+ });
+
$("right_aside").ready(function(){
if($.cookie("close_pages") == "1")