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
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
| parse_git_branch() { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
| } | |
| # export PS1="\[\e[0;31m\][\u] \W\n$ " | |
| export PS1='\[\e[1;37m\]\W\[\e[1;36m\]$(parse_git_branch)\[\e[0;39m\]\n$ ' | |
| export PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"' |
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 get_permalink_by_name($page_name) | |
| { | |
| global $post; | |
| global $wpdb; | |
| $pageid_name = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '".$page_name."'"); | |
| return get_permalink($pageid_name); | |
| } |
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
| /* GOOGLE ANALYTICS */ | |
| function add_google_analytics() { | |
| echo '<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>'; | |
| echo '<script type="text/javascript">'; | |
| echo 'var pageTracker = _gat._getTracker("CODIGO_AQUI");'; | |
| echo 'pageTracker._trackPageview();'; | |
| echo '</script>'; | |
| } | |
| add_action('wp_footer', 'add_google_analytics'); |
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
| alias iPhone="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator" |
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
| #site_overview { | |
| background-color: #e5edf3; | |
| padding: 2.8em 0; | |
| position: relative; | |
| } | |
| #site_overview:after { | |
| background: url('../images/sprites-s2d93560836.png') no-repeat; | |
| content: ""; | |
| display: block; |
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
| #site_overview | |
| background-color: $aqua | |
| padding: 2*$base-margin 0 | |
| +decorative-content | |
| $name: "star" | |
| +sprite-replace($name) | |
| +absolute-centering(sprites-sprite-width($name)) | |
| bottom: - sprites-sprite-height($name)/2 | |
| .post_overview |
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 | |
| /** | |
| * Template Name: Cria Page | |
| * | |
| * @package WordPress | |
| * @subpackage Cria Ideias | |
| * @since Gustavo Guichard 2012 | |
| */ | |
| get_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
| <?php get_header(); ?> | |
| <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
| <article> | |
| <header> | |
| <?php $page_quoted_title = get_post_meta($post->ID, 'page_quoted_title', true);?> | |
| <h2><?php if($page_quoted_title){echo nl2br($page_quoted_title);} else {the_title();} ?></h2> | |
| </header> | |
| <?php the_content();?> | |
| </article> | |
| <?php $extra_content = get_post_meta($post->ID, 'extra_content', 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
| .copyright { | |
| width: 1000px; | |
| max-width: 100%; | |
| min-width: 768px; | |
| margin: 0 auto; | |
| display: block; | |
| font-size: 0.78571em; | |
| bottom: -68px; | |
| position: relative; | |
| } |
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
| .copyright | |
| +outerRow | |
| display: block | |
| font-size: relative-size(11,14) | |
| +move(68px, bottom) | |
| +decorative-content | |
| +sprite-replace("bird") | |
| bottom: 48px | |
| +absolute-centering(30px, right, 320px) | |
| +context(".contact-page") |