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
<div class="join-now"> | |
Inverted Block | |
</div> | |
<p>Normal Paragraph</p> |
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
<div class="inverted-block"> | |
Inverted Block | |
</div> | |
<p>Normal Paragraph</p> |
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
{ | |
"site": { | |
"name": "A Vetted VVV Venture", | |
"url": "generator-vvv.dev", | |
"liveUrl": "http://wpthemetestdata.wordpress.com/" | |
}, | |
"remoteDatabase": { | |
"url": "http://dbuser:[email protected]/remote-databases/generator-vvv.sql" | |
}, | |
"wordpress": { |
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
// edge-skew | |
// Applies a psudo element ot the left or right of an element | |
// that skews that edge. Basically adds a triangle of a given | |
// color in a direction | |
// @param $direction 'left'|'right' | |
// @param $color color | |
@mixin edge-skew( $direction, $color ) { | |
position: relative; | |
$pseudo: if($direction == left, before, after); |
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
* { | |
box-sizing: border-box; | |
} | |
.content { | |
background-image: linear-gradient(to bottom, #b4ddb4 0%,#83c783 17%,#52b152 33%,#008a00 67%,#005700 83%,#002400 100%); | |
column-count: 2; | |
column-gap: 1em; | |
} |
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
autoprefixer: { | |
options: { | |
browsers: ['ie 8', 'ie 9', 'last 2 version'] | |
}, | |
all: { | |
files: { | |
'assets/css/wp_theme.src.css' : 'assets/css/wp_theme.src.css' | |
} | |
} | |
} |
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
/* | |
* Truncate text to a number of characters somewhat intellegently... | |
* | |
* Truncates text to a number of characters, but preserves the word. Strips ending punctuation. Will always err on the side of returning more than less. | |
* Props to alishahnovin at hotmail dot com who posted this at php.net | |
* | |
* @param str $text Text to truncate | |
* @param int $numb Number of characters to truncate to | |
* @param str $etc Ending. Default is an ellipsis | |
* @return str Returns the truncated text |
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
/** | |
* Animated porthole | |
*/ | |
@-webkit-keyframes rotate { | |
from { | |
-webkit-transform: rotate(0deg); | |
} | |
to { | |
-webkit-transform: rotate(360deg); | |
} |
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
$allowedposttags = array( | |
'address' => array(), | |
'a' => array( | |
'href' => true, | |
'rel' => true, | |
'rev' => true, | |
'name' => true, | |
'target' => true, | |
), | |
'abbr' => array(), |
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
// Do something if the featured image is updated by inspecting ajaxComplete callback | |
jQuery(document).ajaxComplete(function(event, xhr, settings){ | |
// Parse the request | |
var vars = {}; | |
var requestVars = settings.data.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) { | |
vars[key] = value; | |
}); | |
// Take action if the action parameter is for the thumbnail |