Skip to content

Instantly share code, notes, and snippets.

View anthuanvasquez's full-sized avatar
🏁
Never Give Up!

Anthuan Vásquez anthuanvasquez

🏁
Never Give Up!
View GitHub Profile
@anthuanvasquez
anthuanvasquez / categoryProductCollection.php
Last active January 12, 2019 01:26
Magento Get Products by Category ID
<?php
$_categoryId = 123;
$_limit = 10;
$_categoryModel = Mage::getModel('catalog/category');
$_category = $_categoryModel->load($_categoryId);
$_productCollection = $_category->getProductCollection()
@anthuanvasquez
anthuanvasquez / breadcrumbs.php
Last active March 4, 2016 21:40
WordPress Breadcrumbs Function with Boostrap Support.
<?php
/**
* Display breadcrumbs.
*
* @since 1.0.0.
* @param array $args
* @return string $html
*/
function anva_get_breadcrumbs( $args = array() ) {
@anthuanvasquez
anthuanvasquez / Git-Commands.bash
Last active January 12, 2019 01:29 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@anthuanvasquez
anthuanvasquez / local.xml
Last active July 5, 2018 06:15 — forked from Maksold/local.xml
Remove default blocks from Magento 1.9 using local.xml
<?xml version="1.0"?>
<layout>
<default>
<!--Root/Default Layouts-->
<reference name="root">
<!--Appending Block-->
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
</reference>
<!--CSS and JS Files-->
@anthuanvasquez
anthuanvasquez / class-options-interface.php
Created November 16, 2014 07:38
Group fields in Options Framwork
<?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
class Options_Framework_Interface {
@anthuanvasquez
anthuanvasquez / LinkAnimate.css
Last active January 12, 2019 01:28
Con este código, cuando pasas el cursor por encima del enlace de una lista, cada enlace se mueve un poco a la derecha. Realizado enteramente con CSS sin necesidad de jQuery.
#animateList li a {
cursor: pointer;
-webkit-transition: padding-left 250ms ease-out;
transition: padding-left 250ms ease-out;
}
#animateList li a:hover {
padding-left: 10px;
}
@anthuanvasquez
anthuanvasquez / buttonActive.css
Last active January 12, 2019 01:28
Con este CSS, al hacer clic en el enlace, el texto de éste se moverá hacia abajo 1px.
a:active {
position: relative;
top: 1px;
}