class BlogEntry extends Page { static $default_parent = array('BlogHolder'); static $can_be_root = false; static $icon = "blog/images/blogpage"; static $db = array( "Date" => "Datetime", "Author" => "Text", "Tags" => "Text" ); static $casting = array( "Date" => "Date" ); static $defaults = array( "ProvideComments" => true ); static $allowed_children = "none"; /** * overload so that the default date is today. */ public function populateDefaults(){ parent::populateDefaults(); $this->Date = date("d/m/Y H:i:s",time()); } /** * Ensures the most recent article edited on the same day is shown first. */ public function setDate($val){ $datepart = date("Y-m-d",strtotime($val)); $minutepart = date("H:i:s",time()); $date = $datepart . " " . $minutepart; return $this->setField("Date",$date); } function getCMSFields() { Requirements::javascript('blog/javascript/bbcodehelp.js'); Requirements::css('blog/css/bbcodehelp.css'); $firstName = Member::CurrentMember() ? Member::currentMember()->FirstName : ''; $codeparser = new BBCodeParser(); $fields = parent::getCMSFields(); $fields->removeFieldFromTab("Root.Content.Main","Content"); $fields->addFieldToTab("Root.Content.Main", new TextareaField("Content", "Content", 20)); $fields->addFieldToTab("Root.Content.Main", new CalendarDateField("Date", "Date"),"Content"); $fields->addFieldToTab("Root.Content.Main", new TextField("Author", "Author", $firstName),"Content"); $fields->addFieldToTab("Root.Content.Main", new LiteralField("BBCodeHelper", "
A very simple and easy to use loader. This loader can use to load jpg, png and swf. Embed skinnable pre-loader and fade-in/fade-out effect. In additional, content can be auto resize in several modes. Fit to use with photo album, especially with our photoFLIP component.
Authoring environment:
Macromedia Flash MX 2004, Flash 8 or CS3 for authoring (Windows or Mac).
Publishing environment:
Flash Player 7 , 8 or 9, ActionScript 2.0
SimpleLoader component |
|
USD$ 12.90
|
|
PhotoFLIP (AS2)/w SimpleLoader(AS2) + PhotoFLIP CS (AS3) package |
|
USD$ 92.90 USD$ 69.90 |
|
PhotoFlip component and SimpleLoader component |
|
USD$ 47.80 USD$ 39.90 |
|
Do you need help on your Flash/Flex/AIR project or want to build a custom component?
We also help on iPhone project. Let us know if you need us. Our team is ready for you. Get a quote today by contact us.