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
| /** | |
| * Copy a single file or recursively copy a directory along with all contents | |
| * @param string $source Source path | |
| * @param string $dest Destination path | |
| * @return bool Returns TRUE on success, FALSE on failure | |
| */ | |
| function copyr($source, $dest) | |
| { | |
| // if only one file | |
| if (is_file($source)) { |
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
| public function get_project_cpt_template($project_template) { | |
| global $post; | |
| if ($post->post_type == 'projects') { | |
| $single_template = dirname( __FILE__ ) . '/views/single-project.php'; | |
| } | |
| return $project_template; | |
| } | |
| add_filter( 'project_template', array( &$this, 'get_project_cpt_template' ) ); |
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 | |
| /* | |
| Plugin Name: Unplugged Mobile Theme | |
| Plugin URI: http://www.rachelbaker.me | |
| Description: A plugin and theme for WordPress that automatically reformats your blog's content for optimized viewing on Apple's <a href="http://www.apple.com/unplugged/">unplugged</a> and <a href="http://www.apple.com/ipodtouch/">iPod touch</a>. | |
| Author: Rachel Baker | |
| Version: 0.1 | |
| Author URI: http://www.rachelbaker.me | |
| # Special thanks to Imthiaz Rafiq and the wp-pda Plugin (http://imthi.com/wp-pda/) which this plugin is derived from. |
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($) { | |
| // load touchdown resposnive nav | |
| $('#site-navigation .menu').Touchdown(); | |
| // check window size | |
| if (matchMedia) { | |
| var mq = window.matchMedia("(min-width: 769px)"); | |
| mq.addListener(WidthChange); | |
| WidthChange(mq); | |
| } |
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
| @media only screen and (max-width : 321px) and (orientation : portrait) { | |
| .box { | |
| width:200px; | |
| height:200px; | |
| background:red; | |
| } | |
| } |
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> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| </html |
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
| // Option 1 - for sites with a max-width of around 1140px | |
| // -------------------------------------------------- | |
| // | |
| @media (max-width: 640px) { | |
| } | |
| @media (max-width: 1024px) { | |
| } |
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
| /* Modernizr 2.0.6 (Custom Build) | MIT & BSD | |
| * Contains: fontface | backgroundsize | boxshadow | hsla | multiplebgs | rgba | textshadow | cssanimations | generatedcontent | cssgradients | csstransforms | csstransitions | inputtypes | iepp | cssclasses | teststyles | testprop | testallprops | prefixes | domprefixes | |
| */ | |
| ;window.Modernizr=function(a,b,c){function F(){e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)l.setAttribute("type",f=a[d]),e=l.type!=="text",e&&(l.value=m,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,g.removeChild(l)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=l.checkValidity&&l.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(l),g.offsetWidth,e=l.value!=m,g.removeChild(l)):e=l.value!=m)),r[a[d]]=!!e;return r}("search tel url email datetime date month week time datetime-loc |
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
Show hidden characters
| { | |
| "cmd": ["/usr/bin/php", "-l", "$file"] | |
| , "selector": "source.php" | |
| , "file_regex": "^Parse error: .* in (.*?) on line ([0-9]*)" | |
| } |
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
| { | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_size_limit": 1194304, | |
| "auto_complete_with_fields": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme", | |
| "default_line_ending": "unix", | |
| "draw_white_space": "all", | |
| "ensure_newline_at_eof_on_save": false, | |
| "file_exclude_patterns": |