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
$("#provincia option[value="+ valor +"]").attr("selected",true); |
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
//redimensionar | |
function rezise($SrcImage, $DestImage, $MaxWidth=980, $MaxHeight=0, $Quality=90) { | |
list($iWidth, $iHeight, $type)=getimagesize($SrcImage); | |
//echo $type; | |
//solo redimensional mayores a 1200 | |
if ($iWidth>3000 || $iHeight>3000) { | |
//=== si no se pone el alto ====// | |
if (($MaxHeight == 0) && isset($MaxWidth)) { |
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
#Actualizar | |
yum update | |
#instalar apache | |
yum install -y httpd | |
#iniciar apache | |
sudo service httpd start | |
#nano |
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 | |
/** | |
* This function will connect wp_mail to your authenticated | |
* SMTP server. This improves reliability of wp_mail, and | |
* avoids many potential problems. | |
*/ | |
function send_smtp_email($phpmailer) { | |
$phpmailer->isSMTP(); | |
$phpmailer->isHTML(true); | |
$phpmailer->Host = "smtp.gmail.com"; |
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 | |
/** | |
* Hide the main editor on specific pages | |
*/ | |
define('EDITOR_HIDE_PAGE_TITLES', json_encode(array())); | |
define('EDITOR_HIDE_PAGE_TEMPLATES', json_encode(array('template-cars.php'))); | |
/** | |
* Hide the main editor on defined pages |
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
$(window).scroll(function(){ | |
if ($(window).scrollTop() >= 300) { | |
$('nav').addClass('fixed-header'); | |
} | |
else { | |
$('nav').removeClass('fixed-header'); | |
} | |
}); |
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
class MailChimp { | |
private $username; | |
private $pass; | |
private $status_code; | |
private $curl_response; | |
const apiKey = '261fdbc6602031972b5e5829367d5fa6-us16'; | |
const url = 'https://us16.api.mailchimp.com/3.0/'; |
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 | |
// Load the theme stylesheets | |
function theme_styles() { | |
// Example of loading a jQuery slideshow plugin just on the homepage | |
wp_register_style( | |
'bootstrap-styles', // handle name | |
get_template_directory_uri() . '/css/styles.min.css', // the URL of the stylesheet | |
array(), // an array of dependent styles |
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
<!-- Actualiza tu etiqueta HTML para incluir itemscope y itemtype. --> | |
<html itemscope itemtype="http://schema.org/Article"> | |
<!-- Coloca estos datos entre las etiquetas <head> de tu página web --> | |
<title>Título de la página. Longitud máxima 60-70 caracteres</title> | |
<meta name="description" content="Descripción de la página. Longitud máxima 155 caracteres." /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Google Authorship y Marcado de Anunciante --> | |
<link rel="author" href="<a "="">https://plus.google.com/[Perfil_Google+]/posts"/> |
OlderNewer