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 | |
| /** | |
| * Default Events Template | |
| * This file is the basic wrapper template for all the views if 'Default Events Template' | |
| * is selected in Events -> Settings -> Template -> Events Template. | |
| * | |
| * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php | |
| * | |
| * @package TribeEventsCalendar | |
| * @since 3.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
| <?php | |
| /** | |
| * Events List Widget Template | |
| * This is the template for the output of the events list widget. | |
| * All the items are turned on and off through the widget admin. | |
| * There is currently no default styling, which is needed. | |
| * | |
| * This view contains the filters required to create an effective events list widget view. | |
| * | |
| * You can recreate an ENTIRELY new events list widget view by doing a template override, |
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 | |
| //this belongs in {THEME}/tribe-events/pro/widgets/ | |
| /** | |
| * Events Pro List Widget Template | |
| * This is the template for the output of the events list widget. | |
| * All the items are turned on and off through the widget admin. | |
| * There is currently no default styling, which is highly needed. | |
| * | |
| * Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/list-widget.php |
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( 'tribe_events_after_the_title', 'my_category_description' ); | |
| function my_category_description() { | |
| global $wp_query; | |
| if( !isset( $wp_query->query_vars['post_type'] ) or !isset( $wp_query->query_vars['eventDisplay'] ) or !isset( $wp_query->queried_object ) ) return; | |
| if( $wp_query->query_vars['post_type'] === 'tribe_events' or $wp_query->query_vars['post_type'][0] === 'tribe_events' and $wp_query->query_vars['eventDisplay'] === 'upcoming' ) | |
| echo '<div style="text-align:center;">' . $wp_query->queried_object->description . '</div>'; | |
| } |
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_filter( 'tribe_ical_properties', 'tribe_ical_outlook_modify', 10, 2 ); | |
| function tribe_ical_outlook_modify( $content ) { | |
| $properties = preg_split ( '/$\R?^/m', $content ); | |
| $searchValue = "X-WR-CALNAME"; | |
| $fl_array = preg_grep('/^' . "$searchValue" . '.*/', $properties); | |
| $key = array_values($fl_array); | |
| $keynum = key($fl_array); |
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 | |
| /* vim: set expandtab tabstop=4 shiftwidth=4: */ | |
| /** | |
| * @package Email-Users-Custom-List | |
| * @version 1.3 | |
| */ | |
| /* | |
| Plugin Name: Email Users Custom List | |
| Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/email-users-custom-list/ | |
| Description: This plugin shows how a custom meta filter can be used in conjunction with the Email Users plugin to address a Custom List of Users. |
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
| #!/usr/bin/env bash | |
| # script to start/keep iTunes running after mount.sh | |
| # call from mount.sh | |
| myProcess="/Applications/iTunes.app" | |
| # sleep 5 | |
| ps ax | grep -v grep | grep -v iTunesHelper | grep $myProcess > /dev/null && exit 0 | |
| echo "opening $myProcess" | |
| open -g $myProcess |
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
| #!/usr/bin/env bash | |
| # call with `mount.sh true` for debug messages | |
| version="1.0" | |
| dbg=false | |
| home_vols=( "/Volumes/iTunes" "/Volumes/Drobo" ) # order is important | |
| webdav_vols=( "/Volumes/user1" "/Volumes/user2" "/Volumes/user3" ) | |
| home_router_mac="mac-address-here" | |
| # how to grab drobo_ip based upon drobo mac address using `netstat -rnf inet` | |
| drobo_mac="mac-address-here" |
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
| #!/usr/bin/env bash | |
| # This script should only generate an email when the WAN IP has changed. | |
| # run in launchd | |
| #test for any parameter, true if debugging | |
| test -n "$1" && dbg=$1 || dbg=false #;dbg=true | |
| echo "Running $0" | |
| my_ip=`curl -s http://checkip.dyndns.org | awk '{print $6}' | awk ' BEGIN { FS = "<" } { print $1 } '` |
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_filter('tribe_get_events_title','my_custom_titles'); | |
| function my_custom_titles($title) { | |
| if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page | |
| return 'JazzSchool Events'; | |
| } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages | |
| return 'JazzSchool Events' . ' » ' . single_term_title('', false); | |
| } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List |