The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
browserSync: { | |
dev: { | |
bsFiles: { | |
src : 'style.css' | |
}, | |
options: { | |
proxy: "local.testing.dev", | |
ghostmode: false, | |
port: 8080, | |
tunnel: "testing", // < Used for iPhone testing |
npm install grunt-browser-sync --save-dev |
/* Setup Isotope in functions.php*/ | |
function add_isotope() { | |
wp_register_script('isotope', get_stylesheet_directory_uri() . '/assets/js/isotope.pkgd.min.js', array('jquery'), true); | |
wp_register_script('isotope-init', get_stylesheet_directory_uri() . '/assets/js/the-isotope.js', array('jquery', 'isotope'), true); | |
wp_enqueue_script('isotope-init'); | |
} | |
add_action('wp_enqueue_scripts', 'add_isotope'); | |
/* JS code that uses isotope (file name 'the-isotope.js' above) */ |
global $post; | |
$the_skills = get_post_meta($post->ID, 'necessary_skills', true); | |
$location = get_post_meta($post->ID, 'location', true); | |
$pdate = the_time('m/j/Y'); | |
echo '<li><i class="fa fa-map-marker"></i> '. $location .'</li>'; | |
echo '<li><i class="fa fa-calendar"></i> Posted on '. $pdate .'</li>'; | |
echo '<li><i class="fa fa-pencil"></i> '. $the_skills .'</li>'; |