diff options
author | redmatrix <git@macgirvin.com> | 2016-02-08 19:33:25 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-08 19:33:25 -0800 |
commit | f984502499c836cde0be647907be505508c04e0c (patch) | |
tree | de882ed30d02776e52baeec90d813102f38234d4 | |
parent | 315ce6d880855444c0cea683810b9b2fbd80c0d3 (diff) | |
download | volse-hubzilla-f984502499c836cde0be647907be505508c04e0c.tar.gz volse-hubzilla-f984502499c836cde0be647907be505508c04e0c.tar.bz2 volse-hubzilla-f984502499c836cde0be647907be505508c04e0c.zip |
need to re-arrange a few things for a short vcard
-rw-r--r-- | include/identity.php | 5 | ||||
-rwxr-xr-x | view/tpl/profile_vcard_short.tpl | 42 |
2 files changed, 46 insertions, 1 deletions
diff --git a/include/identity.php b/include/identity.php index 9d41e9633..51744f7bf 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1050,7 +1050,10 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = fa $channel_menu .= comanche_block($menublock); } - $tpl = get_markup_template('profile_vcard.tpl'); + if($zcard) + $tpl = get_markup_template('profile_vcard_short.tpl'); + else + $tpl = get_markup_template('profile_vcard.tpl'); require_once('include/widgets.php'); diff --git a/view/tpl/profile_vcard_short.tpl b/view/tpl/profile_vcard_short.tpl new file mode 100755 index 000000000..91102306c --- /dev/null +++ b/view/tpl/profile_vcard_short.tpl @@ -0,0 +1,42 @@ +{{$contact_block}} + + {{if $connect}} + <div class="connect-btn-wrapper"><a href="{{$connect_url}}" class="btn btn-block btn-success btn-sm"><i class="icon-plus"></i> {{$connect}}</a></div> + {{/if}} + + +{{$rating}} + + {{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}} + + {{if $location}} + <dl class="location"><dt class="location-label">{{$location}}</dt> + <dd class="adr"> + {{if $profile.address}}<div class="street-address">{{$profile.address}}</div>{{/if}} + <span class="city-state-zip"> + <span class="locality">{{$profile.locality}}</span>{{if $profile.locality}}, {{/if}} + <span class="region">{{$profile.region}}</span> + <span class="postal-code">{{$profile.postal_code}}</span> + </span> + {{if $profile.country_name}}<span class="country-name">{{$profile.country_name}}</span>{{/if}} + </dd> + </dl> + {{/if}} + + {{if $gender}}<dl class="mf"><dt class="gender-label">{{$gender}}</dt> <dd class="x-gender">{{$profile.gender}}</dd></dl>{{/if}} + + + {{if $marital}}<dl class="marital"><dt class="marital-label"><span class="heart">♥</span>{{$marital}}</dt><dd class="marital-text">{{$profile.marital}}</dd></dl>{{/if}} + + {{if $homepage}}<dl class="homepage"><dt class="homepage-label">{{$homepage}}</dt><dd class="homepage-url">{{$profile.homepage}}</dd></dl>{{/if}} + + {{if $diaspora}} + {{include file="diaspora_vcard.tpl"}} + {{/if}} + +<div id="clear"></div> + +{{$chanmenu}} + + + |