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
{{block type="cms/block" block_id="blcok-id"}} | |
<!-- Example--> | |
{{block type="cms/block" block_id="banner-monroe"}} |
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
<form action="" id="formualrioMonroe" novalidate> | |
<input type="tel" name="dni" placeholder="Ingresá tu DNI" id="dni" class="required-entry validate-number"/> <!-- para validar un determinado campo se agrega un clase css ya predefinida en el validador por ejemplo required-entry make de field mandatory --> | |
<input type="email" name="email" placeholder="Ingresá tu correo" id="email" class="required-entry validate-email"/> | |
<input type="submit" value="Obtener Cupón" class="button"> | |
</form> | |
<!-- scrip para validar el formulario --> | |
<script type="text/javascript"> | |
//< ![CDATA[ | |
var customForm = new VarienForm('formualrioMonroe'); // ID del formulario a validar |
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
Open the terminal and run: | |
git config --system core.longpaths true |
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
//required section | |
var gulp = require('gulp'), | |
uglify = require('gulp-uglify'), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, | |
minifyCss = require('gulp-minify-css'), | |
sass = require('gulp-sass'), | |
rename = require('gulp-rename'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title of the document</title> | |
<script src="jquery-1.11.3.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$.post( "request.php",function(data) { // 1-el sgundo parámetro, function es el callback cuando el request da success el parámetro dentro del mismo, data es la todo el contenido del sitio | |
$('.ver').click(function(event) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
<modules> | |
<Pdf_WysiwygFiles> | |
<version>1.0.0</version> | |
</Pdf_WysiwygFiles> | |
</modules> | |
<adminhtml> | |
<cms> | |
<browser> |
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 echo get_the_category_list(); ?> // shows all categories of a post' |
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 | |
/** | |
* Plugin Name: Grunt Sitemap Generator | |
* Plugin URI: http://www.github.com/lgladdy | |
* Description: Generate a JSON list of every page on a site so it can be used with grunt and uncss. Create a folder in /wp-content called mu-plugins, and drop this code into that folder, as grunt-sitemap.php | |
* Author: Liam Gladdy | |
* Author URI: http://gladdy.co.uk | |
* Version: 1.0 | |
*/ | |
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 echo Mage::getUrl('laplazadetumascota'); ?> | |
Devuelve: http://www.carrefour.com.ar/laplazadetumascota |
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 | |
// Must be inside a loop. | |
if ( has_post_thumbnail() ) { | |
the_post_thumbnail(); | |
} | |
else { | |
echo '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/thumbnail-default.jpg" />'; | |
} | |
?> |