Skip to:
Content

BuddyPress.org

Ticket #7188: 7188.patch

File 7188.patch, 13.6 KB (added by mercime, 8 years ago)
  • src/bp-activity/bp-activity-filters.php

     
    211211        $activity_allowedtags['a']['id']    = array();
    212212        $activity_allowedtags['a']['rel']   = array();
    213213        $activity_allowedtags['a']['title'] = array();
     214        $activity_allowedtags['a']['aria-label'] = array();
    214215
    215216        $activity_allowedtags['b']    = array();
    216217        $activity_allowedtags['code'] = array();
  • src/bp-activity/bp-activity-template.php

     
    14931493
    14941494                // Setup variables for activity meta.
    14951495                $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>',
    14971497                        $new_content,
    14981498                        $activity_permalink,
    14991499                        esc_attr__( 'View Discussion', 'buddypress' ),
  • src/bp-friends/bp-friends-widgets.php

     
    6868                <?php while ( bp_members() ) : bp_the_member(); ?>
    6969                        <li class="vcard">
    7070                                <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>
    7272                                </div>
    7373
    7474                                <div class="item">
  • src/bp-friends/classes/class-bp-core-friends-widget.php

     
    111111                                <?php while ( bp_members() ) : bp_the_member(); ?>
    112112                                        <li class="vcard">
    113113                                                <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>
    115115                                                </div>
    116116
    117117                                                <div class="item">
  • src/bp-groups/bp-groups-widgets.php

     
    5858                <?php while ( bp_groups() ) : bp_the_group(); ?>
    5959                        <li <?php bp_group_class(); ?>>
    6060                                <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>
    6262                                </div>
    6363
    6464                                <div class="item">
  • src/bp-groups/classes/class-bp-groups-widget.php

     
    131131                                <?php while ( bp_groups() ) : bp_the_group(); ?>
    132132                                        <li <?php bp_group_class(); ?>>
    133133                                                <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>
    135135                                                </div>
    136136
    137137                                                <div class="item">
  • src/bp-members/bp-members-widgets.php

     
    7979                <?php while ( bp_members() ) : bp_the_member(); ?>
    8080                        <li class="vcard">
    8181                                <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>
    8383                                </div>
    8484
    8585                                <div class="item">
  • src/bp-members/classes/class-bp-core-members-widget.php

     
    126126
    127127                                        <li class="vcard">
    128128                                                <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>
    130130                                                </div>
    131131
    132132                                                <div class="item">
  • src/bp-members/classes/class-bp-core-recently-active-widget.php

     
    8585                                <?php while ( bp_members() ) : bp_the_member(); ?>
    8686
    8787                                        <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>
    8989                                        </div>
    9090
    9191                                <?php endwhile; ?>
  • src/bp-members/classes/class-bp-core-whos-online-widget.php

     
    8484                                <?php while ( bp_members() ) : bp_the_member(); ?>
    8585
    8686                                        <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>
    8888                                        </div>
    8989
    9090                                <?php endwhile; ?>
  • src/bp-messages/bp-messages-star.php

     
    229229                 * @param string $retval Link for starring / unstarring a message, including markup.
    230230                 * @param array  $r      Parsed link arguments. See $args in bp_get_the_message_star_action_link().
    231231                 */
    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 );
    233233        }
    234234
    235235/**
  • src/bp-templates/bp-legacy/buddypress/activity/index.php

     
    142142
    143143        <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Activity secondary navigation', 'buddypress' ); ?>" role="navigation">
    144144                <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>
    146146
    147147                        <?php
    148148
  • src/bp-templates/bp-legacy/buddypress/groups/single/activity.php

     
    99?>
    1010<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    1111        <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>
    1313
    1414                <?php
    1515
  • src/bp-templates/bp-legacy/css/buddypress-rtl.css

     
    2323        3.9 - Private Messaging Threads
    2424        3.10 - Extended Profiles
    2525        3.11 - Widgets
     26        3.12 - Tooltips
    26274.0 - Media Queries
    2728        4.1 - Smartphones Landscape
    2829        4.2 - Smartphones Portrait
     
    167716783.11 - Widgets
    16781679--------------------------------------------------------------*/
    16791680
     1681.widget.buddypress div.item-avatar {
     1682        float: right;
     1683}
     1684
    16801685.widget.buddypress div.item-avatar img.avatar {
    16811686        float: right;
    16821687        margin: 0 0 15px 10px;
     
    17641769}
    17651770
    17661771/*--------------------------------------------------------------
     17723.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
     1814a.bp-aria-tooltip:hover::before,
     1815a.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/*--------------------------------------------------------------
    176718334.0 - Media Queries
    17681834--------------------------------------------------------------*/
    17691835/*--------------------------------------------------------------
  • src/bp-templates/bp-legacy/css/buddypress.css

     
    2323        3.9 - Private Messaging Threads
    2424        3.10 - Extended Profiles
    2525        3.11 - Widgets
     26        3.12 - Tooltips
    26274.0 - Media Queries
    2728        4.1 - Smartphones Landscape
    2829        4.2 - Smartphones Portrait
     
    167716783.11 - Widgets
    16781679--------------------------------------------------------------*/
    16791680
     1681.widget.buddypress div.item-avatar {
     1682        float: left;
     1683}
     1684
    16801685.widget.buddypress div.item-avatar img.avatar {
    16811686        float: left;
    16821687        margin: 0 10px 15px 0;
     
    17641769}
    17651770
    17661771/*--------------------------------------------------------------
     17723.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
     1814a.bp-aria-tooltip:hover::before,
     1815a.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/*--------------------------------------------------------------
    176718334.0 - Media Queries
    17681834--------------------------------------------------------------*/
    17691835/*--------------------------------------------------------------