]> git.mxchange.org Git - friendica.git/commitdiff
unify hcard and vcard
authorrabuzarus <>
Tue, 1 Dec 2015 17:31:08 +0000 (18:31 +0100)
committerrabuzarus <>
Tue, 1 Dec 2015 17:31:08 +0000 (18:31 +0100)
23 files changed:
include/identity.php
include/text.php
mod/contacts.php
mod/crepair.php
mod/directory.php
mod/photos.php
mod/videos.php
view/templates/profile_vcard.tpl
view/templates/vcard-widget.tpl
view/theme/duepuntozero/style.css
view/theme/duepuntozero/templates/profile_vcard.tpl
view/theme/frost-mobile/style.css
view/theme/frost-mobile/templates/profile_vcard.tpl
view/theme/frost/style.css
view/theme/frost/templates/profile_vcard.tpl
view/theme/quattro/dark/style.css
view/theme/quattro/green/style.css
view/theme/quattro/lilac/style.css
view/theme/quattro/quattro.less
view/theme/quattro/templates/profile_vcard.tpl
view/theme/smoothly/style.css
view/theme/vier/style.css
view/theme/vier/templates/profile_vcard.tpl

index 48fd5056dc98a10a85b3c97ad1156d956b8fa988..7bd2d2cbc8d530a22815081f015a7c1b0bf36234 100644 (file)
@@ -45,39 +45,9 @@ if(! function_exists('profile_load')) {
                        return;
                }
 
-               if(remote_user() && count($_SESSION['remote'])) {
-                       foreach($_SESSION['remote'] as $visitor) {
-                               if($visitor['uid'] == $user[0]['uid']) {
-                                       $r = q("SELECT `profile-id` FROM `contact` WHERE `id` = %d LIMIT 1",
-                                               intval($visitor['cid'])
-                                       );
-                                       if(count($r))
-                                               $profile = $r[0]['profile-id'];
-                                       break;
-                               }
-                       }
-               }
-
-               $r = null;
+               $pdata = get_profiledata_by_nick($nickname, $user[0]['uid'], $profile);
 
-               if($profile) {
-                       $profile_int = intval($profile);
-                       $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr` AS faddr, `user`.* FROM `profile`
-                                       INNER JOIN `contact` on `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid`
-                                       WHERE `user`.`nickname` = '%s' AND `profile`.`id` = %d AND `contact`.`self` = 1 LIMIT 1",
-                                       dbesc($nickname),
-                                       intval($profile_int)
-                       );
-               }
-               if((!$r) && (!count($r))) {
-                       $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr` AS faddr, `user`.* FROM `profile`
-                                       INNER JOIN `contact` ON `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid`
-                                       WHERE `user`.`nickname` = '%s' AND `profile`.`is-default` = 1 AND `contact`.`self` = 1 LIMIT 1",
-                                       dbesc($nickname)
-                       );
-               }
-
-               if(($r === false) || (!count($r)) && !count($profiledata)) {
+               if(($pdata === false) || (!count($pdata)) && !count($profiledata)) {
                        logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
                        notice( t('Requested profile is not available.') . EOL );
                        $a->error = 404;
@@ -86,16 +56,16 @@ if(! function_exists('profile_load')) {
 
                // fetch user tags if this isn't the default profile
 
-               if(!$r[0]['is-default']) {
+               if(!$pdata['is-default']) {
                        $x = q("SELECT `pub_keywords` FROM `profile` WHERE `uid` = %d AND `is-default` = 1 LIMIT 1",
-                                       intval($r[0]['profile_uid'])
+                                       intval($pdata['profile_uid'])
                        );
                        if($x && count($x))
-                               $r[0]['pub_keywords'] = $x[0]['pub_keywords'];
+                               $pdata['pub_keywords'] = $x[0]['pub_keywords'];
                }
 
-               $a->profile = $r[0];
-               $a->profile_uid = $r[0]['profile_uid'];
+               $a->profile = $pdata;
+               $a->profile_uid = $pdata['profile_uid'];
 
                $a->profile['mobile-theme'] = get_pconfig($a->profile['profile_uid'], 'system', 'mobile_theme');
                $a->profile['network'] = NETWORK_DFRN;
@@ -147,6 +117,58 @@ if(! function_exists('profile_load')) {
 }
 
 
+/**
+ * @brief Get all profil data of a local user
+ *     If the viewer is an authenticated remote viewer, the profile displayed is the
+ *     one that has been configured for his/her viewing in the Contact manager.
+ *     Passing a non-zero profile ID can also allow a preview of a selected profile
+ *     by the owner
+ * 
+ * @param string $nickname
+ * @param int $uid
+ * @param int $profile
+ *     ID of the profile
+ * @returns array
+ *     Includes all available profile data
+ */
+function get_profiledata_by_nick($nickname, $uid = 0, $profile = 0) {
+       if(remote_user() && count($_SESSION['remote'])) {
+                       foreach($_SESSION['remote'] as $visitor) {
+                               if($visitor['uid'] == $uid) {
+                                       $r = q("SELECT `profile-id` FROM `contact` WHERE `id` = %d LIMIT 1",
+                                               intval($visitor['cid'])
+                                       );
+                                       if(count($r))
+                                               $profile = $r[0]['profile-id'];
+                                       break;
+                               }
+                       }
+               }
+
+       $r = null;
+
+       if($profile) {
+               $profile_int = intval($profile);
+               $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr`, `user`.* FROM `profile`
+                               INNER JOIN `contact` on `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid`
+                               WHERE `user`.`nickname` = '%s' AND `profile`.`id` = %d AND `contact`.`self` = 1 LIMIT 1",
+                               dbesc($nickname),
+                               intval($profile_int)
+               );
+       }
+       if((!$r) && (!count($r))) {
+               $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr`, `user`.* FROM `profile`
+                               INNER JOIN `contact` ON `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid`
+                               WHERE `user`.`nickname` = '%s' AND `profile`.`is-default` = 1 AND `contact`.`self` = 1 LIMIT 1",
+                               dbesc($nickname)
+               );
+       }
+
+       return $r[0];
+
+}
+
+
 /**
  *
  * Function: profile_sidebar
@@ -161,8 +183,6 @@ if(! function_exists('profile_load')) {
  * Exceptions: Returns empty string if passed $profile is wrong type or not populated
  *
  */
-
-
 if(! function_exists('profile_sidebar')) {
        function profile_sidebar($profile, $block = 0) {
                $a = get_app();
@@ -178,12 +198,8 @@ if(! function_exists('profile_sidebar')) {
                $profile['picdate'] = urlencode($profile['picdate']);
 
                if (($profile['network'] != "") AND ($profile['network'] != NETWORK_DFRN)) {
-                       require_once('include/contact_selectors.php');
-                       if ($profile['url'] != "")
-                               $profile['network_name'] = '<a href="'.$profile['url'].'">'.network_to_name($profile['network'], $profile['url'])."</a>";
-                       else
-                               $profile['network_name'] = network_to_name($profile['network']);
-               } else
+                       $profile['network_name'] = format_network_name($profile['network'],$profile['url']);
+               } else 
                        $profile['network_name'] = "";
 
                call_hooks('profile_sidebar_enter', $profile);
@@ -270,6 +286,14 @@ if(! function_exists('profile_sidebar')) {
                        );
                }
 
+               if((x($profile['page-flags']) == 1)
+                               || (x($profile['page-flags']) == 2)
+                               || (x($profile['page-flags']) == 5))
+                       $account_type = page_type_translate($profile['page-flags']);
+
+               if(! $account_type)
+                       $account_type = (x($profile['forum']) || x($profile['prv']) || (x($profile['community'])) ? t('Forum') : "");
+
                if((x($profile,'address') == 1)
                                || (x($profile,'locality') == 1)
                                || (x($profile,'region') == 1)
@@ -344,6 +368,7 @@ if(! function_exists('profile_sidebar')) {
                        '$remoteconnect'  => $remoteconnect,
                        '$subscribe_feed' => $subscribe_feed,
                        '$wallmessage' => $wallmessage,
+                       '$account_type' => $account_type,
                        '$location' => $location,
                        '$gender'   => $gender,
                        '$pdesc'        => $pdesc,
index 253489180552b4822ffc475f1b3fe38d476e1810..89a58cccc07f5b8e381f93f363907e8e17d61b75 100644 (file)
@@ -2318,3 +2318,25 @@ function page_type_translate($page_type) {
 
        return $trans_type;
 }
+
+/**
+ * @brief translate and format the networkname of a contact
+ * 
+ * @param string $network
+ *     Networkname of the contact (e.g. dfrn, rss and so on)
+ * @param sting $url
+ *     The contact url
+ * @return string
+ */
+function format_network_name($network, $url = 0) {
+       if ($network != "") {
+               require_once('include/contact_selectors.php');
+               if ($url != "")
+                       $network_name = '<a href="'.$url.'">'.network_to_name($network, $url)."</a>";
+               else
+                       $network_name = network_to_name($network);
+
+               return $network_name;
+       }
+
+}
index 992f8ed6b2e43d51aba7db7fcd168131452d518e..f1829a1830f036021779cc819fffe535f9aacd15 100644 (file)
@@ -35,10 +35,20 @@ function contacts_init(&$a) {
 
        if($contact_id) {
                        $a->data['contact'] = $r[0];
+
+                       if (($a->data['contact']['network'] != "") AND ($a->data['contact']['network'] != NETWORK_DFRN)) {
+                               $networkname = format_network_name($a->data['contact']['network'],$a->data['contact']['url']);
+                       } else 
+                               $networkname = '';
+
                        $vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"),array(
                                '$name' => htmlentities($a->data['contact']['name']),
                                '$photo' => $a->data['contact']['photo'],
-                               '$url' => ($a->data['contact']['network'] == NETWORK_DFRN) ? z_root()."/redir/".$a->data['contact']['id'] : $a->data['contact']['url']
+                               '$url' => ($a->data['contact']['network'] == NETWORK_DFRN) ? z_root()."/redir/".$a->data['contact']['id'] : $a->data['contact']['url'],
+                               '$addr' => (($a->data['contact']['addr'] != "") ? ($a->data['contact']['addr']) : ""),
+                               '$network_name' => $networkname,
+                               '$network' => t('Network:'),
+                               'account_type' => (($a->data['contact']['forum'] || $a->data['contact']['prv']) ? t('Forum') : '')
                        ));
                        $finpeople_widget = '';
                        $follow_widget = '';
@@ -570,16 +580,8 @@ function contacts_content(&$a) {
                        $follow = $a->get_baseurl(true)."/follow?url=".urlencode($contact["url"]);
 
 
-               $header = $contact["name"];
-
-               if ($contact["addr"] != "")
-                       $header .= " <".$contact["addr"].">";
-
-               $header .= " (".network_to_name($contact['network'], $contact['url']).")";
-
                $o .= replace_macros($tpl, array(
                        //'$header' => t('Contact Editor'),
-                       '$header' => htmlentities($header),
                        '$tab_str' => $tab_str,
                        '$submit' => t('Submit'),
                        '$lbl_vis1' => t('Profile Visibility'),
@@ -905,18 +907,6 @@ function contact_posts($a, $contact_id) {
 
        $tab_str = contact_tabs($a, $contact_id, 1);
 
-       $header = $contact["name"];
-
-       if ($contact["addr"] != "")
-               $header .= " <".$contact["addr"].">";
-
-       $header .= " (".network_to_name($contact['network'], $contact['url']).")";
-
-       $tpl = get_markup_template("section_title.tpl");
-       $o = replace_macros($tpl,array(
-                '$title' => htmlentities($header)
-        ));
-
        $o .= $tab_str;
 
        $o .= conversation($a,$r,'community',false);
index d16adf8c745b6083b5911e7e5c3af3368a417aa2..98202ae0b006310cddf8d697d6030054c23ceb95 100644 (file)
@@ -24,11 +24,22 @@ function crepair_init(&$a) {
 
        if($contact_id) {
                        $a->data['contact'] = $r[0];
-                        $tpl = get_markup_template("vcard-widget.tpl");
-                        $vcard_widget .= replace_macros($tpl, array(
-                                '$name' => htmlentities($a->data['contact']['name']),
-                                '$photo' => $a->data['contact']['photo']
-                        ));
+
+                       if (($a->data['contact']['network'] != "") AND ($a->data['contact']['network'] != NETWORK_DFRN)) {
+                               $networkname = format_network_name($a->data['contact']['network'],$a->data['contact']['url']);
+                       } else 
+                               $networkname = '';
+
+                       $vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"),array(
+                               '$name' => htmlentities($a->data['contact']['name']),
+                               '$photo' => $a->data['contact']['photo'],
+                               '$url' => ($a->data['contact']['network'] == NETWORK_DFRN) ? z_root()."/redir/".$a->data['contact']['id'] : $a->data['contact']['url'],
+                               '$addr' => (($a->data['contact']['addr'] != "") ? ($a->data['contact']['addr']) : ""),
+                               '$network_name' => $networkname,
+                               '$network' => t('Network:'),
+                               'account_type' => (($a->data['contact']['forum'] || $a->data['contact']['prv']) ? t('Forum') : '')
+                       ));
+
                        $a->page['aside'] .= $vcard_widget;
 
        }
@@ -161,17 +172,10 @@ function crepair_content(&$a) {
 
        $tab_str = contact_tabs($a, $contact['id'], 3);
 
-       $header = $contact["name"];
-
-       if ($contact["addr"] != "")
-                $header .= " <".$contact["addr"].">";
-
-        $header .= " (".network_to_name($contact['network'], $contact['url']).")";
 
        $tpl = get_markup_template('crepair.tpl');
        $o .= replace_macros($tpl, array(
                //'$title'      => t('Repair Contact Settings'),
-               '$title'        => htmlentities($header),
                '$tab_str'      => $tab_str,
                '$warning'      => $warning,
                '$info'         => $info,
index bedc71907eadfbdbf3f14f02e7bc125ce3d9a19b..cb233db8983df5ae8f98b68354ed2d359d384bdd 100644 (file)
@@ -86,7 +86,7 @@ function directory_content(&$a) {
        $limit = intval($a->pager['start']).",".intval($a->pager['itemspage']);
 
        $r = $db->q("SELECT `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname`, `user`.`timezone` , `user`.`page-flags`,
-                       `contact`.`addr` AS faddr, `contact`.`url` AS profile_url FROM `profile`
+                       `contact`.`addr`, `contact`.`url` AS profile_url FROM `profile`
                        LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
                        LEFT JOIN `contact` ON `contact`.`uid` = `user`.`uid`
                        WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 AND `contact`.`self` $sql_extra $order LIMIT ".$limit);
@@ -102,7 +102,7 @@ function directory_content(&$a) {
                        $community = '';
                        $itemurl= '';
 
-                       $itemurl = (($rr['faddr'] != "") ? $rr['faddr'] : $rr['profile_url']);
+                       $itemurl = (($rr['addr'] != "") ? $rr['addr'] : $rr['profile_url']);
 
                        $profile_link = z_root() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']);
 
index 5ca973d16637d4db92434c2d43fbb6a1313827f9..3f8d3afafeaa5418583b635879a975215dab282e 100644 (file)
@@ -24,24 +24,31 @@ function photos_init(&$a) {
 
        if($a->argc > 1) {
                $nick = $a->argv[1];
-               $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1",
+               $user = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1",
                        dbesc($nick)
                );
 
-               if(! count($r))
+               if(! count($user))
                        return;
 
-               $a->data['user'] = $r[0];
-               $a->profile_uid = $r[0]['uid'];
+               $a->data['user'] = $user[0];
+               $a->profile_uid = $user[0]['uid'];
                $is_owner = (local_user() && (local_user() == $a->profile_uid));
 
-               $profilephoto = $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg');
+               $profile = get_profiledata_by_nick($nick, $a->profile_uid);
+
+               if((x($profile['page-flags']) == 1)
+                               || (x($profile['page-flags']) == 2)
+                               || (x($profile['page-flags']) == 5))
+                       $account_type = page_type_translate($profile['page-flags']);
 
                $tpl = get_markup_template("vcard-widget.tpl");
 
                $vcard_widget .= replace_macros($tpl, array(
-                       '$name' => $a->data['user']['username'],
-                       '$photo' => $profilephoto
+                       '$name' => $profile[name],
+                       '$photo' => $profile[photo],
+                       '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''),
+                       '$account_type' => $account_type,
                ));
 
 
@@ -89,7 +96,7 @@ function photos_init(&$a) {
                        $photo_albums_widget = replace_macros(get_markup_template('photo_albums.tpl'),array(
                                '$nick'     => $a->data['user']['nickname'],
                                '$title'    => t('Photo Albums'),
-                               'recent'    => t('Recent Photos'),
+                               '$recent'    => t('Recent Photos'),
                                '$albums'   => $albums['albums'],
                                '$baseurl'  => z_root(),
                                '$upload'   => array( t('Upload New Photos'), $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/upload'),
index 4f5d7cd22db33acd58fc9cdce0c2175647094ed5..ae00185cca9da11fe03c6352499ea820be86ae16 100644 (file)
@@ -21,23 +21,30 @@ function videos_init(&$a) {
 
        if($a->argc > 1) {
                $nick = $a->argv[1];
-               $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1",
+               $user = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1",
                        dbesc($nick)
                );
 
-               if(! count($r))
+               if(! count($user))
                        return;
 
-               $a->data['user'] = $r[0];
-               $a->profile_uid = $r[0]['uid'];
+               $a->data['user'] = $user[0];
+               $a->profile_uid = $user[0]['uid'];
 
-               $profilephoto = $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg');
+               $profile = get_profiledata_by_nick($nick, $a->profile_uid);
+
+               if((x($profile['page-flags']) == 1)
+                               || (x($profile['page-flags']) == 2)
+                               || (x($profile['page-flags']) == 5))
+                       $account_type = page_type_translate($profile['page-flags']);
 
                $tpl = get_markup_template("vcard-widget.tpl");
 
-               $vcard_widget = replace_macros($tpl, array(
-                       '$name' => $a->data['user']['username'],
-                       '$photo' => $profilephoto
+               $vcard_widget .= replace_macros($tpl, array(
+                       '$name' => $profile[name],
+                       '$photo' => $profile[photo],
+                       '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''),
+                       '$account_type' => $account_type,
                ));
 
 
index fa209bf46fa35e83da9b1d1b631e5bbb9a80f3db..1b4e6a6eeeea3dd5cb7d894402ff85983c2c9452 100644 (file)
@@ -3,7 +3,7 @@
 
        <div class="fn label p-name">{{$profile.name}}</div>
        
-       {{if $profile.faddr}}<div class="p-faddr">{{$profile.faddr}}</div>{{/if}}
+       {{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
        
        {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
 
@@ -12,6 +12,7 @@
        {{else}}
                <div id="profile-photo-wrapper"><a href="{{$profile.url}}"><img class="photo u-photo" width="175" height="175" src="{{$profile.photo}}" alt="{{$profile.name}}"></a></div>
        {{/if}}
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
        {{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
        {{if $location}}
                <dl class="location"><dt class="location-label">{{$location}}</dt> 
index 04e26607a1daf67b26e4ed115c23a75979ed3859..77405614c5c89e6a5520f9cfe0a54630d2b3a01b 100644 (file)
@@ -1,9 +1,14 @@
 
 <div class="vcard">
-        <div class="fn">{{$name}}</div>
-        {{if $url}}
-        <div id="profile-photo-wrapper"><a href="{{$url}}"><img class="vcard-photo photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></a></div>
-        {{else}}
-        <div id="profile-photo-wrapper"><img class="vcard-photo photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></div>
-        {{/if}}
+       <div class="fn">{{$name}}</div>
+       {{if $addr}}<div class="p-addr">{{$addr}}</div>{{/if}}
+       {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
+       {{if $url}}
+       <div id="profile-photo-wrapper"><a href="{{$url}}"><img class="vcard-photo photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></a></div>
+       {{else}}
+       <div id="profile-photo-wrapper"><img class="vcard-photo photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></div>
+       {{/if}}
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
+       {{if $network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$network_name}}</dd></dl>{{/if}}
+       <div id="profile-vcard-break"></div>
 </div>
index 903846e694bed9c1ef75a973019c89ca4d7fff19..76bbab8e055a36c7186c67a44718f65ff81897f9 100644 (file)
@@ -2492,14 +2492,14 @@ aside input[type='text'] {
        margin-bottom: 25px;
 }
 
-.location-label, .gender-label, .marital-label, .homepage-label {
+.location-label, .gender-label, .marital-label, .homepage-label, .network-label {
        float: left;
        text-align: right;
        display: block;
        width: 65px;
 }
 
-.adr, .x-gender, .marital-text, .homepage-url {
+.adr, .x-gender, .marital-text, .homepage-url, .x-network {
        float: left;
        display: block;
        margin-left: 8px;
@@ -2538,11 +2538,16 @@ aside input[type='text'] {
 }
 
 .vcard .title,
-.vcard .p-faddr {
+.vcard .p-addr {
        margin-bottom: 5px;
        margin-left: 12px;
 }
 
+.vcard .account-type {
+       font-size: 120%;
+       margin-bottom: 13px;
+}
+
 .vcard dl {
        clear: both;
 }
index fb5d4e420e68ca02c75127244a61be459f3a66f4..bfcbda798cf09ba1dcd2ad4da62384a7365caac3 100644 (file)
@@ -3,12 +3,14 @@
 
        <div class="fn label">{{$profile.name}}</div>
        
-       {{if $profile.faddr}}<div class="p-faddr">{{$profile.faddr}}</div>{{/if}}
+       {{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
        
        {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
        <div id="profile-photo-wrapper"><img class="photo" width="175" height="175" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}"></div>
 
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
 
+       {{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
 
        {{if $location}}
                <dl class="location"><dt class="location-label">{{$location}}</dt> 
index a4af7f907536b2170bed1e8954b11c75a700248c..91dd907a0c8cfe089bda545f6675c4bf36d5b2f5 100644 (file)
@@ -3081,14 +3081,14 @@ aside input[type='text'] {
        margin-bottom: 25px;\r
 }\r
 \r
-.location-label, .gender-label, .marital-label, .homepage-label {\r
+.location-label, .gender-label, .marital-label, .homepage-label, .network-label {\r
        float: left;\r
        text-align: right;\r
        display: block;\r
        width: 65px;\r
 }\r
 \r
-.adr, .x-gender, .marital-text, .homepage-url {\r
+.adr, .x-gender, .marital-text, .homepage-url, .x-network {\r
        float: left;\r
        display: block;\r
        margin-left: 8px;\r
@@ -3127,11 +3127,17 @@ aside input[type='text'] {
 }\r
 \r
 .vcard .title,\r
-.vcard .p-faddr {\r
+.vcard .p-addr,\r
+.vcard .account-type {\r
        margin-bottom: 5px;\r
        margin-left: 12px;\r
 }\r
 \r
+.vcard .account-type {\r
+       font-size: 120%;\r
+       margin-bottom: 13px;\r
+}\r
+\r
 .vcard dl {\r
        clear: both;\r
 }\r
index 515740871385e0951b5100fa77e4b9cbb51b5e94..a7ea8e6a07bd9eafa623bc801f7d70b335e11d15 100644 (file)
@@ -3,12 +3,14 @@
 
        <div class="fn label">{{$profile.name}}</div>
        
-       {{if $profile.faddr}}<div class="p-faddr">{{$profile.faddr}}</div>{{/if}}
+       {{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
        
        {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
        <div id="profile-photo-wrapper"><img class="photo" width="175" height="175" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}"></div>
 
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
 
+       {{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
 
        {{if $location}}
                <dl class="location"><dt class="location-label">{{$location}}</dt> 
index 7b2b1358c04c2a8c14b69697a17e5519e99ac47c..7cf1c8a982432aa3d5071b2fdc41b2d1a711c2db 100644 (file)
@@ -2867,14 +2867,14 @@ aside input[type='text'] {
        margin-bottom: 25px;
 }
 
-.location-label, .gender-label, .marital-label, .homepage-label {
+.location-label, .gender-label, .marital-label, .homepage-label, .network-label {
        float: left;
        text-align: right;
        display: block;
        width: 65px;
 }
 
-.adr, .x-gender, .marital-text, .homepage-url {
+.adr, .x-gender, .marital-text, .homepage-url, .x-network {
        float: left;
        display: block;
        margin-left: 8px;
@@ -2913,10 +2913,15 @@ aside input[type='text'] {
 }
 
 .vcard .title,
-.vcard .p-faddr {
+.vcard .p-addr,
+.vcard .account-type {
        margin-bottom: 5px;
        margin-left: 12px;
 }
+.vcard .account-type {
+       font-size: 120%;
+       margin-bottom: 13px;
+}
 
 .vcard dl {
        clear: both;
index b8f59ccaa8cd084dc43913dd4dfa418cd6533d86..9d1a370169c593ac890d781cb719c82211ce2766 100644 (file)
@@ -3,12 +3,14 @@
 
        <div class="fn label">{{$profile.name}}</div>
        
-       {{if $profile.faddr}}<div class="p-faddr">{{$profile.faddr}}</div>{{/if}}
+       {{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
        
        {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
        <div id="profile-photo-wrapper"><img class="photo" width="175" height="175" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}"></div>
 
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
 
+       {{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
 
        {{if $location}}
                <dl class="location"><dt class="location-label">{{$location}}</dt> 
index 1ff2de70063cf0e336048c1b12ff64eaf627aa3b..33b236d0b71ebe7118189e30c8fc74924b877a05 100644 (file)
@@ -833,9 +833,13 @@ aside .vcard .fn {
 aside .vcard .title {
   margin-bottom: 5px;
 }
-aside .vcard .p-faddr {
+aside .vcard .p-addr {
   margin-bottom: 5px;
 }
+aside .vcard .account-type {
+  font-size: 14px;
+  margin-bottom: 13px;
+}
 aside .vcard dl {
   height: auto;
   overflow: auto;
index 2b05335e0f0df55bbff63757d9b971e3865a8eca..e98572434cef7e87ecb7f551a54225d628648513 100644 (file)
@@ -833,9 +833,13 @@ aside .vcard .fn {
 aside .vcard .title {
   margin-bottom: 5px;
 }
-aside .vcard .p-faddr {
+aside .vcard .p-addr {
   margin-bottom: 5px;
 }
+aside .vcard .account-type {
+  font-size: 14px;
+  margin-bottom: 13px;
+}
 aside .vcard dl {
   height: auto;
   overflow: auto;
index ec0982a75e22e9f08055a6e4186b5dc709f7993b..1d72a7146da147a0d1d8e3b78d97ff07f96588e3 100644 (file)
@@ -833,9 +833,13 @@ aside .vcard .fn {
 aside .vcard .title {
   margin-bottom: 5px;
 }
-aside .vcard .p-faddr {
+aside .vcard .p-addr {
   margin-bottom: 5px;
 }
+aside .vcard .account-type {
+  font-size: 14px;
+  margin-bottom: 13px;
+}
 aside .vcard dl {
   height: auto;
   overflow: auto;
index b6bed2c9cb6cf3560e3fd59fd2a3b5a3fa53f39c..c698497a1609066c913113bb1d99afaf9eead0de 100644 (file)
@@ -332,7 +332,8 @@ aside {
        .vcard {
                .fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
                .title { margin-bottom: 5px; }
-               .p-faddr{ margin-bottom: 5px; }
+               .p-addr { margin-bottom: 5px; }
+               .account-type { font-size: 14px; margin-bottom: 13px; }
                dl { height: auto; overflow: auto; }
                dt {float: left; margin-left: 0px; width: 35%; text-align: right; color: @VCardLabelColor; }
                dd {float: left; margin-left: 4px; width: 60%;}
index 7a06e7588f241e47602064f72491fa68b6bc7de3..f4eae78d2b224af3045490983bd5773671b4712f 100644 (file)
                {{/if}}
        </div>
 
-       {{if $profile.faddr}}<div class="p-faddr">{{$profile.faddr}}</div>{{/if}}
+       {{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
 
        {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
        <div id="profile-photo-wrapper"><img class="photo" width="175" height="175" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}" /></div>
 
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
 
+       {{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
 
        {{if $location}}
                <dl class="location"><dt class="location-label">{{$location}}</dt> 
index 45d2629dae0a09c8a0941ee029f0d60073d9f6a0..37d1c53a7d0269099bc5f13cf5ed70028d253734 100644 (file)
@@ -665,6 +665,10 @@ aside h4 {
        font-size: 1em;
 }
 
+.vcard .account-type {
+       font-size: 1.2em;
+}
+
 .vcard dd {
        font-size: 12px;
        font-variant: normal;
@@ -4554,7 +4558,8 @@ hr.line-dots {
 .location-label,
 .gender-label,
 .marital-label,
-.homepage-label {
+.homepage-label,
+.network-label {
        float: left;
        text-align: left;
        display: block;
@@ -4564,7 +4569,8 @@ hr.line-dots {
 .adr,
 .x-gender,
 .marital-text,
-.homepage-url {
+.homepage-url,
+.x-network {
        float: left;
        display: block;
        margin-left: 8px;
index 2892862daf6b331e0dd81ad64c2fcf6e9b7810c5..6313d2f0d497e156d840733d8b95f4b302f1dd85 100644 (file)
@@ -998,6 +998,11 @@ aside .vcard dl {
   height: auto;
   overflow: auto;
 }
+aside .vcard .account-type {
+  margin-bottom: 13px;
+  font-size: 14px;
+  font-weight: bold;
+}
 
 aside select {
   background-color: white;
index 1882c155833872d7edc2d3c79f3101569df2560c..d81faf175bf7b1131c0dc03c0b13c13e4ceffa5c 100644 (file)
@@ -13,7 +13,7 @@
                {{/if}}
        </div>
 
-       {{if $profile.faddr}}<div class="p-faddr">{{$profile.faddr}}</div>{{/if}}
+       {{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
 
        {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
 
@@ -22,7 +22,8 @@
        {{else}}
                <div id="profile-photo-wrapper"><a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}" alt="{{$profile.name}}"></a></div>
        {{/if}}
-       
+
+       {{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
        {{if $profile.network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_name}}</dd></dl>{{/if}}
        {{if $location}}
                <dl class="location"><dt class="location-label">{{$location}}</dt>