echo_publish_buttons($Form, $creating, $edited_Item);
echo '</div>';
$Form->end_fieldset();
// ####################### ATTACHMENTS/LINKS #########################
if (isset($GLOBALS['files_Module'])) {
    load_class('links/model/_linkitem.class.php', 'LinkItem');
    $LinkOwner = new LinkItem($edited_Item);
    attachment_iframe($Form, $LinkOwner, $iframe_name, $creating);
}
// ############################ ADVANCED #############################
$Form->begin_fieldset(T_('Meta info') . get_manual_link('post_simple_meta_fieldset'), array('id' => 'itemform_adv_props'));
$Form->switch_layout('linespan');
if ($current_User->check_perm('blog_edit_ts', 'edit', false, $Blog->ID)) {
    // ------------------------------------ TIME STAMP -------------------------------------
    echo '<div id="itemform_edit_timestamp" class="edit_fieldgroup">';
    issue_date_control($Form, false);
    echo '</div>';
}
echo '<table cellspacing="0" class="compose_layout">';
echo '<tr><td class="label"><label for="item_tags">' . T_('Tags') . ':</strong></label></td>';
echo '<td class="input">';
$Form->text_input('item_tags', $item_tags, 40, '', '', array('maxlength' => 255, 'style' => 'width: 100%;'));
echo '</td><td width="1"><!-- for IE7 --></td></tr>';
echo '</table>';
$Form->switch_layout(NULL);
$Form->end_fieldset();
// ####################### PLUGIN FIELDSETS #########################
$Plugins->trigger_event('AdminDisplayItemFormFieldset', array('Form' => &$Form, 'Item' => &$edited_Item, 'edit_layout' => 'simple'));
?>

</div>
echo_item_location_form($Form, $edited_Item, array('fold' => true));
// ################### PROPERTIES ###################
$Form->begin_fieldset(T_('Properties') . get_manual_link('post-properties-panel'), array('id' => 'itemform_extra', 'fold' => true));
$Form->switch_layout('linespan');
if ($edited_Item->get_type_setting('allow_featured')) {
    // Display featured
    $Form->checkbox_basic_input('item_featured', $edited_Item->featured, '<strong>' . T_('Featured post') . '</strong>');
} else {
    // Hide featured
    $Form->hidden('item_featured', $edited_Item->featured);
}
$Form->checkbox_basic_input('item_hideteaser', $edited_Item->get_setting('hide_teaser'), '<strong>' . T_('Hide teaser when displaying -- more --') . '</strong>');
if ($current_User->check_perm('blog_edit_ts', 'edit', false, $Blog->ID)) {
    // ------------------------------------ TIME STAMP -------------------------------------
    echo '<div id="itemform_edit_timestamp" class="edit_fieldgroup">';
    issue_date_control($Form, true);
    echo '</div>';
}
echo '<table>';
echo '<tr><td><strong>' . T_('Order') . ':</strong></td><td>';
$Form->text('item_order', $edited_Item->order, 10, '', T_('can be decimal'));
echo '</td></tr>';
if ($current_User->check_perm('users', 'edit')) {
    echo '<tr><td><strong>' . T_('Owner') . ':</strong></td><td>';
    $Form->username('item_owner_login', $edited_Item->get_creator_User(), '', T_('login of this post\'s owner.') . '<br/>');
    $Form->hidden('item_owner_login_displayed', 1);
    echo '</td></tr>';
}
if ($edited_Item->get_type_setting('use_coordinates') != 'never') {
    // Dispaly Latitude & Longitude settings
    $field_required = $edited_Item->get_type_setting('use_coordinates') == 'required' ? $required_star : '';
Exemple #3
0
$Form->end_fieldset();
global $display_item_settings_is_defined;
$display_item_settings_is_defined = false;
modules_call_method('display_item_settings', array('Form' => &$Form, 'Blog' => &$Blog, 'edited_Item' => &$edited_Item));
if (!$display_item_settings_is_defined) {
    if ($current_User->check_perm('blog_edit_ts', 'edit', false, $Blog->ID)) {
        // ------------------------------------ TIME STAMP -------------------------------------
        $Form->begin_fieldset();
        $Form->fieldstart = '';
        $Form->fieldend = '';
        $Form->labelstart = '';
        $Form->labelend = '';
        $Form->inputstart = '';
        $Form->inputend = '';
        echo '<div id="itemform_edit_timestamp" class="edit_fieldgroup">';
        issue_date_control($Form, false, '<strong>' . T_('Issue date') . '</strong>');
        echo '</div>';
        $Form->end_fieldset();
    }
    // ################### VISIBILITY / SHARING ###################
    // Get those statuses which are not allowed for the current User to create posts in this blog
    $exclude_statuses = array_merge(get_restricted_statuses($Blog->ID, 'blog_post!', 'create'), array('trash'));
    // Get allowed visibility statuses
    $sharing_options = get_visibility_statuses('radio-options', $exclude_statuses);
    if (count($sharing_options) == 1) {
        // Only one visibility status is available, don't show radio but set hidden field
        $Form->hidden('post_status', $sharing_options[0][0]);
    } else {
        // Display visibiliy options
        $Form->begin_fieldset(T_('Visibility / Sharing'), array('id' => 'itemform_visibility'));
        $Form->switch_layout('linespan');