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 class="no-js" lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge"> | |
| <title></title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body> |
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
| <script language="JavaScript"> | |
| var username = "[your_username]"; | |
| var hostname = "[your_mail_account_domain]"; | |
| var linktext = username + "@" + hostname ; | |
| document.write("<a href='" + "mail" + "to:" + username + "@" + hostname + "'>" + linktext + "</a>"); | |
| </script> |
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($) { | |
| // This will make a an entire div clickable | |
| $(".awards-content").click(function() { | |
| window.location = $(this).find("a").attr("href"); | |
| return false; | |
| }); | |
| // This will make the entire div clickable and open in a new tab |
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
| <!-- HTML --> | |
| <div class="outer"> | |
| Lorem ipsum dolor sit amet | |
| <div class="inner"> </div> | |
| </div> | |
| <!-- CSS --> | |
| <style> | |
| .outer { |
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 | |
| // short cut to heaven | |
| the_content(); | |
| ?> | |
| <?php | |
| // another long drive down table mountain | |
| $content = get_the_content(); | |
| echo apply_filters( 'the_content', $content ); | |
| ?> |
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
| <!-- HTML --> | |
| <div class="buttons"> | |
| <a id="showall">All</a> | |
| <a class="showSingle" target="1">Div 1</a> | |
| <a class="showSingle" target="2">Div 2</a> | |
| <a class="showSingle" target="3">Div 3</a> | |
| <a class="showSingle" target="4">Div 4</a> | |
| </div> | |
| <div id="div1" class="targetDiv">Lorum Ipsum1</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
| <?php | |
| $term = get_term_by( 'slug', get_query_var( 'tag' ), "post_tag" ); | |
| $tagslug = $term->slug; | |
| $post_types = get_post_types('','names'); | |
| ?> | |
| <?php | |
| //first query | |
| $blogposts = get_posts(array( | |
| 'tag' => $tagslug, //first taxonomy | |
| 'post_type' => $post_types, |
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
| $args = array( | |
| 'post_type' => 'image', | |
| 'category_name' => $cat, | |
| 'meta_key' => 'total_votes', | |
| 'orderby' => 'date meta_value_num', | |
| ); | |
| $loop = new WP_Query( $args ); | |
| $args = array( | |
| 'post_type' => 'video', |
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 | |
| global $post; | |
| $terms = get_the_terms( $post->ID , 'badge', 'string'); | |
| $do_not_duplicate[] = $post->ID; | |
| $postnum = 0; | |
| if(!empty($terms)){ | |
| foreach ($terms as $term) { | |
| query_posts( array( | |
| 'badge' => $term->slug, |
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 | |
| /** | |
| * Taxonomies | |
| * | |
| * This file registers any custom taxonomies | |
| * | |
| * @package WPS_Starter_Genesis_Child | |
| * @author Travis Smith <[email protected]> | |
| * @copyright Copyright (c) 2012, Travis Smith | |
| * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |