Ticket #7188: 7188-2.patch
File 7188-2.patch, 15.3 KB (added by , 8 years ago) |
---|
-
src/bp-activity/bp-activity-filters.php
207 207 global $allowedtags; 208 208 209 209 $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']['class'] = array(); 211 $activity_allowedtags['a']['id'] = array(); 212 $activity_allowedtags['a']['rel'] = array(); 213 $activity_allowedtags['a']['data-title'] = array(); 214 $activity_allowedtags['a']['aria-label'] = array(); 214 215 215 216 $activity_allowedtags['b'] = array(); 216 217 $activity_allowedtags['code'] = array(); … … 223 224 $activity_allowedtags['img']['height'] = array(); 224 225 $activity_allowedtags['img']['class'] = array(); 225 226 $activity_allowedtags['img']['id'] = array(); 226 $activity_allowedtags['img']['title'] = array();227 227 228 228 $activity_allowedtags['span'] = array(); 229 229 $activity_allowedtags['span']['class'] = 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-tooltip" data-title="%3$s" 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 class="bp-tooltip message-action-' . esc_attr( $action ) . '" aria-label="' . esc_attr( $title ) . '" data-title="' . esc_attr( $title ) . '" 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-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> 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-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> 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 - BuddyPress Tooltips 26 27 4.0 - Media Queries 27 28 4.1 - Smartphones Landscape 28 29 4.2 - Smartphones Portrait … … 1764 1765 } 1765 1766 1766 1767 /*-------------------------------------------------------------- 1768 3.12 - BuddyPress Tooltips 1769 --------------------------------------------------------------*/ 1770 .bp-tooltip { 1771 position: relative; 1772 } 1773 1774 .bp-tooltip::after { 1775 background: #fff; 1776 border: 1px solid #aaa; 1777 border-radius: 1px; 1778 color: #333; 1779 content: attr(data-title); 1780 display: none; 1781 font-size: 11px; 1782 font-weight: normal; 1783 letter-spacing: normal; 1784 line-height: 1.5; 1785 margin-top: 5px; 1786 opacity: 0; 1787 padding: 3px 6px; 1788 position: absolute; 1789 left: 50%; 1790 text-align: center; 1791 text-decoration: none; 1792 text-shadow: none; 1793 text-transform: none; 1794 top: 100%; 1795 transform: translateX(-50%); 1796 -webkit-transform: translateX(-50%); 1797 white-space: pre; 1798 word-wrap: break-word; 1799 z-index: 998; 1800 } 1801 1802 .bp-tooltip::before { 1803 border: 5px solid transparent; 1804 bottom: -5px; 1805 content: ""; 1806 color: #333; 1807 display: none; 1808 height: 0; 1809 margin-left: -5px; 1810 opacity: 0; 1811 position: absolute; 1812 left: 50%; 1813 top: auto; 1814 width: 0; 1815 z-index: 999; 1816 } 1817 1818 @-webkit-keyframes tooltip-show { 1819 from { 1820 opacity: 0; 1821 } 1822 to { 1823 opacity: 1; 1824 } 1825 } 1826 @keyframes tooltip-show { 1827 from { 1828 opacity: 0; 1829 } 1830 to { 1831 opacity: 1; 1832 } 1833 } 1834 1835 .bp-tooltip:hover::before, 1836 .bp-tooltip:hover::after, 1837 .bp-tooltip:active::before, 1838 .bp-tooltip:active::after, 1839 .bp-tooltip:focus::before, 1840 .bp-tooltip:focus::after { 1841 display: inline-block; 1842 text-decoration: none; 1843 -webkit-animation-name: tooltip-show; 1844 animation-name: tooltip-show; 1845 -webkit-animation-duration: 0.1s; 1846 animation-duration: 0.1s; 1847 -webkit-animation-fill-mode: forwards; 1848 animation-fill-mode: forwards; 1849 -webkit-animation-timing-function: ease-in; 1850 animation-timing-function: ease-in; 1851 -webkit-animation-delay: 0.2s; 1852 animation-delay: 0.2s; 1853 } 1854 1855 /*-------------------------------------------------------------- 1767 1856 4.0 - Media Queries 1768 1857 --------------------------------------------------------------*/ 1769 1858 /*-------------------------------------------------------------- -
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 - BuddyPress Tooltips 26 27 4.0 - Media Queries 27 28 4.1 - Smartphones Landscape 28 29 4.2 - Smartphones Portrait … … 1764 1765 } 1765 1766 1766 1767 /*-------------------------------------------------------------- 1768 3.12 - BuddyPress Tooltips 1769 --------------------------------------------------------------*/ 1770 .bp-tooltip { 1771 position: relative; 1772 } 1773 1774 .bp-tooltip::after { 1775 background: #fff; 1776 border: 1px solid #aaa; 1777 border-radius: 1px; 1778 color: #333; 1779 content: attr(data-title); 1780 display: none; 1781 font-size: 11px; 1782 font-weight: normal; 1783 letter-spacing: normal; 1784 line-height: 1.5; 1785 margin-top: 5px; 1786 opacity: 0; 1787 padding: 3px 6px; 1788 position: absolute; 1789 right: 50%; 1790 text-align: center; 1791 text-decoration: none; 1792 text-shadow: none; 1793 text-transform: none; 1794 top: 100%; 1795 transform: translateX(50%); 1796 -webkit-transform: translateX(50%); 1797 white-space: pre; 1798 word-wrap: break-word; 1799 z-index: 998; 1800 } 1801 1802 .bp-tooltip::before { 1803 border: 5px solid transparent; 1804 bottom: -5px; 1805 content: ""; 1806 color: #333; 1807 display: none; 1808 height: 0; 1809 margin-right: -5px; 1810 opacity: 0; 1811 position: absolute; 1812 right: 50%; 1813 top: auto; 1814 width: 0; 1815 z-index: 999; 1816 } 1817 1818 @-webkit-keyframes tooltip-show { 1819 from { 1820 opacity: 0; 1821 } 1822 to { 1823 opacity: 1; 1824 } 1825 } 1826 @keyframes tooltip-show { 1827 from { 1828 opacity: 0; 1829 } 1830 to { 1831 opacity: 1; 1832 } 1833 } 1834 1835 .bp-tooltip:hover::before, 1836 .bp-tooltip:hover::after, 1837 .bp-tooltip:active::before, 1838 .bp-tooltip:active::after, 1839 .bp-tooltip:focus::before, 1840 .bp-tooltip:focus::after { 1841 display: inline-block; 1842 text-decoration: none; 1843 -webkit-animation-name: tooltip-show; 1844 animation-name: tooltip-show; 1845 -webkit-animation-duration: 0.1s; 1846 animation-duration: 0.1s; 1847 -webkit-animation-fill-mode: forwards; 1848 animation-fill-mode: forwards; 1849 -webkit-animation-timing-function: ease-in; 1850 animation-timing-function: ease-in; 1851 -webkit-animation-delay: 0.2s; 1852 animation-delay: 0.2s; 1853 } 1854 1855 /*-------------------------------------------------------------- 1767 1856 4.0 - Media Queries 1768 1857 --------------------------------------------------------------*/ 1769 1858 /*--------------------------------------------------------------