Ticket #7188: 7188.patch
File 7188.patch, 13.6 KB (added by , 8 years ago) |
---|
-
src/bp-activity/bp-activity-filters.php
211 211 $activity_allowedtags['a']['id'] = array(); 212 212 $activity_allowedtags['a']['rel'] = array(); 213 213 $activity_allowedtags['a']['title'] = array(); 214 $activity_allowedtags['a']['aria-label'] = array(); 214 215 215 216 $activity_allowedtags['b'] = array(); 216 217 $activity_allowedtags['code'] = array(); -
src/bp-activity/bp-activity-template.php
1493 1493 1494 1494 // Setup variables for activity meta. 1495 1495 $activity_permalink = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ); 1496 $activity_meta = sprintf( '%1$s <a href="%2$s" class="view activity-time-since " title="%3$s">%4$s</a>',1496 $activity_meta = sprintf( '%1$s <a href="%2$s" class="view activity-time-since bp-aria-tooltip" aria-label="%3$s">%4$s</a>', 1497 1497 $new_content, 1498 1498 $activity_permalink, 1499 1499 esc_attr__( 'View Discussion', 'buddypress' ), -
src/bp-friends/bp-friends-widgets.php
68 68 <?php while ( bp_members() ) : bp_the_member(); ?> 69 69 <li class="vcard"> 70 70 <div class="item-avatar"> 71 <a href="<?php bp_member_permalink(); ?>" ><?php bp_member_avatar(); ?></a>71 <a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> 72 72 </div> 73 73 74 74 <div class="item"> -
src/bp-friends/classes/class-bp-core-friends-widget.php
111 111 <?php while ( bp_members() ) : bp_the_member(); ?> 112 112 <li class="vcard"> 113 113 <div class="item-avatar"> 114 <a href="<?php bp_member_permalink(); ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>114 <a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> 115 115 </div> 116 116 117 117 <div class="item"> -
src/bp-groups/bp-groups-widgets.php
58 58 <?php while ( bp_groups() ) : bp_the_group(); ?> 59 59 <li <?php bp_group_class(); ?>> 60 60 <div class="item-avatar"> 61 <a href="<?php bp_group_permalink() ?>" ><?php bp_group_avatar_thumb() ?></a>61 <a href="<?php bp_group_permalink() ?>" class="bp-tooltip" data-title="<?php bp_group_name() ?>"><?php bp_group_avatar_thumb() ?></a> 62 62 </div> 63 63 64 64 <div class="item"> -
src/bp-groups/classes/class-bp-groups-widget.php
131 131 <?php while ( bp_groups() ) : bp_the_group(); ?> 132 132 <li <?php bp_group_class(); ?>> 133 133 <div class="item-avatar"> 134 <a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_avatar_thumb() ?></a>134 <a href="<?php bp_group_permalink() ?>" class="bp-tooltip" data-title="<?php bp_group_name() ?>"><?php bp_group_avatar_thumb() ?></a> 135 135 </div> 136 136 137 137 <div class="item"> -
src/bp-members/bp-members-widgets.php
79 79 <?php while ( bp_members() ) : bp_the_member(); ?> 80 80 <li class="vcard"> 81 81 <div class="item-avatar"> 82 <a href="<?php bp_member_permalink(); ?>" ><?php bp_member_avatar(); ?></a>82 <a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> 83 83 </div> 84 84 85 85 <div class="item"> -
src/bp-members/classes/class-bp-core-members-widget.php
126 126 127 127 <li class="vcard"> 128 128 <div class="item-avatar"> 129 <a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>129 <a href="<?php bp_member_permalink() ?>" class="bp-tooltip" data-title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> 130 130 </div> 131 131 132 132 <div class="item"> -
src/bp-members/classes/class-bp-core-recently-active-widget.php
85 85 <?php while ( bp_members() ) : bp_the_member(); ?> 86 86 87 87 <div class="item-avatar"> 88 <a href="<?php bp_member_permalink(); ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>88 <a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> 89 89 </div> 90 90 91 91 <?php endwhile; ?> -
src/bp-members/classes/class-bp-core-whos-online-widget.php
84 84 <?php while ( bp_members() ) : bp_the_member(); ?> 85 85 86 86 <div class="item-avatar"> 87 <a href="<?php bp_member_permalink(); ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>87 <a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> 88 88 </div> 89 89 90 90 <?php endwhile; ?> -
src/bp-messages/bp-messages-star.php
229 229 * @param string $retval Link for starring / unstarring a message, including markup. 230 230 * @param array $r Parsed link arguments. See $args in bp_get_the_message_star_action_link(). 231 231 */ 232 return apply_filters( 'bp_get_the_message_star_action_link', '<a title="' . esc_attr( $title ) . '" class="message-action-' . esc_attr( $action ) . '" data-star-status="' . esc_attr( $action ) .'" data-star-nonce="' . esc_attr( $nonce ) . '"' . $bulk_attr . ' data-message-id="' . esc_attr( (int) $message_id ) . '" href="' . $retval . '"><span class="icon"></span> <span class="bp-screen-reader-text">' . $r['text_' . $action] . '</span></a>', $r );232 return apply_filters( 'bp_get_the_message_star_action_link', '<a aria-label="' . esc_attr( $title ) . '" class="bp-aria-tooltip message-action-' . esc_attr( $action ) . '" data-star-status="' . esc_attr( $action ) .'" data-star-nonce="' . esc_attr( $nonce ) . '"' . $bulk_attr . ' data-message-id="' . esc_attr( (int) $message_id ) . '" href="' . $retval . '"><span class="icon" aria-hidden="true"></span> <span class="bp-screen-reader-text">' . $r['text_' . $action] . '</span></a>', $r ); 233 233 } 234 234 235 235 /** -
src/bp-templates/bp-legacy/buddypress/activity/index.php
142 142 143 143 <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Activity secondary navigation', 'buddypress' ); ?>" role="navigation"> 144 144 <ul> 145 <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>145 <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" class="bp-aria-tooltip" aria-label="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li> 146 146 147 147 <?php 148 148 -
src/bp-templates/bp-legacy/buddypress/groups/single/activity.php
9 9 ?> 10 10 <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation"> 11 11 <ul> 12 <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>12 <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" class="bp-aria-tooltip" aria-label="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li> 13 13 14 14 <?php 15 15 -
src/bp-templates/bp-legacy/css/buddypress-rtl.css
23 23 3.9 - Private Messaging Threads 24 24 3.10 - Extended Profiles 25 25 3.11 - Widgets 26 3.12 - Tooltips 26 27 4.0 - Media Queries 27 28 4.1 - Smartphones Landscape 28 29 4.2 - Smartphones Portrait … … 1677 1678 3.11 - Widgets 1678 1679 --------------------------------------------------------------*/ 1679 1680 1681 .widget.buddypress div.item-avatar { 1682 float: right; 1683 } 1684 1680 1685 .widget.buddypress div.item-avatar img.avatar { 1681 1686 float: right; 1682 1687 margin: 0 0 15px 10px; … … 1764 1769 } 1765 1770 1766 1771 /*-------------------------------------------------------------- 1772 3.12 - Tooltips 1773 --------------------------------------------------------------*/ 1774 1775 .bp-tooltip, 1776 .bp-aria-tooltip { 1777 position: relative 1778 } 1779 1780 .bp-tooltip::before { 1781 content:attr(data-title); 1782 display: none; 1783 right: 0; 1784 opacity: 0; 1785 position: absolute; 1786 top: 40px; 1787 } 1788 1789 .bp-aria-tooltip::before{ 1790 content:attr(aria-label); 1791 right: 0; 1792 opacity: 0; 1793 position: absolute; 1794 top: 110%; 1795 } 1796 1797 .bp-tooltip:hover::before, 1798 .bp-tooltip:focus::before { 1799 border: solid; 1800 background-color: #fff; 1801 border: 1px solid #ccc; 1802 color: #333; 1803 display:block; 1804 font-size: 0.7em; 1805 right: 0; 1806 opacity: 1; 1807 padding: 2px 5px; 1808 position: absolute; 1809 top: 40px; 1810 white-space: nowrap; 1811 z-index:999; 1812 } 1813 1814 a.bp-aria-tooltip:hover::before, 1815 a.bp-aria-tooltip:focus::before { 1816 border: solid; 1817 background-color: #fff; 1818 border: 1px solid #ccc; 1819 color: #333; 1820 display:block; 1821 font-size: 0.7em; 1822 right: 0; 1823 opacity: 1; 1824 padding: 2px 5px; 1825 position: absolute; 1826 top: 110%; 1827 white-space: nowrap; 1828 z-index:999; 1829 } 1830 1831 1832 /*-------------------------------------------------------------- 1767 1833 4.0 - Media Queries 1768 1834 --------------------------------------------------------------*/ 1769 1835 /*-------------------------------------------------------------- -
src/bp-templates/bp-legacy/css/buddypress.css
23 23 3.9 - Private Messaging Threads 24 24 3.10 - Extended Profiles 25 25 3.11 - Widgets 26 3.12 - Tooltips 26 27 4.0 - Media Queries 27 28 4.1 - Smartphones Landscape 28 29 4.2 - Smartphones Portrait … … 1677 1678 3.11 - Widgets 1678 1679 --------------------------------------------------------------*/ 1679 1680 1681 .widget.buddypress div.item-avatar { 1682 float: left; 1683 } 1684 1680 1685 .widget.buddypress div.item-avatar img.avatar { 1681 1686 float: left; 1682 1687 margin: 0 10px 15px 0; … … 1764 1769 } 1765 1770 1766 1771 /*-------------------------------------------------------------- 1772 3.12 - Tooltips 1773 --------------------------------------------------------------*/ 1774 1775 .bp-tooltip, 1776 .bp-aria-tooltip { 1777 position: relative 1778 } 1779 1780 .bp-tooltip::before { 1781 content:attr(data-title); 1782 display: none; 1783 left: 0; 1784 opacity: 0; 1785 position: absolute; 1786 top: 40px; 1787 } 1788 1789 .bp-aria-tooltip::before{ 1790 content:attr(aria-label); 1791 left: 0; 1792 opacity: 0; 1793 position: absolute; 1794 top: 110%; 1795 } 1796 1797 .bp-tooltip:hover::before, 1798 .bp-tooltip:focus::before { 1799 border: solid; 1800 background-color: #fff; 1801 border: 1px solid #ccc; 1802 color: #333; 1803 display:block; 1804 font-size: 0.7em; 1805 left: 0; 1806 opacity: 1; 1807 padding: 2px 5px; 1808 position: absolute; 1809 top: 40px; 1810 white-space: nowrap; 1811 z-index:999; 1812 } 1813 1814 a.bp-aria-tooltip:hover::before, 1815 a.bp-aria-tooltip:focus::before { 1816 border: solid; 1817 background-color: #fff; 1818 border: 1px solid #ccc; 1819 color: #333; 1820 display:block; 1821 font-size: 0.7em; 1822 left: 0; 1823 opacity: 1; 1824 padding: 2px 5px; 1825 position: absolute; 1826 top: 110%; 1827 white-space: nowrap; 1828 z-index:999; 1829 } 1830 1831 1832 /*-------------------------------------------------------------- 1767 1833 4.0 - Media Queries 1768 1834 --------------------------------------------------------------*/ 1769 1835 /*--------------------------------------------------------------