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 | |
/** | |
* @package Portfolio Press | |
*/ | |
/** | |
* Helper function to get options set by the Options Framework plugin | |
*/ | |
if ( !function_exists( 'of_get_option' ) ) : | |
function of_get_option( $name, $default = false ) { |
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( $ ) { | |
var $title = $( '#site-title a' ), | |
$tagline = $( '#site-description' ), | |
$branding = $( '#branding' ); | |
/* Title Text */ | |
wp.customize( 'blogname', function( value ) { | |
value.bind( function( to ) { | |
$title.text( to ); | |
} ); |
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
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { | |
wp_enqueue_script( 'comment-reply' ); | |
} |
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 () { | |
var canvas = document.getElementById( 'stage' ), | |
context = stage.getContext( '2d' ), | |
gradient = document.createElement( 'canvas' );; | |
( function ( size, renderFunction ) { | |
var gc = gradient.getContext( '2d' ), | |
size = 100, | |
half = size / 2, |
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
/** | |
* Simple animation loop with start and stop controls. | |
*/ | |
var animationFrameId; | |
/** | |
* Animation Loop. | |
* | |
* @uses animationFrameId |
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
<h2>Fullsize Images Tests</h2> | |
<h3>Captioned (Unlinked)</h3> | |
[caption id="attachment_2127" align="alignnone" width="1024"]<img class="size-full wp-image-2127" title="Red flower" alt="" src="http://wpthemetestdata.files.wordpress.com/2008/09/test-image-landscape-900.jpg" width="1024" height="685" /> Full - None[/caption] | |
[caption id="attachment_2127" align="alignleft" width="1024"]<img class="size-full wp-image-2127" title="Red flower" alt="" src="http://wpthemetestdata.files.wordpress.com/2008/09/test-image-landscape-900.jpg" width="1024" height="685" /> Full - Left[/caption] | |
[caption id="attachment_2127" align="aligncenter" width="1024"]<img class="size-full wp-image-2127" title="Red flower" alt="" src="http://wpthemetestdata.files.wordpress.com/2008/09/test-image-landscape-900.jpg" width="1024" height="685" /> Full - Center[/caption] | |
[caption id="attachment_2127" align="alignright" width="1024"]<img class="size-full wp-image-2127" title="Red flower" alt="" src="http://wpthemetestdata.files.wordpress.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
// It's best to escape the whole url: | |
// This will also convert the ampersand to an entity. | |
// esc_url() is for printing to the screen. | |
// esc_url_raw() is for database saves. | |
echo '<a href="' . esc_url( 'https://twitter.com/share?url=' . $pxjn_share_url . '&text=' . $pxjn_share_text ) . '"><span class="share tweetthis">Tweet This</span></a>'; |
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 if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> | |
<span class="comments-link"><?php comments_popup_link( | |
__( 'Leave a comment', 'mytheme' ), | |
__( '1 Comment', 'mytheme' ), | |
__( '% Comments', 'mytheme' ) | |
); ?></span> | |
<?php endif; ?>\ |
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 | |
$my_posts = false; | |
$my_post_ids = mytheme_get_special_post_ids(); | |
if ( ! empty( $my_post_ids ) ) { | |
$my_posts = new WP_Query( array( | |
'post__in' => $my_post_ids, | |
'post_status' => 'publish', | |
'posts_per_page' => 10, |
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 | |
/** | |
* _s Theme Options | |
* | |
* @package _s | |
* @since _s 1.0 | |
*/ | |
/** | |
* Register the form setting for our _s_options array. |
NewerOlder