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", "
HTML5/CSS3 Photo Portfolio is a plug-ins for Adobe Lightroom. It features for making photo portfolio which can view on modern desktop and mobile browser. No Flash plugins is needed. Professional photographers can make their own portfolio which can view on different mobile device and desktop. With extremely "easy-to-use" interface, just a few click to create the portfolio instantly.
(You can click the link about in iPhone/iPad to test the auto layout function)
| |
|
|
|
|
Customize Theme Easy to Install Direct Upload
|
FAQ
How can i get start with the plugin?
How can i create categories?
You can visit the guide "How to create categories for photos".
Authoring environment:
Photoshop Lightroom 2.0 or 3.0 or 4.x for authoring (Windows or Mac).
Client environment:
Safari 4, FireFox 3.5 and Internet Explorer 8+ .
iOS Safari on iPhone/iPad
*3D Transition only support on Safari Browser