Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->addElements(array(
- array ('textarea', 'preview', array(
- 'label' => 'Описание к фото',
- 'filters' => array(
- 'StringTrim'
- ),
- 'id' => 'preview_editor'
- )),
- array ('file', 'photo', array(
- 'label' => 'Фото',
- 'filters' => array(
- new Turist_Filter_File_SetUniqueName(array( 'nameLength' => 10 )),
- new Turist_Filter_File_ImageResize(array(
- array(
- 'targetDir' => PUBLIC_PATH . '/userfiles/images/full',
- 'newSize' => "800*533",
- 'type' => 'proportional'
- ),
- array(
- 'targetDir' => PUBLIC_PATH . '/userfiles/images/thumb',
- 'newSize' => "80*80",
- 'type' => 'thumb'
- )
- ))
- ),
- )),
- array ('text', 'pos', array(
- 'label' => 'Порядок сортировки',
- 'filters' => array(
- 'StringTrim',
- 'StripTags'
- ),
- 'value' => '0'
- )),
- array ('checkbox', 'slideshow', array(
- 'label' => 'В слайдшоу на главной',
- 'checkedValue' => 'on',
- 'uncheckedValue'=> '',
- )),
- array ('submit', 'submit', array(
- 'label' => 'Отправить',
- )),
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement