Uploaded from: ";
diff --git a/themes/danbooru/comment.theme.php b/themes/danbooru/comment.theme.php
index 826c87d4..6ded3725 100644
--- a/themes/danbooru/comment.theme.php
+++ b/themes/danbooru/comment.theme.php
@@ -1,6 +1,12 @@
left_enabled = false;
}
diff --git a/themes/danbooru/index.theme.php b/themes/danbooru/index.theme.php
index 47bd2d9a..f31be3b1 100644
--- a/themes/danbooru/index.theme.php
+++ b/themes/danbooru/index.theme.php
@@ -1,6 +1,10 @@
";
diff --git a/themes/danbooru/themelet.class.php b/themes/danbooru/themelet.class.php
index 9eb986c7..3a853c24 100644
--- a/themes/danbooru/themelet.class.php
+++ b/themes/danbooru/themelet.class.php
@@ -1,23 +1,52 @@
build_paginator($page_number, $total_pages, $base, $query);
$page->add_block(new Block(null, $body, "main", 90));
}
+ /**
+ * @param string $base_url
+ * @param string $query
+ * @param int|string $page
+ * @param string $name
+ * @return string
+ */
private function gen_page_link($base_url, $query, $page, $name) {
$link = make_link("$base_url/$page", $query);
return "$name";
}
-
+
+ /**
+ * @param string $base_url
+ * @param string $query
+ * @param int|string $page
+ * @param int|string $current_page
+ * @param string $name
+ * @return string
+ */
private function gen_page_link_block($base_url, $query, $page, $current_page, $name) {
$paginator = "";
if($page == $current_page) $paginator .= "$page";
else $paginator .= $this->gen_page_link($base_url, $query, $page, $name);
return $paginator;
}
-
+
+ /**
+ * @param int $current_page
+ * @param int $total_pages
+ * @param string $base_url
+ * @param string $query
+ * @return string
+ */
private function build_paginator($current_page, $total_pages, $base_url, $query) {
$next = $current_page + 1;
$prev = $current_page - 1;
diff --git a/themes/danbooru/user.theme.php b/themes/danbooru/user.theme.php
index 9990879e..5c6cae4a 100644
--- a/themes/danbooru/user.theme.php
+++ b/themes/danbooru/user.theme.php
@@ -76,6 +76,11 @@ class CustomUserPageTheme extends UserPageTheme {
$page->add_block(new Block("Signup", $html));
}
+ /**
+ * @param Page $page
+ * @param array $uploads
+ * @param array $comments
+ */
public function display_ip_list(Page $page, $uploads, $comments) {
$html = "";
$html .= "Uploaded from: ";
diff --git a/themes/danbooru2/ext_manager.theme.php b/themes/danbooru2/ext_manager.theme.php
index 1c42e2e8..86afd724 100644
--- a/themes/danbooru2/ext_manager.theme.php
+++ b/themes/danbooru2/ext_manager.theme.php
@@ -1,10 +1,20 @@
disable_left();
parent::display_table($page, $extensions, $editable);
}
+
+ /**
+ * @param Page $page
+ * @param ExtensionInfo $info
+ */
public function display_doc(Page $page, ExtensionInfo $info) {
$page->disable_left();
parent::display_doc($page, $info);
diff --git a/themes/danbooru2/themelet.class.php b/themes/danbooru2/themelet.class.php
index 9eb986c7..3a853c24 100644
--- a/themes/danbooru2/themelet.class.php
+++ b/themes/danbooru2/themelet.class.php
@@ -1,23 +1,52 @@
build_paginator($page_number, $total_pages, $base, $query);
$page->add_block(new Block(null, $body, "main", 90));
}
+ /**
+ * @param string $base_url
+ * @param string $query
+ * @param int|string $page
+ * @param string $name
+ * @return string
+ */
private function gen_page_link($base_url, $query, $page, $name) {
$link = make_link("$base_url/$page", $query);
return "$name";
}
-
+
+ /**
+ * @param string $base_url
+ * @param string $query
+ * @param int|string $page
+ * @param int|string $current_page
+ * @param string $name
+ * @return string
+ */
private function gen_page_link_block($base_url, $query, $page, $current_page, $name) {
$paginator = "";
if($page == $current_page) $paginator .= "$page";
else $paginator .= $this->gen_page_link($base_url, $query, $page, $name);
return $paginator;
}
-
+
+ /**
+ * @param int $current_page
+ * @param int $total_pages
+ * @param string $base_url
+ * @param string $query
+ * @return string
+ */
private function build_paginator($current_page, $total_pages, $base_url, $query) {
$next = $current_page + 1;
$prev = $current_page - 1;
diff --git a/themes/danbooru2/user.theme.php b/themes/danbooru2/user.theme.php
index 9990879e..5c6cae4a 100644
--- a/themes/danbooru2/user.theme.php
+++ b/themes/danbooru2/user.theme.php
@@ -76,6 +76,11 @@ class CustomUserPageTheme extends UserPageTheme {
$page->add_block(new Block("Signup", $html));
}
+ /**
+ * @param Page $page
+ * @param array $uploads
+ * @param array $comments
+ */
public function display_ip_list(Page $page, $uploads, $comments) {
$html = "";
$html .= "Uploaded from: ";
diff --git a/themes/danbooru2/view.theme.php b/themes/danbooru2/view.theme.php
index bd6e5f45..4c441352 100644
--- a/themes/danbooru2/view.theme.php
+++ b/themes/danbooru2/view.theme.php
@@ -1,6 +1,10 @@
set_title("Image {$image->id}: ".html_escape($image->get_tag_list()));
@@ -9,7 +13,11 @@ class CustomViewImageTheme extends ViewImageTheme {
$page->add_block(new Block("Information", $this->build_information($image), "left", 15));
$page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 15));
}
-
+
+ /**
+ * @param Image $image
+ * @return string
+ */
private function build_information(Image $image) {
$h_owner = html_escape($image->get_owner()->name);
$h_ownerlink = "$h_owner";
@@ -50,6 +58,10 @@ class CustomViewImageTheme extends ViewImageTheme {
return $html;
}
+ /**
+ * @param Image $image
+ * @return string
+ */
protected function build_navigation(Image $image) {
//$h_pin = $this->build_pin($image);
$h_search = "
diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php
index 29c0bb3d..9fe38e46 100644
--- a/themes/lite/layout.class.php
+++ b/themes/lite/layout.class.php
@@ -10,7 +10,9 @@
class Layout {
/**
- * turns the Page into HTML
+ * turns the Page into HTML.
+ *
+ * @param Page $page
*/
public function display_page(Page $page) {
global $config, $user;
@@ -210,9 +212,14 @@ EOD;
/**
- * A handy function which does exactly what it says in the method name
+ * A handy function which does exactly what it says in the method name.
+ *
+ * @param Block $block
+ * @param bool $hidable
+ * @param string $salt
+ * @return string
*/
- public function block_to_html($block, $hidable=false, $salt="") {
+ public function block_to_html(Block $block, $hidable=false, $salt="") {
$h = $block->header;
$b = $block->body;
$i = str_replace(' ', '_', $h) . $salt;
@@ -238,6 +245,12 @@ EOD;
return $html;
}
+ /**
+ * @param string $link
+ * @param null|string $desc
+ * @param array $pages_matched
+ * @return null|string
+ */
public function navlinks($link, $desc, $pages_matched) {
/**
* Woo! We can actually SEE THE CURRENT PAGE!! (well... see it highlighted in the menu.)
diff --git a/themes/lite/user.theme.php b/themes/lite/user.theme.php
index 21a6544c..6bcf3370 100644
--- a/themes/lite/user.theme.php
+++ b/themes/lite/user.theme.php
@@ -74,6 +74,11 @@ class CustomUserPageTheme extends UserPageTheme {
$page->add_block(new Block("Signup", $html));
}
+ /**
+ * @param Page $page
+ * @param array $uploads
+ * @param array $comments
+ */
public function display_ip_list(Page $page, $uploads, $comments) {
$html = "";
$html .= "Uploaded from: ";
| | | |