Файловый менеджер - Редактировать - /var/www/html/mod_jdownloads_latest.zip
Ðазад
PK ! �̌[y y mod_jdownloads_latest.phpnu �[��� <?php /** * @version $Id: mod_jdownloads_top.php v4.0 * @package mod_jdownloads_top * @copyright (C) 2022 Arno Betz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @author Arno Betz http://www.jDownloads.com */ /** This Modul shows the newest added downloads from the component jDownloads. */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\HTML\HTMLHelper; use JDownloads\Module\JDownloadsLatest\Site\Helper\JDownloadsLatestHelper; use JDownloads\Component\JDownloads\Site\Model\DownloadsModel; use Joomla\CMS\Language\Text; use Joomla\Database\DatabaseInterface; $app = Factory::getApplication(); $db = Factory::getContainer()->get(DatabaseInterface::class); $input = $app->getInput(); $Itemid = $input->get('Itemid'); $model = $app->bootComponent('com_jdownloads')->getMVCFactory()->createModel('Downloads', 'Site', ['ignore_request' => true]); //add css $document = Factory::getApplication()->getDocument(); // Add bootstrap css and tooltip HTMLHelper::_('bootstrap.loadCss', true, $document->direction); HTMLHelper::_('bootstrap.tooltip', '.has-tooltip'); $document->addStyleSheet( Uri::base()."components/com_jdownloads/assets/css/jdownloads_modules.css"); // get published root menu link $db->setQuery("SELECT id from #__menu WHERE link = 'index.php?option=com_jdownloads&view=categories' and published = 1 AND client_id = 0"); $root_itemid = $db->loadResult(); if ($root_itemid){ $Itemid = $root_itemid; } // get this option from configuration to see whether the links shall run the download without summary page $jdparams = $app->getParams('com_jdownloads'); $direct_download_config = $jdparams->get('direct_download'); $detail_view_config = $jdparams->get('view_detailsite'); $text_before = ''; // assume no text before $before = $params->get( 'text_before' ); if($before != '') { $before = trim($before); //only here if not empty $text_before = JDownloadsLatestHelper::getOnlyLanguageSubstring($before); } $text_after = ''; // assume no text after $after = $params->get( 'text_after' ); if($after != '') { $after = trim($after); //only here if not empty $text_after = JDownloadsLatestHelper::getOnlyLanguageSubstring($after); } $catid = $params->get('catid', array()); $sum_view = intval($params->get( 'sum_view' )); $sum_char = intval($params->get( 'sum_char' )); $short_char = $params->get( 'short_char', '...' ) ; $short_version = $params->get( 'short_version' ); $detail_view = $params->get( 'detail_view' ) ; $view_date = $params->get( 'view_date' ) ; $view_date_same_line = $params->get( 'view_date_same_line' ); $view_date_text = $params->get( 'view_date_text' ); $view_date_text = JdownloadsLatestHelper::getOnlyLanguageSubstring($view_date_text); // We use the standard short date format from the activated language when a format is not defined $date_format = $params->get( 'date_format', Text::_('DATE_FORMAT_LC4') ); $date_alignment = $params->get( 'date_alignment' ); $view_pics = $params->get( 'view_pics' ) ; $view_pics_size = $params->get( 'view_pics_size' ) ; $view_pics_link = $params->get( 'view_pics_link' ) ; $view_numerical_list = $params->get( 'view_numerical_list' ); $view_thumbnails = $params->get( 'view_thumbnails' ); $view_thumbnails_size = $params->get( 'view_thumbnails_size' ); $view_thumbnails_dummy = $params->get( 'view_thumbnails_dummy' ); $view_thumbnails_link = $params->get( 'view_thumbnails_link' ) ; $cat_show = $params->get( 'cat_show' ); $cat_show_type = $params->get( 'cat_show_type' ); $cat_show_text = $params->get( 'cat_show_text' ); $cat_show_text = JDownloadsLatestHelper::getOnlyLanguageSubstring($cat_show_text); $cat_show_text_color = $params->get( 'cat_show_text_color' ); $cat_show_text_size = $params->get( 'cat_show_text_size' ); $cat_show_as_link = $params->get( 'cat_show_as_link' ); $view_tooltip = $params->get( 'view_tooltip' ); $view_tooltip_length = intval($params->get( 'view_tooltip_length' ) ); $alignment = $params->get( 'alignment' ); $thumbfolder = Uri::base().'images/jdownloads/screenshots/thumbnails/'; $thumbnail = ''; $border = ''; if($view_date_text != '') $view_date_text = trim($view_date_text).' '; //only here if not empty if($cat_show_text != '') $cat_show_text = trim($cat_show_text).' '; if ($sum_view == 0) $sum_view = 5; $option = 'com_jdownloads'; $layout = $params->get('layout', 'default'); // see if the selected layout contains 'alternate' from jD3.2 series, if yes switch to default (needed if update from earlier versions) if(strpos($layout, 'alternate') !== false) { $layout = '_:default'; //for some reason the layouts from "$params->get('layout', 'default')" are preceded by "_:" } $files = JDownloadsLatestHelper::getList($params, $model); if (!count($files)) { return; } $moduleclass_sfx = $params->get('moduleclass_sfx'); if($moduleclass_sfx != '') { $moduleclass_sfx = htmlspecialchars($moduleclass_sfx); //only here if not empty } require ModuleHelper::getLayoutPath('mod_jdownloads_latest', $layout); ?>PK ! ]u 9 9 % src/Helper/JDownloadsLatestHelper.phpnu �[��� <?php /** * @version $Id: mod_jdownloads_latest.php v4.0 * @package mod_jdownloads_latest * @copyright (C) 2022 Arno Betz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @author Arno Betz http://www.jDownloads.com */ namespace JDownloads\Module\JDownloadsLatest\Site\Helper; \defined('_JEXEC') or die; use Joomla\CMS\Access\Access; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Router\Route; use Joomla\Registry\Registry; use Joomla\Utilities\ArrayHelper; use Joomla\CMS\Language\Text; use Joomla\Database\DatabaseInterface; use JDownloads\Component\JDownloads\Site\Helper\RouteHelper; use JDownloads\Component\JDownloads\Site\Model\DownloadsModel; abstract class JDownloadsLatestHelper { public static function getList(&$params, $model) { $db = Factory::getContainer()->get(DatabaseInterface::class); $app = Factory::getApplication(); // Set application parameters in model $appParams = $app->getParams('com_jdownloads'); $model->setState('params', $appParams); // Set the filters based on the module params $model->setState('list.start', 0); $model->setState('list.limit', (int) $params->get('sum_view', 5)); $model->setState('filter.published', 1); // Access filter $model->setState('filter.access', true); $model->setState('filter.user_access', true); $access = true; $authorised = Access::getAuthorisedViewLevels(Factory::getUser()->get('id')); // Category filter $catid = $params->get('catid', array()); if (empty($catid)){ $model->setState('filter.category_id', ''); } else { $model->setState('filter.category_id', $catid); } // User filter $userId = Factory::getUser()->get('id'); // Filter by language $model->setState('filter.language', $app->getLanguageFilter()); // Set sort ordering $ordering = 'a.created'; $dir = 'DESC'; $model->setState('list.ordering', $ordering); $model->setState('list.direction', $dir); $items = $model->getItems(); foreach ($items as &$item) { $item->slug = $item->id . ':' . $item->alias; $item->catslug = $item->catid . ':' . $item->category_alias; if ($access || in_array($item->access, $authorised)) { // We know that user has the privilege to view the download $item->link = '-'; } else { $item->link = Route::_('index.php?option=com_users&view=login'); } } return $items; } /** * remove the language tag from a given text and return only the text * * @param string $msg */ public static function getOnlyLanguageSubstring($msg) { // Get the current locale language tag $lang = Factory::getApplication()->getLanguage(); $lang_key = $lang->getTag(); if ($msg == '' ) { return $msg; } // Remove the language tag from the text $startpos = strpos($msg, '{'.$lang_key.'}') + strlen( $lang_key) + 2 ; $endpos = strpos($msg, '{/'.$lang_key.'}') ; if ($startpos !== false && $endpos !== false){ return substr($msg, $startpos, ($endpos - $startpos )); } else { return $msg; } } } ?>PK ! �lÒn n . language/en-GB/en-GB.mod_jdownloads_latest.ininu �[��� ; mod_jdownloads_latest 4.0 ; CAM v2 - 03-08-2020 ; language file ; Note : All ini files need to be saved as UTF-8 - No BOM ; Note for translators: ; Most of the keys in the Latest, Top and Updated modules have the same text. ; MOD_JDOWNLOADS_LATEST="jDownloads Latest" MOD_JDOWNLOADS_LATEST_XML_DESCRIPTION="This Module shows the most recently added downloads from the component jDownloads." MOD_JDOWNLOADS_LATEST_TEXT_BEFORE_TITLE="Text before" MOD_JDOWNLOADS_LATEST_TEXT_BEFORE_DESC="The text entered here will be shown at the top of the module." MOD_JDOWNLOADS_LATEST_TEXT_AFTER_TITLE="Text after" MOD_JDOWNLOADS_LATEST_TEXT_AFTER_DESC="The text entered here will be shown at the foot of the module." MOD_JDOWNLOADS_LATEST_CAT_ID_TITLE="Category" MOD_JDOWNLOADS_LATEST_CAT_ID_DESC="Selects Downloads from one or more Categories. If no selection is made then Downloads from all Categories will be shown." MOD_JDOWNLOADS_LATEST_NO_FILES_TITLE="Number of downloads" MOD_JDOWNLOADS_LATEST_NO_FILES_DESC="The maximum number of Downloads that will be listed." MOD_JDOWNLOADS_LATEST_TITLE_CHAR_LENGTH_TITLE="Number of characters" MOD_JDOWNLOADS_LATEST_TITLE_CHAR_LENGTH_DESC="Truncates the download title that will be shown to this maximum value. If this field is empty, the complete title is shown." MOD_JDOWNLOADS_LATEST_TITLE_REPLACE_CHAR_TITLE="Characters added at the end of truncated title" MOD_JDOWNLOADS_LATEST_TITLE_REPLACE_CHAR_DESC="This text that will only be shown at the end of a truncated title, this is often an ellipsis (...) to indicate that the title has been truncated." MOD_JDOWNLOADS_LATEST_LINK_TO_DETAIL_TITLE="Linked to download-detail page?" MOD_JDOWNLOADS_LATEST_LINK_TO_DETAIL_DESC="If Yes, clicking on a listed download will take the user to the download-detail page. If No then it goes to the Category." MOD_JDOWNLOADS_LATEST_SHOW_DATE_TITLE="Show creation date?" MOD_JDOWNLOADS_LATEST_SHOW_DATE_DESC="If Yes, the creation date of the Downloads is shown." MOD_JDOWNLOADS_LATEST_VIEW_DATE_IN_THE_SAME_LINE_TITLE="Display date in the same line?" MOD_JDOWNLOADS_LATEST_VIEW_DATE_IN_THE_SAME_LINE_DESC="If yes, the date is shown on the same line as the download title. If no, the date is shown on a new line below the download title." MOD_JDOWNLOADS_LATEST_VIEW_DATE_TEXT_TITLE="Date Label" MOD_JDOWNLOADS_LATEST_VIEW_DATE_TEXT_DESC="If a label is supplied it will be displayed directly in front of the date on each file. To disable this feature simply leave the box empty." MOD_JDOWNLOADS_LATEST_DATE_FORMAT_TITLE="Date format" MOD_JDOWNLOADS_LATEST_DATE_FORMAT_DESC="For more information about the format see: http://www.php.net/manual/en/function.date.php." MOD_JDOWNLOADS_LATEST_DATE_ALIGN_TITLE="Date alignment" MOD_JDOWNLOADS_LATEST_DATE_ALIGN_DESC="Alignment of the date is only possible when the date is shown on a seperate line." MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC="View assigned Icon?" MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_DESC="If Yes then the assigned file type icon is shown prior to the file title at a size as defined below." MOD_JDOWNLOADS_LATEST_SET_SIZE_FROM_MIME_PICS="Size of the Icon" MOD_JDOWNLOADS_LATEST_SET_SIZE_FROM_MIME_PICS_DESC="Sets the size of the Icon in pixels. This value is used for the height and the width. Default is 18." MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_LINK="Link in Icon?" MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_LINK_DESC="If Yes then the assigned file type icon will have a link to the Download or Category. If No then the icon has no link. The Title always has a link. Default is Yes" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_TITLE="View assigned Thumbnail?" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DESC="If Yes then the first assigned thumbnail is shown at the size defined below." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_SIZE_TITLE="Size of the Thumbnail" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_SIZE_DESC="Sets the size of the Thumbnail in pixels. This value is used for the height and the width. Default is: 100." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_LINK_TITLE="Link in thumbnail?" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_LINK_DESC="If Yes a link to Download Details, Summary or the Category is included. When set to No there is no link." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DUMMY_TITLE="Show the <i>No Picture</i> thumbnail?" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DUMMY_DESC="Shows the <i>No Picture</i> thumbnail for downloads without an image, see configuration for more details." MOD_JDOWNLOADS_LATEST_VIEW_NUMERICAL_LIST="View as a numerical list?" MOD_JDOWNLOADS_LATEST_VIEW_NUMERICAL_LIST_DESC="If Yes then each entry is preceded by its number in the list, starting at unity." MOD_JDOWNLOADS_LATEST_ALIGN_TITLE="Alignment" MOD_JDOWNLOADS_LATEST_ALIGN_DESC="Alignment of each entry shown by the module." MOD_JDOWNLOADS_LATEST_CHAR_BEFORE_RELEASE_TITLE="Version prefix character?" MOD_JDOWNLOADS_LATEST_CHAR_BEFORE_RELEASE_DESC="Prefix character shown before the version value, for example if the version was 1-2 and the prefix character is V then version number shown would be V1-2." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TITLE="Show categories?" MOD_JDOWNLOADS_LATEST_CAT_SHOW_DESC="If Yes then the category or categories, as defined in the <i>Category type</i> option below, that contain the Download will be displayed on a separate line." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_TITLE="Category type" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_DESC="If 'All Categories' then all the parent categories of the containing category will be displayed. If 'Containing Category' then ONLY the category that actually contains the file will be displayed. The 'Show categories' option above MUST be enabled for this option to work." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_ALL="All Categories" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_CONTAINING="Containing Category" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_TITLE="Text before Category name" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_SIZE="Category Font Size" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_COLOR="Category Font Color" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_DESC="Only used when the category title is not viewed as a link." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_AS_LINK="View Category Title as a Link?" MOD_JDOWNLOADS_LATEST_VIEW_TOOLTIP="View Download Description as a Tooltip?" MOD_JDOWNLOADS_LATEST_VIEW_TOOLTIP_LENGTH="Description length" ; Advanced Options MOD_JDOWNLOADS_LATEST_CLASS_SUFFIX_TITLE="Module Class Suffix" MOD_JDOWNLOADS_LATEST_CLASS_SUFFIX_DESC="A suffix to be applied to the css class of the module (moduletable) to allow individual module styling." MOD_JDOWNLOADS_LATEST_CACHE_LABEL="Caching" MOD_JDOWNLOADS_LATEST_CACHE_DESCRIPTION="Select whether to cache the content of this module." MOD_JDOWNLOADS_LATEST_CACHE_TIME_LABEL="Cache Time" MOD_JDOWNLOADS_LATEST_CACHE_TIME_DESCRIPTION="The time before the module is recached." MOD_JDOWNLOADS_LATEST_LAYOUT_TITLE="Select Layout" MOD_JDOWNLOADS_LATEST_LAYOUT_DESC="Use a different layout from the supplied module or overrides in the templates." MOD_JDOWNLOADS_LATEST_DESCRIPTION_TITLE="Description" ; drop down list entries etc MOD_JDOWNLOADS_LATEST_CACHE_USE_GLOBAL="Use global" MOD_JDOWNLOADS_LATEST_CACHE_NO_CACHING="No caching" MOD_JDOWNLOADS_LATEST_YES="Yes" MOD_JDOWNLOADS_LATEST_NO="No" MOD_JDOWNLOADS_LATEST_RIGHT="Right" MOD_JDOWNLOADS_LATEST_LEFT="Left" MOD_JDOWNLOADS_LATEST_CENTER="Centre" MOD_JDOWNLOADS_LATEST_SPACER="-------------------------------------------------------"PK ! D�� 2 language/en-GB/en-GB.mod_jdownloads_latest.sys.ininu �[��� ; mod_jdownloads_latest ; CAM 3.2 v1A - 03-08-2014 ; language file ; Note : All ini files need to be saved as UTF-8 - No BOM ; MOD_JDOWNLOADS_LATEST="jDownloads Latest" MOD_JDOWNLOADS_LATEST_XML_DESCRIPTION="This Module shows the latest downloads added by the component jDownloads."PK ! �Xڭ� � 2 language/de-DE/de-DE.mod_jdownloads_latest.sys.ininu �[��� ; mod_jdownloads_latest 3.2 ; language file ; Note : All ini files need to be saved as UTF-8 - No BOM ; MOD_JDOWNLOADS_LATEST="jDownloads Latest" MOD_JDOWNLOADS_LATEST_XML_DESCRIPTION="Dieses Modul zeigt die neuesten Downloads von jDownloads an."PK ! �j! ! . language/de-DE/de-DE.mod_jdownloads_latest.ininu �[��� ; mod_jdownloads_latest 4.0 ; Arno Betz ; language file ; Note : All ini files need to be saved as UTF-8 - No BOM ; Note for translators: ; Most of the keys in the Latest, Top and Updated modules have the same text. ; MOD_JDOWNLOADS_LATEST="jDownloads Latest" MOD_JDOWNLOADS_LATEST_XML_DESCRIPTION="Dieses Modul zeigt die neuesten Downloads von jDownloads an." MOD_JDOWNLOADS_LATEST_TEXT_BEFORE_TITLE="Text am Anfang" MOD_JDOWNLOADS_LATEST_TEXT_BEFORE_DESC="Hier kann beliebiger Text angegeben werden. Dieser wird vor den Downloads angezeigt." MOD_JDOWNLOADS_LATEST_TEXT_AFTER_TITLE="Text am Ende" MOD_JDOWNLOADS_LATEST_TEXT_AFTER_DESC="Hier kann beliebiger Text angegeben werden. Dieser hinter den Downloads angezeigt." MOD_JDOWNLOADS_LATEST_CAT_ID_TITLE="Kategorie" MOD_JDOWNLOADS_LATEST_CAT_ID_DESC="Sollen nur Downloads von bestimmten Kategorien angezeigt werden, können diese hier ausgewählt werden. Ansonsten werden Downloads von allen Kategorien angezeigt." MOD_JDOWNLOADS_LATEST_NO_FILES_TITLE="Anzahl der Downloads" MOD_JDOWNLOADS_LATEST_NO_FILES_DESC="Wie viele Downloads soll das Module anzeigen." MOD_JDOWNLOADS_LATEST_TITLE_CHAR_LENGTH_TITLE="Titellänge festlegen" MOD_JDOWNLOADS_LATEST_TITLE_CHAR_LENGTH_DESC="Wieviele Zeichen darf ein Download Titel (inkl. Versionsbezeichnung) beinhalten, bevor der Titel gekürzt wird. Existiert hier kein Wert, wird der Titel komplett angezeigt." MOD_JDOWNLOADS_LATEST_TITLE_REPLACE_CHAR_TITLE="Zeichenfolge am Ende" MOD_JDOWNLOADS_LATEST_TITLE_REPLACE_CHAR_DESC="Hier kann eine Zeichenfolge eingegeben werden, welche am Ende eines gekürzten Titels angehängt werden soll." MOD_JDOWNLOADS_LATEST_LINK_TO_DETAIL_TITLE="Link zur Detailansicht" MOD_JDOWNLOADS_LATEST_LINK_TO_DETAIL_DESC="Wenn Ja, wird beim Klick auf den Titel die Download Detailseite angezeigt. Bei Nein, wird die entsprechende Kategorie angezeigt." MOD_JDOWNLOADS_LATEST_SHOW_DATE_TITLE="Datum anzeigen" MOD_JDOWNLOADS_LATEST_SHOW_DATE_DESC="Wenn Ja, wird auch das Erstelldatum des Downloads angezeigt." MOD_JDOWNLOADS_LATEST_VIEW_DATE_IN_THE_SAME_LINE_TITLE="Datum in der selben Zeile anzeigen" MOD_JDOWNLOADS_LATEST_VIEW_DATE_IN_THE_SAME_LINE_DESC="Wenn Ja, wird das Datum neben dem Download Titel angezeigt. Wenn Nein, unterhalb des Titels." MOD_JDOWNLOADS_LATEST_VIEW_DATE_TEXT_TITLE="Text vor Datum" MOD_JDOWNLOADS_LATEST_VIEW_DATE_TEXT_DESC="Wenn ein Text hier angegeben wird, wird er direkt vor dem Datum jeder Datei angezeigt. Um diese Funktion zu deaktivieren, lassen Sie das Feld einfach leer." MOD_JDOWNLOADS_LATEST_DATE_FORMAT_TITLE="Datumsformat" MOD_JDOWNLOADS_LATEST_DATE_FORMAT_DESC="Wenn nichts angegeben wird ein kurzes Standardformat verwendet (auch empfohlen für mehrsprachige Webseiten). Informationen zu anderen möglichen Formaten sind hier zu finden http://www.php.net/manual/de/function.date.php" MOD_JDOWNLOADS_LATEST_DATE_ALIGN_TITLE="Ausrichtung des Datums" MOD_JDOWNLOADS_LATEST_DATE_ALIGN_DESC="Ausrichtung des Datums (links, rechts oder zentriert)." MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC="Dateisymbol anzeigen" MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_DESC="Wenn Ja, wird vor dem Titel das dem Format entsprechende Dateisymbol angezeigt (in der unten festgelegten Größe)." MOD_JDOWNLOADS_LATEST_SET_SIZE_FROM_MIME_PICS="Größe des Dateisymbols" MOD_JDOWNLOADS_LATEST_SET_SIZE_FROM_MIME_PICS_DESC="Hier kann die Größe des Dateisysmbols festgelegt werden. Der angegebene Wert (in px) gilt für die Breite und Höhe. Standardwert ist: 18." MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_LINK="Link in Dateityp Symbol?" MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_LINK_DESC="Wenn ja, enthält das Symbol für den zugewiesenen Dateityp einen Link zum Download oder zur Kategorie. Wenn Nein, dann hat das Symbol keinen Link. Der Titel hat immer einen Link. Standard ist Ja." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_TITLE="Screenshot anzeigen (Thumbnail)" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DESC="Wenn Ja, wird auch das (erste) dem Download zugewiesene Bild (Thumbnail) in der unten festgelegten Größe angezeigt." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_SIZE_TITLE="Größe des Bildes" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_SIZE_DESC="Hier kann die Größe des Bildes (Thumbnail) angegeben werden. Der angegebene Wert (in px) gilt für die Breite und Höhe. Standardwert ist: 100." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_LINK_TITLE="Link in Miniaturbild" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_LINK_DESC="Bei Ja wird ein Link zum Herunterladen von Details, einer Zusammenfassung oder zur Kategorie eingefügt." MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DUMMY_TITLE="Anzeige des Bild Platzhalters" MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DUMMY_DESC="Existiert für einen Download kein Bild, so kann stattdessen das Symbol für 'Kein Bild!' angezeigt werden (siehe Konfiguration)." MOD_JDOWNLOADS_LATEST_VIEW_NUMERICAL_LIST="Als numerische Liste anzeigen" MOD_JDOWNLOADS_LATEST_VIEW_NUMERICAL_LIST_DESC="Wenn Ja, wird vor jedem Download eine fortlaufende Nummer angezeigt (z.B. 1.)." MOD_JDOWNLOADS_LATEST_ALIGN_TITLE="Modul Ausrichtung" MOD_JDOWNLOADS_LATEST_ALIGN_DESC="Ausrichtung des Module Inhalts" MOD_JDOWNLOADS_LATEST_CHAR_BEFORE_RELEASE_TITLE="Zeichenfolge für Version" MOD_JDOWNLOADS_LATEST_CHAR_BEFORE_RELEASE_DESC="Die hier angegebene Zeichenfolge wird vor der Versionsnummer angezeigt (z.B. v, oder version)." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TITLE="Kategorien anzeigen" MOD_JDOWNLOADS_LATEST_CAT_SHOW_DESC="Bei 'Ja', wird zu jedem Download auch die dazugehörende Kategorie (sofern zugewiesen) angezeigt." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_TITLE="Art der Kategorien Anzeige" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_DESC="Um diese Option nutzen zu können, muss die Anzeige der Kategorien (oben) aktiviert sein. Bei Auswahl: 'Alle Kategorien', werden die Kategorien inkl. eventueller Eltern-Kategorien angezeigt. Bei: 'Nur zugewiesene Kategorie', wird nur die dazugehörende Kategorie des jeweiligen Downloads angezeigt." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_ALL="Alle Kategorien" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_CONTAINING="Nur zugewiesene Kategorie" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_TITLE="Text zwischen Download Titel und Kategorienbezeichnung" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_SIZE="Kategorie Schriftgröße" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_COLOR="Kategorie Schriftfarbe" MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_DESC="Nur verwendet, wenn der Kategorien Titel nicht als Link angezeigt wird." MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_AS_LINK="Kategorien Titel als Link" MOD_JDOWNLOADS_LATEST_VIEW_TOOLTIP="Beschreibung anzeigen in Tooltip" MOD_JDOWNLOADS_LATEST_VIEW_TOOLTIP_LENGTH="Länge der Beschreibung" ; Advanced Options MOD_JDOWNLOADS_LATEST_CLASS_SUFFIX_TITLE="Modulklassensuffix" MOD_JDOWNLOADS_LATEST_CLASS_SUFFIX_DESC="Ein Suffix welches an die CSS-Klasse des Moduls angehangen wird. Dadurch besteht die Möglichkeit ein individuelles Modul Layout zu erstellen." MOD_JDOWNLOADS_LATEST_CACHE_LABEL="Caching" MOD_JDOWNLOADS_LATEST_CACHE_DESCRIPTION="Festlegen ob der Inhalt dieses Moduls zwischengespeichert werden soll (Cache-Funktion)." MOD_JDOWNLOADS_LATEST_CACHE_TIME_LABEL="Cache Zeit" MOD_JDOWNLOADS_LATEST_CACHE_TIME_DESCRIPTION="Die Zeit (in Sekunden) bevor das Modul neu zwischengespeichert wird (Cache-Funktion)." MOD_JDOWNLOADS_LATEST_LAYOUT_TITLE="Layout auswählen" MOD_JDOWNLOADS_LATEST_LAYOUT_DESC="Verwendung eines alternativen Layouts." MOD_JDOWNLOADS_LATEST_DESCRIPTION_TITLE="Beschreibung" ; drop down list entries etc MOD_JDOWNLOADS_LATEST_CACHE_USE_GLOBAL="Globale Einstellung" MOD_JDOWNLOADS_LATEST_CACHE_NO_CACHING="Keine Zwischenspeicherung" MOD_JDOWNLOADS_LATEST_YES="Ja" MOD_JDOWNLOADS_LATEST_NO="Nein" MOD_JDOWNLOADS_LATEST_RIGHT="Rechts" MOD_JDOWNLOADS_LATEST_LEFT="Links" MOD_JDOWNLOADS_LATEST_CENTER="Zentriert" MOD_JDOWNLOADS_LATEST_SPACER="-------------------------------------------------------"PK ! ��W�V. V. mod_jdownloads_latest.xmlnu �[��� <?xml version="1.0" encoding="utf-8"?> <extension type="module" client="site" version="4.0" method="upgrade"> <name>jDownloads Latest</name> <author>Arno Betz</author> <creationDate>2026-02-10</creationDate> <copyright>(C) 2009-2026 Arno Betz. All rights reserved.</copyright> <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> <authorEmail>info@jdownloads.com</authorEmail> <authorUrl>www.jDownloads.com</authorUrl> <version>4.1</version> <description>MOD_JDOWNLOADS_LATEST_XML_DESCRIPTION</description> <namespace path="src">JDownloads\Module\JDownloadsLatest</namespace> <files> <filename module="mod_jdownloads_latest">mod_jdownloads_latest.php</filename> <filename>mod_jdownloads_latest.xml</filename> <folder>tmpl</folder> <folder>src</folder> <folder>language</folder> </files> <config> <fields name="params"> <fieldset name="basic"> <field name="text_before" type="textarea" cols="30" rows="2" default="" label="MOD_JDOWNLOADS_LATEST_TEXT_BEFORE_TITLE" description="MOD_JDOWNLOADS_LATEST_TEXT_BEFORE_DESC"/> <field name="text_after" type="textarea" cols="30" rows="2" default="" label="MOD_JDOWNLOADS_LATEST_TEXT_AFTER_TITLE" description="MOD_JDOWNLOADS_LATEST_TEXT_AFTER_DESC"/> <field name="spacer1" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="catid" type="JDCategorySelectPure" addfieldprefix="JDownloads\Component\JDownloads\Administrator\Field" multiple="true" filter="intarray" class="multipleCategories" layout="joomla.form.field.list-fancy-select" size="10" default="" label="MOD_JDOWNLOADS_LATEST_CAT_ID_TITLE" description="MOD_JDOWNLOADS_LATEST_CAT_ID_DESC"/> <field name="sum_view" type="text" default="5" label="MOD_JDOWNLOADS_LATEST_NO_FILES_TITLE" description="MOD_JDOWNLOADS_LATEST_NO_FILES_DESC"/> <field name="sum_char" type="text" default="" label="MOD_JDOWNLOADS_LATEST_TITLE_CHAR_LENGTH_TITLE" description="MOD_JDOWNLOADS_LATEST_TITLE_CHAR_LENGTH_DESC"/> <field name="short_char" type="text" default="" label="MOD_JDOWNLOADS_LATEST_TITLE_REPLACE_CHAR_TITLE" description="MOD_JDOWNLOADS_LATEST_TITLE_REPLACE_CHAR_DESC"/> <field name="short_version" type="text" default="" label="MOD_JDOWNLOADS_LATEST_CHAR_BEFORE_RELEASE_TITLE" description="MOD_JDOWNLOADS_LATEST_CHAR_BEFORE_RELEASE_DESC"/> <field name="detail_view" type="radio" class="btn-group" label="MOD_JDOWNLOADS_LATEST_LINK_TO_DETAIL_TITLE" default="1" description="MOD_JDOWNLOADS_LATEST_LINK_TO_DETAIL_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_tooltip" type="radio" class="btn-group" default="1" label="MOD_JDOWNLOADS_LATEST_VIEW_TOOLTIP" description=""> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_tooltip_length" type="text" default="100" label="MOD_JDOWNLOADS_LATEST_VIEW_TOOLTIP_LENGTH" description=""/> <field name="spacer-date" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="view_date" type="radio" class="btn-group" default="1" label="MOD_JDOWNLOADS_LATEST_SHOW_DATE_TITLE" description="MOD_JDOWNLOADS_LATEST_SHOW_DATE_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_date_same_line" type="radio" class="btn-group" default="0" label="MOD_JDOWNLOADS_LATEST_VIEW_DATE_IN_THE_SAME_LINE_TITLE" description="MOD_JDOWNLOADS_LATEST_VIEW_DATE_IN_THE_SAME_LINE_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_date_text" type="text" default="" label="MOD_JDOWNLOADS_LATEST_VIEW_DATE_TEXT_TITLE" description="MOD_JDOWNLOADS_LATEST_VIEW_DATE_TEXT_DESC"/> <field name="date_format" type="text" default="" label="MOD_JDOWNLOADS_LATEST_DATE_FORMAT_TITLE" description="MOD_JDOWNLOADS_LATEST_DATE_FORMAT_DESC"/> <field name="view_date" type="radio" class="btn-group" default="1" label="MOD_JDOWNLOADS_LATEST_SHOW_DATE_TITLE" description="MOD_JDOWNLOADS_LATEST_SHOW_DATE_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="date_format" type="text" default="" label="MOD_JDOWNLOADS_LATEST_DATE_FORMAT_TITLE" description="MOD_JDOWNLOADS_LATEST_DATE_FORMAT_DESC"/> <field name="date_alignment" type="list" label="MOD_JDOWNLOADS_LATEST_DATE_ALIGN_TITLE" default="right" description="MOD_JDOWNLOADS_LATEST_DATE_ALIGN_DESC"> <option value="left">MOD_JDOWNLOADS_LATEST_LEFT</option> <option value="right">MOD_JDOWNLOADS_LATEST_RIGHT</option> <option value="center">MOD_JDOWNLOADS_LATEST_CENTER</option> </field> <field name="spacer-mime" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="view_pics" type="radio" class="btn-group" label="MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC" default="1" description="MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_pics_size" type="text" default="18" label="MOD_JDOWNLOADS_LATEST_SET_SIZE_FROM_MIME_PICS" description="MOD_JDOWNLOADS_LATEST_SET_SIZE_FROM_MIME_PICS_DESC"/> <field name="view_pics_link" type="radio" class="btn-group" label="MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_LINK" default="1" description="MOD_JDOWNLOADS_LATEST_VIEW_MIME_PIC_LINK_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_numerical_list" type="radio" class="btn-group" label="MOD_JDOWNLOADS_LATEST_VIEW_NUMERICAL_LIST" default="0" description="MOD_JDOWNLOADS_LATEST_VIEW_NUMERICAL_LIST_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="spacer4" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="view_thumbnails" type="radio" class="btn-group" label="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_TITLE" default="0" description="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_thumbnails_dummy" type="radio" class="btn-group" default="1" label="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DUMMY_TITLE" description="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_DUMMY_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_thumbnails_link" type="radio" class="btn-group" label="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_LINK_TITLE" default="0" description="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_LINK_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="view_thumbnails_size" type="text" default="100" label="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_SIZE_TITLE" description="MOD_JDOWNLOADS_LATEST_VIEW_THUMBNAILS_SIZE_DESC"/> <field name="spacer5" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="cat_show" type="radio" class="btn-group" default="1" label="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TITLE" description="MOD_JDOWNLOADS_LATEST_CAT_SHOW_DESC"> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="cat_show_type" type="list" label="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_TITLE" default="containing" description="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_DESC"> <option value="all">MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_ALL</option> <option value="containing">MOD_JDOWNLOADS_LATEST_CAT_SHOW_TYPE_CONTAINING</option> </field> <field name="cat_show_text" type="text" default="" label="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_TITLE" description=""/> <field name="cat_show_text_color" type="text" default="#808080" label="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_COLOR" description="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_DESC"/> <field name="cat_show_text_size" type="text" default="8pt" label="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_SIZE" description="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_FONT_DESC"/> <field name="cat_show_as_link" type="radio" class="btn-group" default="1" label="MOD_JDOWNLOADS_LATEST_CAT_SHOW_TEXT_AS_LINK" description=""> <option value="1">MOD_JDOWNLOADS_LATEST_YES</option> <option value="0">MOD_JDOWNLOADS_LATEST_NO</option> </field> <field name="spacer6" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="alignment" type="list" label="MOD_JDOWNLOADS_LATEST_ALIGN_TITLE" default="left" description="MOD_JDOWNLOADS_LATEST_ALIGN_DESC"> <option value="left">MOD_JDOWNLOADS_LATEST_LEFT</option> <option value="right">MOD_JDOWNLOADS_LATEST_RIGHT</option> <option value="center">MOD_JDOWNLOADS_LATEST_CENTER</option> </field> </fieldset> <fieldset name="advanced"> <field name="layout" type="modulelayout" default="default" label="MOD_JDOWNLOADS_LATEST_LAYOUT_TITLE" description="MOD_JDOWNLOADS_LATEST_LAYOUT_DESC" class="form-select" /> <field name="moduleclass_sfx" type="text" default="" label="MOD_JDOWNLOADS_LATEST_CLASS_SUFFIX_TITLE" description="MOD_JDOWNLOADS_LATEST_CLASS_SUFFIX_DESC" validate="CssIdentifier" /> <field name="spacer6" type="spacer" default="" label="MOD_JDOWNLOADS_LATEST_SPACER" description="" /> <field name="cache" type="list" default="1" label="MOD_JDOWNLOADS_LATEST_CACHE_LABEL" description="MOD_JDOWNLOADS_LATEST_CACHE_DESCRIPTION"> <option value="1">MOD_JDOWNLOADS_LATEST_CACHE_USE_GLOBAL</option> <option value="0">MOD_JDOWNLOADS_LATEST_CACHE_NO_CACHING</option> </field> <field name="cache_time" type="text" default="900" label="MOD_JDOWNLOADS_LATEST_CACHE_TIME_LABEL" description="MOD_JDOWNLOADS_LATEST_CACHE_TIME_DESCRIPTION" /> </fieldset> </fields> </config> </extension>PK ! �����- �- tmpl/table-v32.phpnu �[��� <?php /** * @version $Id: mod_jdownloads_top.php v.4.0 * @package mod_jdownloads_top * @copyright (C) 2022 Arno Betz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @author Arno Betz http://www.jDownloads.com * * This module shows you the most downloaded Downloads from the jDownloads component. * */ // This is a default layout and uses tables - you can also select an alternate tableless layout in the module configuration defined('_JEXEC') or die; use Joomla\CMS\Router\Route; use JDownloads\Component\JDownloads\Site\Helper\JDHelper; use JDownloads\Module\JDownloadsLatest\Site\Helper\JDownloadsLatestHelper; use JDownloads\Component\JDownloads\Site\Helper\RouteHelper; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\HTML\Helpers\StringHelper; use Joomla\CMS\Language\Text; use Joomla\Filter\OutputFilter; // Path to the mime type image folder (for file symbols) $file_pic_folder = JDHelper::getFileTypeIconPath($jdparams->get('selected_file_type_icon_set')); $html = ''; if ($files) { $html = '<table style="width:100%;" class="moduletable'.$moduleclass_sfx.'">'; if ($text_before <> ''){ $html .= '<tr class="jd_module_before" style="text-align:'.$alignment.';"><td>'.$text_before.'</td></tr>'; } for ($i=0; $i<count($files); $i++){ $has_no_file = false; if (!$files[$i]->url_download && !$files[$i]->other_file_id && !$files[$i]->extern_file){ // only a document without file $has_no_file = true; } // Get the first image as thumbnail when it exist $thumbnail = ''; $first_image = ''; $images = explode("|",$files[$i]->images); if (isset($images[0])) $first_image = $images['0']; // Get version label $version = $params->get('short_version', ''); // Shorten the file title? if ($sum_char > 0){ $total = strlen($files[$i]->title) + strlen($files[$i]->release) + strlen($short_version) +1; if ($total > $sum_char){ $files[$i]->title = \Joomla\String\StringHelper::substr($files[$i]->title, 0, $sum_char).$short_char; $files[$i]->release = ''; } } if ($cat_show && $files[$i]->catid > 1) { if ($cat_show_type == 'containing') { $cat_show_text2 = $cat_show_text.$files[$i]->category_title; } else { if ($files[$i]->category_cat_dir_parent){ $cat_show_text2 = $cat_show_text.$files[$i]->category_cat_dir_parent.'/'.$files[$i]->category_title; } else { $cat_show_text2 = $cat_show_text.$files[$i]->category_title; } } } else { $cat_show_text2 = ''; } // Create the link if ($files[$i]->link == '-'){ // The user have the access to view this item if ($detail_view == '1'){ if ($detail_view_config == 0){ // The details view is deactivated in jD config so the // Link must start directly the download process if ($direct_download_config == 1){ if (!$has_no_file){ $link = Route::_(RouteHelper::getOtherRoute($files[$i]->slug, $files[$i]->catid, $files[$i]->language, 'download.send')); } else { // Create a link to the Downloads category as this download has not a file if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } else { // Link to the summary page if (!$has_no_file){ $link = Route::_(RouteHelper::getOtherRoute($files[$i]->slug, $files[$i]->catid, $files[$i]->language, 'summary')); } else { // Create a link to the Downloads category as this download has not a file if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } } else { // Create a link to the details view if ($files[$i]->menuf_itemid){ $link = Route::_('index.php?option='.$option.'&view=download&id='.$files[$i]->slug.'&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuf_itemid); } else { if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=download&id='.$files[$i]->slug.'&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=download&id='.$files[$i]->slug.'&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } } else { // Create a link to the Downloads category if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } else { $link = $files[$i]->link; } if (!$files[$i]->release) $version = ''; // Add mime file pic $size = 0; $files_pic = ''; $number = ''; if ($view_pics && $files[$i]->file_pic != ''){ $size = (int)$view_pics_size; if ($view_pics_link) { $pic_link = '<a href="'.$link.'">'; $pic_end = '</a>'; } else { $pic_link = ''; $pic_end = ''; } $files_pic = $pic_link.'<img src="'.$file_pic_folder.$files[$i]->file_pic.'" style="text-align:top;border:0px;" width="'.$size.'" height="'.$size.'" alt="'.substr($files[$i]->file_pic, 0, -4).'-'.$i.'"/>'.$pic_end; } if ($view_numerical_list){ $num = $i+1; $number = "$num. "; } $text = HTMLHelper::_('string.truncate', $files[$i]->description, $view_tooltip_length, true, false); // Build description in tooltip if ($view_tooltip && $text != ''){ $title = htmlspecialchars($files[$i]->title, ENT_QUOTES, 'UTF-8'); $tooltip = '<strong><small>' . htmlspecialchars(Text::_('MOD_JDOWNLOADS_LATEST_DESCRIPTION_TITLE'), ENT_QUOTES, 'UTF-8') . '</strong><br>' . $text . '</small>'; $link_text = '<a href="' . $link . '" class="">' . $title . '</a>' . '<div role="tooltip" id="tip-' . (int) $files[$i]->id . '-' . (int) $files[$i]->catid . '">' . $tooltip . '</div>'; } else { $link_text = '<a href="'.$link.'">'.$files[$i]->title.' '.$version.$files[$i]->release.'</a>'; } // Main link msg $html .= '<tr style="vertical-align:top;"><td style="text-align:'.$alignment.'">'.$number.$files_pic.$link_text.'</td>'; // Add the creation date if ($view_date) { if ($files[$i]->created){ if ($view_date_same_line){ $html .= '<td style="text-align:'.$date_alignment.'"><small>'.HTMLHelper::date($files[$i]->created, $date_format).'</small></td>'; } else { $html .= '<tr style="vertical-align:top;"><td style="text-align:"'.$date_alignment.'"><small>'.HTMLHelper::date($files[$i]->created, $date_format).'</small></td>'; } } } $html .= '</tr>'; // Add the first download screenshot when exists and activated in options if ($view_thumbnails){ if ($first_image){ $thumbnail = '<a href="'.$link.'"><img class="img" src="'.$thumbfolder.$first_image.'" style="text-align:top;padding:5px;border:'.$border.';" width="'.$view_thumbnails_size.'" height="'.$view_thumbnails_size.'" alt="'.substr($first_image,0,-4).'-'.$i.'" /></a>'; } else { // Use placeholder if ($view_thumbnails_dummy){ $thumbnail = '<a href="'.$link.'"><img class="img" src="'.$thumbfolder.'no_pic.png" style="text-align:top;padding:5px;border:'.$border.';" width="'.$view_thumbnails_size.'" height="'.$view_thumbnails_size.'" alt="no_pic-'.$i.'"/></a>'; } } if ($thumbnail) $html .= '<tr style="vertical-align:top;"><td style="text-align:'.$alignment.';">'.$thumbnail.'</td></tr>'; } // Add category info if ($cat_show_text2) { if ($cat_show_as_link){ if ($files[$i]->menuc_cat_itemid){ $html .= '<tr style="vertical-align:top;"><td style="text-align:'.$alignment.';font-size:'.$cat_show_text_size.'; color:'.$cat_show_text_color.';"><a href="index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid.'">'.$cat_show_text2.'</a></td></tr>'; } else { $html .= '<tr style="vertical-align:top;"><td style="text-align:'.$alignment.';font-size:'.$cat_show_text_size.'; color:'.$cat_show_text_color.';"><a href="index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid.'">'.$cat_show_text2.'</a></td></tr>'; } } else { $html .= '<tr style="vertical-align:top;"><td style="text-align:'.$alignment.';font-size:'.$cat_show_text_size.'; color:'.$cat_show_text_color.';">'.$cat_show_text2.'</td></tr>'; } } } if ($text_after <> ''){ $html .= '<tr class="jd_module_after" style="text-align:'.$alignment.';"><td>'.$text_after.'</td></tr>'; } echo $html.'</table>'; } ?>PK ! Q ^. ^. tmpl/default.phpnu �[��� <?php /** * @version $Id: mod_jdownloads_latest.php * @package mod_jdownloads_latest * @copyright (C) 2022 Arno Betz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @author Arno Betz http://www.jDownloads.com */ // this is a default layout and used tables - you can also select an alternate tableless layout in the module configuration defined('_JEXEC') or die; use Joomla\CMS\Router\Route; use JDownloads\Component\JDownloads\Site\Helper\JDHelper; use JDownloads\Module\JDownloadsTop\Site\Helper\JDownloadsLatestHelper; use JDownloads\Component\JDownloads\Site\Helper\RouteHelper; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\HTML\Helpers\StringHelper; use Joomla\CMS\Language\Text; use Joomla\Filter\OutputFilter; // Path to the mime type image folder (for file symbols) $file_pic_folder = JDHelper::getFileTypeIconPath($jdparams->get('selected_file_type_icon_set')); $html = ''; if ($files) { $html = '<div style="width:100%;" class="moduletable'.$moduleclass_sfx.'">'; if ($text_before <> ''){ $html .= '<div class="jd_module_before" style="text-align:'.$alignment.'">'.$text_before.'</div>'; } for ($i=0; $i<count($files); $i++) { $html .= '<div style="clear:both;"></div>'; $has_no_file = false; if (!$files[$i]->url_download && !$files[$i]->other_file_id && !$files[$i]->extern_file){ // only a document without file $has_no_file = true; } // get the first image as thumbnail when it exist $thumbnail = ''; $first_image = ''; $images = explode("|",$files[$i]->images); if (isset($images[0])) $first_image = $images['0']; //get version label $version = $params->get('short_version', ''); // shorten the file title? if ($sum_char > 0){ $gesamt = strlen($files[$i]->title) + strlen($files[$i]->release) + strlen($short_version) +1; if ($gesamt > $sum_char){ $files[$i]->title = \Joomla\String\StringHelper::substr($files[$i]->title, 0, $sum_char).$short_char; $files[$i]->release = ''; } } if ($cat_show && $files[$i]->catid > 1) { if ($cat_show_type == 'containing') { $cat_show_text2 = $files[$i]->category_title; } else { if ($files[$i]->category_cat_dir_parent){ $cat_show_text2 = $files[$i]->category_cat_dir_parent.'/'.$files[$i]->category_title; } else { $cat_show_text2 = $files[$i]->category_title; } } } else { $cat_show_text2 = ''; } // create the link if ($files[$i]->link == '-'){ // the user has access to view this item if ($detail_view == '1'){ if ($detail_view_config == 0){ // the details view is deactivated in jD config so the // link must start directly the download process if ($direct_download_config == 1){ if (!$has_no_file){ $link = Route::_(RouteHelper::getOtherRoute($files[$i]->slug, $files[$i]->catid, $files[$i]->language, 'download.send')); } else { // create a link to the Downloads category as this download has not a file if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } else { // link to the summary page if (!$has_no_file){ $link = Route::_(RouteHelper::getOtherRoute($files[$i]->slug, $files[$i]->catid, $files[$i]->language, 'summary')); } else { // create a link to the Downloads category as this download dopes not have a file if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } } else { // create a link to the details view if ($files[$i]->menuf_itemid){ $link = Route::_('index.php?option='.$option.'&view=download&id='.$files[$i]->slug.'&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuf_itemid); } else { if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=download&id='.$files[$i]->slug.'&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=download&id='.$files[$i]->slug.'&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } } else { // create a link to the Downloads category if ($files[$i]->menuc_cat_itemid){ $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid); } else { $link = Route::_('index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid); } } } else { // The user has NO access to view this item $link = $files[$i]->link; } if (!$files[$i]->release) $version = ''; // add mime file pic $size = 0; $files_pic = ''; $number = ''; if ($view_pics && $files[$i]->file_pic != ''){ $size = (int)$view_pics_size; if ($view_pics_link){ $pic_link = '<a href="'.$link.'">'; $pic_end = '</a>'; } else { $pic_link = ''; $pic_end = ''; } $files_pic = $pic_link.'<img src="'.$file_pic_folder.$files[$i]->file_pic.'" style="text-align:top;border:0px;" width="'.$size.'" height="'.$size.'" alt="'.substr($files[$i]->file_pic, 0, -4).'-'.$i.'" />'.$pic_end; } if ($view_numerical_list){ $num = $i+1; $number = "$num. "; } // Build version message including space char $version_msg = ''; if ($files[$i]->release) { $version_msg = ' '.htmlspecialchars($version.$files[$i]->release, ENT_QUOTES, 'UTF-8'); } $text = HTMLHelper::_('string.truncate', $files[$i]->description, $view_tooltip_length, true, false); // Build description in tooltip if ($view_tooltip && $text != ''){ $title = htmlspecialchars($files[$i]->title, ENT_QUOTES, 'UTF-8'); $tooltip = '<strong><small>' . htmlspecialchars(Text::_('MOD_JDOWNLOADS_LATEST_DESCRIPTION_TITLE'), ENT_QUOTES, 'UTF-8') . '</strong><br>' . $text . '</small>'; $link_text = '<a href="' . $link . '" class="">' . $title . '</a>' . '<div role="tooltip" id="tip-' . (int) $files[$i]->id . '-' . (int) $files[$i]->catid . '">' . $tooltip . '</div>'; } else { $link_text = '<a href="'.$link.'">'.$files[$i]->title.'</a>'.$version_msg; } $link_div= '<div style="text-align:'.$alignment.'">'.$number.$files_pic.$link_text; $link_end = '</div>'; // Build the creation date if ($view_date && $files[$i]->created) { $date_msg = HTMLHelper::date($files[$i]->created, $date_format); if ($view_date_same_line){ $html .= $link_div.'<scan class ="jd_module_date_sameline"> '.$view_date_text.$date_msg.'</scan>'.$link_end; //include space } else { $html .= $link_div.'<div class ="jd_module_date_newline">'.$view_date_text.$date_msg.'</div>'.$link_end; } } else { $html .= $link_div.$link_end; //do not show date } // Add the first download screenshot when exists and activated in options if ($view_thumbnails){ if ($view_thumbnails_link) { $pic_link = '<a href="'.$link.'">'; $pic_end = '</a>'; } else { $pic_link = ''; $pic_end = ''; } if ($first_image){ $thumbnail = $pic_link.'<img class="img" src="'.$thumbfolder.$first_image.'" style="text-align:top;padding:5px;border:'.$border.';" width="'.$view_thumbnails_size.'" height="'.$view_thumbnails_size.'" alt="'.substr($files[$i]->title, 0, -4).'-'.$i.'" />'.$pic_end; } else { // use placeholder if ($view_thumbnails_dummy){ $thumbnail = $pic_link.'<img class="img" src="'.$thumbfolder.'no_pic.png" style="text-align:top;padding:5px;border:'.$border.';" width="'.$view_thumbnails_size.'" height="'.$view_thumbnails_size.'" alt="no_pic-'.$i.'"/>'.$pic_end; } } if ($thumbnail) $html .= '<div style="text-align:'.$alignment.';">'.$thumbnail.'</div>'; } // Add category info if ($cat_show_text2) { if ($cat_show_as_link){ if ($files[$i]->menuc_cat_itemid){ $html .= '<div style="text-align:'.$alignment.';font-size:'.$cat_show_text_size.'; color:'.$cat_show_text_color.';">'.$cat_show_text.'<a href="index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$files[$i]->menuc_cat_itemid.'">'.$cat_show_text2.'</a></div>'; } else { $html .= '<div style="text-align:'.$alignment.';font-size:'.$cat_show_text_size.'; color:'.$cat_show_text_color.';">'.$cat_show_text.'<a href="index.php?option='.$option.'&view=category&catid='.$files[$i]->catid.'&Itemid='.$Itemid.'">'.$cat_show_text2.'</a></div>'; } } else { $html .= '<div style="text-align:'.$alignment.';font-size:'.$cat_show_text_size.'; color:'.$cat_show_text_color.';">'.$cat_show_text.$cat_show_text2.'</div>'; } } } $html .= '<div style="clear:both;"></div>'; if ($text_after <> ''){ $html .= '<div class="jd_module_after" style="text-align:'.$alignment.'";>'.$text_after.'</div>'; } echo $html.'</div>'; } ?>PK ! �̌[y y mod_jdownloads_latest.phpnu �[��� PK ! ]u 9 9 % � src/Helper/JDownloadsLatestHelper.phpnu �[��� PK ! �lÒn n . P% language/en-GB/en-GB.mod_jdownloads_latest.ininu �[��� PK ! D�� 2 C language/en-GB/en-GB.mod_jdownloads_latest.sys.ininu �[��� PK ! �Xڭ� � 2 �D language/de-DE/de-DE.mod_jdownloads_latest.sys.ininu �[��� PK ! �j! ! . �E language/de-DE/de-DE.mod_jdownloads_latest.ininu �[��� PK ! ��W�V. V. ze mod_jdownloads_latest.xmlnu �[��� PK ! �����- �- � tmpl/table-v32.phpnu �[��� PK ! Q ^. ^. (� tmpl/default.phpnu �[��� PK y ��
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка