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
/** | |
* Clean utf8 HTML string for XML. | |
* | |
* | |
* @param string $string HTML string you want to make XML safe. | |
*/ | |
function clean_html_for_xml( $string ) { | |
$string = strip_tags( $string ); | |
$string = htmlspecialchars( $string ); | |
$string = strip_shortcodes( $string ); |
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
$datasource_speakers = new Fieldmanager_Datasource_Post( array( | |
'query_args' => array( 'post_type' => array( 'speaker' ) ), | |
'use_ajax' => true | |
) ); | |
$fm = new Fieldmanager_Autocomplete( __( 'Speaker' ), array( | |
'name' => 'speakers', | |
'datasource' => $datasource_speakers, | |
'sortable' => true, | |
'limit' => 0, |
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
/** | |
* Get Tokens | |
* function for extracting tokens | |
*/ | |
function get_tokens( str ) { | |
var results = [], | |
re = /{{([^}]+)}}/g, | |
text; | |
while( text = re.exec( str ) ) { |
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
/* ========================================================================== | |
Media Query Mixins | |
========================================================================== */ | |
/* Custom Breakpoints collection | |
========================================================================== */ | |
$breakpoints: (xs, sm, md, lg); |
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
/* ========================================================================== | |
Hover Mixin | |
========================================================================== */ | |
/** | |
* Hover & active! | |
*/ | |
@mixin hover() { | |
&:hover, &:active, &:focus { | |
@content; |
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
/* ========================================================================== | |
Spacing Mixins | |
========================================================================== */ | |
/** | |
* Define these spacing variables | |
*/ | |
$spacing-base: 28px; | |
$spacing-double: $spacing-base*2; | |
$spacing-triple: $spacing-base*3; |