Powered by Firedrive
" COM_FIREDRIVE_NO_DOCUMENTS = "No document found." COM_FIREDRIVE_ERROR_DOCUMENT_NOT_FOUND = "Document not found." COM_FIREDRIVE_NO_FILE_ERROR_MESSAGE = "You forgot to select a file or there was an issue during file upload." @@ -32,6 +32,10 @@ COM_FIREDRIVE_FILTER_SEARCH_DESC = "Search a document by its title" [Categories view] COM_FIREDRIVE_NUM_ITEMS = "Document count" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_TITLE_LABEL = "Nome" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_SIZE_LABEL = "Dimensione" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_CREATION_LABEL = "Creazione" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_LICENSE_LABEL = "Licenza" [Document view] COM_FIREDRIVE_DESCRIPTION_LABEL = "Description" diff --git a/site/language/it-IT/it-IT.com_firedrive.ini b/site/language/it-IT/it-IT.com_firedrive.ini index 2c481ae..7512341 100755 --- a/site/language/it-IT/it-IT.com_firedrive.ini +++ b/site/language/it-IT/it-IT.com_firedrive.ini @@ -5,7 +5,7 @@ COM_FIREDRIVE_VISIBILITY_4_GROUP = "Gruppi selezionati" COM_FIREDRIVE_VISIBILITY_5_AUTHOR = "Autore" [Messages] -COM_FIREDRIVE_CREDITS = "Realizzato con Firedrive" +COM_FIREDRIVE_CREDITS = "Realizzato con Firedrive
" COM_FIREDRIVE_NO_DOCUMENTS = "Nessun documento trovato." COM_FIREDRIVE_ERROR_DOCUMENT_NOT_FOUND = "Documento non trovato." COM_FIREDRIVE_NO_FILE_ERROR_MESSAGE = "Hai dimenticato di selezionare un file o si è verificato un errore durante l'upload." @@ -32,6 +32,10 @@ COM_FIREDRIVE_FILTER_SEARCH_DESC = "Cerca un documento per il titolo" [Categories view] COM_FIREDRIVE_NUM_ITEMS = "Contatore documenti" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_TITLE_LABEL = "Nome" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_SIZE_LABEL = "Dimensione" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_CREATION_LABEL = "Creazione" +COM_FIREDRIVE_CATEGORIES_DOCUMENT_LICENSE_LABEL = "Licenza" [Document view] COM_FIREDRIVE_DESCRIPTION_LABEL = "Descrizione" diff --git a/site/models/category.php b/site/models/category.php index 2ad9c2d..c0834f3 100644 --- a/site/models/category.php +++ b/site/models/category.php @@ -63,7 +63,6 @@ public function __construct($config = array()) 'title', 'a.title', 'state', 'a.state', 'ordering', 'a.ordering', - 'description', 'a.description', 'created', 'a.created', 'file_size', 'a.file_size', ); diff --git a/site/views/categories/tmpl/default.php b/site/views/categories/tmpl/default.php index 10c6684..5ad1e63 100644 --- a/site/views/categories/tmpl/default.php +++ b/site/views/categories/tmpl/default.php @@ -36,6 +36,6 @@ loadTemplate('items'); - echo JText::_('COM_FIREDRIVE_CREDITS'); + echo JFactory::getSession()->get('fdkey'); ?> diff --git a/site/views/category/tmpl/default.php b/site/views/category/tmpl/default.php index 2934d0e..9595bf3 100644 --- a/site/views/category/tmpl/default.php +++ b/site/views/category/tmpl/default.php @@ -11,4 +11,4 @@ $this->subtemplatename = 'items'; echo JLayoutHelper::render('joomla.content.category_default', $this); -echo JText::_('COM_FIREDRIVE_CREDITS'); +echo JFactory::getSession()->get('fdkey'); \ No newline at end of file diff --git a/site/views/category/tmpl/default.xml b/site/views/category/tmpl/default.xml index 65e7b64..d3fbe93 100644 --- a/site/views/category/tmpl/default.xml +++ b/site/views/category/tmpl/default.xml @@ -75,9 +75,6 @@ - @@ -162,12 +159,12 @@+ + | + + | + params->get('category_show_document_created_by') == 1; + $show_created = $this->params->get('category_show_document_created') == 1 + ?> + params->get('category_show_document_file_size') == 1): ?> ++ + + | + + params->get('show_download_in_category_view', 1)) : ?> + | + + |
---|---|---|---|---|
+ items[$i]->icon)) echo JHtml::_('image', $this->items[$i]->icon, JText::_('COM_FIREDRIVE_IMAGE_DETAILS'), array('class' => 'document-thumbnail img-thumbnail', 'alt' => '')); ?> + | +
+
+ params->get('show_link_on_title_in_category_view', 1) == 1): ?>
+
+ title; ?>
+
+
+ title; ?>
+
- title; ?>- - - items[$i]->state == 0) : ?> - - - - params->get('category_show_document_new', 1)) : ?> + event->afterDisplayTitle; ?> + + items[$i]->state == 0) : ?> + + + params->get('category_show_document_new', 1)) : + $created = JFactory::getDate($this->items[$i]->created)->toUnix(); + $limit = JFactory::getDate('now -' . $this->params->get('new_duration_limit', 7) . ' day')->toUnix(); + if ($created >= $limit) echo '', JText::_('COM_FIREDRIVE_NEW'), ''; + endif; ?> + + params->get('category_show_document_license') == 1 && $item->license): ?> + : items[$i]->created)->toUnix(); - $limit = JFactory::getDate('now -' . $this->params->get('new_duration_limit', 7) . ' day')->toUnix(); + if (empty($item->license_link)): + echo '' . $item->license . ''; + else: + echo $item->license; + endif; ?> - - = $limit) : ?> - - - - - event->afterDisplayTitle; ?> - - params->get('category_show_document_created_by') == 1 && !empty($item->created_by)) - { - $details[] = $item->created_by_name; - } - if ($this->params->get('category_show_document_created') == 1 && !empty($item->created)) - { - $details[] = $item->created; - } - if ($this->params->get('category_show_document_file_size') == 1 && !empty($item->file_size)) - { - $file_size = FiredriveHelper::convertToReadableSize($item->file_size); - $details[] = $file_size; - } - if ($this->params->get('category_show_document_license') == 1 && !empty($item->license)) - { - if (!empty($item->license_link)) - { - $details[] = '' . $item->license . ''; - } - else - { - $details[] = $item->license; - } - } - - echo implode($details, ' - '); - ?> - - event->beforeDisplayContent; ?> - - - |
-
-
-
-
- event->afterDisplayContent; ?>
-
-
+ event->beforeDisplayContent; ?>
+ params->get('category_show_document_file_size') == 1): ?>
+ + file_size); ?> + | + + ++ created_by_name; ?> + '; ?> + created; ?> + | + + params->get('show_download_in_category_view', 1)) : ?> ++ id, '&format=raw'), '" class="btn btn-default">', JText::_('COM_FIREDRIVE_DOWNLOAD_BUTTON'), ''; ?> + | + +