]> git.mxchange.org Git - friendica.git/commitdiff
Vier: Use CSS for popup menu
authorMichael Vogel <icarus@dabo.de>
Wed, 26 Aug 2015 22:02:06 +0000 (00:02 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 26 Aug 2015 22:02:06 +0000 (00:02 +0200)
mod/dfrn_notify.php
view/theme/vier/dark.css
view/theme/vier/plus.css
view/theme/vier/style.css
view/theme/vier/templates/contact_template.tpl [new file with mode: 0644]
view/theme/vier/templates/nav.tpl
view/theme/vier/templates/photo_item.tpl [deleted file]
view/theme/vier/templates/search_item.tpl
view/theme/vier/templates/wall_thread.tpl

index 874f17c77202a97b25c084603dd3b2c5f5aaf8e5..474d13c4d69cb4b007608b02e256077360d1b0b9 100644 (file)
@@ -132,16 +132,16 @@ function dfrn_notify_post(&$a) {
        if($importer['page-flags'] == PAGE_SOAPBOX)
                xml_status(0);
 
-       
+
        if(strlen($key)) {
-               
+
                // if local rino is lower than remote rino, abort: should not happen!
                // but only for $remote_rino > 1, because old code did't send rino version
                if ($rino_remote_version > 1 && $rino < $rino_remote) {
                        logger("rino version '$rino_remote' is lower than supported '$rino'");
                        xml_status(0,"rino version '$rino_remote' is lower than supported '$rino'");
                }
-               
+
                $rawkey = hex2bin(trim($key));
                logger('rino: md5 raw key: ' . md5($rawkey));
                $final_key = '';
@@ -164,7 +164,7 @@ function dfrn_notify_post(&$a) {
                }
 
                #logger('rino: received key : ' . $final_key);
-               
+
                switch($rino_remote) {
                        case 0:
                        case 1:
@@ -195,8 +195,8 @@ function dfrn_notify_post(&$a) {
                                logger("rino: invalid sent verision '$rino_remote'");
                                xml_status(0);
                }
-               
-               
+
+
                logger('rino: decrypted data: ' . $data, LOGGER_DATA);
        }
 
@@ -243,7 +243,7 @@ function dfrn_notify_content(&$a) {
                        dbesc($last_update)
                );
 
-               logger('dfrn_notify: challenge=' . $hash, LOGGER_DEBUG );
+               logger('dfrn_notify: challenge=' . $hash, LOGGER_DEBUG);
 
                $sql_extra = '';
                switch($direction) {
@@ -295,14 +295,14 @@ function dfrn_notify_content(&$a) {
                $challenge    = bin2hex($challenge);
                $encrypted_id = bin2hex($encrypted_id);
 
-               
+
                $rino = get_config('system','rino_encrypt');
                $rino = intval($rino);
-               
+
                // if requested rino is lower than enabled local rino, lower local rino version
                // if requested rino is higher than enabled local rino, reply with local rino
                if ($rino_remote < $rino) $rino = $rino_remote;
-               
+
                if((($r[0]['rel']) && ($r[0]['rel'] != CONTACT_IS_SHARING)) || ($r[0]['page-flags'] == PAGE_COMMUNITY)) {
                        $perm = 'rw';
                }
index d9e4cdb3d032edcd3bfe5291fa191e68fab5a6e0..9501ecfe0d9307cb30c9159793603b7ccc3c2157 100644 (file)
@@ -58,4 +58,4 @@ input#side-peoplefind-submit, input#side-follow-submit {
 
 li :hover {
        color: #767676 !important;      
-}
\ No newline at end of file
+}
index f334d6cdd12f8ce91d6a46fca29f8c276e331de3..2ae6e5000523c849e0d098067802612b34f106d1 100644 (file)
@@ -47,10 +47,11 @@ nav .nav-menu {
   font-weight: initial;
 }
 
+#nav-apps-menu,
 #nav-site-menu,
 #nav-notifications-menu,
 #nav-user-menu {
-  top: 35px;
+  top: 32px;
 }
 
 #nav-messages-menu {
index f312b1710319f32593cc6c570d042cd8d24d4b7a..77ffb53fd1903bf9d7ee28f6f69ec16c51abf95f 100644 (file)
@@ -606,6 +606,7 @@ nav .nav-menu-icon {
 nav .nav-menu-icon.selected {
   background-color: #364e59;
 }
+nav .nav-menu img,
 nav .nav-menu-icon img {
   width: 22px;
   height: 22px;
@@ -613,6 +614,10 @@ nav .nav-menu-icon img {
   -moz-border-radius: 4px;
   border-radius: 4px;
 }
+nav .nav-menu img {
+  margin-top: -3px;
+  margin-right: 4px;
+}
 nav .nav-menu-icon .nav-notify {
   top: 3px;
 }
@@ -683,7 +688,7 @@ nav #nav-user-linklabel {
 }
 nav #nav-user-linklabel {
   padding-left: 0px;
-  margin-left: 0px;
+  margin-top: 0px;
 }
 nav #nav-help-link .menu-popup,
 nav #nav-search-link .menu-popup,
@@ -699,6 +704,17 @@ nav #nav-site-linkmenu {
   margin-left: 0px;
   margin-right: 0px;
 }
+.contact-entry-photo:hover .contact-photo-menu,
+.contact-photo-wrapper:hover .menu-popup,
+nav #nav-user-linklabel:hover #nav-user-menu,
+nav #nav-user-linkmenu:hover #nav-user-menu,
+nav #nav-apps-link:hover #nav-apps-menu,
+nav #nav-site-linkmenu:hover #nav-site-menu,
+nav #nav-notifications-linkmenu:hover #nav-notifications-menu {
+  display:block;
+  visibility:visible;
+  opacity:1;
+}
 nav #nav-notifications-linkmenu {
   margin-left: 0px;
   margin-right: 5px;
@@ -754,8 +770,12 @@ nav #nav-user-linkmenu {
         }
 
 ul.menu-popup {
+  visibility:hidden;
+  opacity:0;
+  z-index:1;
+  transition:all 0.2s ease-in-out;
+  /* display: none; */
   position: absolute;
-  display: none;
   width: 11em;
   background: #ffffff;
   color: #2d2d2d;
diff --git a/view/theme/vier/templates/contact_template.tpl b/view/theme/vier/templates/contact_template.tpl
new file mode 100644 (file)
index 0000000..68716df
--- /dev/null
@@ -0,0 +1,34 @@
+
+<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
+       <div class="contact-entry-photo-wrapper" >
+               <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
+               <!-- onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')" 
+               onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)" > -->
+
+                       <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" /></a>
+
+                       {{if !$no_contacts_checkbox}}
+                       <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
+                       {{/if}}
+                       {{if $contact.photo_menu}}
+                       <span onclick="openClose('contact-photo-menu-{{$contact.id}}');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-{{$contact.id}}">menu</span>
+                       <div class="contact-photo-menu" id="contact-photo-menu-{{$contact.id}}">
+                               <ul>
+                                       {{foreach $contact.photo_menu as $k=>$c}}
+                                       {{if $c.2}}
+                                       <li><a class="{{$k}}" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
+                                       {{else}}
+                                       <li><a class="{{$k}}" href="{{$c.1}}">{{$c.0}}</a></li>
+                                       {{/if}}
+                                       {{/foreach}}
+                               </ul>
+                       </div>
+                       {{/if}}
+               </div>
+                       
+       </div>
+       <div class="contact-entry-photo-end" ></div>
+       <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >{{$contact.name}}</div>
+
+       <div class="contact-entry-end" ></div>
+</div>
index ef52e77894ae7f5ee6853a463c69dcb741fa892a..cd359b152f6b41cab88b69238dafdba417d566f0 100644 (file)
                {{/if}}
                
                {{if $userinfo}}
-                       <li aria-hidden="true" id="nav-user-linklabel" class="nav-menu">
+                       <!-- <li aria-hidden="true" id="nav-user-linklabel" class="nav-menu">
                                <a rel="#nav-user-menu" title="{{$sitelocation}}">{{$userinfo.name}}<span id="intro-update" class="nav-notify"></span></a>
-                       </li>
-                       <li role="menu" aria-haspopup="true" id="nav-user-linkmenu" class="nav-menu-icon">
-                               <a accesskey="u" rel="#nav-user-menu" title="{{$sitelocation}}"><img src="{{$userinfo.icon}}" alt="{{$userinfo.name}}"></a>
+                       </li> -->
+                       <li role="menu" aria-haspopup="true" id="nav-user-linkmenu" class="nav-menu">
+                               <a accesskey="u" rel="#nav-user-menu" title="{{$sitelocation}}"><img src="{{$userinfo.icon}}" alt="{{$userinfo.name}}"><span id="nav-user-linklabel">{{$userinfo.name}}</span><span id="intro-update" class="nav-notify"></span></a>
                                <ul id="nav-user-menu" class="menu-popup">
                                        {{if $nav.introductions}}<li role="menuitem"><a class="{{$nav.introductions.2}}" href="{{$nav.introductions.0}}" title="{{$nav.introductions.3}}" >{{$nav.introductions.1}}</a><span id="intro-update-li" class="nav-notify"></span></li>{{/if}}
                                        {{if $nav.contacts}}<li role="menuitem"><a class="{{$nav.contacts.2}}" href="{{$nav.contacts.0}}" title="{{$nav.contacts.3}}" >{{$nav.contacts.1}}</a></li>{{/if}}
diff --git a/view/theme/vier/templates/photo_item.tpl b/view/theme/vier/templates/photo_item.tpl
deleted file mode 100644 (file)
index 84783ae..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<div class="wall-item-container {{$indent}} {{$shiny}} ">
-       <div class="wall-item-item">
-               <div class="wall-item-info">
-                       <div class="contact-photo-wrapper">
-                               <a href="{{$profile_url}}" target="redir" title="{{$linktitle}}" class="wall-item-photo-link" id="wall-item-photo-link-{{$id}}">
-                                       <img src="{{$thumb}}" class="contact-photo{{$sparkle}}" id="wall-item-photo-{{$id}}" alt="{{$name}}" />
-                               </a>
-                       </div>
-               </div>
-               <div class="wall-item-actions-author">
-                       <a href="{{$profile_url}}" target="redir" title="{{$linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$sparkle}}">{{$name}}</span></a> 
-                       <span class="wall-item-ago">
-                               {{if $plink}}<a class="link" title="{{$plink.title}}" href="{{$plink.href}}" style="color: #999">{{$ago}}</a>{{else}} {{$ago}} {{/if}}
-                               {{if $lock}}<span class="fakelink" style="color: #999" onclick="lockview(event,{{$id}});">{{$lock}}</span> {{/if}}
-                       </span>
-               </div>
-               <div class="wall-item-content">
-                       {{if $title}}<h2><a href="{{$plink.href}}">{{$title}}</a></h2>{{/if}}
-                       {{$body}}
-               </div>
-       </div>
-       <div class="wall-item-bottom">
-               <div class="wall-item-links">
-               </div>
-               <div class="wall-item-tags">
-                       {{foreach $tags as $tag}}
-                               <span class='tag'>{{$tag}}</span>
-                       {{/foreach}}
-
-               </div>
-       </div>
-       <div class="wall-item-bottom">
-               <div class="">
-                       <!-- {{if $plink}}<a title="{{$plink.title}}" href="{{$plink.href}}"><i class="icon-link icon-large"></i></a>{{/if}} -->
-                       {{if $conv}}<a href='{{$conv.href}}' id='context-{{$id}}' title='{{$conv.title}}'><i class="icon-link icon-large"></i></a>{{/if}}
-               </div>
-               <div class="wall-item-actions">
-
-                       <div class="wall-item-location">{{$location}}&nbsp;</div>       
-                       
-                       <div class="wall-item-actions-social">
-                       {{if $star}}
-                               <a href="#" id="star-{{$id}}" onclick="dostar({{$id}}); return false;"  class="{{$star.classdo}}"  title="{{$star.do}}">{{$star.do}}</a>
-                               <a href="#" id="unstar-{{$id}}" onclick="dostar({{$id}}); return false;"  class="{{$star.classundo}}"  title="{{$star.undo}}">{{$star.undo}}</a>
-                               <a href="#" id="tagger-{{$id}}" onclick="itemTag({{$id}}); return false;" class="{{$star.classtagger}}" title="{{$star.tagger}}">{{$star.tagger}}</a>
-                       {{/if}}
-                       
-                       {{if $vote}}
-                               <a href="#" id="like-{{$id}}" title="{{$vote.like.0}}" onclick="dolike({{$id}},'like'); return false">{{$vote.like.1}}</a>
-                               <a href="#" id="dislike-{{$id}}" title="{{$vote.dislike.0}}" onclick="dolike({{$id}},'dislike'); return false">{{$vote.dislike.1}}</a>
-                       {{/if}}
-                                               
-                       {{if $vote.share}}
-                               <a href="#" id="share-{{$id}}" title="{{$vote.share.0}}" onclick="jotShare({{$id}}); return false">{{$vote.share.1}}</a>
-                       {{/if}}                 
-                       </div>
-                       
-                       <div class="wall-item-actions-tools">
-
-                               {{if $drop.pagedrop}}
-                                       <input type="checkbox" title="{{$drop.select}}" name="itemselected[]" class="item-select" value="{{$id}}" />
-                               {{/if}}
-                               {{if $drop.dropping}}
-                                       <a href="item/drop/{{$id}}" onclick="return confirmDelete();" class="icon delete s16" title="{{$drop.delete}}">{{$drop.delete}}</a>
-                               {{/if}}
-                               {{if $edpost}}
-                                       <a class="icon edit s16" href="{{$edpost.0}}" title="{{$edpost.1}}"></a>
-                               {{/if}}
-                       </div>
-                       
-               </div>
-       </div>
-       <div class="wall-item-bottom">
-               <div class="wall-item-links"></div>
-               <div class="wall-item-like" id="wall-item-like-{{$id}}">{{$like}}</div>
-               <div class="wall-item-dislike" id="wall-item-dislike-{{$id}}">{{$dislike}}</div>        
-       </div>
-</div>
index b0e6a310f49543ec7b93a5f8bc4c73075ee73a85..8ff7d72160e9b26aabbf7b6cf82b085da098f2c7 100644 (file)
@@ -9,9 +9,9 @@
 <div class="wall-item-container {{$item.indent}} {{$item.shiny}} ">
        <div class="wall-item-item">
                <div class="wall-item-info">
-                       <div class="contact-photo-wrapper"
-                               onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" 
-                               onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
+                       <div class="contact-photo-wrapper">
+                               <!-- onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" 
+                               onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)"> -->
                                <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-photo-link" id="wall-item-photo-link-{{$item.id}}">
                                        <img src="{{$item.thumb}}" class="contact-photo{{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
                                </a>
index 41c978942be268da592420f5f0d5303e6aa4f033..ab6743545e11278255067f255538f2ecb18a4a11 100644 (file)
@@ -38,9 +38,9 @@
 {{/if}}
        <div class="wall-item-item">
                <div class="wall-item-info">
-                       <div class="contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}"
-                               onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" 
-                               onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
+                       <div class="contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}">
+                               <!-- onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" 
+                               onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)"> -->
                                <a aria-hidden="true" href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="contact-photo-link" id="wall-item-photo-link-{{$item.id}}">
                                        <img src="{{$item.thumb}}" class="contact-photo {{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
                                </a>