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
| // Implementation in ES6 | |
| function pagination(c, m) { | |
| var current = c, | |
| last = m, | |
| delta = 2, | |
| left = current - delta, | |
| right = current + delta + 1, | |
| range = [], | |
| rangeWithDots = [], | |
| l; |
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 | |
| functions.php | |
| //scripts css y js | |
| if(!function_exists('muebles_scripts')): | |
| function muebles_scripts(){ | |
| wp_register_style('google-fonts','https://use.typekit.net/wzb2cmb.css',array(), '1.0.0','all'); | |
| wp_register_style('style',get_stylesheet_uri(),array('google-fonts'), '1.0.0','all'); | |
| wp_enqueue_style('google-fonts'); |
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
| //codigo repeater simple | |
| <?php if ( have_rows('texto_blog_resaltado') ) : ?> | |
| <?php while (have_rows('texto_blog_resaltado') ) : the_row(); | |
| // vars | |
| $texto_blog_resaltado = get_sub_field('escribir_texto_blog_resaltado'); | |
| ?> | |
| <p><?php echo $texto_blog_resaltado; ?></p> | |
| <?php endwhile; ?> | |
| <?php endif; ?> |
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
| Etique Audio: | |
| <audio src="/" controls autoplay loop></audio> | |
| Etiquea Video: | |
| //poster es la imagen que se verá en el vídeo | |
| <video src="video.webm" poster="presentacion.jpg" controls></video> | |
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
| crear archivo name-post-types.php dentro de la carpeta Plugins | |
| post type basico | |
| <?php | |
| /* | |
| Plugin Name: Gourmet Artistry Post Types & Taxonomies | |
| Plugin URI: | |
| Description: Adds Custom Post Types to site. | |
| Version: 1.0 | |
| Author: Frank Cunza | |
| license: HDJW |