continuation arrows are a style thing~
git-svn-id: file:///home/shish/svn/shimmie2/trunk@67 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
1978e28565
commit
eafc6d969a
@ -232,7 +232,7 @@ class CommentList extends Extension {
|
|||||||
ORDER BY comments.id DESC
|
ORDER BY comments.id DESC
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
", array($config->get_int('comment_count')), true);
|
", array($config->get_int('comment_count')), true);
|
||||||
$html .= "<p><a href='".make_link("comment/list")."'>Full List >>></a>";
|
$html .= "<p><a class='more' href='".make_link("comment/list")."'>Full List</a>";
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,7 +170,6 @@ class TagList extends Extension {
|
|||||||
$n = 0;
|
$n = 0;
|
||||||
$html = "";
|
$html = "";
|
||||||
$result = $database->db->Execute($query, $args);
|
$result = $database->db->Execute($query, $args);
|
||||||
$show_count = $config->get_bool('tag_list_numbers');
|
|
||||||
while(!$result->EOF) {
|
while(!$result->EOF) {
|
||||||
$row = $result->fields;
|
$row = $result->fields;
|
||||||
$tag = $row['tag'];
|
$tag = $row['tag'];
|
||||||
@ -179,18 +178,13 @@ class TagList extends Extension {
|
|||||||
$count = $row['count'];
|
$count = $row['count'];
|
||||||
if($n++) $html .= "<br/>";
|
if($n++) $html .= "<br/>";
|
||||||
$link = $this->tag_link($row['tag']);
|
$link = $this->tag_link($row['tag']);
|
||||||
$html .= "<a href='$link'>$h_tag_no_underscores</a>\n";
|
$html .= "<a class='tag_name' href='$link'>$h_tag_no_underscores</a>\n";
|
||||||
if(!is_null($callback)) {
|
if(!is_null($callback)) {
|
||||||
$html .= $this->$callback($tag, $cbdata);
|
$html .= $this->$callback($tag, $count, $cbdata);
|
||||||
}
|
|
||||||
else {
|
|
||||||
if($show_count) {
|
|
||||||
$html .= " ($count)";
|
|
||||||
}
|
}
|
||||||
if(!is_null($config->get_string('info_link'))) {
|
if(!is_null($config->get_string('info_link'))) {
|
||||||
$link = str_replace('$tag', $tag, $config->get_string('info_link'));
|
$link = str_replace('$tag', $tag, $config->get_string('info_link'));
|
||||||
$html .= " <a href='$link'>?</a>\n";
|
$html .= " <a class='tag_info_link' href='$link'>?</a>\n";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$result->MoveNext();
|
$result->MoveNext();
|
||||||
}
|
}
|
||||||
@ -239,11 +233,20 @@ class TagList extends Extension {
|
|||||||
";
|
";
|
||||||
$args = array($config->get_int('tag_list_length'));
|
$args = array($config->get_int('tag_list_length'));
|
||||||
|
|
||||||
|
global $config;
|
||||||
|
if($config->get_bool('tag_list_numbers')) {
|
||||||
|
$html = $this->build_tag_list_html($query, $args, "add_count");
|
||||||
|
}
|
||||||
|
else {
|
||||||
$html = $this->build_tag_list_html($query, $args);
|
$html = $this->build_tag_list_html($query, $args);
|
||||||
$html .= "<p><a href='".make_link("tags")."'>Full List >>></a>\n";
|
}
|
||||||
|
$html .= "<p><a class='more' href='".make_link("tags")."'>Full List</a>\n";
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
private function add_count($tag, $count, $data) {
|
||||||
|
return " <span class='tag_count'>($count)</span>";
|
||||||
|
}
|
||||||
// }}}
|
// }}}
|
||||||
// get refine {{{
|
// get refine {{{
|
||||||
private function get_refiner_tags($search) {
|
private function get_refiner_tags($search) {
|
||||||
@ -271,13 +274,13 @@ class TagList extends Extension {
|
|||||||
return $this->build_tag_list_html($query, $args, "ars", $tags);
|
return $this->build_tag_list_html($query, $args, "ars", $tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function ars($tag, $tags) {
|
private function ars($tag, $count, $tags) {
|
||||||
$html = "";
|
$html = "";
|
||||||
$html .= " (";
|
$html .= " <span class='ars'>(";
|
||||||
$html .= $this->get_add_link($tags, $tag);
|
$html .= $this->get_add_link($tags, $tag);
|
||||||
$html .= $this->get_remove_link($tags, $tag);
|
$html .= $this->get_remove_link($tags, $tag);
|
||||||
$html .= $this->get_subtract_link($tags, $tag);
|
$html .= $this->get_subtract_link($tags, $tag);
|
||||||
$html .= ")";
|
$html .= ")</span>";
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,6 +94,10 @@ A:hover {text-decoration: underline;}
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.more:after {
|
||||||
|
content: " >>>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* the main part of each page *
|
* the main part of each page *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user