Skip to:
Content

BuddyPress.org

Ticket #7188: 7188-black-tip.patch

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

     
    207207        global $allowedtags;
    208208
    209209        $activity_allowedtags = $allowedtags;
    210         $activity_allowedtags['a']['class'] = array();
    211         $activity_allowedtags['a']['id']    = array();
    212         $activity_allowedtags['a']['rel']   = array();
    213         $activity_allowedtags['a']['title'] = array();
     210        $activity_allowedtags['a']['aria-label'] = array();
     211        $activity_allowedtags['a']['class']      = array();
     212        $activity_allowedtags['a']['data-title'] = array();
     213        $activity_allowedtags['a']['id']         = array();
     214        $activity_allowedtags['a']['rel']        = array();
     215        $activity_allowedtags['a']['title']      = array();
    214216
    215217        $activity_allowedtags['b']    = array();
    216218        $activity_allowedtags['code'] = array();
     
    223225        $activity_allowedtags['img']['height'] = array();
    224226        $activity_allowedtags['img']['class']  = array();
    225227        $activity_allowedtags['img']['id']     = array();
    226         $activity_allowedtags['img']['title']  = array();
    227228
    228229        $activity_allowedtags['span']                   = array();
    229230        $activity_allowedtags['span']['class']          = 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-tooltip" data-title="%3$s">%4$s</a>',
    14971497                        $new_content,
    14981498                        $activity_permalink,
    14991499                        esc_attr__( 'View Discussion', 'buddypress' ),
  • 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/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/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-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-tooltip" data-title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>" 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-tooltip" data-title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    1313
    1414                <?php
    1515
  • src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

     
    5858
    5959<?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
    6060        <div id="item-header-avatar">
    61                 <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" title="<?php echo esc_attr( bp_get_group_name() ); ?>">
     61                <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" class="bp-tooltip" data-title="<?php echo esc_attr( bp_get_group_name() ); ?>">
    6262
    6363                        <?php bp_group_avatar(); ?>
    6464
  • 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
    1680 .widget.buddypress div.item-avatar img.avatar {
    1681         float: right;
    1682         margin: 0 0 15px 10px;
    1683 }
    1684 
    16851681.widget.buddypress span.activity {
    16861682        display: inline-block;
    16871683        font-size: small;
     
    16941690        padding: 1em 0;
    16951691}
    16961692
    1697 .widget.buddypress div.item{
     1693.widget.buddypress div.item {
    16981694        margin:0 0 1em 0;
    16991695}
    17001696
     
    17041700        margin-right: 50px;
    17051701}
    17061702
    1707 .widget.buddypress ul.item-list img.avatar {
    1708         height: 40px;
     1703.widget.buddypress div.avatar-block::after {
     1704        content: "";
     1705        display: table;
     1706}
     1707
     1708.widget.buddypress .item-avatar a.bp-tooltip {
     1709        float: right;
     1710        margin-bottom: 15px;
    17091711        margin-left: 10px;
    1710         width: 40px;
    17111712}
     1713
    17121714.widget.buddypress div.item-avatar img {
     1715        display: inline-block;
    17131716        height: 40px;
    17141717        margin: 1px;
    17151718        width: 40px;
    17161719}
    17171720
    1718 .widget.buddypress div.avatar-block{
    1719         overflow: hidden;
    1720 }
     1721.widget.buddypress .item-avatar a,
     1722.widget.buddypress .item-avatar a:hover,
     1723.widget.buddypress .item-avatar a:focus,
     1724.widget.buddypress .item-avatar a:active,
     1725.widget.buddypress .item-avatar a img {
     1726        -webkit-box-shadow: none;
     1727        box-shadow: none;
     1728 }
    17211729
    17221730.widget.buddypress #bp-login-widget-form label {
    17231731        display: block;
     
    17641772}
    17651773
    17661774/*--------------------------------------------------------------
     17753.12 - Tooltips
     1776--------------------------------------------------------------*/
     1777.buddypress .bp-tooltip {
     1778        position: relative;
     1779}
     1780
     1781.bp-tooltip::after {
     1782        background: #000;
     1783        border: 1px solid #aaa;
     1784        border-radius: 2px;
     1785        box-shadow: 0 0 1px 1px hsla(360, 50%, 100%, .5);
     1786        color: #fff;
     1787        content: attr(data-title);
     1788        display: none;
     1789        font-family: sans-serif;
     1790        font-size: 11px;
     1791        font-weight: normal;
     1792        letter-spacing: normal;
     1793        line-height: 1.5;
     1794        margin-top: 5px;
     1795        opacity: 0;
     1796        padding: 3px 6px;
     1797        position: absolute;
     1798        left: 50%;
     1799        text-align: center;
     1800        text-decoration: none;
     1801        text-shadow: none;
     1802        text-transform: none;
     1803        top: 100%;
     1804        transform: translateX(-50%);
     1805        -webkit-transform: translateX(-50%);
     1806        white-space: pre;
     1807        word-wrap: break-word;
     1808        z-index: 998;
     1809}
     1810
     1811.bp-tooltip::before {
     1812        border: 5px solid transparent;
     1813        border-bottom-color: #000;
     1814        bottom: -5px;
     1815        color: #000;
     1816        content: "";
     1817        display: none;
     1818        height: 0;
     1819        margin-left: -5px;
     1820        opacity: 0;
     1821        pointer-events: none;
     1822        position: absolute;
     1823        left: 50%;
     1824        top: auto;
     1825        width: 0;
     1826        z-index: 999;
     1827}
     1828
     1829@-webkit-keyframes tooltip-show {
     1830        from {
     1831        opacity: 0;
     1832        }
     1833        to {
     1834        opacity: 1;
     1835        }
     1836}
     1837@keyframes tooltip-show {
     1838        from {
     1839        opacity: 0;
     1840        }
     1841        to {
     1842        opacity: 1;
     1843        }
     1844}
     1845
     1846.bp-tooltip:hover::before,
     1847.bp-tooltip:hover::after,
     1848.bp-tooltip:active::before,
     1849.bp-tooltip:active::after,
     1850.bp-tooltip:focus::before,
     1851.bp-tooltip:focus::after {
     1852        display: inline-block;
     1853        overflow: visible;
     1854        text-decoration: none;
     1855        -webkit-animation-name: tooltip-show;
     1856        animation-name: tooltip-show;
     1857        -webkit-animation-duration: 0.1s;
     1858        animation-duration: 0.1s;
     1859        -webkit-animation-fill-mode: forwards;
     1860        animation-fill-mode: forwards;
     1861        -webkit-animation-timing-function: ease-in;
     1862        animation-timing-function: ease-in;
     1863        -webkit-animation-delay: 0.4s;
     1864        animation-delay: 0.4s;
     1865        z-index: 999;
     1866}
     1867
     1868/*--------------------------------------------------------------
    176718694.0 - Media Queries
    17681870--------------------------------------------------------------*/
    17691871/*--------------------------------------------------------------
  • 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
    1680 .widget.buddypress div.item-avatar img.avatar {
    1681         float: left;
    1682         margin: 0 10px 15px 0;
    1683 }
    1684 
    16851681.widget.buddypress span.activity {
    16861682        display: inline-block;
    16871683        font-size: small;
     
    16941690        padding: 1em 0;
    16951691}
    16961692
    1697 .widget.buddypress div.item{
     1693.widget.buddypress div.item {
    16981694        margin:0 0 1em 0;
    16991695}
    17001696
     
    17041700        margin-left: 50px;
    17051701}
    17061702
    1707 .widget.buddypress ul.item-list img.avatar {
    1708         height: 40px;
     1703.widget.buddypress div.avatar-block::after {
     1704        content: "";
     1705        display: table;
     1706}
     1707
     1708.widget.buddypress .item-avatar a.bp-tooltip {
     1709        float: left;
     1710        margin-bottom: 15px;
    17091711        margin-right: 10px;
    1710         width: 40px;
    17111712}
     1713
    17121714.widget.buddypress div.item-avatar img {
     1715        display: inline-block;
    17131716        height: 40px;
    17141717        margin: 1px;
    17151718        width: 40px;
    17161719}
    17171720
    1718 .widget.buddypress div.avatar-block{
    1719         overflow: hidden;
    1720 }
     1721.widget.buddypress .item-avatar a,
     1722.widget.buddypress .item-avatar a:hover,
     1723.widget.buddypress .item-avatar a:focus,
     1724.widget.buddypress .item-avatar a:active,
     1725.widget.buddypress .item-avatar a img {
     1726        -webkit-box-shadow: none;
     1727        box-shadow: none;
     1728 }
    17211729
    17221730.widget.buddypress #bp-login-widget-form label {
    17231731        display: block;
     
    17641772}
    17651773
    17661774/*--------------------------------------------------------------
     17753.12 - Tooltips
     1776--------------------------------------------------------------*/
     1777.buddypress .bp-tooltip {
     1778        position: relative;
     1779}
     1780
     1781.bp-tooltip::after {
     1782        background: #000;
     1783        border: 1px solid #aaa;
     1784        border-radius: 2px;
     1785        box-shadow: 0 0 1px 1px hsla(360, 50%, 100%, .5);
     1786        color: #fff;
     1787        content: attr(data-title);
     1788        display: none;
     1789        font-family: sans-serif;
     1790        font-size: 11px;
     1791        font-weight: normal;
     1792        letter-spacing: normal;
     1793        line-height: 1.5;
     1794        margin-top: 5px;
     1795        opacity: 0;
     1796        padding: 3px 6px;
     1797        position: absolute;
     1798        right: 50%;
     1799        text-align: center;
     1800        text-decoration: none;
     1801        text-shadow: none;
     1802        text-transform: none;
     1803        top: 100%;
     1804        transform: translateX(50%);
     1805        -webkit-transform: translateX(50%);
     1806        white-space: pre;
     1807        word-wrap: break-word;
     1808        z-index: 998;
     1809}
     1810
     1811.bp-tooltip::before {
     1812        border: 5px solid transparent;
     1813        border-bottom-color: #000;
     1814        bottom: -5px;
     1815        color: #000;
     1816        content: "";
     1817        display: none;
     1818        height: 0;
     1819        margin-right: -5px;
     1820        opacity: 0;
     1821        pointer-events: none;
     1822        position: absolute;
     1823        right: 50%;
     1824        top: auto;
     1825        width: 0;
     1826        z-index: 999;
     1827}
     1828
     1829@-webkit-keyframes tooltip-show {
     1830        from {
     1831        opacity: 0;
     1832        }
     1833        to {
     1834        opacity: 1;
     1835        }
     1836}
     1837@keyframes tooltip-show {
     1838        from {
     1839        opacity: 0;
     1840        }
     1841        to {
     1842        opacity: 1;
     1843        }
     1844}
     1845
     1846.bp-tooltip:hover::before,
     1847.bp-tooltip:hover::after,
     1848.bp-tooltip:active::before,
     1849.bp-tooltip:active::after,
     1850.bp-tooltip:focus::before,
     1851.bp-tooltip:focus::after {
     1852        display: inline-block;
     1853        overflow: visible;
     1854        text-decoration: none;
     1855        -webkit-animation-name: tooltip-show;
     1856        animation-name: tooltip-show;
     1857        -webkit-animation-duration: 0.1s;
     1858        animation-duration: 0.1s;
     1859        -webkit-animation-fill-mode: forwards;
     1860        animation-fill-mode: forwards;
     1861        -webkit-animation-timing-function: ease-in;
     1862        animation-timing-function: ease-in;
     1863        -webkit-animation-delay: 0.4s;
     1864        animation-delay: 0.4s;
     1865        z-index: 999;
     1866}
     1867
     1868/*--------------------------------------------------------------
    176718694.0 - Media Queries
    17681870--------------------------------------------------------------*/
    17691871/*--------------------------------------------------------------