- 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.
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 change_resume_slug( $args ) { | |
$args['rewrite']['slug'] = _x( 'kielipalvelu', 'Resume permalink - resave permalinks after changing this', 'wp_job_manager_resumes' ); | |
return $args; | |
} | |
add_filter( 'register_post_type_resume', 'change_resume_slug' ); |
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
add_action( 'resume_manager_resume_submitted', 'wpjmres_final_redirect', 99); | |
function wpjmres_final_redirect(){ | |
wp_redirect('https://DOMAIN.COM'); | |
exit(); | |
} |
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 restrict_wpjm_applications_mime_types( $allowed_mime_types, $field) { | |
if ( $field['label'] == 'My Field' ) { | |
unset( $allowed_mime_types['png'] ); | |
$allowed_mime_types['json'] = 'application/json'; | |
} | |
return $allowed_mime_types; | |
} | |
add_filter( 'job_manager_mime_types', 'restrict_wpjm_applications_mime_types' ); |
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
add_filter ('the_content', 'insertWPcomFollowerButton'); | |
function insertWPcomFollowerButton($content) { | |
if(is_single()) { | |
$content.= '<a class="wordpress-follow-button" href="http://exoticmysticism.com" data-blog="http://exoticmysticism.com" data-lang="en">Follow Lisa Joy on WordPress.com</a>'; | |
$content.= '<script type="text/javascript">(function(d){var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');p.type = 'text/javascript';p.async = true;p.src = '//widgets.wp.com/platform.js';f.parentNode.insertBefore(p,f);}(document));</script>'; | |
} | |
return $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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 jetpackme_related_posts_date_restricted( $date_range, $post_id ) { | |
// We can change this based on $post_id too but let's just filter everything | |
$date_range = array( | |
'from' => strtotime( '1 January 2013' ), | |
'to' => time(), | |
); | |
return $date_range; | |
} | |
add_filter( 'jetpack_relatedposts_filter_date_range', 'jetpackme_related_posts_date_restricted' ); |
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 | |
/* | |
* Plugin Name: AA Test Plugin | |
* Plugin URI: http://wordpress.org/extend/plugins/test | |
* Description: Testing all kinds of things! | |
* Author: Richard Archambault | |
* Version: 1.0 | |
* License: GPL2+ | |
*/ | |
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
add_action( 'init', 'jp_remove_stats'); | |
add_action( 'template_redirect', 'jp_maybe_add_tracking_code', 1); | |
function jp_remove_stats(){ | |
remove_action( 'template_redirect', 'stats_template_redirect', 1 ); | |
} | |
function jp_maybe_add_tracking_code(){ | |
if( !is_home() ){ | |
stats_template_redirect(); | |
} | |
} |
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 fb_home_image( $tags ) { | |
if ( is_home() ) { | |
$latest_post = get_posts("post_type=post&numberposts=1"); | |
$latest_post = $latest_cpt[0]->ID; | |
if ( class_exists( 'Jetpack_PostImages' ) ) { | |
$post_images = Jetpack_PostImages::get_images( $latest_post, array( 'width' => 200, 'height' => 200 ) ); | |
if ( $post_images && !is_wp_error( $post_images ) ) { | |
$image = array(); |
NewerOlder