- Timestamp:
- 08/23/2021 12:12:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12921 r13089 42 42 * @since 3.0.0 43 43 * 44 * @param string The suffix of the hook.44 * @param string $suffix The suffix of the hook. 45 45 */ 46 46 function bp_nouveau_plugin_hook( $suffix = '' ) { … … 66 66 * @since 3.0.0 67 67 * 68 * @param string The suffix of the hook.68 * @param string $suffix The suffix of the hook. 69 69 */ 70 70 function bp_nouveau_friend_hook( $suffix = '' ) { … … 98 98 echo join( ' ', array_map( 'sanitize_html_class', $classes ) ); 99 99 } 100 101 100 /** 102 101 * Get the template notice/feedback message type … … 277 276 * @since 3.0.0 278 277 * 279 * @param string $feedback_id The ID of the message to display 278 * @param string $feedback_id The ID of the message to display. 280 279 */ 281 280 function bp_nouveau_user_feedback( $feedback_id = '' ) { … … 380 379 * Pagination for loops 381 380 * 382 * @ param string $position383 * 384 * @ since 3.0.0381 * @since 3.0.0 382 * 383 * @param string $position Pagination for loops. 385 384 */ 386 385 function bp_nouveau_pagination( $position ) { … … 530 529 * 531 530 * @since 3.0.0 532 *533 * @return string CSS class attributes (escaped).534 531 */ 535 532 function bp_nouveau_loop_classes() { 536 533 echo esc_attr( bp_nouveau_get_loop_classes() ); 537 534 } 538 539 535 /** 540 536 * Get the component's loop classes … … 660 656 $bp_nouveau = bp_nouveau(); 661 657 $component = sanitize_key( bp_current_component() ); 662 663 $columns = 1; 658 $columns = 1; 664 659 665 660 if ( ! empty( $bp_nouveau->{$component}->loop_layout ) ) { … … 915 910 echo esc_attr( bp_nouveau_get_nav_id() ); 916 911 } 917 918 912 /** 919 913 * Retrieve the ID attribute of the current nav item. … … 955 949 echo esc_attr( bp_nouveau_get_nav_classes() ); 956 950 } 957 958 951 /** 959 952 * Retrieve a space separated list of classes for the current nav item. … … 1031 1024 echo bp_nouveau_get_nav_scope(); // Escaped by bp_get_form_field_attributes(). 1032 1025 } 1033 1034 1026 /** 1035 1027 * Retrieve the specific scope for the current nav item. … … 1078 1070 echo esc_url( bp_nouveau_get_nav_link() ); 1079 1071 } 1080 1081 1072 /** 1082 1073 * Retrieve the URL for the current nav item. … … 1123 1114 echo esc_attr( bp_nouveau_get_nav_link_id() ); 1124 1115 } 1125 1126 1116 /** 1127 1117 * Retrieve the id attribute of the link for the current nav item. … … 1166 1156 echo esc_attr( bp_nouveau_get_nav_link_title() ); 1167 1157 } 1168 1169 1158 /** 1170 1159 * Retrieve the title attribute of the link for the current nav item. … … 1210 1199 echo esc_html( bp_nouveau_get_nav_link_text() ); 1211 1200 } 1212 1213 1201 /** 1214 1202 * Retrieve the html text of the link for the current nav item. … … 1286 1274 echo esc_html( number_format_i18n( bp_nouveau_get_nav_count() ) ); 1287 1275 } 1288 1289 1276 /** 1290 1277 * Retrieve the count attribute for the current nav item. … … 1339 1326 echo esc_attr( bp_nouveau_get_directory_type_navs_class() ); 1340 1327 } 1341 1342 1328 /** 1343 1329 * Provides default nav wrapper classes. … … 1396 1382 echo esc_attr( bp_nouveau_get_directory_list_class() ); 1397 1383 } 1398 1399 1384 /** 1400 1385 * Gets the directory nav item list class. … … 1420 1405 } 1421 1406 } 1422 1423 1407 /** 1424 1408 * Gets the directory nav item object. … … 1570 1554 * 1571 1555 * @since 3.0.0 1572 *1573 * @return string CSS classes1574 1556 */ 1575 1557 function bp_nouveau_single_item_nav_classes() { 1576 1558 echo esc_attr( bp_nouveau_get_single_item_nav_classes() ); 1577 1559 } 1578 1579 1560 /** 1580 1561 * Returns the single item nav container classes … … 1582 1563 * @since 3.0.0 1583 1564 * 1584 * @return string CSS classes 1565 * @return string CSS classes. 1585 1566 */ 1586 1567 function bp_nouveau_get_single_item_nav_classes() { … … 1647 1628 * 1648 1629 * @since 3.0.0 1649 *1650 * @return string CSS classes1651 1630 */ 1652 1631 function bp_nouveau_single_item_subnav_classes() { 1653 1632 echo esc_attr( bp_nouveau_get_single_item_subnav_classes() ); 1654 1633 } 1655 1656 1634 /** 1657 1635 * Returns the single item subnav container classes. … … 1659 1637 * @since 3.0.0 1660 1638 * 1661 * @return string CSS classes 1639 * @return string CSS classes. 1662 1640 */ 1663 1641 function bp_nouveau_get_single_item_subnav_classes() { … … 1707 1685 * 1708 1686 * @since 3.0.0 1709 *1710 * @return string CSS classes1711 1687 */ 1712 1688 function bp_nouveau_groups_create_steps_classes() { 1713 1689 echo esc_attr( bp_nouveau_get_group_create_steps_classes() ); 1714 1690 } 1715 1716 1691 /** 1717 1692 * Returns the groups create steps customizer option choice class. … … 1719 1694 * @since 3.0.0 1720 1695 * 1721 * @return string CSS classes 1696 * @return string CSS classes. 1722 1697 */ 1723 1698 function bp_nouveau_get_group_create_steps_classes() { … … 1752 1727 * @since 3.0.0 1753 1728 * 1754 * @param string $object Optional.The primary object.1729 * @param string $object (Optional) The primary object. 1755 1730 * 1756 1731 * @return string The primary object. … … 1783 1758 * @since 3.0.0 1784 1759 * 1785 * @param array $objects Optional.The list of objects.1760 * @param array $objects (Optional) The list of objects. 1786 1761 * 1787 1762 * @return array The list of objects. … … 1867 1842 * @param string $suffix Optional. A string to append at the end of the ID. 1868 1843 * @param string $sep Optional. The separator to use between each token. 1869 *1870 * @return string The selector ID.1871 1844 */ 1872 1845 function bp_nouveau_search_selector_id( $suffix = '', $sep = '-' ) { … … 1882 1855 * @param string $suffix Optional. A string to append at the end of the name. 1883 1856 * @param string $sep Optional. The separator to use between each token. 1884 *1885 * @return string The name attribute of a selector.1886 1857 */ 1887 1858 function bp_nouveau_search_selector_name( $suffix = '', $sep = '_' ) { … … 1900 1871 * Output the default search text for the search object 1901 1872 * 1902 * @since 3.0.01903 *1904 * @param string $text Optional. The default search text for the search object.1905 * @param string $is_attr Optional. True if it's to be output inside an attribute. False Otherwise.1906 *1907 * @return string The default search text.1908 *1909 1873 * @todo 28/09/17 added 'empty( $text )' check to $object query as it wasn't returning output as expected & not returning user set params 1910 1874 * This may require further examination - hnla 1875 * 1876 * @since 3.0.0 1877 * 1878 * @param string $text Optional. The default search text for the search object. 1879 * @param string $is_attr Optional. True if it's to be output inside an attribute. False otherwise. 1911 1880 */ 1912 1881 function bp_nouveau_search_default_text( $text = '', $is_attr = true ) { … … 2027 1996 } 2028 1997 } 2029 2030 1998 2031 1999 // Template tags for the directory & user/group screen filters. … … 2098 2066 echo esc_attr( bp_nouveau_get_filter_container_id() ); 2099 2067 } 2100 2101 2068 /** 2102 2069 * Get data filter container's ID attribute value. … … 2141 2108 echo esc_attr( bp_nouveau_get_filter_id() ); 2142 2109 } 2143 2144 2110 /** 2145 2111 * Get data filter's ID attribute value. … … 2147 2113 * @since 3.0.0 2148 2114 * 2149 * @ paramstring2115 * @return string 2150 2116 */ 2151 2117 function bp_nouveau_get_filter_id() { … … 2184 2150 echo esc_html( bp_nouveau_get_filter_label() ); 2185 2151 } 2186 2187 2152 /** 2188 2153 * Get data filter's label. … … 2190 2155 * @since 3.0.0 2191 2156 * 2192 * @ paramstring2157 * @return string 2193 2158 */ 2194 2159 function bp_nouveau_get_filter_label() {
Note: See TracChangeset
for help on using the changeset viewer.