} // add trailer information from this item, if any if (isset($item['trailer']) && trim($item['trailer'])) { $context['text'] .= Codes::beautify($item['trailer']); } // insert anchor suffix if (is_object($anchor)) { $context['text'] .= $anchor->get_suffix(); } // // extra panel // // page tools // // only on first page, and for associates or editors if (!$zoom_type && (Surfer::is_associate() || $this_cat->is_assigned())) { // add a category if ($this_cat->allow_creation()) { Skin::define_img('CATEGORIES_ADD_IMG', 'categories/add.gif'); $context['page_tools'][] = Skin::build_link('categories/edit.php?anchor=' . urlencode('category:' . $item['id']), CATEGORIES_ADD_IMG . i18n::s('Add a category'), 'basic'); } // post an image, if upload is allowed if (Images::allow_creation($item, $anchor, 'category')) { Skin::define_img('IMAGES_ADD_IMG', 'images/add.gif'); $context['page_tools'][] = Skin::build_link('images/edit.php?anchor=' . urlencode('category:' . $item['id']), IMAGES_ADD_IMG . i18n::s('Add an image'), 'basic', i18n::s('You can upload a camera shot, a drawing, or another image file.')); } // add a file, if upload is allowed if (Files::allow_creation($item, $anchor, 'category')) { Skin::define_img('FILES_UPLOAD_IMG', 'files/upload.gif'); $context['page_tools'][] = Skin::build_link('files/edit.php?anchor=' . urlencode('category:' . $item['id']), FILES_UPLOAD_IMG . i18n::s('Add a file'), 'basic', i18n::s('Attach related files.')); }