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 | |
// Variables used in this script: | |
// $summary - text title of the event | |
// $datestart - the starting date (in seconds since unix epoch) | |
// $dateend - the ending date (in seconds since unix epoch) | |
// $address - the event's address | |
// $uri - the URL of the event (add http://) | |
// $description - text description of the event | |
// $filename - the name of this file for saving (e.g. my-event-name.ics) | |
// |
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
function _otm_clean_phone_number( $number ){ | |
$phoneNumber = preg_replace('/[^0-9]/','',$number); | |
if(strlen($phoneNumber) > 10) { | |
$countryCode = substr($phoneNumber, 0, strlen($phoneNumber)-10); | |
$areaCode = substr($phoneNumber, -10, 3); | |
$nextThree = substr($phoneNumber, -7, 3); | |
$lastFour = substr($phoneNumber, -4, 4); |
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
add_action( 'gform_after_submission', '_convert_date_to_timestamp', 10, 2 ); // Extend | |
function _convert_date_to_timestamp( $entry, $form ) { | |
date_default_timezone_set ( "America/Denver" ); | |
// Make sure that we're submitting a post before running the code | |
if ( $entry['post_id'] ){ | |
foreach ( $entry as $key => $value ){ |
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
FORT COLLINS; FT COLLINS; FT. COLLINS - 3.85 | |
Larimer County - 0.65 | |
80511; 80512; 80513; 80515; 80517; 80517; 80521; 80522; 80523; 80524; 80525; 80526; 80527; 80528; 80532; 80535; 80536; 80537; 80538; 80539; 80541; 80545; 80547; 80549; 80553 | |
CO - 2.9 |
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
$post = get_post( $id ); | |
$content = apply_filters( 'the_content', $post->post_content ); | |
echo $content; |
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
function sanitize_from_word( $content ) | |
{ | |
// Convert microsoft special characters | |
$replace = 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
&:after{ | |
@size:32; | |
content:""; | |
position: absolute; | |
bottom: -@size*1px; | |
left: 0; | |
width: 0; | |
height: 0; | |
border-width:(@size / 2)*1px; | |
border-style:solid; |
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
.progress-bar { | |
width: 95%; | |
height: 14px; | |
padding: 3px; | |
background-color: #ffffff; | |
overflow:hidden; | |
border-radius:16px; | |
box-shadow: inset 0 1px 2px #000, | |
0 1px 0 #2b2b2b; | |
float:right; |
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
// ================ IE SPECIFIC SELECTORS | |
background: gray; /* standard */ | |
//background: grey \0/; /* IE8+9 */ | |
//\0/ - i.e. padding: 0px 5px 10px 70px\0/ /* IE 8 only */ | |
background: pink\9; /* IE 9 and below */ |