This file contains 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 | |
// Usage of Core | |
namespace SymphonyCMS; | |
class MyService | |
{ | |
/** | |
* Constructor expects a tailored subset of core components |
This file contains 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 | |
/** | |
* Symphony CMS | |
*/ | |
namespace SymphonyCMS; | |
/** | |
* Event Listener | |
*/ | |
class EventListener implements ListenerInterface |
This file contains 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"?> | |
<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 |
This file contains 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
/** | |
* Style definition for the Symphony backend | |
*/ | |
/*-------------------------------------------------------------------------- | |
Structure | |
--------------------------------------------------------------------------*/ | |
#wrapper { |
This file contains 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
require 'formula' | |
class Neo4j < Formula | |
homepage 'http://neo4j.org' | |
url 'http://dist.neo4j.org/neo4j-community-2.0.0-M06-unix.tar.gz' | |
version 'community-2.0.0.M06-unix' | |
md5 'fb57c0daae42c2212984e2d97669b36d' | |
def install | |
# Remove windows files |
This file contains 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
require 'formula' | |
class Phpunit < Formula | |
homepage 'http://www.phpunit.de/manual/current/en/index.html' | |
url 'https://phar.phpunit.de/phpunit.phar' | |
sha1 'dc693b34a62644f61cfc01a22d9654ff4b8764af' | |
version 'HEAD' | |
def install | |
bin.install "phpunit.phar" => "phpunit" |
This file contains 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 | |
require_once(TOOLKIT . '/class.datasource.php'); | |
Class datasourcelogged_in_author extends Datasource{ | |
public $dsParamROOTELEMENT = 'logged-in-author'; | |
public $dsParamORDER = 'desc'; | |
public $dsParamREDIRECTONEMPTY = 'no'; | |
public $dsParamSORT = 'id'; |
This file contains 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"?> | |
<data> | |
<events> | |
<event> | |
<title>Recurring Exciting Event</title> | |
<date>2012-01-01</date> | |
<end-date>2014-12-31</end-date> | |
<recurring>yes</recurring> | |
<recurring-number>2</recurring-number> | |
<recurring-type>weeks</recurring-type> |
This file contains 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
# Check for the hostname here | |
SetEnvIfNoCase HOST ^(www\.)?website\.co\.uk$ PROTECTED_HOST | |
<Directory /path/to/htdocs> | |
AuthType Basic | |
AuthName "Authentication" | |
AuthUserFile /path/to/.htpasswd | |
Order Deny,Allow | |
Satisfy any | |
Deny from all |