From 6cb31e12993d6554e3ab9f8769699e4720a2e58a Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 11 Mar 2012 16:02:33 +0000 Subject: [PATCH] remove ancient unmaintained themes --- themes/flat/circle-bl.png | Bin 106 -> 0 bytes themes/flat/circle-br.png | Bin 108 -> 0 bytes themes/flat/circle-tl.png | Bin 115 -> 0 bytes themes/flat/circle-tr.png | Bin 111 -> 0 bytes themes/flat/comment.theme.php | 12 -- themes/flat/layout.class.php | 120 ------------- themes/flat/setup.theme.php | 37 ---- themes/flat/style.css | 238 -------------------------- themes/flat/themelet.class.php | 141 --------------- themes/old_default/layout.class.php | 94 ---------- themes/old_default/style.css | 185 -------------------- themes/old_default/themelet.class.php | 114 ------------ 12 files changed, 941 deletions(-) delete mode 100644 themes/flat/circle-bl.png delete mode 100644 themes/flat/circle-br.png delete mode 100644 themes/flat/circle-tl.png delete mode 100644 themes/flat/circle-tr.png delete mode 100644 themes/flat/comment.theme.php delete mode 100644 themes/flat/layout.class.php delete mode 100644 themes/flat/setup.theme.php delete mode 100644 themes/flat/style.css delete mode 100644 themes/flat/themelet.class.php delete mode 100644 themes/old_default/layout.class.php delete mode 100644 themes/old_default/style.css delete mode 100644 themes/old_default/themelet.class.php diff --git a/themes/flat/circle-bl.png b/themes/flat/circle-bl.png deleted file mode 100644 index 75c695809361fa52abcaf3d3e15bc21258aace26..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 106 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqhMq2tArj%q72n^2e_J>WKD?)Hs9?F^o-elF{r G5}E+@fFYXz diff --git a/themes/flat/circle-tl.png b/themes/flat/circle-tl.png deleted file mode 100644 index 4570632ca9df63ec173410b7cd101b6f9c08a17a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 115 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqR-P`7Arj%q72n_8tv9J*>M(AI zVD6BVxS--F#B)L-vXOn4$|feBxhJ^%9!zS{Jg`!FnM3mgrm`9?hP`qJ+?L4})c{Rl N@O1TaS?83{1OSM!A&me4 diff --git a/themes/flat/circle-tr.png b/themes/flat/circle-tr.png deleted file mode 100644 index d4adbcfa13b31334cd6aa559698d583e5b201800..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 111 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqW}YsNArj%q72n^rr(parent::comment_to_html($comment, $trim)); - } - - protected function build_postbox($image_id) { - return $this->rr(parent::build_postbox($image_id)); - } -} -?> diff --git a/themes/flat/layout.class.php b/themes/flat/layout.class.php deleted file mode 100644 index d0ce1449..00000000 --- a/themes/flat/layout.class.php +++ /dev/null @@ -1,120 +0,0 @@ -get_string('theme', 'default'); - $data_href = get_base_href(); - $contact_link = $config->get_string('contact_link'); - - $header_html = ""; - ksort($page->html_headers); - foreach($page->html_headers as $line) { - $header_html .= "\t\t$line\n"; - } - - $left_block_html = ""; - $main_block_html = ""; - $sub_block_html = ""; - - foreach($page->blocks as $block) { - switch($block->section) { - case "left": - $left_block_html .= $this->block_to_html($block, true, "left"); - break; - case "main": - $main_block_html .= $this->block_to_html($block, false, "main"); - break; - case "subheading": - $sub_block_html .= $this->block_to_html($block, false, "main"); - break; - default: - print "

error: {$block->header} using an unknown section ({$block->section})"; - break; - } - } - - $debug = get_debug_info(); - - $contact = empty($contact_link) ? "" : "
Contact"; - $subheading = empty($page->subheading) ? "" : "

{$page->subheading}
"; - - $wrapper = ""; - if(strlen($page->heading) > 100) { - $wrapper = ' style="height: 3em; overflow: auto;"'; - } - - print << - - - - - - {$page->title} -$header_html - - - - {$page->heading} - $subheading - $sub_block_html - - -
$main_block_html
- - - - -EOD; - } - - /** - * A handy function which does exactly what it says in the method name - */ - private function block_to_html($block, $hidable=false, $salt="") { - $h = $block->header; - $b = $block->body; - $html = ""; - $i = str_replace(' ', '_', $h) . $salt; - if(!is_null($h)) $html .= " -
-
-

$h

-
-
- "; - if(!is_null($b)) { - if(strpos($b, "")) { - $html .= "
$b
"; - } - else { - $html .= " -
-
-
$b
-
-
- "; - } - } - - return $html; - } -} -?> diff --git a/themes/flat/setup.theme.php b/themes/flat/setup.theme.php deleted file mode 100644 index 282e80b6..00000000 --- a/themes/flat/setup.theme.php +++ /dev/null @@ -1,37 +0,0 @@ -header; - $b = $block->body; - $i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup"; - $html = " - -
- $h -
$b
-
- "; - - return $this->rr($html); - } -} -?> diff --git a/themes/flat/style.css b/themes/flat/style.css deleted file mode 100644 index 7c63161b..00000000 --- a/themes/flat/style.css +++ /dev/null @@ -1,238 +0,0 @@ - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -3 things common to all pages * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -BODY { - background: #EEE; - font-family: sans-serif; - font-size: 14px; - margin: 0px; -} -H1 { - border-bottom: 1px solid black; - margin-top: 0px; - margin-bottom: 16px; - padding: 8px; - background: #BBB; - text-align: center; -} -H1 A { - color: black; -} -H3 { - text-align: center; - margin: 0px; -} -THEAD { - font-weight: bold; -} -TD { - vertical-align: top; - text-align: center; -} -CODE { - background: #DEDEDE; - font-size: 0.8em; -} -#subtitle { - width: 256px; - font-size: 0.75em; - margin: auto; - margin-top: -16px; - text-align: center; - border: 1px solid black; - border-top: none; - background: #DDD; -} -#body SELECT {width: 150px;} -TD>INPUT[type="submit"] {width: 100%;} -TD>INPUT[type="text"] {width: 100%;} -TD>INPUT[type="password"] {width: 100%;} -TD>TEXTAREA {width: 100%;} -TD>SELECT {width: 100%;} -[onclick] {cursor:pointer;} - -TABLE.zebra {border-spacing: 0px; border: 2px solid #CCC;} -TABLE.zebra TD, TABLE.zebra TH {vertical-align: middle; padding: 4px;} -TABLE.zebra THEAD TD, TABLE.zebra THEAD TH {border-bottom: 2px solid #CCC;} -TABLE.zebra TFOOT TD, TABLE.zebra TFOOT TH {border-top: 2px solid #CCC;} -TABLE.zebra TR TD {border-bottom: 1px solid #DDD;} -TABLE.zebra TR:nth-child(odd) {background: #EFEFEF;} -TABLE.zebra TR:nth-child(even) {background: #E0E0E0;} - -#footer { - clear: both; - padding: 8px; - font-size: 0.7em; - text-align: center; - border-top: 1px solid black; - background: #BBB; -} - -*[onclick] {cursor: pointer;} -IMG {border: none;} -FORM {margin: 0px;} -A {text-decoration: none;} -A:hover {text-decoration: underline;} - -BLOCKQUOTE { - border: 1px solid black; - padding: 8px; - background: #DDD; -} - -UL { - text-align: left; -} - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* the navigation bar, and all its blocks * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#nav { - width: 200px; - float: left; - text-align: center; - margin-left: 16px; -} -#nav .blockbody { - font-size: 0.85em; - text-align: center; -} -#nav TABLE { - width: 150px; -} -#nav TD { - vertical-align: middle; -} -#nav INPUT { - width: 100%; - padding: 0px; -} -#nav SELECT { - width: 100%; - padding: 0px; -} - -#comments P { - text-align: left; - width: 150px; - max-width: 150px; - overflow: hidden; -} -.comment { - text-align: left; -} - -.more:after { - content: " >>>"; -} - -.tag_count:before { - content: "("; -} -.tag_count:after { - content: ")"; -} - -.paginator { - clear: both; - padding: 4px; - margin-bottom: 32px; -} - - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* the main part of each page * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#body { - margin-left: 226px; - margin-right: 16px; - text-align: center; - height: 1%; -} -#body TABLE { - width: 90%; - margin: auto; -} - - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* specific page types * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#pagelist { - margin-top: 32px; -} - -#tagmap A { - padding: 8px 4px 8px 4px; -} - -.rr {text-align: left; background: #DDD; margin: 8px;} -.rrtop {background: url("circle-tl.png") no-repeat top left;} -.rrtop div {background: url("circle-tr.png") no-repeat top right;} -.rrbot {background: url("circle-bl.png") no-repeat bottom left;} -.rrbot div {background: url("circle-br.png") no-repeat bottom right;} -.rrtop, .rrtop div, .rrbot, .rrbot div {height: 8px; width: 100%;} -.rrcontent {margin: 0px 8px; text-align: center;} - -.hrr {text-align: left; background: #CCC; margin: 8px;} -.hrrtop {background: url("circle-tl.png") no-repeat top left;} -.hrrtop div {background: url("circle-tr.png") no-repeat top right;} -.hrrbot {background: url("circle-bl.png") no-repeat bottom left;} -.hrrbot div {background: url("circle-br.png") no-repeat bottom right;} -.hrrtop, .hrrtop div, .hrrbot, .hrrbot div {height: 8px; width: 100%;} -.hrrcontent {margin: 0px 8px;} - -.setupblock { - text-align: center; - width: 350px; -} -.setupblock TEXTAREA { - width: 300px; - font-size: 0.75em; -} - -.helpable { - border-bottom: 1px dashed gray; -} - -.ok { - background: #AFA; -} -.bad { - background: #FAA; -} - -#nav .thumbblock { - float: none; - height: auto; -} -#nav .thumb { - margin-bottom: 0px; -} -.thumbblock { - width: 220px; - height: 220px; - display: inline-block; - float: left; -} -.thumb { - display: inline-block; - text-align: center; - margin-bottom: 32px; -} - -#downtime #message, #downtime #login { - text-align: center; -} -#downtime H3 { - margin-top: 32px; -} -#downtime #login_table { - margin: auto; -} - diff --git a/themes/flat/themelet.class.php b/themes/flat/themelet.class.php deleted file mode 100644 index 78144eb7..00000000 --- a/themes/flat/themelet.class.php +++ /dev/null @@ -1,141 +0,0 @@ -add_http_header("HTTP/1.0 $code $title"); - $page->set_title($title); - $page->set_heading($title); - $page->add_block(new NavBlock()); - $page->add_block(new Block("Error", $message)); - } - - - /** - * A specific, common error message - */ - public function display_permission_denied() { - $this->display_error(403, "Permission Denied", "You do not have permission to access this page"); - } - - - /** - * Generic thumbnail code; returns HTML rather than adding - * a block since thumbs tend to go inside blocks... - */ - public function build_thumb_html(Image $image, $query=null) { - global $config; - $i_id = int_escape($image->id); - $h_view_link = make_link("post/view/$i_id", $query); - $h_thumb_link = $image->get_thumb_link(); - - - // Removes the size tag if the file is an mp3 - if($image->ext == 'mp3'){ - $iitip = $image->get_tooltip(); - $mp3tip = array("0x0"); - $h_tip = str_replace($mp3tip, " ", $iitip); - - // Makes it work with a variation of the default tooltips (I.E $tags // $filesize // $size) - $justincase = array(" //", "// ", " //", "// ", " "); - if(strstr($h_tip, " ")){ - $h_tip = html_escape(str_replace($justincase, "", $h_tip)); - }else{ - $h_tip = html_escape($h_tip); - } - }else{ - $h_tip = html_escape($image->get_tooltip()); - } - - - // If file is flash or svg then sets thumbnail to max size. - if($image->ext == 'swf' || $image->ext == 'svg'){ - $tsize = get_thumbnail_size($config->get_int('thumb_width'), $config->get_int('thumb_height')); } - else{ - $tsize = get_thumbnail_size($image->width, $image->height); } - - return " -
-
-
-
- - $h_tip - -
-
-
-
- "; - } - - - /** - * Put something in a rounded rectangle box; specific to the default theme - */ - public function rr($html) { - return " -
-
-
$html
-
-
- "; - } - - - /** - * Add a generic paginator - */ - public function display_paginator(Page $page, $base, $query, $page_number, $total_pages) { - if($total_pages == 0) $total_pages = 1; - $body = $this->build_paginator($page_number, $total_pages, $base, $query); - $page->add_block(new Block(null, $body, "main", 90)); - } - - private function gen_page_link($base_url, $query, $page, $name) { - $link = make_link("$base_url/$page", $query); - return "$name"; - } - - private function gen_page_link_block($base_url, $query, $page, $current_page, $name) { - $paginator = ""; - if($page == $current_page) $paginator .= ""; - $paginator .= $this->gen_page_link($base_url, $query, $page, $name); - if($page == $current_page) $paginator .= ""; - return $paginator; - } - - private function build_paginator($current_page, $total_pages, $base_url, $query) { - $next = $current_page + 1; - $prev = $current_page - 1; - $rand = rand(1, $total_pages); - - $at_start = ($current_page <= 1 || $total_pages <= 1); - $at_end = ($current_page >= $total_pages); - - $first_html = $at_start ? "First" : $this->gen_page_link($base_url, $query, 1, "First"); - $prev_html = $at_start ? "Prev" : $this->gen_page_link($base_url, $query, $prev, "Prev"); - $random_html = $this->gen_page_link($base_url, $query, $rand, "Random"); - $next_html = $at_end ? "Next" : $this->gen_page_link($base_url, $query, $next, "Next"); - $last_html = $at_end ? "Last" : $this->gen_page_link($base_url, $query, $total_pages, "Last"); - - $start = $current_page-5 > 1 ? $current_page-5 : 1; - $end = $start+10 < $total_pages ? $start+10 : $total_pages; - - $pages = array(); - foreach(range($start, $end) as $i) { - $pages[] = $this->gen_page_link_block($base_url, $query, $i, $current_page, $i); - } - $pages_html = implode(" | ", $pages); - - return "

$first_html | $prev_html | $random_html | $next_html | $last_html". - "
<< $pages_html >>

"; - } -} -?> diff --git a/themes/old_default/layout.class.php b/themes/old_default/layout.class.php deleted file mode 100644 index 481c84da..00000000 --- a/themes/old_default/layout.class.php +++ /dev/null @@ -1,94 +0,0 @@ -get_string('theme', 'default'); - $data_href = get_base_href(); - $contact_link = $config->get_string('contact_link'); - - $header_html = ""; - ksort($page->html_headers); - foreach($page->html_headers as $line) { - $header_html .= "\t\t$line\n"; - } - - $left_block_html = ""; - $main_block_html = ""; - $sub_block_html = ""; - - foreach($page->blocks as $block) { - switch($block->section) { - case "left": - $left_block_html .= $this->block_to_html($block, true, "left"); - break; - case "main": - $main_block_html .= $this->block_to_html($block, false, "main"); - break; - case "subheading": - $sub_block_html .= $block->body; // $this->block_to_html($block, true); - break; - default: - print "

error: {$block->header} using an unknown section ({$block->section})"; - break; - } - } - - $debug = get_debug_info(); - - $contact = empty($contact_link) ? "" : "
Contact"; - $subheading = empty($page->subheading) ? "" : "

{$page->subheading}
"; - - $wrapper = ""; - if(strlen($page->heading) > 100) { - $wrapper = ' style="height: 3em; overflow: auto;"'; - } - - print << - - - - - - {$page->title} -$header_html - - - - - {$page->heading} - $subheading - $sub_block_html - - -
$main_block_html
- - - - -EOD; - } - - function block_to_html($block, $hidable=false, $salt="") { - $h = $block->header; - $b = $block->body; - $html = ""; - $i = str_replace(' ', '_', $h) . $salt; - if(!is_null($h)) $html .= "\n

$h

\n"; - if(!is_null($b)) $html .= "
$b
\n"; - return $html; - } -} -?> diff --git a/themes/old_default/style.css b/themes/old_default/style.css deleted file mode 100644 index 90c99200..00000000 --- a/themes/old_default/style.css +++ /dev/null @@ -1,185 +0,0 @@ - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* things common to all pages * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -BODY { - background: #EEE; - font-family: "Arial", sans-serif; - font-size: 14px; -} -H1, H3 { - border: 1px solid black; - background: #DDD; - text-align: center; -} -H1 { - margin-top: 0px; - margin-bottom: 0px; - padding: 2px; -} -H1 A { - color: black; -} -H3 { - margin-top: 32px; - padding: 1px; -} -THEAD { - font-weight: bold; -} -TD { - vertical-align: top; - text-align: center; -} -CODE { - background: #DEDEDE; - font-size: 0.8em; -} -#subtitle { - width: 256px; - font-size: 0.75em; - margin: auto; - text-align: center; - border: 1px solid black; - border-top: none; - background: #DDD; -} -#body SELECT {width: 150px;} -TD>INPUT[type="submit"] {width: 100%;} -TD>INPUT[type="text"] {width: 100%;} -TD>INPUT[type="password"] {width: 100%;} -TD>SELECT {width: 100%;} - -TABLE.zebra {border-spacing: 0px;} -TABLE.zebra TD, TABLE.zebra TH {vertical-align: middle; padding: 4px;} -TABLE.zebra THEAD TD, TABLE.zebra THEAD TH {border-bottom: 2px solid #CCC;} -TABLE.zebra TFOOT TD, TABLE.zebra TFOOT TH {border-top: 2px solid #CCC;} -TABLE.zebra TR {border-bottom: 1px solid #DDD;} -TABLE.zebra TR:nth-child(odd) {background: #EFEFEF;} -TABLE.zebra TR:nth-child(even) {background: #E0E0E0;} - -#footer { - clear: both; - padding-top: 8px; - font-size: 0.7em; - text-align: center; -} - -*[onclick] {cursor: pointer;} -IMG {border: none;} -FORM {margin: 0px;} -A {text-decoration: none;} -A:hover {text-decoration: underline;} - -BLOCKQUOTE { - border: 1px solid black; - padding: 8px; - background: #DDD; -} - -UL { - text-align: left; -} - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* the navigation bar, and all its blocks * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#nav { - width: 150px; - float: left; - text-align: center; - font-size: 0.9em; -} -#nav TABLE { - width: 150px; -} -#nav TD { - vertical-align: middle; -} -#nav INPUT { - width: 100%; - padding: 0px; -} -#nav SELECT { - width: 100%; - padding: 0px; -} - -#comments P { - text-align: left; - width: 150px; - max-width: 150px; - overflow: hidden; -} - -.more:after { - content: " >>>"; -} - -.tag_count:before { - content: "("; -} -.tag_count:after { - content: ")"; -} - - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* the main part of each page * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#body { - margin-left: 160px; - text-align: center; - height: 1%; -} -#body TABLE { - width: 90%; - margin: auto; -} - - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* specific page types * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#pagelist { - margin-top: 32px; -} - -#tagmap A { - padding: 8px 4px 8px 4px; -} - -.comment { - margin-bottom: 16px; - text-align: left; -} - -.setupblock { - border: 1px solid #AAA; - padding: 8px; - margin: 16px; - width: 350px; -} - -.helpable { - border-bottom: 1px dashed gray; -} - -.ok { - background: #AFA; -} -.bad { - background: #FAA; -} - -.thumb { - width: 220px; - display: inline-block; - margin-bottom: 16px; -} - - diff --git a/themes/old_default/themelet.class.php b/themes/old_default/themelet.class.php deleted file mode 100644 index cb5c132a..00000000 --- a/themes/old_default/themelet.class.php +++ /dev/null @@ -1,114 +0,0 @@ -add_http_header("HTTP/1.0 $code $title"); - $page->set_title($title); - $page->set_heading($title); - $page->add_block(new NavBlock()); - $page->add_block(new Block("Error", $message)); - } - - - /** - * A specific, common error message - */ - public function display_permission_denied() { - $this->display_error(403, "Permission Denied", "You do not have permission to access this page"); - } - - - /** - * Generic thumbnail code; returns HTML rather than adding - * a block since thumbs tend to go inside blocks... - */ - public function build_thumb_html(Image $image, $query=null) { - global $config; - $i_id = int_escape($image->id); - $h_view_link = make_link("post/view/$i_id", $query); - $h_thumb_link = $image->get_thumb_link(); - - - // Removes the size tag if the file is an mp3 - if($image->ext == 'mp3'){ - $iitip = $image->get_tooltip(); - $mp3tip = array("0x0"); - $h_tip = str_replace($mp3tip, " ", $iitip); - - // Makes it work with a variation of the default tooltips (I.E $tags // $filesize // $size) - $justincase = array(" //", "// ", " //", "// ", " "); - if(strstr($h_tip, " ")){ - $h_tip = html_escape(str_replace($justincase, "", $h_tip)); - }else{ - $h_tip = html_escape($h_tip); - } - }else{ - $h_tip = html_escape($image->get_tooltip()); - } - - - // If file is flash or svg then sets thumbnail to max size. - if($image->ext == 'swf' || $image->ext == 'svg'){ - $tsize = get_thumbnail_size($config->get_int('thumb_width'), $config->get_int('thumb_height')); } - else{ - $tsize = get_thumbnail_size($image->width, $image->height); } - - return "$h_tip"; - } - - - /** - * Add a generic paginator - */ - public function display_paginator(Page $page, $base, $query, $page_number, $total_pages) { - if($total_pages == 0) $total_pages = 1; - $body = $this->build_paginator($page_number, $total_pages, $base, $query); - $page->add_block(new Block(null, $body, "main", 90)); - } - - private function gen_page_link($base_url, $query, $page, $name) { - $link = make_link("$base_url/$page", $query); - return "$name"; - } - - private function gen_page_link_block($base_url, $query, $page, $current_page, $name) { - $paginator = ""; - if($page == $current_page) $paginator .= ""; - $paginator .= $this->gen_page_link($base_url, $query, $page, $name); - if($page == $current_page) $paginator .= ""; - return $paginator; - } - - private function build_paginator($current_page, $total_pages, $base_url, $query) { - $next = $current_page + 1; - $prev = $current_page - 1; - $rand = rand(1, $total_pages); - - $at_start = ($current_page <= 1 || $total_pages <= 1); - $at_end = ($current_page >= $total_pages); - - $first_html = $at_start ? "First" : $this->gen_page_link($base_url, $query, 1, "First"); - $prev_html = $at_start ? "Prev" : $this->gen_page_link($base_url, $query, $prev, "Prev"); - $random_html = $this->gen_page_link($base_url, $query, $rand, "Random"); - $next_html = $at_end ? "Next" : $this->gen_page_link($base_url, $query, $next, "Next"); - $last_html = $at_end ? "Last" : $this->gen_page_link($base_url, $query, $total_pages, "Last"); - - $start = $current_page-5 > 1 ? $current_page-5 : 1; - $end = $start+10 < $total_pages ? $start+10 : $total_pages; - - $pages = array(); - foreach(range($start, $end) as $i) { - $pages[] = $this->gen_page_link_block($base_url, $query, $i, $current_page, $i); - } - $pages_html = implode(" | ", $pages); - - return "

$first_html | $prev_html | $random_html | $next_html | $last_html". - "
<< $pages_html >>

"; - } -} -?>