} */ // get complete or partial article $config['layout']['list_style'] = !empty($config['admin']['complete_feed']) ? 'full' : 'summary'; // determine what feed to display if ($_GET['feed'] == 'comments') { $article_id = isset($_GET['article_id']) ? (int) $_GET['article_id'] : 0; $feed_content = get_feed_comments($article_id); $feed_description = "comments feed"; } elseif ($_GET['feed'] == 'articles' || $_GET['feed'] == 'podcast') { $feed_content = $_GET['feed'] == 'podcast' ? get_podcasts($config['layout'], $podcast_formats) : get_articles($config['layout']); // default description $feed_description = $_GET['feed'] == 'podcast' ? "The " . $config['site']['title'] . " podcast" : "All articles posted on " . $config['site']['title']; // category if (isset($_GET['category_id']) && isset($_GET['category_url'])) { $details = get_category_details($_GET['category_id']); // default description $feed_description = !empty($details['description']) ? $details['description'] : "Articles filed under the category " . $details['title']; // podcast description if ($_GET['feed'] == 'podcast') { $feed_description = !empty($details['description']) ? $details['description'] : "The " . $details['title'] . " podcast - hosted by " . $config['site']['title']; } } // author if (isset($_GET['author_id']) && isset($_GET['author_url'])) { $details = get_author_details($_GET['author_id']); $config['site']['meta']['author'] = $details['name']; $feed_description = "Articles written by " . $details['name']; } // tag if (isset($_GET['tag_id']) && isset($_GET['tag_url'])) {
if (!empty($parent['category_id'])) { continue; } else { $parent_select[$parent['id']] = $parent['title']; } } // if no category selected if (empty($category_id)) { $left_text = 'Categories'; $right_text = ''; $page_header = show_page_header($left_text, $right_text); $main_content = $page_header; $main_content .= '<p>No category selected: choose a category to edit from the right hand menu.</p>'; } else { // get category details $category = get_category_details($category_id); $left_text = $category['title']; $right_text = $category['url']; $page_header = show_page_header($left_text, $right_text); $main_content = $page_header; // confirm file delete if (isset($_GET['action']) && $_GET['action'] == 'delete') { $main_content .= ' <h2>Are you sure you want to delete this category?</h2> <form action="' . $action_url . '" method="post" name="confirm_delete_category_form"> <input name="confirm_delete_category" type="submit" value="Yes"/> <input name="cancel_delete_category" type="submit" value="No" /> </form> <hr /> '; }