From a5ab3b752887386d5461753b5465e56ca5774aa0 Mon Sep 17 00:00:00 2001 From: Murat Purc Date: Mon, 11 Nov 2019 09:58:28 +0100 Subject: [PATCH] Changes for version 0.2.1. --- .../class.module.mpnivoslider.input.php | 2 +- .../class.module.mpnivoslider.output.php | 5 +- cms/includes/class.module.mpnivoslider.php | 2 +- cms/includes/class.uploadmeta.php | 2 +- cms/includes/functions.mpnivoslider.php | 2 +- cms/js/nivo-slider/mpNivoSlider.css | 68 ++++ mpNivoSlider.xml | 4 +- php/mpNivoSlider_input.php | 312 ++++++++++++++++++ php/mpNivoSlider_output.php | 86 +++++ readme.txt | 3 + 10 files changed, 477 insertions(+), 9 deletions(-) create mode 100644 cms/js/nivo-slider/mpNivoSlider.css create mode 100644 php/mpNivoSlider_input.php create mode 100644 php/mpNivoSlider_output.php diff --git a/cms/includes/class.module.mpnivoslider.input.php b/cms/includes/class.module.mpnivoslider.input.php index bd68c9a..5afaf1b 100644 --- a/cms/includes/class.module.mpnivoslider.input.php +++ b/cms/includes/class.module.mpnivoslider.input.php @@ -14,7 +14,7 @@ * @author Murat Purc * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 - * @version $Id: class.module.mpnivoslider.input.php 279 2012-09-07 13:53:45Z murat $ + * @version $Id: class.module.mpnivoslider.input.php 5 2012-09-07 19:22:49Z murat $ */ diff --git a/cms/includes/class.module.mpnivoslider.output.php b/cms/includes/class.module.mpnivoslider.output.php index 839e709..aeed4ad 100644 --- a/cms/includes/class.module.mpnivoslider.output.php +++ b/cms/includes/class.module.mpnivoslider.output.php @@ -14,7 +14,7 @@ * @author Murat Purc * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 - * @version $Id: class.module.mpnivoslider.output.php 279 2012-09-07 13:53:45Z murat $ + * @version $Id: class.module.mpnivoslider.output.php 16 2013-03-23 14:22:06Z murat $ */ @@ -108,8 +108,7 @@ protected function _validate() } // selected order type - $this->selectedOrder = $this->selectedOrder; - if (!isset($this->selectedOrder[$this->_aOrder])) { + if (!isset($this->_aOrder[$this->selectedOrder])) { $this->selectedOrder = 'filename:ASC'; } diff --git a/cms/includes/class.module.mpnivoslider.php b/cms/includes/class.module.mpnivoslider.php index 480dd2e..a97d204 100644 --- a/cms/includes/class.module.mpnivoslider.php +++ b/cms/includes/class.module.mpnivoslider.php @@ -14,7 +14,7 @@ * @author Murat Purc * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 - * @version $Id: class.module.mpnivoslider.php 281 2012-09-07 14:40:40Z murat $ + * @version $Id: class.module.mpnivoslider.php 5 2012-09-07 19:22:49Z murat $ */ diff --git a/cms/includes/class.uploadmeta.php b/cms/includes/class.uploadmeta.php index 8e39306..2d4500f 100644 --- a/cms/includes/class.uploadmeta.php +++ b/cms/includes/class.uploadmeta.php @@ -24,7 +24,7 @@ * * {@internal * created 2008-09-27, Murat Purc - * $Id: class.uploadmeta.php 1 2012-01-06 22:28:28Z murat $ + * $Id: class.uploadmeta.php 3 2012-09-07 19:15:30Z murat $ * }} * */ diff --git a/cms/includes/functions.mpnivoslider.php b/cms/includes/functions.mpnivoslider.php index ab1ec22..43a2d0b 100644 --- a/cms/includes/functions.mpnivoslider.php +++ b/cms/includes/functions.mpnivoslider.php @@ -14,7 +14,7 @@ * @author Murat Purc * @copyright Copyright (c) 2012 Murat Purc (http://www.purc.de) * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 - * @version $Id: functions.mpnivoslider.php 281 2012-09-07 14:40:40Z murat $ + * @version $Id: functions.mpnivoslider.php 5 2012-09-07 19:22:49Z murat $ */ diff --git a/cms/js/nivo-slider/mpNivoSlider.css b/cms/js/nivo-slider/mpNivoSlider.css new file mode 100644 index 0000000..068fec5 --- /dev/null +++ b/cms/js/nivo-slider/mpNivoSlider.css @@ -0,0 +1,68 @@ +/** + * Project: + * CONTENIDO Content Management System + * + * Description: + * CONTENIDO mpNivoSlider styles, overwrites/extends Nivo Slider styles + * + * Requirements: + * @con_php_req 5.0 + * + * @package CONTENIDO_Modules + * @subpackage mpNivoSlider + * @author Murat Purc + * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) + * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 + * @version $Id: mpNivoSlider.css 4 2012-09-07 19:20:11Z murat $ + */ + + +.mpNivoSliderControlNav { + margin-bottom: 40px; +} + +/** @extends modMpNivoSlider */ +.mpNivoSliderControlNav .theme-default .nivo-controlNav { + margin-left: -25%; +} + +/** @extends modMpNivoSlider */ +.mpNivoSliderControlNavThumbs { + margin-bottom: 70px; +} + +.mpNivoSliderControlNavThumbs .theme-default .nivo-controlNav { + bottom: -70px; + left: 0; + margin: 0; +} + +.mpNivoSliderControlNavThumbs .theme-default .nivo-controlNav a { + background: none; + display: inline-block; + height: auto; + text-indent: 0; + width: auto; +} + +.mpNivoSliderControlNavThumbs .theme-default .nivo-controlNav img { + display: inline; /* Unhide the thumbnails */ + position: relative; + margin: 0 10px 7px 0; +} + +/** @extends modMpNivoSlider */ +/* dark arrows for bright images */ +.theme-default .nivo-directionNav a { + background-image:url(themes/default/arrows_dark.png); +} + +/* bright arrows/captions for dark images */ +.mpNivoSliderDark .theme-default .nivo-directionNav a { + background-image:url(themes/default/arrows.png); +} +.mpNivoSliderDark .nivo-caption { + background-color: #fff; + color: #000; +} + diff --git a/mpNivoSlider.xml b/mpNivoSlider.xml index 7591592..0ef78fc 100644 --- a/mpNivoSlider.xml +++ b/mpNivoSlider.xml @@ -36,7 +36,7 @@ Version: 0.1rc * @author Murat Purc <murat@purc.de> * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 - * @version $Id: mpNivoSlider_input.php 279 2012-09-07 13:53:45Z murat $ + * @version $Id: mpNivoSlider.xml 5 2012-09-07 19:22:49Z murat $ */ cInclude('frontend', 'includes/functions.mpnivoslider.php'); @@ -348,7 +348,7 @@ unset($oModule, $aModuleConfiguration, $aModuleTranslations); * @author Murat Purc <murat@purc.de> * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 - * @version $Id: mpNivoSlider_output.php 279 2012-09-07 13:53:45Z murat $ + * @version $Id: mpNivoSlider.xml 5 2012-09-07 19:22:49Z murat $ */ cInclude('frontend', 'includes/functions.mpnivoslider.php'); diff --git a/php/mpNivoSlider_input.php b/php/mpNivoSlider_input.php new file mode 100644 index 0000000..e961e97 --- /dev/null +++ b/php/mpNivoSlider_input.php @@ -0,0 +1,312 @@ +?> + * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) + * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 + * @version $Id: mpNivoSlider_input.php 5 2012-09-07 19:22:49Z murat $ + */ + +cInclude('frontend', 'includes/functions.mpnivoslider.php'); +cInclude('frontend', 'includes/class.module.mpnivoslider.input.php'); +cInclude('classes', 'class.upload.php'); + +// module configuration +$aModuleConfiguration = array( + 'selectedDirname' => "CMS_VALUE[1]", + 'useSubdirectories' => "CMS_VALUE[2]", + 'maxImages' => "CMS_VALUE[3]", + 'maxWidth' => "CMS_VALUE[4]", + 'maxHeight' => "CMS_VALUE[5]", + 'maxCachetime' => "CMS_VALUE[6]", + 'selectedOrder' => "CMS_VALUE[7]", + 'darkImages' => "CMS_VALUE[33]", + 'imageQuality' => "CMS_VALUE[34]", + + // Nivo Slider specific configuration + 'effect' => "CMS_VALUE[8]", + 'slices' => "CMS_VALUE[9]", + 'boxCols' => "CMS_VALUE[10]", + 'boxRows' => "CMS_VALUE[11]", + 'animSpeed' => "CMS_VALUE[12]", + 'pauseTime' => "CMS_VALUE[13]", + 'startSlide' => "CMS_VALUE[14]", + 'directionNav' => "CMS_VALUE[15]", + 'controlNav' => "CMS_VALUE[17]", + 'controlNavThumbs' => "CMS_VALUE[18]", + 'controlNavThumbsWidthX' => "CMS_VALUE[20]", // speacial treatment + 'controlNavThumbsHeightX' => "CMS_VALUE[21]", // speacial treatment + 'pauseOnHover' => "CMS_VALUE[23]", + 'manualAdvance' => "CMS_VALUE[24]", + 'prevText' => "CMS_VALUE[26]", + 'nextText' => "CMS_VALUE[27]", + 'beforeChange' => "CMS_VALUE[28]", + 'afterChange' => "CMS_VALUE[29]", + 'slideshowEnd' => "CMS_VALUE[30]", + 'lastSlide' => "CMS_VALUE[31]", + 'afterLoad' => "CMS_VALUE[32]", +); +//echo "
" . print_r($aModuleConfiguration, true) . "
"; + +// module translation +$aModuleTranslations = array( + 'random' => mi18n("Zufällig"), + 'filename_asc' => mi18n("Dateiname aufsteigend"), + 'filename_desc' => mi18n("Dateiname absteigend"), + 'size_asc' => mi18n("Dateigröße aufsteigend"), + 'size_desc' => mi18n("Dateigröße absteigend"), + 'filetype_asc' => mi18n("Dateityp aufsteigend"), + 'filetype_desc' => mi18n("Dateityp absteigend"), + 'created_asc' => mi18n("Erstellungsdatum aufsteigend"), + 'created_esc' => mi18n("Erstellungsdatum absteigend"), + 'id_asc' => mi18n("Id aufsteigend"), + 'id_desc' => mi18n("Id absteigend"), + '__select_folder__' => mi18n("-- Ordner auswählen --"), + '__select_order__' => mi18n("-- Sortierung auswählen --"), + 'previous' => mi18n("zurück"), + 'next' => mi18n("vor"), +); + +// create mpNivoSlider module instance +$oModule = new ModuleMpNivoSliderInput($aModuleConfiguration, $aModuleTranslations, $client); + +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+ getCheckedAttribute('useSubdirectories') ?> /> +
+
+
+
+ getCheckedAttribute('darkImages') ?> /> +
+
+
+
+
+
+
+
+
+
+
+ werden große Bilder herunter gerechnet.)") ?>
+
+
+ %
+
+
+
+
+ +
+
+
+
+

+ +
: +
+ $v) { + $tmp2 .= $v . ', '; + if ($p > 0 && $p % 5 == 0) { + $tmp2 .= '
'; + } + } + ?> + :
+ + +
: + +
: + +
: + +
: +
+ +
: +
+
: +
+ +
: + getCheckedAttribute('directionNav') ?> /> +
+
+
+
+
+
+
: + getCheckedAttribute('controlNav') ?> /> +
+
+
+ getCheckedAttribute('controlNavThumbs') ?> /> +
+
+
+
+
+
+
: + getCheckedAttribute('pauseOnHover') ?> /> +
+
+
: + getCheckedAttribute('manualAdvance') ?> /> +
+
+
: + ' . $oModule->beforeChange . ''; ?> + +
+
: + ' . $oModule->afterChange . ''; ?> + +
+
: + ' . $oModule->slideshowEnd . ''; ?> + +
+
: + ' . $oModule->lastSlide . ''; ?> + +
+
: + ' . $oModule->afterLoad . ''; ?> + +
+
+ + + + * @copyright Copyright (c) 2011-2012 Murat Purc (http://www.purc.de) + * @license http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2 + * @version $Id: mpNivoSlider_output.php 5 2012-09-07 19:22:49Z murat $ + */ + +cInclude('frontend', 'includes/functions.mpnivoslider.php'); +cInclude('frontend', 'includes/class.module.mpnivoslider.output.php'); +cInclude('classes', 'class.upload.php'); +cInclude('frontend', 'includes/class.uploadmeta.php'); +cInclude('includes', 'functions.api.images.php'); + +// module configuration +$aModuleConfiguration = array( + 'selectedDirname' => "CMS_VALUE[1]", + 'useSubdirectories' => "CMS_VALUE[2]", + 'maxImages' => "CMS_VALUE[3]", + 'maxWidth' => "CMS_VALUE[4]", + 'maxHeight' => "CMS_VALUE[5]", + 'maxCachetime' => "CMS_VALUE[6]", + 'selectedOrder' => "CMS_VALUE[7]", + 'darkImages' => "CMS_VALUE[33]", + 'imageQuality' => "CMS_VALUE[34]", + + // Nivo Slider specific configuration + 'effect' => "CMS_VALUE[8]", + 'slices' => "CMS_VALUE[9]", + 'boxCols' => "CMS_VALUE[10]", + 'boxRows' => "CMS_VALUE[11]", + 'animSpeed' => "CMS_VALUE[12]", + 'pauseTime' => "CMS_VALUE[13]", + 'startSlide' => "CMS_VALUE[14]", + 'directionNav' => "CMS_VALUE[15]", + 'controlNav' => "CMS_VALUE[17]", + 'controlNavThumbs' => "CMS_VALUE[18]", + 'controlNavThumbsWidthX' => "CMS_VALUE[20]", // speacial treatment + 'controlNavThumbsHeightX' => "CMS_VALUE[21]", // speacial treatment + 'pauseOnHover' => "CMS_VALUE[23]", + 'manualAdvance' => "CMS_VALUE[24]", + 'prevText' => "CMS_VALUE[26]", + 'nextText' => "CMS_VALUE[27]", + 'beforeChange' => "CMS_VALUE[28]", + 'afterChange' => "CMS_VALUE[29]", + 'slideshowEnd' => "CMS_VALUE[30]", + 'lastSlide' => "CMS_VALUE[31]", + 'afterLoad' => "CMS_VALUE[32]", +); + +// module translation +$aModuleTranslations = array( + 'random' => mi18n("Zufällig"), + 'filename_asc' => mi18n("Dateiname aufsteigend"), + 'filename_desc' => mi18n("Dateiname absteigend"), + 'size_asc' => mi18n("Dateigröße aufsteigend"), + 'size_desc' => mi18n("Dateigröße absteigend"), + 'filetype_asc' => mi18n("Dateityp aufsteigend"), + 'filetype_desc' => mi18n("Dateityp absteigend"), + 'created_asc' => mi18n("Erstellungsdatum aufsteigend"), + 'created_esc' => mi18n("Erstellungsdatum absteigend"), + 'id_asc' => mi18n("Id aufsteigend"), + 'id_desc' => mi18n("Id absteigend"), + '__select_folder__' => mi18n("-- Ordner auswählen --"), + '__select_order__' => mi18n("-- Sortierung auswählen --"), + 'previous' => mi18n("zurück"), + 'next' => mi18n("vor"), +); + +// create mpNivoSlider module instance +$oModule = new ModuleMpNivoSliderOutput($aModuleConfiguration, $aModuleTranslations, $client, $cfgClient[$client], $lang); + +// generate the slider +$oModule->generateOutput(); + +// save memory +unset($oModule, $aModuleConfiguration, $aModuleTranslations); + +?> \ No newline at end of file diff --git a/readme.txt b/readme.txt index 8d8fc2f..15525da 100644 --- a/readme.txt +++ b/readme.txt @@ -183,6 +183,9 @@ Daher ist es ratsam, im Layout nur jQuery einzubinden. ################################################################################ CHANGELOG +2013-03-23 mpNivoSlider Modul 0.2.1 + * bugfix: Fehler bei der Ausgabe der Sortierung korrigiert + 2012-09-07 mpNivoSlider Modul 0.2 * new: Update auf Nivo Slider v3.1 * new: Konfiguration für die Qualität von generierten JPEG-Bildern