add hover tips - except we need a way to translate the things
This commit is contained in:
parent
07fbf0d5de
commit
659714956c
@ -58,6 +58,8 @@ function parse_app_description($f) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(! $ret['photo'])
|
if(! $ret['photo'])
|
||||||
$ret['photo'] = $baseurl . '/' . get_default_profile_photo(80);
|
$ret['photo'] = $baseurl . '/' . get_default_profile_photo(80);
|
||||||
|
|
||||||
@ -67,6 +69,9 @@ function parse_app_description($f) {
|
|||||||
$ret[$k] = zid($v);
|
$ret[$k] = zid($v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(array_key_exists('hover',$ret))
|
||||||
|
$ret['hover'] = str_replace(array('\'','"'),array(''','&dquot;'),$ret['hover']);
|
||||||
|
|
||||||
if(array_key_exists('requires',$ret)) {
|
if(array_key_exists('requires',$ret)) {
|
||||||
$require = trim(strtolower($ret['requires']));
|
$require = trim(strtolower($ret['requires']));
|
||||||
switch($require) {
|
switch($require) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{{foreach $apps as $ap}}
|
{{foreach $apps as $ap}}
|
||||||
<div class="app-container">
|
<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>
|
<div class="app-name">{{$ap.name}}</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user