function _imageInfo($imageURLPHP) { list($width, $height, $type, $attr) = getimagesize($imageURLPHP); $types = array(1 => 'GIF', 2 => 'JPG', 3 => 'PNG', 4 => 'SWF', 5 => 'PSD', 6 => 'BMP', 7 => 'TIFF(intel byte order)', 8 => 'TIFF(motorola byte order)', 9 => 'JPC', 10 => 'JP2', 11 => 'JPX', 12 => 'JB2', 13 => 'SWC', 14 => 'IFF', 15 => 'WBMP', 16 => 'XBM'); if ($type) { return $imageInfo = array("width" => $width, "height" => $height, "type" => $types[$type], "size" => AG_helper::_fileRoundSize(filesize($imageURLPHP))); } }
return ' <div class="AG_border_color AG_border_width AG_margin_bottom"> ' . $ag_lang_name . ' / ' . $ag_lang_tag . ' <textarea class="AG_textarea" name="AG_desc_content[]">' . $ag_lang_content . '</textarea><input type="hidden" name="AG_desc_tags[]" value="' . $ag_lang_tag . '" /> </div> '; } $ag_preview_content = ''; $ag_preview_content .= ' <hr /> ' . "\n"; $ag_preview_content .= ' <h1>' . JText::_('CURRENT FOLDER:') . '</h1> <div class="AG_breadcrumbs_wrapper"> ' . AG_helper::_renderBreadcrumb($AG_itemURL, $ag_rootFolder, $ag_folderName, $ag_fileName) . ' </div> <hr /> <table cellspacing="0" cellpadding="0" border="0" class="AG_fieldset"> <tbody> <tr> <td> <img src="' . JURI::root() . 'administrator/components/com_admirorgallery/templates/' . $AG_templateID . '/images/operations.png" style="float:left;" /> </td> <td> ' . JText::_('OPERATION WITH SELECTED ITEMS:') . ' </td> <td> <select id="AG_operations" name="AG_operations"> <option value="none" >' . JText::_('NONE') . '</option>
<h1><img src="' . JURI::root() . 'administrator/components/com_admirorgallery/templates/' . $AG_templateID . '/images/bookmark.png" style="float:left;" /> ' . JText::_("GALLERIES") . '</h1> ' . "\n"; $bookmarkPath = JPATH_SITE . '/administrator/components/com_admirorgallery/assets/bookmarks.xml'; $ag_bookmarks_xml =& JFactory::getXMLParser('simple'); $ag_bookmarks_xml->loadFile($bookmarkPath); if (isset($ag_bookmarks_xml->document->bookmark)) { foreach ($ag_bookmarks_xml->document->bookmark as $key => $value) { echo ' <table border="0" cellspacing="0" cellpadding="0"><tbody><tr> <td><img src="' . JURI::root() . 'administrator/components/com_admirorgallery/templates/' . $AG_templateID . '/images/bookmarkRemove.png" style="float:left;" /></td> <td><input type="checkbox" value="' . $ag_bookmarks_xml->document->bookmark[$key]->data() . '" name="AG_cbox_bookmarkRemove[]"></td> <td><span class="AG_border_color AG_border_width AG_separator"> </span></td> <td> <a href="' . $ag_bookmarks_xml->document->bookmark[$key]->data() . '" class="AG_folderLink AG_common_button" title="' . $ag_bookmarks_xml->document->bookmark[$key]->data() . '"> <span><span> ' . AG_helper::_shrinkString(basename($ag_bookmarks_xml->document->bookmark[$key]->data()), 20, true) . ' </span></span> </a> </td> </tr></tbody></table> ' . "\n"; } } echo ' <div style="clear:both" class="AG_margin_bottom"></div> <hr /> <div class="AG_legend"> <h2>' . JText::_('LEGEND') . '</h2> <table><tbody> <tr> <td><img src="' . JURI::root() . 'administrator/components/com_admirorgallery/templates/' . $AG_templateID . '/images/bookmarkRemove.png" style="float:left;" /></td>