I started this to make a car parking game. For the moment it's in prototype phase, but I'll work on it often to get it done.
Heart it if you like to see the result.
A Pen by dissimulate on CodePen.
<?php | |
/* | |
Plugin Name: Link PDF Attachment | |
Plugin URI: http://premium.wpmudev.org | |
Description: Adds a link to the top of a WordPress post to the first PDF attachment | |
Author: Chris Knowles | |
Version: 1.0 | |
Author URI: http://twitter.com/ChrisKnowles | |
*/ |
<?php | |
/** | |
* @Author Avinash | |
* @see http://wp-snippets.com/set-featured-image-automatically/ | |
* @package wordpress | |
*/ | |
function set_featured_image_for_posts() | |
{ | |
// Get all posts so set higher number, | |
// you can increase to any number if you have big amount of posts |
<?php | |
// Add to functions.php | |
// version proof, checks if the visitor is from a mobile device | |
function muneeb_wp_is_mobile() { | |
if ( function_exists( 'wp_is_mobile' ) ) | |
return wp_is_mobile(); | |
//code from wp_is_mobile function, wp_is_mobile() is located in wp-includes/vars.php version 3.4 | |
static $is_mobile; |
<?php | |
function annointed_admin_bar_remove() { | |
global $wp_admin_bar; | |
/* Remove their stuff */ | |
$wp_admin_bar->remove_menu('wp-logo'); | |
} | |
add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 0); | |
?> |
<?php | |
/** | |
* Paste this function in your functions.php file, | |
* and whenever you’re in need of truncating a title, | |
* call: . Where (50) is the number of Characters it allows before truncating! | |
*/ | |
function customTitle($limit) { | |
$title = get_the_title($post->ID); | |
if(strlen($title) > $limit) { |
Route::get('about', 'PagesController@about'); | |
Route::get('contact','PagesController@contact'); | |
Route::get('articles','ArticlesController@index'); | |
Route::get('articles/{id}','ArticlesController@show'); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ | |
"id": 1, | |
"nom": "Full Name", | |
"genre": "Gender", | |
"birthday": "MM-DD-YYYY", | |
"subscription": "MM-DD-YYYY", | |
"level": "LEVEM", | |
"commitee": [ | |
"1st Interest", | |
"2nd Interest", |
I started this to make a car parking game. For the moment it's in prototype phase, but I'll work on it often to get it done.
Heart it if you like to see the result.
A Pen by dissimulate on CodePen.
This is the base skin of Video.js that can be modified to make custom skins.
The great thing about Video.js skins is they work in both HTML5 video AND Flash!
A Pen by Steve Heffernan on CodePen.