} // CALL PLUGINS NOW: $Plugins->trigger_event('AdminDisplayEditorButton', array('target_type' => 'Comment', 'edit_layout' => NULL)); echo '<div class="pull-right">'; echo_comment_buttons($Form, $edited_Comment); echo '</div>'; ?> </div> <?php $Form->end_fieldset(); // -------------------------- ATTACHMENTS/LINKS -------------------------- if (isset($GLOBALS['files_Module'])) { load_class('links/model/_linkcomment.class.php', 'LinkComment'); $LinkOwner = new LinkComment($edited_Comment); attachment_iframe($Form, $LinkOwner); } // ####################### PLUGIN FIELDSETS ######################### $Plugins->trigger_event('AdminDisplayCommentFormFieldset', array('Form' => &$Form, 'Comment' => &$edited_Comment, 'edit_layout' => NULL)); ?> </div> <div class="right_col col-md-3"> <?php // ####################### RATING ######################### if ($comment_Item->can_rate() || !empty($edited_Comment->rating)) { // Rating is editable $Form->begin_fieldset(T_('Rating')); echo '<p>';
echo get_manual_link('post-allow-html'); echo '</span>'; } echo '</div>'; echo '<div class="pull-right">'; echo_publish_buttons($Form, $creating, $edited_Item); echo '</div>'; echo '<div class="clear"></div>'; echo '</div>'; $Form->end_fieldset(); // ####################### ATTACHMENTS/LINKS ######################### if (isset($GLOBALS['files_Module']) && $current_User->check_perm('item_post!CURSTATUS', 'edit', false, $edited_Item) && $current_User->check_perm('files', 'view', false)) { // Files module is enabled, but in case of creating new posts we should show file attachments block only if user has all required permissions to attach files load_class('links/model/_linkitem.class.php', 'LinkItem'); $LinkOwner = new LinkItem($edited_Item); attachment_iframe($Form, $LinkOwner, $iframe_name, $creating, true); } // ############################ ADVANCED ############################# $Form->begin_fieldset(T_('Advanced properties') . get_manual_link('post-advanced-properties-panel'), array('id' => 'itemform_adv_props', 'fold' => true)); echo '<table cellspacing="0" class="compose_layout">'; if (!$edited_Item->get_type_setting('use_custom_fields')) { // All CUSTOM FIELDS are hidden by post type display_hidden_custom_fields($Form, $edited_Item); } else { // CUSTOM FIELDS varchar $custom_fields = $edited_Item->get_type_custom_fields('varchar'); foreach ($custom_fields as $custom_field) { // Loop through custom varchar fields echo '<tr><td class="label"><label for="item_varchar_' . $custom_field['ID'] . '"><strong>' . $custom_field['label'] . ':</strong></label></td>'; echo '<td class="input" width="97%">'; $Form->text_input('item_varchar_' . $custom_field['ID'], $edited_Item->get_setting('custom_varchar_' . $custom_field['ID']), 20, '', '', array('maxlength' => 255, 'style' => 'width: 100%;'));