From ee30c6d06e01fe8c5c9ec4e811aa0ec380adeb41 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:24:44 -0500 Subject: [PATCH] Image to Post - artists --- ext/artists/theme.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/ext/artists/theme.php b/ext/artists/theme.php index 0041d495..f3a52d24 100644 --- a/ext/artists/theme.php +++ b/ext/artists/theme.php @@ -27,19 +27,19 @@ class ArtistsTheme extends Themelet "; } - + if ($mode == "editor") { $html = "
".$user->get_auth_html()."
- +
".$user->get_auth_html()."
"; - + if ($is_admin) { $html .= "
".$user->get_auth_html()." @@ -47,19 +47,19 @@ class ArtistsTheme extends Themelet
"; } - + $html .= "
".$user->get_auth_html()."
- +
".$user->get_auth_html()."
- +
".$user->get_auth_html()." @@ -131,7 +131,7 @@ class ArtistsTheme extends Themelet global $page; $page->add_block(new Block("Edit artist", $html, "main", 10)); } - + public function new_artist_composer() { global $page, $user; @@ -152,7 +152,7 @@ class ArtistsTheme extends Themelet $page->set_heading("Artists"); $page->add_block(new Block("Artists", $html, "main", 10)); } - + public function list_artists($artists, $pageNumber, $totalPages) { global $user, $page; @@ -167,7 +167,7 @@ class ArtistsTheme extends Themelet if (!$user->is_anonymous()) { $html .= "Action"; } // space for edit link - + $html .= ""; $deletionLinkActionArray = [ @@ -244,7 +244,7 @@ class ArtistsTheme extends Themelet -
+ '; global $page; @@ -354,7 +354,7 @@ class ArtistsTheme extends Themelet "; - + if ($userIsLogged) { $html .= ""; } @@ -402,13 +402,13 @@ class ArtistsTheme extends Themelet $artist_images = ""; foreach ($images as $image) { $thumb_html = $this->build_thumb_html($image); - + $artist_images .= ''. ''.$thumb_html.''. ''; } - - $page->add_block(new Block("Artist Images", $artist_images, "main", 20)); + + $page->add_block(new Block("Artist Posts", $artist_images, "main", 20)); } private function render_aliases(array $aliases, bool $userIsLogged, bool $userIsAdmin): string @@ -548,11 +548,11 @@ class ArtistsTheme extends Themelet public function get_help_html() { - return '

Search for images with a particular artist.

+ return '

Search for posts with a particular artist.

artist=leonardo
-

Returns images with the artist "leonardo".

-
+

Returns posts with the artist "leonardo".

+ '; } }