2010-02-18 22:15:36 +01:00
|
|
|
<?php
|
|
|
|
class SifrPage extends Page {
|
|
|
|
|
2010-02-18 22:34:24 +01:00
|
|
|
function getCMSFields() {
|
|
|
|
$fields = parent::getCMSFields();
|
|
|
|
$fields->addFieldToTab("Root.Content.SifrSampleImage", new LiteralField("SifrSampleImage", '<p><img src="frameworktest/images/sifr_sample.png"/></p>'));
|
|
|
|
|
|
|
|
return $fields;
|
|
|
|
}
|
|
|
|
|
2010-02-18 22:15:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class SifrPage_Controller extends Page_Controller {
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
parent::init();
|
|
|
|
|
2010-02-18 22:34:24 +01:00
|
|
|
Sifr::add_font('blackout', 'themes/fonts/blackout.swf');
|
|
|
|
Sifr::replace_element('blackout', 'h2', "'.sIFR-root { text-align: left; color: red;'");
|
|
|
|
Sifr::replace_element('blackout', 'h3', "'.sIFR-root { text-align: left; color: red;'");
|
|
|
|
Sifr::replace_element('blackout', 'h4', "'.sIFR-root { text-align: left; color: red;'");
|
2010-02-18 22:15:36 +01:00
|
|
|
Sifr::activate_sifr();
|
|
|
|
}
|
|
|
|
}
|