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
<mjml> | |
<mj-head> | |
</mj-head> | |
<mj-body> | |
<mj-section> | |
<mj-column> | |
<mj-image src="img/image2.jpg"></mj-image> | |
</mj-column> | |
<mj-column> |
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
Brain juices all over the const sectionElement = document.querySelectorAll('.section'); | |
if (sectionElement) { | |
const onEvents = ['scroll', 'resize', 'load']; | |
onEvents.forEach((event) => { | |
window.addEventListener(event, function () { | |
const sectionHeights = []; |
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 | |
add_action( 'admin_footer', 'submit_javascript' ); | |
// Imprime JS el el html del admin. | |
function submit_javascript() { ?> | |
<script type="text/javascript" > | |
jQuery(document).ready(function($) { | |
$('#idForm').on( 'submit', function(e) { | |
e.preventDefault(); // evita el submit convencional |
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 create_movie_cp() { | |
register_post_type( 'movies', | |
// Opciones del custom post | |
array( | |
'labels' => array( | |
'name' => __( 'Movies' ), | |
'singular_name' => __( 'Movie' ) | |
), |
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 add_filter('widget_text','do_shortcode'); ?> |
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 wpe_custom_post_init() { | |
$args = array( | |
'public' => true, | |
'label' => 'Libros' | |
); | |
register_post_type( 'book', $args ); |
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 echo do_shortcode( 'usuarios_registrados' ); ?> |
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 | |
/** | |
* | |
* Modifico url de logo en pagina de login a url del sitio web. | |
* | |
* @param $url | |
* | |
* @return string | |
* |
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 wpe_custom_login() { | |
// Obtengo logo personalizado | |
$custom_logo_id = get_theme_mod( 'custom_logo' ); | |
// Si hay logo personalizado | |
if ( '' !== $custom_logo_id ) { | |
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 | |
/** | |
* Agrega un video al Dashboard de WordPress | |
*/ | |
function wpe_add_dashboard_widgets() { | |
wp_add_dashboard_widget( 'dashboard_custom_videos', 'Aprende a utilizar tu sitio web', 'wpe_videos_widget' ); //add new RSS feed output | |
} |
NewerOlder