$config['site']['link'][] = array('rel' => 'alternate', 'type' => 'application/rss+xml', 'title' => 'RSS Feed for ' . $category_details['title'] . ' category', 'href' => WW_WEB_ROOT . '/rss/' . $_GET['category_url']);
     }
 }
 // author
 if (isset($_GET['author_id']) && isset($_GET['author_url'])) {
     $author_name = get_author_name($_GET['author_id']);
     $page_title_text[] = 'by ' . $author_name;
     $page_header_text[] = 'author: ' . $author_name;
     // add optional link to feed for author
     if (!empty($config['admin']['show_all_feeds'])) {
         $config['site']['link'][] = array('rel' => 'alternate', 'type' => 'application/rss+xml', 'title' => 'RSS Feed for ' . $author_name, 'href' => WW_WEB_ROOT . '/rss/author/' . $_GET['author_url']);
     }
 }
 // tag
 if (isset($_GET['tag_id']) && isset($_GET['tag_url'])) {
     $tag_title = get_tag_title($_GET['tag_id']);
     $page_title_text[] = 'tagged ' . $tag_title;
     $page_header_text[] = 'tag: ' . $tag_title;
     // add optional link to feed for tag
     if (!empty($config['admin']['show_all_feeds'])) {
         $config['site']['link'][] = array('rel' => 'alternate', 'type' => 'application/rss+xml', 'title' => 'RSS Feed for tag ' . $tag_title, 'href' => WW_WEB_ROOT . '/rss/tag/' . $_GET['tag_url']);
     }
 }
 // date
 if (isset($_GET['year'])) {
     if (isset($_GET['day'])) {
         $query_ts = strtotime($_GET['year'] . '-' . $_GET['month'] . '-' . $_GET['day']);
         $page_title_text[] = "posted on " . date('d M Y', $query_ts);
         $page_header_text[] = 'date: ' . date('d M Y', $query_ts);
     } elseif (isset($_GET['month'])) {
         $query_ts = strtotime($_GET['year'] . '-' . $_GET['month']);
$title_text = array();
$status = '';
// category
if (isset($_GET['category_id'])) {
    $title_text[] = " filed under " . get_category_title($_GET['category_id']);
    $sub_header_text[] = get_category_title($_GET['category_id']);
}
// author
if (isset($_GET['author_id'])) {
    $title_text[] = " by " . get_author_name($_GET['author_id']);
    $sub_header_text[] = 'author: ' . get_author_name($_GET['author_id']);
}
// tag
if (isset($_GET['tag_id'])) {
    $title_text[] = " tagged " . get_tag_title($_GET['tag_id']);
    $sub_header_text[] = 'tag: ' . get_tag_title($_GET['tag_id']);
}
// postdated
if (isset($_GET['postdated'])) {
    $status = ' postdated';
}
// other statuses
if (isset($_GET['status'])) {
    $status_list = define_article_status();
    $status = ' ' . $status_list[$_GET['status']];
}
// any content generation
$left_header = $total_articles . ' articles found';
$right_header = '<a href="' . $_SERVER["PHP_SELF"] . '?page_name=write">/Write a new article</a>';
$page_header = show_page_header($left_header, $right_header);
// get aside content
Exemple #3
0
    $config['site']['meta']['description'] = 'Search results for ' . $_GET['search'] . ' on ' . $config['site']['meta_title'];
    $config['site']['meta']['keywords'] = $_GET['search'];
    $title_text[] = 'containing the term &quot;' . $_GET['search'] . '&quot;';
} else {
    // what are we looking for?
    // category
    if (isset($_GET['category_id']) && isset($_GET['category_url'])) {
        $title_text[] = "category: " . get_category_title($_GET['category_id']);
    }
    // author
    if (isset($_GET['author_id']) && isset($_GET['author_url'])) {
        $title_text[] = "author: " . get_author_name($_GET['author_id']);
    }
    // tag
    if (isset($_GET['tag_id']) && isset($_GET['tag_url'])) {
        $title_text[] = "tagged " . get_tag_title($_GET['tag_id']);
    }
    // date
    if (isset($_GET['year'])) {
        if (isset($_GET['day'])) {
            $query_ts = strtotime($_GET['year'] . '-' . $_GET['month'] . '-' . $_GET['day']);
            $title_text[] = "date: " . date('d M Y', $query_ts);
        } elseif (isset($_GET['month'])) {
            $query_ts = strtotime($_GET['year'] . '-' . $_GET['month']);
            $title_text[] = "month: " . date('F Y', $query_ts);
        } else {
            $title_text[] = "year: " . $_GET['year'];
        }
    }
    // meta tag
    $config['site']['meta_title'] = 'Articles ' . implode(', ', $title_text) . ' - ' . $config['site']['title'];