]> git.mxchange.org Git - friendica.git/commitdiff
Better link descriptions.
authorMichael Vogel <icarus@dabo.de>
Sat, 8 Aug 2015 20:30:43 +0000 (22:30 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 8 Aug 2015 20:30:43 +0000 (22:30 +0200)
include/conversation.php
include/group.php
include/text.php
view/global.css
view/templates/acl_selector.tpl
view/templates/group_side.tpl
view/theme/vier/style.css
view/theme/vier/templates/wall_thread.tpl

index ca31fd8a0232326dc3d7f43328566bfb0ec254f7..5a84ca42a635be89c7c0752a34d1612dd3c07ca9 100644 (file)
@@ -892,7 +892,7 @@ function item_photo_menu($item){
        foreach($menu as $k=>$v){
                if(strpos($v,'javascript:') === 0) {
                        $v = substr($v,11);
-                       $o .= "<li role=\"menuitem\"><a href=\"#\" onclick=\"$v\">$k</a></li>\n";
+                       $o .= "<li role=\"menuitem\"><a onclick=\"$v\">$k</a></li>\n";
                }
                elseif ($v!="") $o .= "<li role=\"menuitem\"><a href=\"$v\">$k</a></li>\n";
        }
index bbfac7ac1d6819e77d2b592e4b96102e673a2fbd..b7e1963bf37901cb2d6d77a3ca6d8ae224752c6b 100644 (file)
@@ -263,8 +263,8 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0
                        );
                }
        }
-       
-       
+
+
        $tpl = get_markup_template("group_side.tpl");
        $o = replace_macros($tpl, array(
                '$title'                => t('Groups'),
@@ -276,8 +276,8 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0
                '$groups'               => $groups,
                '$add'                  => t('add'),
        ));
-               
-       
+
+
        return $o;
 }
 
index 829e37c2ce97f8088bbd1e2a480454ff681f7c8d..510db01bf1030a0f7ba0bf3d5ff864698dd9f2cf 100644 (file)
@@ -1676,11 +1676,14 @@ function get_plink($item) {
                                //'href' => $a->get_baseurl()."/display/".$a->user['nickname']."/".$item['id'],
                                'href' => $a->get_baseurl()."/display/".$item['guid'],
                                'orig' => $a->get_baseurl()."/display/".$item['guid'],
-                               'title' => t('link to source'),
+                               'title' => t('local thread'),
+                               'orig_title' => t('local thread'),
                        );
 
-               if (x($item,'plink'))
+               if (x($item,'plink')) {
                        $ret["href"] = $item['plink'];
+                       $ret["title"] = t('link to source');
+               }
 
        } elseif (x($item,'plink') && ($item['private'] != 1))
                $ret = array(
index 0033418b8695121df2e064d2b7cd487479c3b7c1..94896ea232fbacf39411e424bdd75196a53e052d 100644 (file)
@@ -180,15 +180,30 @@ span.oembed, h4 {
 
 
 /* plain text editor upload/select popup */
-\r
-.fbrowser .path a { padding: 5px; }\r
+
+.fbrowser .path a { padding: 5px; }
 .fbrowser .path a:before { content: "/"; padding-right: 5px;}
 .fbrowser .folders ul { list-style-type: none; padding-left: 10px;}
-.fbrowser .list { height: auto; overflow-y: hidden; margin: 10px 0px; }\r
-.fbrowser.image .photo-album-image-wrapper { float: left; }\r
+.fbrowser .list { height: auto; overflow-y: hidden; margin: 10px 0px; }
+.fbrowser.image .photo-album-image-wrapper { float: left; }
 .fbrowser.image a img { height: 48px; }
-.fbrowser.image a p { display: none;}\r
-.fbrowser.file .photo-album-image-wrapper { float:none;  white-space: nowrap; }\r
-.fbrowser.file img { display: inline; }\r
+.fbrowser.image a p { display: none;}
+.fbrowser.file .photo-album-image-wrapper { float:none;  white-space: nowrap; }
+.fbrowser.file img { display: inline; }
 .fbrowser.file p  { display: inline; white-space: nowrap; }
-.fbrowser .upload { clear: both; padding-top: 1em;}\r
+.fbrowser .upload { clear: both; padding-top: 1em;}
+
+a {
+  cursor: pointer;
+}
+
+.sr-only {
+  position: absolute;
+  width: 1px;
+  height: 1px;
+  padding: 0;
+  margin: -1px;
+  overflow: hidden;
+  clip: rect(0,0,0,0);
+  border: 0;
+}
index c1220bc1e301a6d9645a7911c4736beb08ecbbdf..bf9470b64efa65e3165a69512654016b14d5b7f4 100644 (file)
@@ -1,7 +1,7 @@
 
 <div id="acl-wrapper">
        <input id="acl-search">
-       <a href="#" id="acl-showall">{{$showall}}</a>
+       <a id="acl-showall">{{$showall}}</a>
        <div id="acl-list">
                <div id="acl-list-content">
                </div>
@@ -11,8 +11,8 @@
 
 <div class="acl-list-item" rel="acl-template" style="display:none">
        <img data-src="{0}"><p>{1}</p>
-       <a href="#" class='acl-button-show'>{{$show}}</a>
-       <a href="#" class='acl-button-hide'>{{$hide}}</a>
+       <a class='acl-button-show'>{{$show}}</a>
+       <a class='acl-button-hide'>{{$hide}}</a>
 </div>
 
 {{if $networks}}
index 2acb00ae9b4288eec1125366302a79b5041ca571..c7e1aa895e2c063a3b567aa83a0fb1eee3eb7083 100644 (file)
@@ -13,7 +13,7 @@
                                        />
                                {{/if}}                 
                                {{if $group.edit}}
-                                       <a class="groupsideedit" href="{{$group.edit.href}}" title="{{$edittext}}"><span id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-icon iconspacer small-pencil"></span></a>
+                                       <a class="groupsideedit" href="{{$group.edit.href}}" title="{{$edittext}}"><span id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-icon iconspacer small-pencil"><span class="sr-only">{{$edittext}}</span></span></a>
                                {{/if}}
                                <a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element {{if $group.selected}}group-selected{{/if}}" href="{{$group.href}}">{{$group.text}}</a>
                        </li>
index f2830aae909194452c639682a68704ecd673a6c6..26b0aa3626213828b8c987481b054b8262ba7b62 100644 (file)
@@ -2938,14 +2938,3 @@ a.mail-list-link {
 
 /* upload/select popup */
 .fbrowser.image .photo-album-image-wrapper { margin-left: 10px; }
-
-.sr-only {
-    position: absolute;
-    width: 1px;
-    height: 1px;
-    padding: 0;
-    margin: -1px;
-    overflow: hidden;
-    clip: rect(0,0,0,0);
-    border: 0;
-}
index f4632cab30638117606c07bed7ed9dcf3f846eb1..41c978942be268da592420f5f0d5303e6aa4f033 100644 (file)
@@ -44,7 +44,7 @@
                                <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>
-                               <a rel="#wall-item-photo-menu-{{$item.id}}" class="contact-photo-menu-button icon s16 menu" id="wall-item-photo-menu-button-{{$item.id}}">menu</a>
+                               <a rel="#wall-item-photo-menu-{{$item.id}}" class="contact-photo-menu-button icon s16 menu" id="wall-item-photo-menu-button-{{$item.id}}"></a>
                                <ul role="menu" aria-haspopup="true" class="contact-menu menu-popup" id="wall-item-photo-menu-{{$item.id}}">
                                {{$item.item_photo_menu}}
                                </ul>
        </div>  
        <div class="wall-item-bottom">
                <div class="wall-item-links">
-                       {{if $item.plink}}<a title="{{$item.plink.title}}" href="{{$item.plink.orig}}"><i class="icon-link icon-large"><span class="sr-only">{{$item.plink.title}}</span></i></a>{{/if}}
+                       {{if $item.plink}}<a role="button" title="{{$item.plink.orig_title}}" href="{{$item.plink.orig}}"><i class="icon-link icon-large"><span class="sr-only">{{$item.plink.orig_title}}</span></i></a>{{/if}}
                </div>
                <div class="wall-item-actions">
                        <div class="wall-item-actions-social">
                        {{if $item.threaded}}
                        {{/if}}
                        {{if $item.comment}}
-                               <span id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" title="{{$item.switchcomment}}"><i class="icon-reply"><span class="sr-only">{{$item.switchcomment}}</span></i></span>
+                               <a role="button" id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" title="{{$item.switchcomment}}"><i class="icon-reply"><span class="sr-only">{{$item.switchcomment}}</span></i></a>
                        {{/if}}
                        {{if $item.vote}}
                                {{if $item.vote.like}}