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
| /** | |
| * Hides the Eventbrite Tickets fields from user profiles, unless the user is on the exception | |
| * list. | |
| */ | |
| class EventbriteProfileFieldsHider { | |
| protected $exceptionList = array(1); | |
| /** | |
| * Any users who still need to see the Eventbrite Tickets fields in their profile should be |
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 | |
| add_action('admin_enqueue_scripts', 'our_enqueue_action', 10, 1); | |
| function our_enqueue_action($hook) { | |
| // Are we somewhere in the Tribe admin pages? | |
| if ($hook !== 'tribe_events_page_tribe-events-calendar') return; | |
| // Is this the category colors page? | |
| if (!isset($_GET['tab']) or $_GET['tab'] !== 'category-colors') return; |
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
| class ActionValue { | |
| const OBJECT_VAL = 0; | |
| const ACTION_VAL = 1; | |
| const NAME = 0; | |
| const DATA = 1; | |
| const MASK = 240; // 11110000 | |
| protected $actions = array( | |
| 'session' => array(0, array( | |
| 'started' => 0, |
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
| /** | |
| * Sets the number of posts to display on Events taxonomy pages to the value of | |
| * EVENT_CATEGORY_POST_LIMIT (if not defined, this will be defined as 10 by | |
| * default). | |
| * | |
| * @param WP_Query $query | |
| */ | |
| function changeEventCategoryPostsPerPage($query) { | |
| defined('EVENT_CATEGORY_POST_LIMIT') or define('EVENT_CATEGORY_POST_LIMIT', 10); |
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
| /** | |
| * Automates the process of correcting times imported from Facebook by a fixed | |
| * number of hours (plus or minus). | |
| * | |
| * @uses DateTime which introduces a requirement for PHP 5.2 or greater | |
| */ | |
| class FBEventsTimeCorrection { | |
| protected $negative = false; | |
| protected $hours = 0; | |
| protected $modifier = ''; |