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
# WORDPRESS Oldest Post Date | |
This function gets the oldest post's published date (status published). | |
* You must pass it a post type (accepts Custom Post Types) | |
* You may pass it a date format (http://www.php.net/manual/en/function.date.php) | |
## Usage | |
echo oldest_post_date( 'post' ); |
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
# WORDPRESS Add custom role | |
This function adds an additional role called site manager. | |
This is primarily to allow a client admin rights ( including managing users ) | |
It enables you to then hide administrator admin menu items from site managers. | |
## Usage | |
* add below code to functions.php |
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
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.old-domain.com', 'http://www.new-domain.com'); | |
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; |
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
// ---- | |
// Sass (v3.2.14) | |
// Compass (v0.12.2) | |
// ---- | |
/*! | |
Video.js Default Styles (http://videojs.com) | |
Version GENERATED_AT_BUILD | |
Create your own skin at http://designer.videojs.com | |
*/ |
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
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
$cs-a: #DCC879; | |
$cs-b: #FAF1D1; | |
$cs-c: #F1F1F2; | |
$cs-d: #FFF8E5; | |
$cs-e: #FEF2EE; |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
.block { | |
color: blue; | |
&--modifier { |
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
<h1>Font Face Zen</h1> |
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
<div class="block"> | |
<div class="element">one</div> | |
<div class="element">two</div> | |
<span class="element">three</span> | |
<div class="element">four</div> | |
</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
<div class="cs-purple"> | |
<h2>Hello</h2> | |
<p>This is a <a href="#">link</a></p> | |
<button class="btn">Button</button> | |
</div> | |
<div class="cs-green"> | |
<h2>Hello</h2> | |
<p>This is a <a href="#">link</a></p> | |
<button class="btn">Button</button> | |
</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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
@for $i from 0 through 59 { | |
$degmin : $i * 6; | |
$deghour : $i * 30; | |
@if $i < 10 { | |
[datetime^="T0#{$i}"]:before { transform: rotate(#{$deghour}deg) } |
OlderNewer