View clean-html-for-xml.php
/** | |
* 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 ); |
View fieldmanager.php
$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, |
View get_tokens.js
/** | |
* Get Tokens | |
* function for extracting tokens | |
*/ | |
function get_tokens( str ) { | |
var results = [], | |
re = /{{([^}]+)}}/g, | |
text; | |
while( text = re.exec( str ) ) { |
View _breakpoint.scss
/* ========================================================================== | |
Media Query Mixins | |
========================================================================== */ | |
/* Custom Breakpoints collection | |
========================================================================== */ | |
$breakpoints: (xs, sm, md, lg); |
View _hover.scss
/* ========================================================================== | |
Hover Mixin | |
========================================================================== */ | |
/** | |
* Hover & active! | |
*/ | |
@mixin hover() { | |
&:hover, &:active, &:focus { | |
@content; |
View _spacing.scss
/* ========================================================================== | |
Spacing Mixins | |
========================================================================== */ | |
/** | |
* Define these spacing variables | |
*/ | |
$spacing-base: 28px; | |
$spacing-double: $spacing-base*2; | |
$spacing-triple: $spacing-base*3; |