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 | |
// Shortcode to display a subscription message on your website | |
function subscribe_link_shortcode() { | |
return 'Did you like what you read? Now, let all these posts be delivered right into your inbox. Simply <a href="http://feeds.feedburner.com/Myblog" title="Subscribe to the Site">subscribe to My Blog Posts via RSS</a>.'; | |
} | |
add_shortcode('subscribe', 'subscribe_link_shortcode'); | |
?> |
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 | |
// Enhanced subscription feature with attributes | |
function subscribe_multilink_shortcode( $atts ) { | |
extract( shortcode_atts( array( | |
'subtype' => 'RSS', | |
'subtypeurl' => 'http://feeds.feedburner.com/MyBlog', | |
), $atts, 'multilink' ) ); | |
return sprtinf( 'Get our posts and latest updates delivered directly to your inbox<a href="%1$s">by %2$s</a>.', | |
esc_url( $subtypeurl ), |
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
jQuery(document).ready(function(){jQuery('#submit, .wpcf7-submit, .comment-reply-link, input[type="submit"]').addClass('btn btn-default');jQuery('.wp-caption').addClass('thumbnail');jQuery('.widget_rss ul').addClass('media-list');jQuery('table#wp-calendar').addClass('table table-striped')});jQuery(document).ready(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>100){jQuery('.scroll-to-top').fadeIn()}else{jQuery('.scroll-to-top').fadeOut()}});jQuery('.scroll-to-top').click(function(){jQuery('html, body').animate({scrollTop:0},800);return false})});(function(){var is_webkit=navigator.userAgent.toLowerCase().indexOf('webkit')>-1,is_opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1,is_ie=navigator.userAgent.toLowerCase().indexOf('msie')>-1;if((is_webkit||is_opera||is_ie)&&document.getElementById&&window.addEventListener){window.addEventListener('hashchange',function(){var element=document.getElementById(location.hash.substring(1));if(element){if(!/^(?:a|select|input|button|textare |
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
.type-post, .type-page, .type-attachment, #post-area .post { | |
border: none; | |
} |
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
if ( ! function_exists( 'travelify_posted_on' ) ) : | |
/** | |
* Prints HTML with meta information for the current post-date/time and author. | |
*/ | |
function travelify_posted_on() { | |
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; | |
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { | |
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; | |
} | |
$time_string = sprintf( $time_string, |
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
if ( ! function_exists( 'dazzling_featured_slider' ) ) : | |
/** | |
* Featured image slider | |
*/ | |
function dazzling_featured_slider() { | |
if ( is_front_page() && of_get_option('dazzling_slider_checkbox') == 1 ) { | |
echo '<div class="flexslider">'; | |
echo '<ul class="slides">'; | |
$count = of_get_option('dazzling_slide_number'); |
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
<!DOCTYPE html> | |
<!--[if IE 7]> | |
<html class="ie ie7" <?php language_attributes(); ?>> | |
<![endif]--> | |
<!--[if IE 8]> |
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 | |
/* Template Name: LP Example */ | |
get_header('lp-example'); ?> | |
<div id="main-content" class="main-content"> | |
<div id="primary" class="content-area"> | |
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><!– #main –> | |
<footer id=”colophon” class=”site-footer” role=”contentinfo”> | |
<div class=”site-info”> | |
</div><!– .site-info –> | |
</footer><!– #colophon –> |
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 | |
/** | |
* Template Name: Landing Page | |
*/ | |
?> |