aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-15 20:58:26 -0700
committerfriendica <info@friendica.com>2014-05-15 20:58:26 -0700
commit659714956ccce13b7055d5bf265be07cf4b79cfa (patch)
treefd144db147f080ef85543e19cc813988c4348545
parent07fbf0d5de09ea594f2b19a4067bca986e96cacc (diff)
downloadvolse-hubzilla-659714956ccce13b7055d5bf265be07cf4b79cfa.tar.gz
volse-hubzilla-659714956ccce13b7055d5bf265be07cf4b79cfa.tar.bz2
volse-hubzilla-659714956ccce13b7055d5bf265be07cf4b79cfa.zip
add hover tips - except we need a way to translate the things
-rw-r--r--include/apps.php5
-rwxr-xr-xview/tpl/apps.tpl2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/apps.php b/include/apps.php
index 733cb30cf..1896b938b 100644
--- a/include/apps.php
+++ b/include/apps.php
@@ -58,6 +58,8 @@ function parse_app_description($f) {
}
}
+
+
if(! $ret['photo'])
$ret['photo'] = $baseurl . '/' . get_default_profile_photo(80);
@@ -67,6 +69,9 @@ function parse_app_description($f) {
$ret[$k] = zid($v);
}
+ if(array_key_exists('hover',$ret))
+ $ret['hover'] = str_replace(array('\'','"'),array('&#39;','&dquot;'),$ret['hover']);
+
if(array_key_exists('requires',$ret)) {
$require = trim(strtolower($ret['requires']));
switch($require) {
diff --git a/view/tpl/apps.tpl b/view/tpl/apps.tpl
index 4a5ddfbcb..02a6bd047 100755
--- a/view/tpl/apps.tpl
+++ b/view/tpl/apps.tpl
@@ -2,7 +2,7 @@
{{foreach $apps as $ap}}
<div class="app-container">
-<a href="{{$ap.url}}"><img src="{{$ap.photo}}" width="80" height="80" />
+<a href="{{$ap.url}}" {{if $ap.hover}}title="{{$ap.hover}}"{{/if}}><img src="{{$ap.photo}}" width="80" height="80" />
<div class="app-name">{{$ap.name}}</div>
</a>
</div>