Ticket #7188: 7188-black-tip.patch
File 7188-black-tip.patch, 15.6 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']['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(); 214 216 215 217 $activity_allowedtags['b'] = array(); 216 218 $activity_allowedtags['code'] = array(); … … 223 225 $activity_allowedtags['img']['height'] = array(); 224 226 $activity_allowedtags['img']['class'] = array(); 225 227 $activity_allowedtags['img']['id'] = array(); 226 $activity_allowedtags['img']['title'] = array();227 228 228 229 $activity_allowedtags['span'] = array(); 229 230 $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">%4$s</a>', 1497 1497 $new_content, 1498 1498 $activity_permalink, 1499 1499 esc_attr__( 'View Discussion', 'buddypress' ), -
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/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/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-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/buddypress/groups/single/group-header.php
58 58 59 59 <?php if ( ! bp_disable_group_avatar_uploads() ) : ?> 60 60 <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() ); ?>"> 62 62 63 63 <?php bp_group_avatar(); ?> 64 64 -
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 1680 .widget.buddypress div.item-avatar img.avatar {1681 float: right;1682 margin: 0 0 15px 10px;1683 }1684 1685 1681 .widget.buddypress span.activity { 1686 1682 display: inline-block; 1687 1683 font-size: small; … … 1694 1690 padding: 1em 0; 1695 1691 } 1696 1692 1697 .widget.buddypress div.item {1693 .widget.buddypress div.item { 1698 1694 margin:0 0 1em 0; 1699 1695 } 1700 1696 … … 1704 1700 margin-right: 50px; 1705 1701 } 1706 1702 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; 1709 1711 margin-left: 10px; 1710 width: 40px;1711 1712 } 1713 1712 1714 .widget.buddypress div.item-avatar img { 1715 display: inline-block; 1713 1716 height: 40px; 1714 1717 margin: 1px; 1715 1718 width: 40px; 1716 1719 } 1717 1720 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 } 1721 1729 1722 1730 .widget.buddypress #bp-login-widget-form label { 1723 1731 display: block; … … 1764 1772 } 1765 1773 1766 1774 /*-------------------------------------------------------------- 1775 3.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 /*-------------------------------------------------------------- 1767 1869 4.0 - Media Queries 1768 1870 --------------------------------------------------------------*/ 1769 1871 /*-------------------------------------------------------------- -
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 1680 .widget.buddypress div.item-avatar img.avatar {1681 float: left;1682 margin: 0 10px 15px 0;1683 }1684 1685 1681 .widget.buddypress span.activity { 1686 1682 display: inline-block; 1687 1683 font-size: small; … … 1694 1690 padding: 1em 0; 1695 1691 } 1696 1692 1697 .widget.buddypress div.item {1693 .widget.buddypress div.item { 1698 1694 margin:0 0 1em 0; 1699 1695 } 1700 1696 … … 1704 1700 margin-left: 50px; 1705 1701 } 1706 1702 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; 1709 1711 margin-right: 10px; 1710 width: 40px;1711 1712 } 1713 1712 1714 .widget.buddypress div.item-avatar img { 1715 display: inline-block; 1713 1716 height: 40px; 1714 1717 margin: 1px; 1715 1718 width: 40px; 1716 1719 } 1717 1720 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 } 1721 1729 1722 1730 .widget.buddypress #bp-login-widget-form label { 1723 1731 display: block; … … 1764 1772 } 1765 1773 1766 1774 /*-------------------------------------------------------------- 1775 3.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 /*-------------------------------------------------------------- 1767 1869 4.0 - Media Queries 1768 1870 --------------------------------------------------------------*/ 1769 1871 /*--------------------------------------------------------------