This file contains hidden or 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 add_membership_support() { | |
$labels = array( | |
'name' => _x( 'DTS Premium', 'post type general name', 'sage' ), | |
'singular_name' => _x( 'Premium Post', 'post type singular name', 'sage' ), | |
'menu_name' => _x( 'Premium Posts', 'admin menu', 'sage' ), | |
'name_admin_bar' => _x( 'Premium Post', 'add new on admin bar', 'sage' ), | |
'add_new' => _x( 'Add New', 'product', 'sage' ), | |
'add_new_item' => __( 'Add New Premium Post', 'sage' ), | |
'new_item' => __( 'New Premium Post', 'sage' ), | |
'edit_item' => __( 'Edit Premium Post', 'sage' ), |
This file contains hidden or 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
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
$ cd $HOME/Code/repo-directory | |
$ git remote rename origin bitbucket | |
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
$ git push origin master | |
$ git remote rm bitbucket |
This file contains hidden or 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 TYPOGRAPHY SPACING FIX | |
*/ | |
h1, .h1, | |
h2, .h2, | |
h3, .h3 { | |
margin-bottom: @line-height-computed; | |
} | |
h4, .h4, |
This file contains hidden or 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 src="//platform.twitter.com/widgets.js"></script> | |
<script> | |
var tweet = { | |
url: "", // url to share | |
via: "", // omit @, twitter username | |
text: "", // tweet text | |
hashtags: "" // omit #, comma seperated "twitter,twitterapi" | |
} | |
var intent_url = 'https://twitter.com/intent/tweet?' + $.param(tweet); | |
$('a#tweet-button').attr('href', intent_url); |
This file contains hidden or 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
.width-percentage(@pixel-width, @parent-columns) { // full retina pixel width | |
width: (@pixel-width / 2) / ((@container-lg / @grid-columns) * @parent-columns) * 100%; | |
height: auto; | |
} |
This file contains hidden or 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
.inset-shadow { | |
position: relative; | |
overflow: hidden; | |
&:before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
left: -30px; | |
bottom: 0; | |
right: -30px; |
This file contains hidden or 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
$('iframe').each(function(){ | |
src = $(this).attr('src').search('youtu'); | |
console.log(src); | |
if (src > 0) { | |
$(this).before('<style>.embed-container { position: relative; padding-bottom: 60%; padding-top: 30px; height: 0; overflow: hidden; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100% !important; height: 93% !important; }</style>').wrap('<div class="embed-container"></div>'); | |
} | |
}) |
This file contains hidden or 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
<!-- Facebook Open Graph tags --> | |
<meta property="og:title" content="Bandana Training" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:image" content="http://bandanatraining.alexnewman.netdna-cdn.com/wp-content/uploads/2012/04/bt-default.jpg" /> | |
<meta property="og:url" content="http://www.bandanatraining.com" /> | |
<meta property="og:description" content="I Give Good Shred" /> | |
<meta property="og:site_name" content="Bandana Training" /> | |
<meta property="og:locale" content="en_US" /> | |
<meta property="fb:admins" content="2222856" /> |
This file contains hidden or 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
<!-- Facebook Open Graph tags --> | |
<meta property="og:title" content="Bandana Training" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:image" content="http://bandanatraining.alexnewman.netdna-cdn.com/wp-content/uploads/2012/04/bt-default.jpg" /> | |
<meta property="og:url" content="http://www.bandanatraining.com" /> | |
<meta property="og:description" content="I Give Good Shred" /> | |
<meta property="og:site_name" content="Bandana Training" /> | |
<meta property="og:locale" content="en_US" /> | |
<meta property="fb:admins" content="2222856" /> |
NewerOlder