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 wpc_get_plugin_dl_count(){ | |
| $payload = array( | |
| 'action' => 'plugin_information', | |
| 'request' => serialize( | |
| (object)array( | |
| 'slug' => 'pinterest-rss-widget', | |
| 'fields' => array('description' => true) | |
| ) | |
| ) | |
| ); |
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_action('wp_enqueue_scripts','ago_load_print_styles'); | |
| function ago_load_print_styles(){ | |
| wp_enqueue_style('print-styles', get_stylesheet_directory_uri() . '/print.css',false,false,'print'); | |
| } |
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
| <!DOCTYPE HTML> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>HTML5 elements test</title> | |
| </head> | |
| <body> | |
| <header> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Flickr</title> | |
| <style> | |
| body { width: 600px; margin: auto; } | |
| ul { list-style: none; } | |
| li { padding-bottom: 1em; } | |
| img { float: left; padding-right: 1em; } |
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( wife.outoftown === true){ | |
| setReminder(plantsNeedWatering, d + 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
| add_action('wp_enqueue_scripts', 'child_load_scripts_styles'); | |
| // Load necessary scripts and styles | |
| function child_load_scripts_styles(){ | |
| if( is_admin() ) | |
| return; | |
| // google fonts | |
| wp_enqueue_style( 'opensans-gf', 'http://fonts.googleapis.com/css?family=Open+Sans', false, false, 'screen' ); | |
| wp_enqueue_style( 'lemon-gf', 'http://fonts.googleapis.com/css?family=Lemon', false, false, 'screen' ); |
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
| $images = get_post_meta($post->ID, 'ecpt_repeatable', true); | |
| if($images) { | |
| foreach($images as $image) { | |
| echo '<div class="image"><img src="' . $image . '"/></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
| add_filter( 'the_content', 'shortcode_unautop' ); | |
| // Register a new shortcode: [pricing_table] | |
| add_shortcode( 'pricing_table', 'cuj_pricing_table' ); | |
| add_shortcode('pricing_item', 'cuj_pricing_item'); | |
| // The callback function that will replace [pricing_table] | |
| function cuj_pricing_table($attr,$content) { | |
| $pricing_table = '<div class="pricing_table"><h4>' . $attr['title']. '</h4>' . do_shortcode($content) . '</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
| jQuery(document).ready(function($){ | |
| $('.entry-content img, .wp-caption img').wrap('<div class="drop-shadow" />'); | |
| $('.entry-content img').each(function(){ | |
| var thisWidth = $(this).width(); | |
| var thisClasses = $(this).attr('class'); | |
| $(this).removeClass(thisClasses).parent('.drop-shadow').css('width',thisWidth).addClass(thisClasses); | |
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
| echo '<div id="home-banner"><div class="inner">'; | |
| if ( function_exists( 'icit_spot' ) ) | |
| $spot = icit_get_spot( 'home banner', false ); | |
| echo do_shortcode($spot); | |
| echo '</div></div>'; | |
| //jQuery | |
| $(".inline").colorbox({inline:true, href:"#contact_form"}); |