Para adicionar novos inputs, inclua no objeto _input_info o ID e o texto do placeholder
Exemplo funcional: http://codepen.io/anon/pen/DCnKI
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 my_wp_is_mobile() { | |
if ( | |
! empty($_SERVER['HTTP_USER_AGENT']) | |
// bail out, if iPad | |
&& false !== strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') | |
) return false; | |
return wp_is_mobile(); | |
} // function my_wp_is_mobile |
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
span { | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
img { | |
display: inline-block; | |
vertical-align: middle; | |
} |
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
$font-size: 16; | |
@function strip-unit($num) { | |
@return $num / ($num * 0 + 1); | |
} | |
@mixin rem($property, $values...) { | |
$max: length($values); | |
$pxValues: ''; | |
$remValues: ''; |
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
// Configuração para HTML | |
html | |
font-size: 62.5% | |
@mixin rem( $prop, $val ) | |
#{$prop} : $val + px // pixels | |
#{$prop} : $val / 10 + rem // rem |
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
$c = (function( $ ) { | |
var DOMCACHESTORE = {}; | |
return function( selector, force ) { | |
if ( force || undefined === DOMCACHESTORE[selector] ) { | |
DOMCACHESTORE[selector] = $(selector); | |
} | |
return DOMCACHESTORE[selector]; | |
}; |
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
// SmoothScroll for websites v1.2.1 | |
// Licensed under the terms of the MIT license. | |
// People involved | |
// - Balazs Galambosi (maintainer) | |
// - Michael Herf (Pulse Algorithm) | |
(function(){ | |
// Scroll Variables (tweakable) |
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
# GREP | |
export GREP_OPTIONS='--color=auto' | |
export GREP_COLOR='1;33' | |
alias grep='grep --color=auto' # Always highlight grep search term | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
# LS COLORS |
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 | |
// Include the Odin_Metabox class. | |
require_once get_template_directory() . '/core/classes/class-metabox.php'; | |
function video_metabox_example() { | |
$videos_metabox = new Odin_Metabox( | |
'videos', // Slug/ID of the Metabox (Required) | |
'Videos Configuration', // Metabox name (Required) |