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 | |
/** | |
* Created by IntelliJ IDEA. | |
* User: Werner M. Krauß <[email protected]> | |
* Date: 01.12.2015 | |
* Time: 15:36 | |
*/ | |
class NetwerkstattStringFieldExtension extends Extension { |
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 | |
// file: mysite/code/TranslatableControllerExtension.php | |
class TranslatableControllerExtension extends Extension { | |
/** | |
* save the current controller to ensure we have access to it, | |
* this is necessary because Security crates a fake Page_Controller to render templates | |
* @var Controller | |
*/ | |
protected static $actual_current_controller; |
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
@ECHO off | |
SETLOCAL | |
IF [%1]==[] goto s_start | |
ECHO GETDATE.cmd | |
ECHO Returns the date independent of regional settings | |
ECHO Creates the environment variables %v_year% %v_month% %v_day% | |
ECHO. | |
ECHO SYNTAX | |
ECHO GETDATE |
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
<?php | |
class NetwerkstattDataObjectCMSPermissionExtension extends DataExtension 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
.responsive-twocolumn-table { | |
width: 100%; | |
th { | |
display: none; | |
} | |
td { | |
width: 100%; | |
display: block; | |
&:first-child { | |
font-weight: bold; |
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
<?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
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', | |
* ); | |
*/ |