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_feed_item', 'tribe_ical_add_alarm', 10, 2 ); | |
function tribe_ical_add_alarm( $item, $eventPost ) { | |
$alarm = tribe_get_custom_field( 'Alarm', $eventPost->ID ); | |
if ( !empty( $alarm ) && is_numeric( $alarm ) ) { | |
$item[] = 'BEGIN:VALARM'; | |
$item[] = 'TRIGGER:-PT' . $alarm . "M"; | |
$item[] = 'END:VALARM'; | |
} |
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 to your theme's functions.php | |
add_filter( 'tribe_ical_feed_item', 'tribe_ical_modify_event', 10, 2 ); | |
function tribe_ical_modify_event( $item, $eventPost ) { | |
$searchValue = "DESCRIPTION"; | |
$fl_array = preg_grep('/^' . "$searchValue" . '.*/', $item); | |
$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
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="the-events-calendar-pro-alarm" | |
CURRENTDIR=`pwd` | |
MAINFILE="the-events-calendar-pro-alarm.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
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
<!-- | |
I've added the following link in The Events Calendar Settings > Templates > Display after calendar field. You'll obviously need to change the href to your site. | |
--> | |
<a href="webcal://troop262ps.org/events/ical/" class="ical">iCal Subscribe</a> |
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 the following to your theme's functions.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 | |
//Add to theme functions.php | |
add_filter( 'tribe_ical_feed_item', 'tribe_ical_fix_endDate', 10, 2 ); | |
function tribe_ical_fix_endDate( $item, $eventPost ) { | |
$searchValue = "DTEND;VALUE"; | |
$fl_array = preg_grep('/^' . "$searchValue" . '.*/', $item); | |
$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
# Fail2Ban configuration file | |
# | |
# OpenBSD pf ban/unban | |
# | |
# Author: Nick Hilliard <[email protected]> | |
# http://pastebin.com/wXESQ1b4 | |
# | |
[Definition] |
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
/* iPad [portrait + landscape] and iPhone [portrait + landscape] */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) { | |
/* code here */ | |
} | |
/* iPad [portrait + landscape] */ | |
@media only screen and (device-width: 768px) { | |
/* code 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
/* iPhone [portrait + landscape] */ | |
@media only screen and (max-device-width: 480px) { | |
body { min-width: 550px; } | |
.tribe-events-thismonth, .tribe-events-othermonth { min-width: 50px; max-width:60px; } | |
#tribe-events-calendar-header { padding-top: 3em; } | |
.tribe-events-calendar-buttons { top:0; left:0; } | |
.tribe-events-calendar-widget td a.tribe-events-mini-has-event { cursor: pointer; } | |
} |
OlderNewer