Skip to content

Instantly share code, notes, and snippets.

View designermonkey's full-sized avatar

John Porter designermonkey

View GitHub Profile
/**
* Style definition for the Symphony backend
*/
/*--------------------------------------------------------------------------
Structure
--------------------------------------------------------------------------*/
#wrapper {
@designermonkey
designermonkey / gist:10837549
Last active August 29, 2015 13:59
Using this method, pages can be selected from a selectbox in Symphony, and output into the entry you want to match against. Then a template needs to be created for each option in the selectbox, and the xsl will match against it. Caveats are that the entry needs to be manually passed to the template, as root context is broken.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Pages Section Templates
Templates for the display of content from the Symphony 'Pages' Section
This is a slightly hacky technique to allow the template to be chosen in the XML.
Pages are driven by content templates, so the mode for each view should reference a content template
<?php
/**
* Symphony CMS
*/
namespace SymphonyCMS;
/**
* Event Listener
*/
class EventListener implements ListenerInterface
@designermonkey
designermonkey / example.php
Created May 20, 2014 12:48
Example of using the containers in Symphony
<?php
// Usage of Core
namespace SymphonyCMS;
class MyService
{
/**
* Constructor expects a tailored subset of core components
<?php
/**
* Beagle Bones
*/
namespace Beagle\Bones;
/**
* Middleware Decorator
*/
class MiddlewareDecorator
@designermonkey
designermonkey / gist:378e965a4b36fe24b46c
Last active August 29, 2015 14:20
Docs for upcoming cookies and sessions changes

Docs for Session and Cookie.

Updates related to the Session and Cookie classes.

Container

Container is a very simple one which can be used as is or extended by a developers class in an extension for example.

Access Methods

### USAGE
###
### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0
### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
### ElasticSearch version
@designermonkey
designermonkey / xml.xsl
Last active August 29, 2015 14:26 — forked from vdcrea/xml.xsl
xsl file to output xml used for unsa-industrie.org
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xls="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:string="http://www.getsymphony.com/functions"
exclude-result-prefixes="xls string">
<xsl:import href="../utilities/functions/function.string.utilities.xsl"/>
<xsl:output method="xml"
<?php
require_once(TOOLKIT.'/class.event.php');
Class eventcomma_separate extends Event {
public $eParamFILTERS = array(
);
@designermonkey
designermonkey / gist:769486
Created January 7, 2011 14:03
Note about .clearfix method
It seems that if the floated children have line-height set, then the phantom margin appears at the bottom. Need to clarify this in testing.