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 | |
class eventevent1 extends SectionEvent | |
{ | |
public $ROOTELEMENT = 'event1'; | |
public $eParamFILTERS = array( | |
); | |
public static function about() |
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(EXTENSIONS . '/remote_datasource/data-sources/datasource.remote.php'); | |
Class datasourcetwitter extends RemoteDatasource { | |
public $dsParamROOTELEMENT = 'twitter'; | |
public $dsParamURL = 'https://api.twitter.com/1.1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=ACCOUNT_NAME&count=10'; | |
public $dsParamFORMAT = 'json'; | |
public $dsParamXPATH = '/'; |
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
server { | |
listen 80; | |
server_name localhost; | |
access_log /path/to/log/access.log; | |
error_log /path/to/log/error.log; | |
location / { | |
root /path/to/root; | |
index index.php; |
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
/*------------------------------------------------------------------------- | |
Role Manager: (replace in members/extension.driver.php when using Abffilter) | |
-------------------------------------------------------------------------*/ | |
public function checkFrontendPagePermissions($context) { | |
$isLoggedIn = false; | |
$errors = array(); | |
// Checks $_REQUEST to see if a Member Action has been requested, | |
// member-action['login'] and member-action['logout']/?member-action=logout |
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
Dear soon-to-be-former user, | |
We've got some fantastic news! Well, it's great news for us anyway. You, on | |
the other hand, are fucked. | |
We've just been acquired by: | |
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
# Define specified subdomains first | |
<VirtualHost *:80> | |
ServerName subdomain.domain.com | |
DocumentRoot "/path/to/domain.com/subdomains/subdomain" | |
</VirtualHost> | |
# Define domain and wildcard subdomains second | |
<VirtualHost *:80> | |
ServerName domain.com | |
DocumentRoot "/path/to/domain.com/httpdocs" |
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"?> | |
<html> | |
<head> | |
<link rel="stylesheet" href="workspace/assets/style.css"/> | |
</head> | |
<body> | |
<div id="head"> | |
<h1>Title</h1> | |
</div> | |
<div id="package"> |
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
#!/usr/bin/env bash | |
DEFAULT_BRANCH="master" | |
. .symbuilder | |
extensions=$webroot"/extensions/" | |
if [ $# -eq 1 ] | |
then | |
# get a name for new project from command line arguments | |
extension_name="$1" |
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
<!-- Not displaying $root --> | |
<xsl:template match="page" mode="url"> | |
<xsl:apply-templates select="parent::page" mode="url"/> | |
<xsl:value-of select="concat(@handle,'/')"/> | |
</xsl:template> |