| 12345678910111213 |
- <?php
- namespace zin;
- global $lang;
- $story = data('story');
- $canEditContent = strpos(',draft,changing,', ",{$story->status},") !== false;
- $docField = array();
- $docField[] = section
- (
- set::title($lang->story->docs),
- doclist(set::data($story), set::mode($canEditContent ? 'edit' : 'view'))
- );
- query('#files')->before($docField);
|