$last_link = $link1->paint(); } else { $last_link = 'last >>'; } // Display each image. Let the user trash ’em as needed. if ($page->imageList) { if (count($page->imageList) > 1) { $row_divider .= '<hr/>'; } foreach ($page->imageList as $key => $val) { $ref_id = $val['image_reference_id']; if (count($page->imageList) > 1) { $link1->url('book.page-edit.php?page_id=' . $page_id . '&remove_id=' . $key); $link1->tap(' Delete this image'); $link1->title('Permanently delete the graphic from this comic page. There is no undo. Do not pass go. Do not collect 200 cubits.'); $link1->anchor_class('warning'); $link1->icon('delete'); $delete_me = $link1->paint(); } if (is_file('../' . $milieu_list['directory']['value'] . $val['url'])) { $image_dimensions = getimagesize('../' . $milieu_list['directory']['value'] . $val['url']); $image_bytes = filesize('../' . $milieu_list['directory']['value'] . $val['url']); $weight = figure_pixel_weight($image_dimensions[0], $image_dimensions[1], $image_bytes); } else { $weight = 0; } $weight = round($weight, 3); !$milieu_list['directory']['value'] || $milieu_list['directory']['value'] == '' ? $url_prefix = '../' : ($url_prefix = '../'); $this_image = '<img src="' . $url_prefix . $milieu_list['directory']['value'] . $val['url'] . '" alt="' . $val['description'] . '"/>' . "\n"; $link1->title = 'Learn more about pixel weight'; $link1->url = 'http://getgrawlix.com/docs/' . DOCS_VERSION . '/image-optimization';