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 HomePage extends Page { | |
private static $has_one = array( | |
'PageLink' => 'SiteTree' | |
); | |
public function getCMSFields() { |
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 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 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
CheckboxField::create('thisField') | |
->setTitle('this Title') | |
->performReadonlyTransformation() |
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 Locator extends Page { | |
private static $db = array( | |
'AutoGeocode' => 'Boolean', | |
'ModalWindow' => 'Boolean', | |
'Unit' => 'Enum("km,m","m")' | |
); |
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 = new TabSet( | |
'Root', | |
$mainTab = new Tab( | |
'Main', | |
new NumericField( | |
'MaxVideosPerPage', | |
'Maximum Number of Videos per Page:', | |
$this->MaxVideosPerPage |
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
Foo: | |
subfoo1: | |
Title: Foo 1 | |
Prefix: FOO | |
subfoo2: | |
Title: Foo 2 | |
Prefix: SFOO | |
Bar: | |
subbar1: |
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
/** | |
* This demo was prepared for you by Petr Tichy - Ihatetomatoes.net | |
* Want to see more similar demos and tutorials? | |
* Help by spreading the word about Ihatetomatoes blog. | |
* Facebook - https://www.facebook.com/ihatetomatoesblog | |
* Twitter - https://twitter.com/ihatetomatoes | |
* Google+ - https://plus.google.com/u/0/109859280204979591787/about | |
* Article URL: http://ihatetomatoes.net/simple-parallax-scrolling-tutorial/ | |
*/ |
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
$detector = new Mobile_Detect; | |
if(!$detector->isMobile() && !$detector->isTablet()){ | |
//requirements here | |
} |
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" ?> | |
<ldml> | |
<identity> | |
<version number="$Revision: 1.122 $"/> | |
<generation date="$Date: 2009/06/15 03:46:24 $"/> | |
<language type="pl"/> | |
</identity> | |
<localeDisplayNames> | |
<localeDisplayPattern> | |
<localePattern>{0} ({1})</localePattern> |
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 | |
/** | |
* | |
* @package FoxyStripe | |
* | |
*/ | |
class ProductCategory extends DataObject { | |
private static $db = array( |
OlderNewer