Skip to content

Instantly share code, notes, and snippets.

View babelpuntocl's full-sized avatar
🤖

babel.cl babelpuntocl

🤖
View GitHub Profile
for (var i = 20; i < 400; i += 60) { // i vale 20, mientras i no sea mayor que 400, sumarle 60
line(i, 40, i + 60, 500); // (x1, y1, x2, y2)
}
<figure class="small-12 medium-6 cell">
<?php if( get_field('galeria') ): ?>
<?php $images = get_field('galeria'); if( $images ): ?>
<div class="owl-carousel owl-theme">
<?php foreach( $images as $image ): ?>
<div class="item">
<img src="<?php echo $image['sizes']['medium_thumb']; ?>" alt="<?php echo $image['alt']; ?>" />
</div>
<?php endforeach; ?>
</div>
<?php if( have_rows('repeater_field_name') ): while ( have_rows('repeater_field_name') ) : the_row(); ?>
<?php the_sub_field('sub_field_name'); ?>
<?php endwhile; endif; ?>
<?php if (get_field('field_name')) : ?>
<?php else : ?>
<?php endif; ?>
a {
position: relative;
color: #000;
text-decoration: none;
}
a:hover {
color: #000;
}
a:before {
content: "";
<a href="#" data-open="shareModal-<?php the_ID(); ?>">boton</a>
<div id="shareModal-<?php the_ID(); ?>" class="reveal-modal" data-reveal>
<!-- the stuff inside the modal here -->
</div><!-- #shareModal -->
<!DOCTYPE html>
<!-- Monaco -->
<!-- Help and FAQ: themes.stashfamily.com/help -->
<!-- Download: themes.stashfamily.com/themes/monaco -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<?php $terms = get_the_terms( $post->ID , 'taxonomyname' ); foreach ( $terms as $term ) { echo $term->name; } ?>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress