This file contains 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
development: &defaults | |
ADMIN_EMAIL: 'gustavoguichard@gmail.com' | |
test: &development | |
<<: *defaults | |
production: | |
<<: *defaults |
This file contains 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
import React from 'react'; | |
import $ from 'jquery'; | |
require('bootstrap-webpack'); | |
var Dropdown = React.createClass({ | |
componentDidMount() { | |
$(this.getDOMNode).on('shown.bs.dropdown', function(event){ | |
this.props.onChange(true); | |
}.bind(this)); | |
$(this.getDOMNode).on('hidden.bs.dropdown', function(event){ |
This file contains 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
//////////////////////////////////////////////////////////////////////////////// | |
// Exercise: | |
// | |
// http://getbootstrap.com/javascript/#dropdowns | |
// | |
// Wrap Bootstrap Dropdown in a React component and just rely on the declarative | |
// | |
// Got extra time? | |
// | |
// Allow the parent to manage the state of the dropdown |
This file contains 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 $my_query = new WP_Query('showposts=3&tag=tag'); ?> | |
<?php if($my_query->have_posts()) : ?><?php while($my_query->have_posts()) : $my_query->the_post(); ?> | |
<?php the_content(); ?> | |
<?php endwhile; endif; wp_reset_query(); ?> |
This file contains 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
{ | |
"folders": | |
[ | |
{ | |
"path": "/Users/Guga/Sites/sim/wp-content/themes/Sim", | |
"file_exclude_patterns": ["*.pot", "*.mo", "*.txt"], | |
"folder_exclude_patterns": [".sass-cache", "images"] | |
}, | |
{ | |
"path": "/Users/Guga/Sites/sim/wp-content/plugins", |
This file contains 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
// This code isn't yet fully tested | |
// CUSTOM HTML RESETS | |
html | |
text-rendering: optimizeLegibility | |
-webkit-font-smoothing: antialiased | |
= css-techniques($font-size: 16) | |
html |
This file contains 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") |
This file contains 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 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 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(); ?> |
OlderNewer