- Less
- Bootstrap - http://getbootstrap.com - Popular HTML/CSS framework
- LESS Elements - http://lesselements.com - a collection of useful mixins for LESS
- LESSHat - http://lesshat.com - a universal mixin library
- HelpLESS - http://www.m6tt.com/2011/09/21/helpless-a-less-library - A LESS Library
- 3L - http://mateuszkocz.github.io/3l/ - Lots of Love for LESS, a mixin library
- Schema - http://danmalarkey.github.io/schema/ - Responsive UI framework
- Sass
- Sass Bootstrap - http://alademann.github.io/sass-bootstrap/ - A Sass-based port of the popular Less-based HTML/CSS framework.
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 | |
/** | |
* Register FooEvents columns in the importer. | |
* @link: https://github.com/woocommerce/woocommerce/wiki/Product-CSV-Importer-&-Exporter#adding-custom-import-columns-developers | |
* | |
* @param array $options | |
* @return array $options | |
*/ | |
function add_column_to_importer( $options ) { |
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
.status-draft{ | |
background: #FFFED8; | |
&:before{ | |
content: 'DRAFT'; | |
background: #7F7E46; | |
color: #fff; | |
display: block; | |
padding: 5px; | |
text-transform: uppercase; | |
} |
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
var used = []; | |
var elements = null; | |
//get all elements | |
if (typeof document.getElementsByTagName != 'undefined') { | |
elements = document.getElementsByTagName('*'); | |
} | |
if (!elements || !elements.length) { | |
elements = document.all; // ie5 |
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 if ( has_post_thumbnail() ) : | |
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 720,405 ), false, '' ); | |
?> | |
<a href="http://pinterest.com/pin/create/button/?media=<?php echo $src[0]; ?>&url=<?php the_permalink() ?>" class="pin-it-button" count-layout="none"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a> | |
<?php else : ?> | |
<a href="http://pinterest.com/pin/create/button/?media=http://example.com/example.png&url=<?php the_permalink() ?>" class="pin-it-button" count-layout="none"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a> | |
<?php endif; ?> |
I'm using CMB2 to enable me to add custom images to a WordPress post via a File field type. Rather than have a user create a gallery and place it within the body of content, I wanted to control where and how it displayed.
<?php
// Tiled Photo Gallery
// - - - - - - - - - - - - - - - - - -
// Place outside of loop on single.php / page.php / or custom template where you want it to appear.
// I'm using this with CMB2 - https://github.com/WebDevStudios/CMB2, but it's not required.
// check for any image attachments to current post
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
$grey: #777; | |
$logosize: 31; | |
$blockpercent: 7%; | |
// Calculate the proper size of the blocks |
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
Go to Alfred Preferences | |
Web Search | |
Add Custom Search | |
Search URL: http://smile.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords={query} | |
Title: Smile | |
Keyword: smile | |
URL for sharing: alfred://customsearch/Smile/smile/utf8/noplus/http://smile.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords={query} (Copy and paste into your browser and it should open Alfred to add this.) |
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 | |
/** | |
* @package WordPress | |
* @subpackage Tersus | |
Template Name: Archives | |
*/ | |
?> |
NewerOlder