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
| AL : Alabama | |
| AK : Alaska | |
| AS : American Samoa | |
| AZ : Arizona | |
| AR : Arkansas | |
| CA : California | |
| CO : Colorado | |
| CT : Connecticut | |
| DE : Delaware | |
| DC : Dist. of Columbia |
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
| @font-face { | |
| font-family: 'sonima'; | |
| src: url('fonts/sonima.eot'); | |
| } | |
| @font-face { | |
| font-family: 'sonima'; | |
| src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB4oAAAC8AAAAYGNtYXDrUp5pAAABHAAAAHxnYXNwAAAAEAAAAZgAAAAIZ2x5ZvULW8EAAAGgAAAGIGhlYWQAdFzyAAAHwAAAADZoaGVhA+IB7AAAB/gAAAAkaG10eA5LAA0AAAgcAAAALGxvY2EEqgaQAAAISAAAABhtYXhwABAAlgAACGAAAAAgbmFtZe/PmCcAAAiAAAABMHBvc3QAAwAAAAAJsAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw1AHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAGgAAAAWABAAAwAGAAEAIOYA8ALwBPCC8JnwnvDU//3//wAAAAAAIOYA8ALwBPCC8JnwnvDU//3//wAB/+MaBBADEAIPhQ9vD2sPNgADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAA/+ACAAHgAFQAACUiDgIHJzQ2PAE1PAImNTceAzMyPgI1NC4CIyIOAhUcAhYVBy4DIyIOAhUUHgIzMj4CNxcUBhwBFRQeAjMyPgI1NC4CIwGwCBAPDQbXAQHXBg0PEAgRHRUNDRUdEREdFQ0B1wYNDxAIER0VDQ0VHREIEA8NBtcBDRUdEREdFQ0NFR0RgAMHCQVrAgMDAwICAwMDAmsFCQcDDR |
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 | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| query_posts( array( | |
| 'post_type' => 'post', | |
| 'paged' => $paged, | |
| '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
| var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var sass = require('gulp-sass'); | |
| var minifyCss = require('gulp-minify-css'); | |
| var rename = require('gulp-rename'); | |
| var connect = require('gulp-connect'); | |
| var autoprefixer = require('gulp-autoprefixer'); | |
| var paths = { | |
| sass: ['./scss/**/*.scss','./www/lib/ionic/scss/**/*.scss'] |
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 | |
| function get_related_posts() { | |
| $terms = get_the_terms(get_the_ID(), 'category'); | |
| $sub_cat = ''; | |
| if ( $terms && ! is_wp_error( $terms ) ) : |
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 | |
| // Test if the page is a parent or a child | |
| // http://css-tricks.com/snippets/wordpress/if-page-is-parent-or-child/#comment-85846 | |
| function is_tree($pid) | |
| { | |
| global $post; | |
| $ancestors = get_post_ancestors($post->$pid); | |
| $root = count($ancestors) - 1; |
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 | |
| /** | |
| * Taken from tutorial at http://ottopress.com/2012/theme-customizer-part-deux-getting-rid-of-options-pages/ | |
| * and http://ottopress.com/2012/making-a-custom-control-for-the-theme-customizer/ | |
| */ | |
| add_action( 'customize_register', 'theme_customize_register' ); | |
| function theme_customize_register($wp_customize) { | |
| //add a textarea control to the wp_customize |
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 | |
| function limit_content($text,$numChar){ | |
| $length = $numChar; | |
| if(strlen($text)<$length+10) return $text;//don't cut if too short | |
| $break_pos = strpos($text, ' ', $length);//find next space after desired length | |
| $visible = substr($text, 0, $break_pos); | |
| return balanceTags($visible) . "…"; | |
| } |
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 | |
| $imageObj = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); | |
| $imageUrl = $imageObj[0]; | |
| ?> |
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
| <div class="Item" data-stretch="images/some_image.png"> |