Пример #1
0
    echo ' ';
    // allow wrapping!
    $ItemStatusCache =& get_ItemStatusCache();
    $ItemStatusCache->load_all();
    $Form->select_options('item_st_ID', $ItemStatusCache->get_option_list($edited_Item->pst_ID, true), T_('Task status'));
    echo ' ';
    // allow wrapping!
    $Form->date('item_deadline', $edited_Item->get('datedeadline'), T_('Deadline'));
    $Form->switch_layout(NULL);
    echo '</div>';
    $Form->end_fieldset();
}
// ################### CATEGORIES ###################
cat_select($Form, true, true, array('fold' => true));
// ################### LOCATIONS ###################
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);
Пример #2
0
}
// ################### CATEGORIES ###################
if ($disp_edit_categories) {
    // Display categories
    echo $two_columns_layout['column_start'];
    cat_select($Form, true, false);
    echo $two_columns_layout['column_end'];
}
echo $two_columns_layout['after'];
?>

<div class="clear"></div>

<?php 
// ################### LOCATIONS ###################
echo_item_location_form($Form, $edited_Item);
if ($edited_Item->get_type_setting('use_coordinates') != 'never') {
    $Form->hidden('item_latitude', $edited_Item->get_setting('latitude'));
    $Form->hidden('item_longitude', $edited_Item->get_setting('longitude'));
    $Form->hidden('google_map_zoom', $edited_Item->get_setting('map_zoom'));
    $Form->hidden('google_map_type', $edited_Item->get_setting('map_type'));
}
// ################### PROPERTIES ###################
if (!$edited_Item->get_type_setting('use_custom_fields')) {
    // Custom fields are hidden by otem type
    display_hidden_custom_fields($Form, $edited_Item);
} else {
    // Custom fields should be displayed
    $custom_fields = $edited_Item->get_type_custom_fields();
    if (count($custom_fields) > 0) {
        $Form->begin_fieldset(T_('Additional fields'));