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('admin_init', 'create_metabox'); | |
function create_metabox() { | |
add_meta_box( | |
'stock-data', //id | |
'Stock Data', //title | |
array($this, 'add_metabox_stock_image_data_content'), //callback | |
'stock_image', //screen | |
'normal', //context | |
'default', //priority |
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
<script type="text/javascript"> | |
function GetCardType(number) | |
{ | |
// visa | |
var re = new RegExp("^4"); | |
if (number.match(re) != null) | |
return "Visa"; | |
// Mastercard | |
re = new RegExp("^5[1-5]"); |
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
Show hidden characters
[ | |
{ | |
"class": "sidebar_container", | |
// $base02: #073642 | |
"layer0.tint": [7,54,66], | |
"layer0.opacity": 1.0, | |
"layer0.draw_center": false, | |
"layer0.inner_margin": [0, 0, 1, 0], | |
"content_margin": [0, 0, 1, 0] |
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
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ |
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
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
@media (min-width:1281px) { /* hi-res laptops and desktops */ } |
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
<snippet> | |
<content><![CDATA[ | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"> | |
]]></content> | |
<tabTrigger>font-awesome</tabTrigger> | |
<scope>text.html</scope> | |
<description>BootStrap Font-awesome</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> | |
function initialize() { | |
var map_canvas = document.getElementById('map_canvas'); | |
var map_options = { | |
center: new google.maps.LatLng(44.5403, -78.5463), | |
zoom: 8, | |
mapTypeId: google.maps.MapTypeId.ROADMAP |
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
<snippet> | |
<content><![CDATA[ | |
<!-- include extern jQuery file but fall back to local file if extern one fails to load !--> | |
<script src="http://code.jquery.com/jquery-${1:1.10.2}.min.js"></script> | |
<script type="text/javascript">window.jQuery || document.write('<script type="text\/javascript" src="js\/${1:1.10.2}.jquery.min"><\/script>')</script> | |
]]></content> | |
<tabTrigger>gjf</tabTrigger> | |
<scope>text.html</scope> | |
<description>Jquery/google-fallback</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
<!-- Phone --> | |
<link href="${1:phone-style.css}" rel="stylesheet" type="text/css" media="only screen and (max-width:320px)"> | |
<!-- Tablet --> | |
<link href="${2:tablet-style.css}" rel="stylesheet" type="text/css" media="only screen and (min-width:321px) and (max-width:768px)"> | |
<!-- Desktop --> | |
<link href="${3:style.css}" rel="stylesheet" type="text/css" media="only screen and (min-width:769px)"> | |
]]></content> | |
<tabTrigger>mq</tabTrigger> |
NewerOlder