A number of changes to the CSS, page layout (moved to HTML5), and updated the editor.
This commit is contained in:
+20
-16
@@ -50,28 +50,31 @@ searches the title, author, date, and the text of each article.</p>'."\n";
|
||||
$entry['id'] = $_SESSION['allow_queue_image'];
|
||||
}
|
||||
if ($entry['date'])
|
||||
$date = 'Posted ' . $entry['date'];
|
||||
$date = '<time datetime="'.date("Y-m-d\TH:i:sP", strtotime($entry['date'])).'">' . $entry['date'] . '</time>';
|
||||
$page .= '<div class="box">';
|
||||
$page .= '<p>';
|
||||
$page .= '<article>';
|
||||
if ($is_admin && !$editable) {
|
||||
$page .= '<span class="right">[<a href="/publish/edit?id='.$entry['id'].'&queue='.$entry['queue_url'].'">edit</a>]</span>';
|
||||
}
|
||||
$page .= '<h3 class="articletitle">';
|
||||
if ($nolink) {
|
||||
$page .= '<span class="articletitle">'.$entry['title'].'</span>';
|
||||
$page .= $entry['title'];
|
||||
} else if ($is_admin && $editable) {
|
||||
$page .= '<a href="/publish/edit?id='.$entry['id'].'&queue='.$entry['queue_url'].'">';
|
||||
$page .= '<span class="articletitle">'.$entry['title'].'</span>';
|
||||
$page .= $entry['title'];
|
||||
$page .= '</a>';
|
||||
} else {
|
||||
$page .= '<a href="/article?id='.$entry['id'].'">';
|
||||
$page .= '<span class="articletitle">'.$entry['title'].'</span>';
|
||||
$page .= $entry['title'];
|
||||
$page .= '</a>';
|
||||
}
|
||||
$page .= '<br />';
|
||||
$page .= '</h3>';
|
||||
$page .= '<dl>';
|
||||
if ($entry['hidden'])
|
||||
$page .= '<span class="right red">[hidden]</span>';
|
||||
$page .= '<span class="articleauthor">'.$entry['author'].'</span><br />';
|
||||
$page .= '<span class="articledate">'.$date.'</span></p>';
|
||||
$page .= '<dt class="author">By</dt> <dd class="author">' . $entry['author'] . '</dd>';
|
||||
$page .= '<dt class="date">Posted</dt> <dd class="date">' . $date . '</dd>';
|
||||
$page .= '</dl>';
|
||||
if (isset($file_src)) {
|
||||
$page .= '<img src="'.$file_src.'" alt="'.$entry['title'].'" />';
|
||||
} else if (!empty($entry['img']) || !empty($entry['uploaded'])) {
|
||||
@@ -83,7 +86,7 @@ searches the title, author, date, and the text of each article.</p>'."\n";
|
||||
} else {
|
||||
$page .= $entry['story']."\n";
|
||||
}
|
||||
$page .= "</div>\n";
|
||||
$page .= "</article>\n</div>\n";
|
||||
}
|
||||
$page .= '<div class="boxline"></div>'."\n";
|
||||
|
||||
@@ -137,13 +140,14 @@ function get_count() {
|
||||
*/
|
||||
function get_query($id = NULL) {
|
||||
global $db, $is_admin;
|
||||
$search = get_search_args();
|
||||
$sort = get_sort_arg();
|
||||
$order = get_order();
|
||||
$start = get_start_num();
|
||||
$show = get_show_num();
|
||||
$queue = get_queue();
|
||||
$table = which_table();
|
||||
$search = get_search_args();
|
||||
$sort = get_sort_arg();
|
||||
$order = get_order();
|
||||
$start = get_start_num();
|
||||
$show = get_show_num();
|
||||
$queue = get_queue();
|
||||
$table = which_table();
|
||||
$results = array();
|
||||
|
||||
// If id= is defined, show the corresponding application only
|
||||
if (is_numeric($id)) {
|
||||
|
||||
Reference in New Issue
Block a user