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
<div class="col-xs-12"> | |
<!-- | |
use the data attribute like in this example | |
http://getbootstrap.com/javascript/#markup | |
--> | |
<ul class="nav nav-tabs nav-justified" id="text-image"> | |
<li class="active"> | |
<a class="custom-text" href="#custom-text">Text</a> | |
</li> | |
<li class=""> |
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
<?php | |
function _wgt_scripts() { | |
// styles and scripts code... | |
$form_html = array( | |
'trip_signup_form' => _wgt_get_trip_signup_form_html(), | |
'request_trip_quote' => _wgt_request_trip_quote_form_html() | |
); | |
wp_localize_script( |
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
<?php | |
/** | |
* Theme Setup | |
* @since 1.0.0 | |
* | |
* This setup function attaches all of the site-wide functions | |
* to the correct hooks and filters. All the functions themselves | |
* are defined below this setup function. | |
* |
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
let root = 'src'; | |
let resolveToComponents = ( glob = '' ) => { | |
return $.path.join( root, 'components', glob ); // app/components/{glob} | |
}; | |
gulp.task( 'component', () => { | |
const cap = ( val ) => { | |
return val.charAt( 0 ).toUpperCase() + val.slice( 1 ); | |
}; | |
const name = $.yargs.argv.name; | |
const parentPath = $.yargs.argv.parent || ''; |
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
angular.module('mdChipDraggable', []) | |
.directive('mdChipDraggable', function () { | |
return { | |
restrict: 'A', | |
scope: {}, | |
bindToController: true, | |
controllerAs: 'vm', | |
controller: ['$document', '$scope', '$element', '$timeout', | |
function ($document, $scope, $element, $timeout) { | |
var vm = this; |
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
.material-icons { | |
&.md-18 { | |
height: 18px; | |
width: 18px; | |
font-size: 18px; | |
min-height: 18px; | |
min-width: 18px; | |
} | |
&.md-24 { |
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
function makeConcatenater ( left ) { | |
return function ( right ) { | |
return left + ' ' + right; | |
} | |
} | |
var addString = makeConcatenater ( 'Hello' ); | |
addString( 'World' ); | |
/////////////////////////////// | |
function makeAdder ( left ) { |
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
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
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
<?php | |
function _pit_pending_post_status( $new_status, $old_status, $post ) { | |
$post_author_id = $post->post_author; | |
$post_author = get_the_author_meta( 'display_name', $post_author_id ); | |
$post_date = $post->post_date; | |
$post_title = $post->post_title; | |
if ( $new_status === 'pending' && $old_status !== 'pending' ) { | |
$headers[] = 'Content-Type: text/html; charset=UTF-8'; |
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
<?php | |
// CHECK IF REPEATER EXISTS | |
if( have_rows('repeater_field_name') ): | |
// REPEATER LOOP | |
while ( have_rows('repeater_field_name') ) : the_row(); | |
// ANY SUBFIELDS NOT IN THE FLEXIBLE CONTENT (IE THE HEADING) | |
NewerOlder