]> git.mxchange.org Git - friendica.git/commitdiff
Fix profile vcard and style
authorFabio Comuni <fabrix.xm@gmail.com>
Thu, 1 Sep 2011 10:37:30 +0000 (12:37 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Thu, 1 Sep 2011 10:37:30 +0000 (12:37 +0200)
boot.php
images/connect-bg.png [new file with mode: 0644]
view/profile_vcard.tpl
view/theme/quattro/colors.less
view/theme/quattro/quattro.less
view/theme/quattro/style.css

index edad6e70f3a6b52445e175cd1fa2d120280550e6..73cfe6e064544783431646be7e7e4a1e34b4e1ea 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -878,6 +878,7 @@ function profile_sidebar($profile, $block = 0) {
                'podloc' => $a->get_baseurl(),
                'searchable' => (($profile['publish'] && $profile['net-publish']) ? 'true' : 'false' ),
                'nickname ' => $profile['nickname'],
+               'fullname' => $profile['name'],
                'photo300 ' => $a->get_baseurl() . '/photo/custom/300/' . $profile['uid'] . '.jpg',
                'photo100 ' => $a->get_baseurl() . '/photo/custom/100/' . $profile['uid'] . '.jpg',
                'photo50  ' => $a->get_baseurl() . '/photo/custom/50/'  . $profile['uid'] . '.jpg',
diff --git a/images/connect-bg.png b/images/connect-bg.png
new file mode 100644 (file)
index 0000000..0611c73
Binary files /dev/null and b/images/connect-bg.png differ
index 01238ed5af023dcb334c85cc8b0146add58e4712..88111b0f140fb278b88a7bfd518fa5718cec5c69 100644 (file)
@@ -4,17 +4,11 @@
        {{ if $pdesc }}<div class="title">$profile.pdesc</div>{{ endif }}
        <div id="profile-photo-wrapper"><img class="photo" width="175" height="175" src="$profile.photo" alt="$profile.name"></div>
 
-       <div id="profile-extra-links">
-               <ul>
-                       {{ if $connect }}
-                               <li><a id="dfrn-request-link" href="dfrn_request/$profile['nickname']">$connect</a></li>
-                       {{ endif }}
-               </ul>
-       </div>
+
 
        {{ if $location }}
-               <div class="location"><span class="location-label">$location</span
-               <div class="adr">
+               <dl class="location"><dt class="location-label">$location</dt
+               <dd class="adr">
                        {{ if $profile.address }}<div class="street-address">$profile.address</div>{{ endif }}
                        <span class="city-state-zip">
                                <span class="locality">$profile.locality</span>{{ if $profile.locality }}, {{ endif }}
                                <span class="postal-code">$profile.postal-code</span>
                        </span>
                        {{ if $profile.country-name }}<span class="country-name">$profile.country-name</span>{{ endif }}
-               </div>
-       
+               </dd>
+               </dl>
        {{ endif }}
 
-       {{ if $gender }}<div class="mf"><span class="gender-label">$gender</span> <span class="x-gender">$profile.gender</span></div>{{ endif }}
+       {{ if $gender }}<dl class="mf"><dt class="gender-label">$gender</dt> <dd class="x-gender">$profile.gender</dd></dl>{{ endif }}
        
        {{ if $profile.pubkey }}<div class="key" style="display:none;">$profile.pubkey</div>{{ endif }}
 
-       {{ if $marital }}<div class="marital"><span class="marital-label"><span class="heart">&hearts;</span>$marital</span><span class="marital-text">$profile.marital</span></div>{{ endif }}
+       {{ if $marital }}<dl class="marital"><dt class="marital-label"><span class="heart">&hearts;</span>$marital</dt><dd class="marital-text">$profile.marital</dd></dl>{{ endif }}
 
-       {{ if $homepage }}<div class="homepage"><span class="homepage-label">$homepage</span><span class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></span></div>{{ endif }}
+       {{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
 
        {{ inc diaspora_vcard.tpl }}{{ endinc }}
-
+       
+       <div id="profile-extra-links">
+               <ul>
+                       {{ if $connect }}
+                               <li><a id="dfrn-request-link" href="dfrn_request/$profile.nickname">$connect</a></li>
+                       {{ endif }}
+               </ul>
+       </div>
 </div>
 
 $contact_block
index d79dbca68935f30cceaae5fb4f87cc35d91221f5..6015c61ee470b01721efc233c1dc68780b9fa166 100644 (file)
@@ -55,6 +55,9 @@
 @MenuItemDetail: @Metalic2;
 
 @AsideBorder: @Metalic1;
+@AsideConnect: @Grey1;
+@AsideConnectBg: @Blue3;
+@AsideConnectHoverBg: @Blue1;
 
 
 
index f83cce3ce56a36ade52032b0b67d87cf12635a4e..d21c3c1826a39a4429098d7a1ccacd34e72b4f1a 100644 (file)
@@ -203,8 +203,38 @@ aside {
        width: 200px;
        padding:0px 10px 0px 20px;
        border-right: 1px solid @AsideBorder;
+
+       .vcard {
+               .fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
+               .title { margin-bottom: 5px; }
+               dl { height: auto; overflow: auto; }
+               dt {float: left; margin-left: 0px; width: 35%; }
+               dd {float: left; margin-left: 4px; width: 60%;}
+       
+       }
+
+       #profile-extra-links {
+               ul { padding: 0px; margin: 0px; }
+               li { padding: 0px; margin: 0px; list-style: none; }
+       }
+
+       #dfrn-request-link {
+               display: block;
+               .rounded();
+               color: @AsideConnect;
+               background: @AsideConnectBg url('../../../images/connect-bg.png') no-repeat left center;
+               font-weight: bold;
+               text-transform:uppercase;
+               padding: 4px 2px 2px 35px;
+               
+               &:hover { text-decoration: none; background-color: @AsideConnectHoverBg; }
+       }
+
 }
 
+
+
+
 /* section */
 section { 
        display: table-cell;
index e0d22a007b892bf3e3eaa7b9aaef101f4c9f97b7..28e6f5fa182513218edafa2a7065acce05f1801e 100644 (file)
@@ -250,6 +250,52 @@ aside {
   padding: 0px 10px 0px 20px;
   border-right: 1px solid #bdcdd4;
 }
+aside .vcard .fn {
+  font-size: 16px;
+  font-weight: bold;
+  margin-bottom: 5px;
+}
+aside .vcard .title {
+  margin-bottom: 5px;
+}
+aside .vcard dl {
+  height: auto;
+  overflow: auto;
+}
+aside .vcard dt {
+  float: left;
+  margin-left: 0px;
+  width: 35%;
+}
+aside .vcard dd {
+  float: left;
+  margin-left: 4px;
+  width: 60%;
+}
+aside #profile-extra-links ul {
+  padding: 0px;
+  margin: 0px;
+}
+aside #profile-extra-links li {
+  padding: 0px;
+  margin: 0px;
+  list-style: none;
+}
+aside #dfrn-request-link {
+  display: block;
+  -moz-border-radius: 5px 5px 5px 5px;
+  -webkit-border-radius: 5px 5px 5px 5px;
+  border-radius: 5px 5px 5px 5px;
+  color: #ffffff;
+  background: #005c94 url('../../../images/connect-bg.png') no-repeat left center;
+  font-weight: bold;
+  text-transform: uppercase;
+  padding: 4px 2px 2px 35px;
+}
+aside #dfrn-request-link:hover {
+  text-decoration: none;
+  background-color: #19aeff;
+}
 /* section */
 section {
   display: table-cell;