$Form->select_object('item_assigned_user_ID', NULL, $edited_Item, T_('Assigned to'), '', true, '', 'get_assigned_user_options');
    }
    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 -------------------------------------
Example #2
0
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>

<div class="right_col">

	<?php 
// ################### MODULES SPECIFIC ITEM SETTINGS ###################
modules_call_method('display_item_settings', array('Form' => &$Form, 'Blog' => &$Blog, 'edited_Item' => &$edited_Item));
// ################### CATEGORIES ###################
cat_select($Form);
// ################### VISIBILITY / SHARING ###################
$Form->begin_fieldset(T_('Visibility / Sharing'), array('id' => 'itemform_visibility'));
$Form->switch_layout('linespan');
visibility_select($Form, $edited_Item->status);
$Form->switch_layout(NULL);
$Form->end_fieldset();
// ################### COMMENT STATUS ###################
if ($Blog->get_setting('allow_comments') != 'never' && $Blog->get_setting('disable_comments_bypost')) {
    $Form->begin_fieldset(T_('Comments'), array('id' => 'itemform_comments'));
    ?>
			<label title="<?php 
    echo T_('Visitors can leave comments on this post.');
    ?>
"><input type="radio" name="post_comment_status" value="open" class="checkbox" <?php 
    if ($post_comment_status == 'open') {
Example #3
0
    $Form->switch_layout(NULL);
    echo '</div>';
}
$Form->end_fieldset();
// ####################### PLUGIN FIELDSETS #########################
$Plugins->trigger_event('AdminDisplayItemFormFieldset', array('Form' => &$Form, 'Item' => &$edited_Item, 'edit_layout' => 'simple'));
?>

</div>

<div class="right_col">

	<?php 
// ################### CATEGORIES ###################
$Form->begin_fieldset(T_('Categories'), array('class' => 'extracats', 'id' => 'itemform_categories'));
echo cat_select();
$Form->end_fieldset();
// ################### VISIBILITY / SHARING ###################
$Form->begin_fieldset(T_('Visibility / Sharing'), array('id' => 'itemform_visibility'));
$Form->switch_layout('linespan');
visibility_select($Form, $edited_Item->status);
$Form->switch_layout(NULL);
$Form->end_fieldset();
// ################### COMMENT STATUS ###################
if ($Blog->allowcomments == 'post_by_post') {
    $Form->begin_fieldset(T_('Comments'), array('id' => 'itemform_comments'));
    ?>
			<label title="<?php 
    echo T_('Visitors can leave comments on this post.');
    ?>
"><input type="radio" name="post_comment_status" value="open" class="checkbox" <?php 
Example #4
0
    $two_columns_layout = array('before' => '', 'column_start' => '', 'column_end' => '', 'after' => '');
}
echo $two_columns_layout['before'];
// ################### TEXT RENDERERS ###################
if (!empty($item_renderer_checkboxes)) {
    echo $two_columns_layout['column_start'];
    $Form->begin_fieldset(T_('Text Renderers'), array('id' => 'itemform_renderers'));
    echo $item_renderer_checkboxes;
    $Form->end_fieldset();
    echo $two_columns_layout['column_end'];
}
// ################### 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'));
Example #5
0
		jQuery( function()
				{
					jQuery('#item_issue_date, #item_issue_time').change(function()
					{
						jQuery('#item_dateset_radio_2').attr("checked", "checked")
					})
				}
			)
		</script>
		<?php 
}
modules_call_method('display_item_settings', array('Form' => &$Form, 'Blog' => &$Blog, 'edited_Item' => &$edited_Item));
if ($disp_edit_categories) {
    // Display categories
    $Form->switch_template_parts(array('fieldset_begin' => '<tr><td class="left" valign="top"><strong>$fieldset_title$:</strong></td><td>'));
    cat_select($Form, true, false, $disp_params);
    $Form->switch_template_parts($disp_params['edit_form_params']);
}
if ($edited_Item->ID > 0) {
    // If item is editing
    if ($edited_Item->get_type_setting('allow_featured')) {
        // Display featured
        $Form->checkbox_input('item_featured', $edited_Item->featured, T_('Sticky'), array('note' => T_('Make this topic sticky (featured at the top of the list)')));
    } else {
        // Hide featured
        $Form->hidden('item_featured', $edited_Item->featured);
    }
    if ($edited_Item->allow_comment_statuses()) {
        // Display radio inputs to change the comments status
        $comment_status_options = array(array('value' => 'open', 'label' => T_('Open'), 'note' => T_('Visitors can leave comments on this post.')));
        if ($edited_Item->get_type_setting('allow_closing_comments')) {