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
#Put this file in wp-content/uploads and modify remote domain. | |
#Copia este arhivo en wp-content/uploads and modifica el dominio remoto. | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /wp-content/uploads/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*) http://remotedomain.tld/wp-content/uploads/$1 [L,P] | |
</IfModule> |
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 | |
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 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 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 | |
* |
NewerOlder