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
?colorize=40,10,-40&contrast=2 | |
?colorize=30,10,-40&contrast=5&brightness=-40 | |
?colorize=10,10,-20&contrast=5&brightness=-10 | |
?colorize=10,10,-20&contrast=5&brightness=15 | |
?colorize=-20,10,20&contrast=5&brightness=-30 | |
?colorize=-20,10,20&contrast=5&brightness=-30&filter=blurgaussian |
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
<?php | |
/** | |
* 1. Add this to your theme's functions.php file. | |
* 2. Create an 'ajax' folder in your theme directory. | |
* 3. Create a PHP file to handle the AJAX call in the ajax folder. | |
* 4. From Javascript, make an AJAX call using jQuery: | |
* 5. $.get( window.themeSettings.ajaxUrl, {action: window.themeSettings.themeAjaxAction, template: 'YOUR TEMPLATE NAME (MINUS THE .php EXTENSION)'}, function( data ) { } ); | |
*/ | |
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
<?php | |
/** | |
* Retrive the tuples of metadata in a given set of post-types. | |
* | |
* @param $metakeys string|array - The metakeys to be the tuple elements | |
* @param $post_types string|array optional - The post-types to limit the query on. Defaults to the current post-type | |
* | |
* <?php | |
* $cities = get_postmeta_tuples( array( 'city', 'state' ), 'chapters' ); | |
* ?> |
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
/* Add a wave alignment to your title text using Sass, Compass, and Lettering.js. | |
* | |
* Lettering.js wraps each letter with a span with a class of .char<#>. | |
* Compass provides math functions including the sin which provides the wave form. | |
*/ | |
$length: 11; // The word is 11 letters long | |
@for $i from 1 through $length { | |
.char#{$i} { | |
@include transform(translateY( sin(($i - 1)/($length - 1)*2*pi()) * -25px) ); |
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
<!-- I noticed that Twitter Bootstrap has a feature to make your navigation work on mobile. | |
It just appears that the documentation is missing for it. | |
Take the navigation bar and then add a toggle button and wrap the navigation list in '.nav-collapse'. | |
--> | |
<nav class="navbar navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<!-- Add toggle button --> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> |
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
<ul> | |
<?php | |
// nggdb::get_gallery( <gallery ID> ) | |
// Get an array of nggImage objects. | |
$slides = nggdb::get_gallery( 1 ); | |
foreach( $slides as $slide ) { | |
// To see all the methods and attributes available, nextgen-gallery/lib/image.php | |
echo '<li><img src="'.($slide->cached_singlepic_file( 872, 331 )).'" alt="'.esc_attr($slide->alttext).'" /></li>'; | |
} | |
?> |
NewerOlder