This file contains hidden or 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
| /* | |
| Page container | |
| */ | |
| .wrapper{ | |
| max-width:1128px; | |
| padding:12px; | |
| margin:0 auto; | |
| } | |
| /* |
This file contains hidden or 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
| <?php | |
| // Getting current blog_id | |
| global $wpdb, $current_blog; | |
| $id = $current_blog->blog_id; | |
| // Setting variable for current blog_prefix | |
| $blog_prefix = $wpdb->get_blog_prefix( $id ); | |
| // Start the BuddyPress Ajax Members Loop | |
| if ( bp_has_members( bp_ajax_querystring( 'members' ).'&meta_key='.$blog_prefix.'capabilities' ) ) : ?> |
This file contains hidden or 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
| // | |
| // Font Stack Mixins | |
| // Each stack uses the following format: exact font, nearest alternative, platform-wide alternative(s), universal (cross-platform) choice(s), generic. | |
| // Reference URL: http://www.sitepoint.com/eight-definitive-font-stacks/ | |
| // -------------------------------------------------- | |
| /* Times New Roman-based stack */ | |
| .Times { font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; } | |
| /* Modern Georgia-based serif stack */ |
This file contains hidden or 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
| <?php | |
| function bp_custom_include_ajax() { | |
| global $bp; | |
| require_once( BP_PLUGIN_DIR . '/bp-themes/bp-default/_inc/ajax.php' ); | |
| if ( !is_admin() ) { | |
| // Register buttons for the relevant component templates | |
| // Messages button | |
| if ( bp_is_active( 'messages' ) ) |
This file contains hidden or 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
| <?php | |
| // Grab member's userid | |
| $bpuser_id = bp_get_member_user_id(); | |
| // Fetch the user's information based on the userid | |
| $user_info = get_userdata($bpuser_id); | |
| // Fetch the user's user level. | |
| // Find more on user levels here: http://codex.wordpress.org/User_Levels | |
| $user_role = $user_info->user_level; |
This file contains hidden or 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
| <?php | |
| /** | |
| * rb_is_user_member_of_blog() | |
| * | |
| * Checking current user's site membership with less code in the template files. | |
| * Uses the WPMU function is_user_member_of_blog() which replaces the now deprecated is_blog_user() | |
| * | |
| * @return bool true/false | |
| * @author Rachel Baker | |
| **/ |
This file contains hidden or 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
| # SECURE WP-CONFIG.PHP | |
| <Files wp\-config\.php> | |
| Order Deny,Allow | |
| Deny from all | |
| </Files> | |
| # Block the include-only files. | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^wp-admin/includes/ - [F,L] |
This file contains hidden or 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
| if ( ! function_exists( 'bp_is_active' ) ) { | |
| return false; | |
| } |
This file contains hidden or 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
| jQuery(window).load(function() { | |
| var bodyHeight = jQuery(window).height(); | |
| console.log('browser window height is ' +bodyHeight); | |
| jQuery("section").css("height", bodyHeight); //resizing section element to be same height as window | |
| }); |
This file contains hidden or 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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| *._* |