This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check if the given BuddyPress group name is duplicate. A group with same name already exists. | |
* | |
* @abstract https://buddydev.com/prevent-duplicate-buddypress-group-names/ | |
* @since 1.0.0 | |
* @param string $name name to be checked. | |
* @param int $group_id group id(exclude this group from test). | |
* | |
* @return bool | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Output markup listing group mod. | |
* | |
* @since 1.0.0 | |
* | |
* @param object|bool $group Optional. Group object. | |
* Default: current group in loop. | |
*/ | |
function systmp_bp_group_list_mods($group = false) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Output markup listing group admins. | |
* | |
* @since 1.0.0 | |
* | |
* @param object|bool $group Optional. Group object. | |
* Default: current group in loop. | |
*/ | |
function systmp_bp_group_list_admins($group = false) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function group_members($group_id = false, $role = array()) | |
{ | |
if (!$group_id) { | |
return ''; | |
} | |
$members = new \BP_Group_Member_Query(array( | |
'group_id' => $group_id, | |
'per_page' => 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========================================================================== | |
Snippet Name: WooCommerce Colors | |
Description: This css is all woocommerce things that are colored, text, fonts, buttons, borders, you name it. Use to aid in design. | |
Author: GL Walker | |
Author URI: http://wsfive.com | |
========================================================================== */ | |
.woocommerce form .form-row.woocommerce-invalid .select2-container, .woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { | |
border-color: #a00 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========================================================================== | |
Snippet Name: WooCommerce Review Star Ratings | |
Description: This css snippet blends all woocommerce star rating for a consistant look sitewide. Consolidates code and makes uses of WooCommerce.eot font. If you disabled the woocommerce.css and built your own styles then this will work great. If you are overriding woocommerce.css by adding styles to another styesheet that loads afterwards, this will still work fine, but you may need to target specific elements or create a master reset targeting all elements listed below in order to remove some of woocommerce default margins and padding. | |
Author: GL Walker | |
Author URI: http://wsfive.com | |
========================================================================== */ | |
.woocommerce .star-rating, .woocommerce p.stars [class^="star-"], .woocommerce p.stars [class*=" star-"] { | |
font-family: WooCommerce; | |
speak: none; | |
font-weight: 400; |
NewerOlder