Skip to content

Instantly share code, notes, and snippets.

View fourroses666's full-sized avatar

Marc fourroses666

View GitHub Profile
<?php
/**
* MinifyRegistered
*
* @category plugin
* @version 0.2.4
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @author Jako ([email protected])
*
* @internal Description:
<?php
/**
* MinifyRegistered
*
* @category plugin
@fourroses666
fourroses666 / nederlands.php
Created January 17, 2017 13:56
modxupdater nederlands
<?php
// ---------------------------------------------------------------
// :: modxupdater
// ----------------------------------------------------------------
//
//
//
// ----------------------------------------------------------------
// :: Copyright & Licencing
// ----------------------------------------------------------------
@fourroses666
fourroses666 / gist:9e15401cf44439360cae
Last active March 21, 2016 13:11 — forked from julesjanssen/gist:1017978
Magento XML productfeed voor Beslist.nl
<?php
/**
*
* @license MIT License
*
*/
// om 't script wat tijd te geven
ini_set("memory_limit","320M");
ini_set("max_execution_time", 240);
@fourroses666
fourroses666 / gist:502fc4a40b5f5a6d4e2c
Created April 9, 2015 10:41
Cookie script: github.com/carhartl/jquery-cookie
/*!
* jQuery Cookie Plugin v1.4.0
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as anonymous module.
cookie_popup = (function() {
var date = new Date();
var minutes = 5;
date.setTime(date.getTime() + (minutes * 60 * 1000));
if ($.cookie('cookie_popup') == undefined) {
$('.cookie-popup-wrap').fadeIn(600);
$.cookie('cookie_popup',true,{ expires: date });
};
<div class="block left-categorys">
<?php
$currentCat = Mage::registry('current_category');
echo '<div class="block-title"><h2>'.$currentCat->getName().'</h2></div>';
$collection = Mage::getResourceModel('catalog/category_collection')
->addAttributeToFilter('parent_id', $currentCat->getId())
->addAttributeToFilter('is_active', 1)
->addAttributeToSort('position', 'asc')
->addAttributeToSelect('name')
<?php
//////////////////////////////////////////////////////////////
// phpThumb() by James Heinrich <[email protected]> //
// available at http://phpthumb.sourceforge.net //
// and/or https://github.com/JamesHeinrich/phpThumb //
//////////////////////////////////////////////////////////////
/// //
// See: phpthumb.readme.txt for usage instructions //
// ///
//////////////////////////////////////////////////////////////