Skip to content

Instantly share code, notes, and snippets.

View fourroses666's full-sized avatar

Marc fourroses666

View GitHub Profile
@julesjanssen
julesjanssen / gist:1017978
Created June 9, 2011 23:18
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);
@Mark-H
Mark-H / disabletooltips.plugin.php
Last active March 1, 2016 22:15
Plugin to disable tooltips in MODX globally.
<?php
// Disables tooltips globally.
//
// Create a new plugin and add the following system event: OnManagerPageInit
//
// © 2010 Mark Hamstra <[email protected]>
// Buy me a beer? Paypal hamstra.mark at gmail.com.
//
// Licensed under the MIT license
@oodavid
oodavid / README.md
Last active October 11, 2024 00:36 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/

HTML5 Markup Template - Basic

A very basic starter template with fundamental HTML5 markup -- only the basics.

Based on HTML5 Bones | http://html5bones.com

@mkay
mkay / recipient.php
Created January 18, 2014 10:08
MODX FormIt custom hook example.
<?php
// Type: Snippet
$recipient = $hook->getValue('reason');
if($recipient == 'one'){
$email = '';
}
elseif($recipient == 'two'){
$email = '';
}
@pepebe
pepebe / getTVLabel.snippet.php
Last active September 9, 2015 08:26
Proof of concept for toggling tv groups with a select TV in MODX.
<?php
/*
getTVLabel snippet for modx 2.3
Version:
------------------
v0.0.1 (2015-03-06 16:44)
Author:
------------------
@pmfx
pmfx / evoSystemInfo.php
Last active February 4, 2019 09:03
Snippet for EVO/MODX Evolution displaying system info and some actions on the frontend. Similar to Quick Manager+
<?php
// evoSystemInfo 1.3
// Snippet displaying EVO system info and some actions on the frontend.
// Call it uncached [!evoSystemInfo!] before </body> tag in your template.
// Dark theme: [!evoSystemInfo? &theme=`dark`!] (EVO 1.4.4 or later required)
// author: Piotr Matysiak webready.pl
if ( isset($_SESSION['mgrValidated']) ) {
$docId = $modx->documentIdentifier;
$docTemplateId = $modx->documentObject['template'];