{$new_series_option}"; $in_series = InSeries::adv_PostToSeries($epid); $existing_series = ""; $post = get_post($epid); global $user_ID; get_currentuserinfo(); // New post; go off the current user info if(empty($post) || empty($post->post_author)) { $aid = $user_ID; } else { $aid = $post->post_author; } foreach($all_series as $series) { if(isset($in_series["{$series->series_id}"])) { continue; } if(InSeriesInternal::can_alter_series($series->series_id, $aid)) { $series_name = stripslashes($series->series_name); $available_series .= ""; } } if(!empty($in_series)) { foreach($in_series as $series) { $sid = $series->series_id; $first_option = __("--- First ---", "in_series"); $delete_option = __("--- Remove ---", "in_series"); $pid = InSeries::adv_FirstInSeries($sid, false); $ppid = InSeries::adv_PrevInSeries($sid, $epid, false); $first_option_value = ($pid == $epid)? "" : "NULL"; $post_list = ""; while(!is_null($pid)) { $selected = "value='$pid'"; $title = strip_tags(InSeriesInternal::get_the_title($pid)); if($pid == $ppid) { $selected = "value='' selected='selected'"; } if($pid != $epid) { $post_list .= ""; } $pid = InSeries::adv_NextInSeries($sid, $pid, false); } $post_list .= ""; $series_name = stripslashes($series->series_name); $existing_series .= ""; } } $output = "
"; echo $output; ?>