Skip to content

Instantly share code, notes, and snippets.

View markthepixel's full-sized avatar
👋
oh hi

oh hi mark markthepixel

👋
oh hi
  • USA
View GitHub Profile
// YouTube ShortCode [youtube src="" title="" duration="" thumbnail="" description=""]
function youtube_shortcode( $atts ) {
extract(shortcode_atts(array(
'src' => '',
'title' => '',
'duration' => '',
'thumbnail' => '',
'description' => ''
), $atts));
$video_tag = '<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">';
@markthepixel
markthepixel / jqm-data-cache-never.js
Last active December 14, 2015 07:09 — forked from hiroprotagonist/jqm-data-cache-never.js
Modified version of jqm-data-cache-never.js which allows for removal of all pages and keeping on pages marked.
// force certain pages to be refreshed every time.
// mark such pages with 'data-cache="keep"' to keep
//
jQuery('div').live('pagehide', function(event, ui){
var page = jQuery(event.target);
if(page.attr('data-cache') != 'keep'){
page.remove();
};
});
@markthepixel
markthepixel / dabblet.css
Created January 31, 2012 18:44 — forked from anonymous/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
- Modified by @mprogano -
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
@markthepixel
markthepixel / dabblet.css
Created January 31, 2012 18:44 — forked from anonymous/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
- Modified by @mprogano -
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
@markthepixel
markthepixel / dabblet.css
Created January 31, 2012 18:44 — forked from anonymous/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
- Modified by @mprogano -
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;