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
$('#TermsModal').on('shown.bs.modal', function () { | |
$('#MyModal').css('z-index', 1040); | |
}); | |
$('#TermsModal').on('hidden.bs.modal', function () { | |
$('#MyModal').css('z-index', 1050); | |
}); |
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
public function show(SS_HTTPRequest $request) { | |
$page = DataObject::get_by_id('SiteTree', $this->URLParams['ID'] ); | |
if(!$page) { | |
return $this->httpError(404,'That page could not be found'); | |
} | |
$controller = new ObjektPage_Controller($page); | |
$controller->init(); |
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
function getColourNice(){ | |
$obj= HTMLText::create(); | |
$obj->setValue('<div style="background-color: '.$this->Colour.'; width: 100px; height: 100px;"> </div>'); | |
return $obj; | |
} | |
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
<!-- Make it fullscreen / hide the browser URL bar --> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> |
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
$ContentFutter1 = new HTMLEditorField('ContentFutter1', 'Spalte 1'); | |
$ContentFutter2 = new HTMLEditorField('ContentFutter2', 'Spalte 2'); | |
$ContentFutter3 = new HTMLEditorField('ContentFutter3', 'Spalte 3'); | |
// transform the fields if we're not in the default locale | |
if(Translatable::default_locale() != Translatable::get_current_locale()) { | |
$translation = $this->getTranslation(Translatable::default_locale()); | |
$transformation = new Translatable_Transformation($translation); | |
$ContentFutter1 = $transformation->transformFormField($ContentFutter1); | |
$ContentFutter2 = $transformation->transformFormField($ContentFutter2); |
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
$gridField->getConfig()->getComponentByType('GridFieldDataColumns')->setDisplayFields(array( | |
'Created' => 'Erstellt', | |
'Code' => 'Code', | |
'Value' => 'Wert', | |
'Origin' => 'Gutscheinart', | |
'Invoice.Buyer.FirstName' => 'Vorname', | |
'Invoice.Buyer.Surname' => 'Nachname', | |
'inUse' => 'Benutzt' | |
)); |
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
function isEmptyObject($o) { | |
if ( $o->toMap()['ID'] > 0) { | |
return false; | |
} else { | |
return true; | |
} | |
} | |
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
public function getCMSFields() { | |
$fields = parent::getCMSFields(); | |
$TabSet = $fields->findOrMakeTab('Root'); | |
$Main = $TabSet->fieldByName('Main'); | |
$TabSet->removeByName('Main'); | |
……………… | |
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
/** | |
* @return SS_HTTPRequest | |
*/ | |
public function assetbackup() { | |
$name = $this->Title . '.zip'; | |
$tmpName = TEMP_FOLDER . '/' . $name; | |
$zip = new ZipArchive(); | |
if(!$zip->open($tmpName, ZipArchive::OVERWRITE)) { | |
user_error('Client Export Extension: Unable to read/write temporary zip archive', E_USER_ERROR); | |
return; |