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
.svg-background-image (@filename:@filename){ | |
background-repeat: no-repeat; | |
.svg &{ | |
background-image: url("@{i-folder}@{filename}.svg"); | |
} | |
.no-svg &{ | |
background-image: url("@{i-folder}@{filename}.png"); | |
} | |
} |
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
<!doctype html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<meta name="description" content=""> |
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 while (have_posts()) : the_post(); ?> | |
<h1> | |
<a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace a: <?php the_title(); ?>"> | |
<?php the_title(); ?> | |
</a> | |
</h1> | |
<p><?php the_time('F jS, Y') ?></p> | |
<p><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> | |
<?php the_excerpt(); ?> |
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 | |
$args = array( | |
'posts_per_page' => 3, | |
'cat' => 8, | |
'offset' => 1 | |
); | |
$loop_alternativo = new WP_Query($args); | |
if( $loop_alternativo->have_posts() ): | |
while( $loop_alternativo->have_posts() ): $loop_alternativo->the_post(); | |
the_title(); |
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
input[type="checkbox"]{ | |
display: none; | |
} | |
input[type="checkbox"] + label:before{ | |
content: ""; | |
background-color: #fff; | |
width: 16px; | |
height: 16px; | |
display: inline-block; |
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 function childpages_shortcode( $atts ) { | |
global $post; | |
$args = array( | |
'post_parent' => $post->ID, | |
'post_type' => 'page', | |
'depth' => 1, | |
'orderby' => 'menu_order', | |
'order' => 'ASC' |
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 | |
function excerpt_read_more_link($output) { | |
global $post; | |
return $output . '<p><a href="'. get_permalink($post->ID) . '">' . translate('Read more', 'textdomain' ) . '</a></p>'; | |
} | |
add_filter('the_excerpt', 'excerpt_read_more_link'); | |
?> |
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
blockquote { | |
quotes: "\201C""\201D""\2018""\2019"; | |
&:before { | |
content: open-quote; | |
} | |
&:after { | |
content: close-quote; | |
} | |
} |
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
// Use "gulp watch" in the console | |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
rename = require('gulp-rename'), | |
concat = require('gulp-concat'), |
OlderNewer