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 | |
$currentlang = get_bloginfo('language'); | |
if($currentlang=="en-GB"): | |
?> | |
<?php elseif($currentlang=="pl-PL"): ?> | |
<?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
// Bulma to scss gulp script | |
// In your terminal | |
// 1. npm install -D sass-convert gulp bulma gulp-sass gulp-replace | |
// 2. gem install sass | |
var gulp = require("gulp"), | |
replace = require('gulp-replace'), | |
converter = require('sass-convert'), | |
sass = require('gulp-sass'); |
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
/* Validación y llamada AJAX para enviar el correo */ | |
$(".boton_envio").click(function() { | |
var nombre = $(".nombre").val(); | |
email = $(".email").val(); | |
validacion_email = /^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/; | |
asunto = $(".asunto").val(); | |
mensaje = $(".mensaje").val(); | |
if ((nombre == "") || (nombre == $(".nombre").attr('placeholder'))){ |