* Author:
*/
-$a = get_app();
-set_template_engine($a, 'smarty3');
-
function get_diabook_config($key, $default = false) {
if (local_user()) {
$result = get_pconfig(local_user(), "diabook", $key);
function diabook_init(&$a) {
+set_template_engine($a, 'smarty3');
+
//print diabook-version for debugging
$diabook_version = "Diabook (Version: 1.027)";
$a->page['htmlhead'] .= sprintf('<META NAME=generator CONTENT="%s"/>', $diabook_version);
$a->page['htmlhead'] .= '
<script>
$(function() {
- $("a.lightbox").fancybox(); // Select all links with lightbox class
- $("a#twittersettings-link").fancybox({onClosed: function() { $("#twittersettings").attr("style","display: none;");}} );
- $("a#mapcontrol-link").fancybox({onClosed: function() { $("#mapcontrol").attr("style","display: none;");}} );
- $("a#closeicon").fancybox({onClosed: function() { $("#boxsettings").attr("style","display: none;");}} );
+ $("a.lightbox").colorbox({maxHeight:"90%"}); // Select all links with lightbox class
+ $("a#twittersettings-link").colorbox({inline:true,onClosed: function() { $("#twittersettings").attr("style","display: none;");}} );
+ $("a#mapcontrol-link").colorbox({inline:true,onClosed: function() { $("#mapcontrol").attr("style","display: none;");}} );
+ $("a#closeicon").colorbox({inline:true,onClosed: function() { $("#boxsettings").attr("style","display: none;");}} );
});
$(window).load(function() {
$profile_link = $a->get_baseurl() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']);
$entry = replace_macros($tpl,array(
'$id' => $rr['id'],
- '$profile-link' => zrl($rr['url']),
+ '$profile_link' => zrl($rr['url']),
'$photo' => $rr[$photo],
- '$alt-text' => $rr['name'],
+ '$alt_text' => $rr['name'],
));
$aside['$comunity_profiles_items'][] = $entry;
}
$profile_link = $a->get_baseurl() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']);
$entry = replace_macros($tpl,array(
'$id' => $rr['id'],
- '$profile-link' => $profile_link,
+ '$profile_link' => $profile_link,
'$photo' => $a->get_cached_avatar_image($rr[$photo]),
- '$alt-text' => $rr['name'],
+ '$alt_text' => $rr['name'],
));
$aside['$lastusers_items'][] = $entry;
}
$entry = replace_macros($tpl,array(
'$id' => $rr['id'],
- '$profile-link' => $photo_page,
+ '$profile_link' => $photo_page,
'$photo' => $photo_url,
- '$alt-text' => $rr['username']." : ".$rr['desc'],
+ '$alt_text' => $rr['username']." : ".$rr['desc'],
));
$aside['$photos_items'][] = $entry;