From 29db2369811ba35515d285491ce089d937ed8d29 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 8 Jan 2014 14:11:39 -0800 Subject: qr enhancements --- include/bbcode.php | 2 +- mod/dirprofile.php | 3 +++ view/css/mod_directory.css | 5 +++++ view/tpl/direntry_large.tpl | 11 ++++++++--- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index 35ce2b918..dfb0b9fb8 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -133,7 +133,7 @@ function bb_parse_crypt($match) { } function bb_qr($match) { - return '' . t('QR code') . ''; + return '' . t('QR code') . ''; } diff --git a/mod/dirprofile.php b/mod/dirprofile.php index ba056e864..0cd84b910 100644 --- a/mod/dirprofile.php +++ b/mod/dirprofile.php @@ -70,6 +70,8 @@ function dirprofile_init(&$a) { $profile_link = chanlink_url($rr['url']); $pdesc = (($rr['description']) ? $rr['description'] . '
' : ''); + + $qrlink = zid($rr['url']); $connect_link = ((local_user()) ? z_root() . '/follow?f=&url=' . urlencode($rr['address']) : ''); if(in_array($rr['hash'],$contacts)) @@ -145,6 +147,7 @@ function dirprofile_init(&$a) { $entry = replace_macros(get_markup_template('direntry_large.tpl'), array( '$id' => ++$t, '$profile_link' => $profile_link, + '$qrlink' => $qrlink, '$photo' => $rr['photo_l'], '$alttext' => $rr['name'] . ' ' . $rr['address'], '$name' => $rr['name'], diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index 578777054..bc8054937 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -37,3 +37,8 @@ div.dirtagblock.widget { overflow: hidden; } + +.dirpopup { + float: left; + width: 225px; +} diff --git a/view/tpl/direntry_large.tpl b/view/tpl/direntry_large.tpl index a1800c994..befd2a27a 100755 --- a/view/tpl/direntry_large.tpl +++ b/view/tpl/direntry_large.tpl @@ -2,11 +2,16 @@
-
-{{$alttext}} -
+
+ {{$alttext}} +
+
+ QR +
+
+
{{$name}}
{{if $connect}} -- cgit v1.2.3