- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
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 add_image_to_content() { | |
global $post; | |
$imageArray = get_field('project_cover_image'); // Array returned by Advanced Custom Fields | |
$imageID = $imageArray['id']; // Grab, from the array, the 'alt' | |
// echo "$imageID"; | |
$dg_post_id = $post->ID; | |
if ( function_exists( 'soliloquy_dynamic' ) ) soliloquy_dynamic( array( 'id' => "$dg_post_id", 'exclude' => "$imageID" ) ); |
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 | |
add_filter( 'soliloquy_output_slide', 'tgm_soliloquy_custom_html', 10, 4 ); | |
function tgm_soliloquy_custom_html( $html, $id, $image, $data ) { | |
// If the ID doesn't match the one we want to modify, return the default HTML output. Change 324 to your slider ID. | |
$slider_id = $data['id']; | |
ob_start(); ?> | |
<span class="social-m"> | |
<?php $summary = get_field('short_description');?> |
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
// Browser Sync | |
gulp.task('browser-sync', function() { | |
browserSync.init({ | |
files: ["./**/*.php", "./**./*.html"], | |
proxy: "my-project.dev" | |
}); | |
}); |
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
if ( current_user_can('moderate_comments') ) { | |
echo 'The current user can moderate comments'; | |
} else { | |
echo 'Well, not everyone has nice hair like Alex!' | |
} |
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
{ | |
"name": "DigiSavvy Project Boilerplate", | |
"description": "Plugins and Theme for Use with DigiSavvy Projects", | |
"repositories":[ | |
{ | |
"type":"composer", | |
"url":"http://wpackagist.org" | |
}, | |
{ | |
"type": "package", |
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
// Adding Theme title tag support | |
function digistarter_title_tag_support() { | |
if ( current_theme_supports( 'title-tag' ) ) { | |
add_theme_support('title-tag'); | |
} else { ?> | |
<title><?php wp_title( '|', true, 'right' ); ?></title> | |
<?php } | |
} | |
add_action( 'tha_head_bottom', 'digistarter_title_tag_support'); |
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
// Image Markup | |
<dl class="gallery-item"> | |
<dt class=""> | |
<a href="//localhost:3000/shows/uncle-vanya/deathtostock_neighbors5/"> | |
<img width="1024" height="683" src="//localhost:3000/wp-content/uploads/2015/03/DeathtoStock_Neighbors5-1024x683.jpg" class="attachment-large" alt="DeathtoStock_Neighbors5" data-attachment-id="3708" data-orig-file="//localhost:3000/wp-content/uploads/2015/03/DeathtoStock_Neighbors5.jpg" data-orig-size="4927,3285" data-comments-opened="0" data-image-meta="{"aperture":"1.6","credit":"","camera":"Canon EOS 5D Mark III","caption":"","created_timestamp":"1426070992","copyright":"","focal_length":"50","iso":"200","shutter_speed":"0.01","title":"","orientation":"0"}" data-image-title="DeathtoStock_Neighbors5" data-image-description="" data-medium-file="//localhos |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
OlderNewer