This file contains hidden or 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 DataObjectSummaryExtension | |
* @author Werner Krauß <[email protected]> | |
*/ | |
class DataObjectSummaryExtension extends DataExtension { | |
/** |
This file contains hidden or 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"?> | |
<templateSet group="user"> | |
<template name="t" value="<%t $filename$.$code$ '$SELECTION$' %>" description="surrounds the current selection with translation tag" toReformat="true" toShortenFQNames="true"> | |
<variable name="filename" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="code" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="false" /> |
This file contains hidden or 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
jQuery(function($) { | |
$('form[data-async]').on('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
This file contains hidden or 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
<a href="$Link"<% if $RedirectionType == 'External' %>target="_blank"<% end_if %>>$MenuTitle.XML</a> |
This file contains hidden or 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 Page_Controller extends ContentController | |
{ | |
private static $cdn_domain = 'cdn.mysite.com'; | |
private static $cdn_rewrite = false; | |
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) | |
{ |
This file contains hidden or 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
#!/bin/bash | |
echo "running git post receive hook..." | |
DIR=$(git rev-parse --show-toplevel) | |
composer.phar install --no-dev -o | |
echo "running dev/build" | |
sudo -u www-data php $DIR/framework/cli-script.php dev/build flush=1 |
This file contains hidden or 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
class MyDataObject extends DataObject implements PermissionProvider { | |
/** | |
... | |
*/ | |
/** | |
* Return a map of permission codes to add to the dropdown shown in the Security section of the CMS. | |
* array( | |
* 'VIEW_SITE' => 'View the site', | |
* ); | |
*/ |
This file contains hidden or 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 GalleryPic | |
* @todo: sync Copyright if Image has a db field for it | |
*/ | |
class GalleryPic extends DataObject | |
{ | |
private static $db = array( | |
'Title' => 'Text', |
This file contains hidden or 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 GalleryPic | |
* @todo: sync Copyright if Image has a db field for it | |
*/ | |
class GalleryPic extends DataObject implements Shortcodable | |
{ | |
private static $db = array( | |
'Title' => 'Text', |
This file contains hidden or 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
.responsive-twocolumn-table { | |
width: 100%; | |
th { | |
display: none; | |
} | |
td { | |
width: 100%; | |
display: block; | |
&:first-child { | |
font-weight: bold; |
OlderNewer