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
<?php | |
/** | |
* Returns cached user counts if there are some, otherwise fetches current user counts and stores them for later use. | |
* | |
* @param int $count Count to be overridden, will be null when called by pre_count_users. | |
* @param string $strategy The computational strategy to use when counting the users. | |
* @param int|null $site_id The site ID to count users for. | |
* | |
* @return array Includes a grand total and an array of counts indexed by role strings. |
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() { | |
// Tweaked from: https://gist.github.com/mattstauffer/3835881 | |
// No guarantees | |
// 1. include Isotope.js | |
// 2. include this file | |
// 3. customize Isotope options at the bottom of this file | |
// 4. add "margin: 0 auto" to the isotope container | |
$.Isotope.prototype._getMasonryGutterColumns = function() { |