├── latest-version.txt ├── resources ├── lang │ ├── en-US.mo │ ├── _fancy-imagebar.pot │ ├── es.po │ ├── sv.po │ ├── is.po │ ├── en-US.po │ ├── sr.po │ ├── pl.po │ ├── sr-cyrl.po │ ├── nb.po │ ├── af.po │ ├── da.po │ ├── hu.po │ ├── it.po │ ├── uk.po │ ├── pt-BR.po │ ├── ru.po │ ├── ca.po │ ├── nl.po │ ├── de.po │ └── fr.po ├── views │ ├── fancy-imagebar.phtml │ ├── script.phtml │ ├── media-table.phtml │ └── settings.phtml └── css │ └── style.css ├── src └── sass │ ├── _webtrees-themes-clouds.scss │ ├── _webtrees-themes-minimal.scss │ ├── _webtrees-themes-colors.scss │ ├── _webtrees-themes.scss │ ├── _webtrees-themes-xenea.scss │ ├── _webtrees-themes-fab.scss │ ├── _webtrees-themes-webtrees.scss │ ├── _custom-themes-rural.scss │ └── style.scss ├── webpack.mix.config.js ├── module.php ├── webpack.mix.js ├── webpack.mix.archive.js ├── webpack.mix.distribution.js ├── package.json ├── webpack.mix.module.js ├── README.md ├── FancyImagebarModule.php └── LICENSE.md /latest-version.txt: -------------------------------------------------------------------------------- 1 | 2.4.1 2 | -------------------------------------------------------------------------------- /resources/lang/en-US.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JustCarmen/webtrees-fancy-imagebar/HEAD/resources/lang/en-US.mo -------------------------------------------------------------------------------- /src/sass/_webtrees-themes-clouds.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-clouds { 2 | 3 | .jc-fancy-imagebar { 4 | border: 1px solid #003399; 5 | } 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/sass/_webtrees-themes-minimal.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-minimal { 2 | 3 | .jc-fancy-imagebar-divider { 4 | background-color: #555; 5 | height: 1px 6 | } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/sass/_webtrees-themes-colors.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-colors { 2 | 3 | .jc-fancy-imagebar-divider { 4 | background-color: #999; 5 | height: 1px; 6 | margin-top: 1px 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /webpack.mix.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Laravel mix - Shared config 3 | */ 4 | 5 | module.exports = { 6 | version: '2.4.1', 7 | build_dir: 'build', 8 | public_dir: 'resources', 9 | dist_dir: 'dist/jc-fancy-imagebar' 10 | } 11 | -------------------------------------------------------------------------------- /src/sass/_webtrees-themes.scss: -------------------------------------------------------------------------------- 1 | /** webtrees themes */ 2 | @import "webtrees-themes-clouds"; 3 | @import "webtrees-themes-colors"; 4 | @import "webtrees-themes-fab"; 5 | @import "webtrees-themes-minimal"; 6 | @import "webtrees-themes-webtrees"; 7 | @import "webtrees-themes-xenea"; 8 | -------------------------------------------------------------------------------- /src/sass/_webtrees-themes-xenea.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-xenea { 2 | 3 | .jc-fancy-imagebar { 4 | margin-top: 5px; 5 | 6 | &-divider { 7 | background-color: #0073CF; 8 | height: 2px; 9 | margin: 5px 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/sass/_webtrees-themes-fab.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-fab { 2 | 3 | .jc-fancy-imagebar { 4 | 5 | border: 5px solid #EEE; 6 | border-bottom-right-radius: .25rem; 7 | border-bottom-left-radius: .25rem; 8 | 9 | @include jc-container-lg; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/sass/_webtrees-themes-webtrees.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-webtrees { 2 | 3 | .jc-fancy-imagebar { 4 | margin-top: 3px; 5 | 6 | &-divider { 7 | background-color: #81A9CB; 8 | height: 1px; 9 | margin-top: 3px 10 | } 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /module.php: -------------------------------------------------------------------------------- 1 | get(FancyImagebarModule::class); 13 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Laravel mix entry point 3 | * 4 | * Load the appropriate section 5 | */ 6 | 7 | if (process.env.section) { 8 | require(`${__dirname}/webpack.mix.${process.env.section}.js`); 9 | } 10 | 11 | let mix = require('laravel-mix'); 12 | 13 | // Disable mix-manifest.json (https://github.com/laravel-mix/laravel-mix/issues/580#issuecomment-919102692) 14 | // Prevent the distribution zip file from containing an unwanted file 15 | mix.options({ manifest: false }); 16 | -------------------------------------------------------------------------------- /src/sass/_custom-themes-rural.scss: -------------------------------------------------------------------------------- 1 | .wt-theme-_myartjaub_ruraltheme_ { 2 | 3 | .jc-fancy-imagebar { 4 | 5 | @include jc-container-lg; 6 | 7 | max-width: 95vw; 8 | @media (min-width: 768px) { 9 | max-width: 85vw; 10 | } 11 | 12 | border-left: 15px solid white; 13 | border-right: 15px solid white; 14 | } 15 | 16 | // correction for Rural theme 17 | .container-lg { 18 | padding-left: 15px !important; 19 | padding-right: 15px !important; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /webpack.mix.archive.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Laravel mix - Fancy Imagebar 3 | * 4 | * Output: 5 | * - jc-fancy-imagebar-x.zip 6 | * 7 | */ 8 | 9 | const version = "2.0.13"; 10 | 11 | let mix = require('laravel-mix'); 12 | let config = require('./webpack.mix.config'); 13 | 14 | //https://github.com/gregnb/filemanager-webpack-plugin 15 | const FileManagerPlugin = require('filemanager-webpack-plugin'); 16 | 17 | mix.webpackConfig({ 18 | plugins: [ 19 | new FileManagerPlugin({ 20 | events: { 21 | onEnd: { 22 | archive: [{ 23 | source: './dist', 24 | destination: 'dist/jc-fancy-imagebar-' + config.version + '.zip' 25 | }] 26 | } 27 | } 28 | }) 29 | ] 30 | }); 31 | -------------------------------------------------------------------------------- /resources/views/fancy-imagebar.phtml: -------------------------------------------------------------------------------- 1 |
2 | fancy-imagebar 3 |
4 |
5 | 6 | 7 | 13 | <?= $area['title'] ?> 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/sass/style.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Fancy Imagebar 3 | */ 4 | 5 | @mixin jc-container-lg { 6 | margin-left: auto; 7 | margin-right:auto; 8 | 9 | @media (min-width: 992px) { 10 | max-width: 960px; 11 | } 12 | 13 | @media (min-width: 1200px) { 14 | max-width: 1140px; 15 | } 16 | 17 | @media (min-width: 1400px) { 18 | max-width: 1320px; 19 | } 20 | 21 | width: 100%; 22 | } 23 | 24 | .jc-fancy-imagebar { 25 | 26 | overflow: hidden; 27 | 28 | img { 29 | object-fit: cover; 30 | object-position: left; 31 | } 32 | 33 | @at-root &-map { 34 | area { 35 | outline: none; 36 | } 37 | } 38 | 39 | } 40 | 41 | @import "webtrees-themes"; 42 | 43 | /** Custom themes */ 44 | @import "custom-themes-rural"; 45 | 46 | // The JustLight theme supports this module from the theme css. 47 | -------------------------------------------------------------------------------- /webpack.mix.distribution.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Laravel mix - Fancy Imagebar 3 | * 4 | * Output: 5 | * - dist 6 | * - resources 7 | * - css 8 | * - lang (.mo files) 9 | * - views 10 | * FancyImagebarModule.php 11 | * module.php 12 | * LICENSE.md 13 | * README.md 14 | * 15 | */ 16 | 17 | let mix = require('laravel-mix'); 18 | let config = require('./webpack.mix.config'); 19 | require('laravel-mix-clean'); 20 | 21 | mix 22 | .setPublicPath('./dist') 23 | .copyDirectory(config.public_dir + '/views', config.dist_dir + '/resources/views') 24 | .copy(config.public_dir + '/lang/*.mo', config.dist_dir + '/resources/lang') 25 | .copy(config.build_dir + '/style.css', config.dist_dir + '/resources/css/style.css') 26 | .copy('FancyImagebarModule.php', config.dist_dir) 27 | .copy('module.php', config.dist_dir) 28 | .copy('LICENSE.md', config.dist_dir) 29 | .copy('README.md', config.dist_dir) 30 | .clean(); 31 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "format-pot": "format-pot.bat", 5 | "mo-files": "compile-mo.bat", 6 | "development": "cross-env process.env.section=module NODE_ENV=development node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "production": "npm run development && cross-env process.env.section=module NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js", 8 | "distribution": "npm run production && npm run mo-files && cross-env process.env.section=distribution NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "archive": "npm run distribution && cross-env process.env.section=archive NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js" 10 | }, 11 | "devDependencies": { 12 | "clean-webpack-plugin": "^4.0.0", 13 | "filemanager-webpack-plugin": "^9.0.1", 14 | "laravel-mix": "^6.0.49", 15 | "laravel-mix-clean": "^0.1.0", 16 | "postcss": "^8.5.6", 17 | "postcss-rtlcss": "^5.7.1", 18 | "webpack": "^5.100.2", 19 | "webpack-cli": "^6.0.1" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /webpack.mix.module.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Laravel mix - Fancy Imagebar 3 | * 4 | * Output: 5 | * - dist 6 | * - resources 7 | * - css 8 | * - lang (.mo files) 9 | * - views 10 | * FancyImagebarModule.php 11 | * module.php 12 | * LICENSE.md 13 | * README.md 14 | * 15 | */ 16 | 17 | let mix = require('laravel-mix'); 18 | let config = require('./webpack.mix.config'); 19 | 20 | // https://github.com/postcss/autoprefixer 21 | const postcssAutoprefixer = require("autoprefixer")(); 22 | 23 | // https://github.com/elchininet/postcss-rtlcss 24 | const postcssRTLCSS = require('postcss-rtlcss')({safeBothPrefix: true}); 25 | 26 | const dist_dir = 'dist/jc-fancy-imagebar'; 27 | 28 | //https://github.com/gregnb/filemanager-webpack-plugin 29 | const FileManagerPlugin = require('filemanager-webpack-plugin'); 30 | 31 | if (process.env.NODE_ENV === 'production') { 32 | mix.styles(config.public_dir + '/css/style.css', config.build_dir + '/style.css') 33 | } else { 34 | mix 35 | .setPublicPath('./') 36 | .sass('src/sass/style.scss', config.public_dir + '/css/style.css') 37 | .options({ 38 | processCssUrls: false, 39 | postCss: [ 40 | postcssRTLCSS, 41 | postcssAutoprefixer 42 | ] 43 | }); 44 | } 45 | -------------------------------------------------------------------------------- /resources/lang/_fancy-imagebar.pot: -------------------------------------------------------------------------------- 1 | #, fuzzy 2 | msgid "" 3 | msgstr "" 4 | "Project-Id-Version: Fancy Imagebar\n" 5 | "POT-Creation-Date: 2023-07-12 21:29+0200\n" 6 | "PO-Revision-Date: \n" 7 | "Last-Translator: Carmen \n" 8 | "Language-Team: \n" 9 | "Language: en_US\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 14 | "X-Generator: Poedit 3.3.2\n" 15 | "X-Poedit-Basepath: ../..\n" 16 | "X-Poedit-SourceCharset: UTF-8\n" 17 | "X-Poedit-KeywordsList: translate;noop;plural:1,2\n" 18 | "X-Poedit-Flags-xgettext: --add-comments\n" 19 | "X-Poedit-SearchPath-0: .\n" 20 | "X-Poedit-SearchPathExcluded-0: .git\n" 21 | "X-Poedit-SearchPathExcluded-1: dist\n" 22 | "X-Poedit-SearchPathExcluded-2: node_modules\n" 23 | "X-Poedit-SearchPathExcluded-3: src\n" 24 | 25 | #: FancyImagebarModule.php:91 26 | msgid "An imagebar with small images between header and content." 27 | msgstr "" 28 | 29 | #: resources/views/settings.phtml:74 30 | msgid "Crop thumbnails to square" 31 | msgstr "" 32 | 33 | #: resources/views/settings.phtml:97 34 | msgid "Display the image table to refine the selection of images" 35 | msgstr "" 36 | 37 | #: FancyImagebarModule.php:80 38 | msgid "Fancy Imagebar" 39 | msgstr "" 40 | 41 | #: resources/views/settings.phtml:64 42 | msgid "Height of the Fancy Imagebar" 43 | msgstr "" 44 | 45 | #: resources/views/media-table.phtml:20 46 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 47 | msgstr "" 48 | 49 | #: resources/views/media-table.phtml:21 50 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 51 | msgstr "" 52 | 53 | #: resources/views/media-table.phtml:27 54 | msgid "Select/unselect all" 55 | msgstr "" 56 | 57 | #: resources/views/settings.phtml:86 58 | msgid "Show the Fancy Imagebar on the homepage only" 59 | msgstr "" 60 | 61 | #: resources/views/media-table.phtml:22 62 | msgid "The Fancy Imagebar module respects privacy settings!" 63 | msgstr "" 64 | 65 | #: resources/views/media-table.phtml:28 66 | msgid "Toggle this checkbox to select all images." 67 | msgstr "" 68 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Fancy Imagebar for webtrees 2 | =========================== 3 | 4 | [![Latest Release](https://img.shields.io/github/release/JustCarmen/webtrees-fancy-imagebar.svg)][1] 5 | [![webtrees major version](https://img.shields.io/badge/webtrees-v2.2.x-green)][2] 6 | [![Downloads](https://img.shields.io/github/downloads/JustCarmen/webtrees-fancy-imagebar/total.svg)]() 7 | 8 | [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XPBC2W85M38AS&item_name=webtrees%20modules%20by%20JustCarmen¤cy_code=EUR) 9 | 10 | Introduction 11 | ------------ 12 | The Fancy Imagebar is a nice looking imagebar between header and content of your webtrees website. 13 | 14 | There is a configuration page in control panel where you can set a few options. For performance reasons the options are less extended as in webtrees 1, but in most cases the provided options will be sufficient. 15 | 16 | You can choose the folder(s) which contains the images you want to show in the Fancy Imagebar and set the desired image type (leave empty to show all). Further you can set the height of the imagebar and opt for square thumbnails. External images are not supported. It is possible to set a different configuration per tree. 17 | 18 | A cool new feature is that the images in the imagebar are clickable now. By clicking an image the user is redirected to the individual page, family page or source page the image is linked to. In case an image contains mulitple links, the first link found is used. 19 | 20 | Translations 21 | ------------ 22 | You can help to translate this module. The language files are at [POEditor][3] where you can update them. Or use a local editor, like Poedit or Notepad++ to make the translations and send them back to me. You can do this via a pull request (if you know how) or by e-mail. Updated translations will be included in the next release of this module. 23 | 24 | Installation & upgrading 25 | ------------------------ 26 | Unpack the zip file and place the folder jc-fancy-imagebar in the modules_v4 folder of webtrees. Upload the newly added folder to your server. It is activated by default. Go to the control panel to set some options. 27 | 28 | Bugs and feature requests 29 | ------------------------- 30 | If you experience any bugs or have a feature request for this module you can [create a new issue on GitHub][4]. 31 | 32 | [1]: https://github.com/JustCarmen/webtrees-fancy-imagebar/releases/latest 33 | [2]: https://webtrees.github.io/download/ 34 | [3]: https://poeditor.com/join/project?hash=kH2euLO811 35 | [4]: https://github.com/JustCarmen/webtrees-fancy-imagebar/issues?state=open 36 | -------------------------------------------------------------------------------- /resources/lang/es.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: es\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Barra con mini-imágenes entre encabezado y contenido" 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Recorte imágenes a cuadro" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Muestre la tabla de imágenes para refinar su selección." 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Barra Elegante" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Altura de la Barra Elegante" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Aquí Ud. decide qué imágenes mostrar en la Barra Elegante. Las imágenes serán repetidas si usted no ha ocupado todo el espacio disponible en la Barra Elegante. " 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Nota: Este módulo soporta sólo imágenes “jpg” or “png” locales. No soporta imágenes externas. No es posible mantener la transparencia de las imágenes en la Barra Elegante. Las imágenes png transparentes aparecerán con fondo negro. Las imágenes de esta tabla tienen ya las especificaciones correctas. " 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Optar/No optar todo" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Barra Elegante sólo en página de inicio\n" 45 | "" 46 | 47 | #: resources/views/media-table.phtml:22 48 | msgid "The Fancy Imagebar module respects privacy settings!" 49 | msgstr "Barra Elegante usa sus opciones de privacidad!" 50 | 51 | #: resources/views/media-table.phtml:28 52 | msgid "Toggle this checkbox to select all images." 53 | msgstr "Optar la casilla elige todas las imágenes." 54 | 55 | -------------------------------------------------------------------------------- /resources/lang/sv.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: sv\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Ett bildfält med små foton placerat mellan sidhuvud och innehåll." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Beskär miniatyrer till storleketn av en fyrkant" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Höjd på Fancy Imagebar fältet" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Här kan du välja vilka bilder som ska visas i Fancy Imagebar fältet. Om inte tillräckligt många bilder är valda, kommer valda bilder att återupprepas." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Notera: Endast lokala \"jpg\" eller \"png\" bilder stödjs av den här modulen. Externa bilder stöds ej. Det är inte möjligt att behålla transparansen i miniatyrer av png format. Transparenta png-miniatyrer får en svart bakgrund. Bilderna i denna tabellen har redan rätt specifikationer." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Välj/Välj bort alla" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Visa Fancy Imagebar endast på startsidan" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Fancy Imagebarmodulen respekterar integritetsinställningar!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Klicka i kryssrutan för att välja alla bilder." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/is.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: is\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Myndastika með smámyndum á milli haus og efnis." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Kroppa smámyndir í ferning" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Birtu myndatöfluna til að fínstilla úrval mynda" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Flott myndastika" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Hæð á flottu myndastikunni" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Hér getur þú valið hvaða myndir eiga að birtast í flottu myndastikunni. Ef færri myndir eru valdar en þarf til að fylla alla flottu myndastikuna, verða myndirnar endurteknar." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Athugið: Aðeins staðbundnar „jpg“ eða „png“ myndir eru studdar af þessari einingu. Ytri myndir eru ekki studdar. Það er ekki hægt að viðhalda gagnsæi fyrir png-smámyndir í flottu myndastikunni. Gagnsæjar png-smámyndir fá svartan bakgrunn. Myndirnar í þessari töflu eru nú þegar með réttar skilgreiningar." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Velja/afvelja allt" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Sýna flottu myndastikuna eingöngu á heimasíðunni" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Flotta myndastikueiningin virðir friðhelgisstillingar!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Hakaðu við þennan gátreit til að velja allar myndir." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/en-US.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: en-us\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "An imagebar with small images between header and content." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Crop thumbnails to square" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Height of the Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Select/unselect all" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Show the Fancy Imagebar on the homepage only" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "The Fancy Imagebar module respects privacy settings!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Toggle this checkbox to select all images." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/sr.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: sr\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Traka slika sa malim slikama između zaglavlja i sadržaja." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Izrežite sličice u kvadrat" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Ukrasna traka slika" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Visina ukrasne trake slika" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Ovde možete izabrati koje slike treba da budu prikazane na ukrasnoj traci slika. Ako je izabrano manje slika nego što je potrebno da se popuni čitava ukrasna traka, slike će se ponoviti." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Napomena: Ovaj modul podržava samo lokalne “jpg” ili “png” slike. Spoljne slike nisu podržane. Nije moguće zadržati transparentnost za PNG sličice u ukrasnoj traci slika. Prozirne png sličice će dobiti crnu pozadinu. Slike u ovoj tabeli već imaju tačne specifikacije." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Izaberite/poništite izbor svih" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Prikažite ukrasnu traku slika samo na početnoj stranici" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Modul ukrasna traka slika poštuje podešavanja privatnosti!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Uključite ovo polje da biste izabrali sve slike." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/pl.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: pl\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Pasek złożony z małych zdjęć między nagłówkiem a treścią." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Przytnij miniatury do kwadratu" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Pokaż zdjęcia, aby wybrać zawężając ich ilość." 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Ozdobny pasek zdjęć" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Wysokość paska zdjęć" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Tutaj możesz wybrać, które obrazy powinny być wyświetlane w Fancy Imagebar. Jeśli wybrano mniej obrazów niż potrzeba do wypełnienia całego paska Fancy Imagebar, obrazy zostaną powtórzone." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Uwaga: Tylko lokalne obrazy \"jpg\" lub \"png\" są obsługiwane przez ten moduł. Obrazy zewnętrzne nie są obsługiwane. Nie jest możliwe zachowanie przezroczystości dla miniaturek png w Fancy Imagebar. Przezroczyste miniaturki png będą miały czarne tło. Obrazy w tej tabeli mają już prawidłowe specyfikacje." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Zaznacz/odznacz wszystko" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Pokaż pasek zdjęć tylko na stronie głównej" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Moduł Fancy Imagebar szanuje ustawienia prywatności!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Przełącz to pole wyboru, aby wybrać wszystkie obrazy." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/sr-cyrl.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: sr-cyrl\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Трака слика са малим сликама између заглавља и садржаја." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Изрежите сличице у квадрат" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Украсна трака слика" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Висина украсне траке слика" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Овде можете изабрати које слике треба да буду приказане на украсној траци слика. Ако је изабрано мање слика него што је потребно да се попуни читава украсна трака, слике ће се поновити." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Напомена: Овај модул подржава само локалне “јпг” или “пнг” слике. Спољне слике нису подржане. Није могуће задржати транспарентност за ПНГ сличице у украсној траци слика. Прозирне пнг сличице ће добити црну позадину. Слике у овој табели већ имају тачне спецификације." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Изаберите/поништите избор свих" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Прикажите украсну траку слика само на почетној страници" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Модул украснa траka слика поштује подешавања приватности!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Укључите ово поље да бисте изабрали све слике." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/nb.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: nb\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "En bildelinje med små bilder mellom overskrift og innhold." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Beskjær miniatyrbilder til firkant" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Høyden på Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Her kan du velge hvilke bilder som skal vises i Fancy Imagebar. Hvis færre bilder velges enn nødvendig for å fylle hele Fancy Imagebar, vil bildene bli gjentatt." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Merk: Bare lokale \"jpg\" eller \"png\"-bilder støttes av denne modulen. Eksterne bilder støttes ikke. Det er ikke mulig å holde gjennomsiktighet for png-miniatyrbilder i Fancy Imagebar. Gjennomsiktige png-miniatyrbilder vil få en svart bakgrunn. Bildene i denne tabellen har allerede de riktige spesifikasjonene." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Velg/opphev valget av alle" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Vis Fancy Imagebar kun på hjemmesiden" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Fancy Imagebar-modulen respekterer personverninnstillingene!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Veksle denne avmerkingsboksen for å velge alle bildene." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/af.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: af\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "’n Beeldbalk met klein beelde tussen die voorstuk en inhoud." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Sny duimnaels na vierkant" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Hoogte van die Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Hier kan u kies watter beelde in die Fancy Imagebar vertoon moet word. As minder beelde gekies word as wat nodig is om die hele Fancy Imagebar te vul, word die beelde herhaal." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Let wel: Hierdie module ondersteun slegs plaaslike \"jpg\" - of \"png\" -beelde. Eksterne beelde word nie ondersteun nie. Dit is nie moontlik om deursigtigheid te behou vir png -kleinkiekies in die Fancy Imagebar nie. Deursigtige png-duimnaels kry 'n swart agtergrond. Die beelde in hierdie tabel het reeds die korrekte spesifikasies." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Kies/ontkies alles" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Show the Fancy Imagebar on the homepage only" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Die Fancy Imagebar -module respekteer privaatheidsinstellings!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Skakel hierdie boks om alle prente te kies." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/da.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: da\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Et billedgalleri med små billeder vist mellem menubar og indhold." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Beskær miniaturebilleder til firkantet" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Billedegalleri" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Højde på galleriet" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Her kan du vælge, hvilke billeder der skal vises i Fancy Imagebar. Hvis der vælges færre billeder end nødvendigt for at fylde hele Fancy Imagebar, gentages billederne." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Bemærk: Kun lokale “jpg” eller “png” billeder understøttes af dette modul. Eksterne billeder understøttes ikke. Det er ikke muligt at bevare gennemsigtighed for png -miniaturebilleder i Fancy Imagebar. Gennemsigtige png-miniaturer får en sort baggrund. Billederne i denne tabel har allerede de korrekte specifikationer." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Vælg/fjern markeringen af alle" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Show the Fancy Imagebar on the homepage only" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Fancy Imagebar -modulet respekterer privatlivsindstillinger!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Skift dette afkrydsningsfelt for at vælge alle billeder." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/hu.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: hu\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Egy képsáv bélyegképekkel a fejléc és tartalom között." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Körbevágja az indexképeket" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy képsáv" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "A Fancy képsáv magassága" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Itt kiválaszthatja, hogy mely képeket jelenítse meg a díszes képsávon. Ha kevesebb kép van kiválasztva, mint amennyi a teljes képsáv kitöltéséhez szükséges, a képek megismétlődnek." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Megjegyzés: Ez a modul csak a helyi „jpg” vagy „png” képeket támogatja. A külső képek nem támogatottak. Nem lehet megőrizni a png indexképek átlátszóságát a képzeletben. Az átlátszó png-miniatűrök fekete hátteret kapnak. A táblázatban szereplő képek már a megfelelő specifikációkkal rendelkeznek." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Az összes kijelölése/kijelölésének megszüntetése" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Show the Fancy Imagebar on the homepage only" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "A Fancy Imagebar modul tiszteletben tartja az adatvédelmi beállításokat!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Az összes kép kiválasztásához kapcsolja be ezt a jelölőnégyzetet." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/it.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: it\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Una barra con piccole immagini tra intestazione e contenuti." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Ritaglia le miniature in un quadrato" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Visualizza la tabella immagine per rifinire la selezione delle immagini" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Altezza di Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Qui puoi scegliere quali immagini devono essere mostrate nella Fancy Imagebar. Se vengono selezionate meno immagini del necessario per riempire l'intera Fancy Imagebar, le immagini verranno ripetute." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Nota: solo le immagini locali \"jpg\" o \"png\" sono supportate da questo modulo. Le immagini esterne non sono supportate. Non è possibile mantenere la trasparenza per le miniature png nella Fancy Imagebar. Le miniature png trasparenti avranno uno sfondo nero. Le immagini in questa tabella hanno già le specifiche corrette." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Seleziona/deseleziona tutto" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Mostra Fancy Imagebar solo in homepage" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Il modulo Fancy Imagebar rispetta le impostazioni sulla privacy!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Seleziona/Deseleziona tutte le immagini." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/uk.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: uk\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Панель зображень із невеликими фото між заголовком та вмістом." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Обрізати ескізи до квадрата" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Відобразити таблицю зображень для уточнення вибору зображень" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Витончена панель зображень" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Висота панелі зображень" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Тут ви можете вибрати, які зображення слід показувати на панелі фантазійних зображень. Якщо вибрано менше зображень, ніж потрібно, щоб заповнити всю фантастичну панель зображень, зображення будуть повторюватися." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Примітка: Цей модуль підтримує лише локальні зображення \"jpg\" або \"png\". Зовнішні зображення не підтримуються. Неможливо зберегти прозорість ескізів png на фантазійній панелі зображень. Прозорі png-ескізи отримають чорний фон. Зображення в цій таблиці вже мають правильні технічні характеристики." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Виділити/скасувати вибір усіх" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Показати панель зображень лише на домашній сторінці" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Модуль Fancy Imagebar поважає налаштування конфіденційності!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Увімкніть цей прапорець, щоб вибрати всі зображення." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/pt-BR.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: pt-br\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Uma barra horizontal com imagens em miniaturas entre o cabeçalho e o conteúdo." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Miniaturas de culturas ao quadrado" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Display the image table to refine the selection of images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Altura da Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Aqui você pode escolher quais imagens devem ser mostradas na Fancy Imagebar. Se forem seleccionadas menos imagens do que as necessárias para preencher toda a Barra horizontal, as imagens serão repetidas." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Nota: Apenas imagens locais \"jpg\" ou \"png\" são suportadas por este módulo. As imagens externas não são suportadas. Não é possível manter transparência para as miniaturas png na Fancy Imagebar. As miniaturas transparentes de png terão um fundo preto. As imagens nesta tabela já têm as especificações correctas." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Selecionar/Desmarcar todos" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Mostrar a Fancy Imagebar apenas na página inicial" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "O módulo Fancy Imagebar respeita as definições de privacidade!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Alterne esta caixa de seleção para selecionar todas as imagens." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/ru.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: ru\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Панель изображений с небольшими изображениями между заголовком и содержимым." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Обрезать миниатюры до квадрата" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Отобразите таблицу изображений, чтобы уточнить выбор изображений" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Необычная панель изображений" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Высота необычной панели изображений" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Здесь вы можете выбрать, какие изображения должны отображаться на Fancy Imagebar. Если выбрано меньше изображений, чем необходимо для заполнения всей Fancy Imagebar, изображения будут повторяться." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Примечание. Этот модуль поддерживает только локальные изображения в формате «jpg» или «png». Внешние образы не поддерживаются. Невозможно сохранить прозрачность миниатюр png на Fancy Imagebar. Прозрачные миниатюры в формате png получат черный фон. Изображения в этой таблице уже имеют правильные характеристики." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Выбрать все / отменить выбор" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Показывать Fancy Imagebar только на главной странице" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Модуль Fancy Imagebar уважает настройки конфиденциальности!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Установите этот флажок, чтобы выбрать все изображения." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/ca.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: ca\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Una barra d'imatges amb petites imatges entre capçalera i contingut." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Retallar miniatures al quadrat" 17 | 18 | #: FancyImagebarModule.php:80 19 | msgid "Fancy Imagebar" 20 | msgstr "Barra d'imatges de luxe" 21 | 22 | #: resources/views/settings.phtml:64 23 | msgid "Height of the Fancy Imagebar" 24 | msgstr "Alçada de la barra d'imatges de luxe" 25 | 26 | #: resources/views/settings.phtml:86 27 | msgid "Show the Fancy Imagebar on the homepage only" 28 | msgstr "Mostra la barra d'imatges de luxe només a la pàgina d'inici" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "quí podeu triar quines imatges s'han de mostrar a la barra d'imatges de luxe. Si se seleccionen menys imatges de les necessàries per omplir tota la barra d'imatges de luxe, les imatges es repetiran." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Nota: Aquest mòdul només admet imatges locals \"jpg\" o \"png\". No s'admeten imatges externes. No és possible mantenir la transparència de les miniatures png a la barra d'imatges elegant. Les miniatures png transparents obtindran un fons negre. Les imatges d'aquesta taula ja tenen les especificacions correctes." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Seleccionar/desmarcar-ho tot" 41 | 42 | #: resources/views/media-table.phtml:22 43 | msgid "The Fancy Imagebar module respects privacy settings!" 44 | msgstr "El mòdul Fancy Imagebar respecta la configuració de privadesa." 45 | 46 | #: resources/views/media-table.phtml:28 47 | msgid "Toggle this checkbox to select all images." 48 | msgstr "Activeu aquesta casella de selecció per seleccionar totes les imatges." 49 | 50 | #: resources/views/settings.phtml:97 51 | msgid "Display the image table to refine the selection of images" 52 | msgstr "Mostra la taula d'imatges per refinar la selecció d'imatges" 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/nl.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: nl\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Een galerij met kleine afbeeldingen tussen koptekst en inhoud." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Miniaturen bijsnijden tot vierkant" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Geef de afbeeldingentabel weer om de selectie van afbeeldingen te verfijnen" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Hoogte van de Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Hier kunt u kiezen welke afbeeldingen in de Fancy Imagebar getoond moeten worden. Als er minder afbeeldingen zijn geselecteerd dan nodig is om de hele Fancy Imagebar te vullen, worden de afbeeldingen herhaald." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Opmerking: alleen lokale \"jpg\"- of \"png\"-afbeeldingen worden door deze module ondersteund. Externe afbeeldingen worden niet ondersteund. Het is niet mogelijk om de transparantie voor png-miniaturen in de Fancy Imagebar te behouden. Transparante png-thumbnails krijgen een zwarte achtergrond. De afbeeldingen in deze tabel hebben al de juiste specificaties." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Alles selecteren/deselecteren" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Toon de Fancy Imagebar alleen op de homepage" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "De Fancy Imagebar-module respecteert de privacy-instellingen!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Schakel dit selectievakje in om alle afbeeldingen te selecteren." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/de.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: de\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Eine Bildleiste mit kleinen Fotos zwischen dem Seitenkopf und dem Seiteninhalt." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Miniaturansichten auf eine quadratische Form zuschneiden" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Bilderübersicht anzeigen zur verfeinerten Auswahl der Bilder" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Höhe der Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Hier können Sie auswählen, welche Bilder in der Fancy Imagebar angezeigt werden sollen. Wenn weniger Bilder ausgewählt werden, als zum Ausfüllen der gesamten Fancy Imagebar erforderlich sind, werden die Bilder wiederholt." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Hinweis: Dieses Modul unterstützt nur lokale „jpg“- oder „png“-Bilder. Externe Bilder werden nicht unterstützt. Es ist nicht möglich, die Transparenz für PNG-Miniaturansichten in der Fancy Imagebar zu nutzen. Transparente PNG-Miniaturansichten erhalten einen schwarzen Hintergrund. Die Bilder in dieser Tabelle haben bereits die richtigen Spezifikationen." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Alle auswählen/abwählen" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Fancy Imagebar nur auf der Startseite anzeigen" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Das Modul Fancy Imagebar respektiert die Datenschutzeinstellungen!" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Aktivieren Sie dieses Kontrollkästchen, um alle Bilder auszuwählen." 53 | 54 | -------------------------------------------------------------------------------- /resources/lang/fr.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "MIME-Version: 1.0\n" 4 | "Content-Type: text/plain; charset=UTF-8\n" 5 | "Content-Transfer-Encoding: 8bit\n" 6 | "X-Generator: POEditor.com\n" 7 | "Project-Id-Version: Fancy Imagebar for webtrees 2\n" 8 | "Language: fr\n" 9 | 10 | #: FancyImagebarModule.php:91 11 | msgid "An imagebar with small images between header and content." 12 | msgstr "Une barre d'image avec de petites images entre l'en-tête et le contenu." 13 | 14 | #: resources/views/settings.phtml:74 15 | msgid "Crop thumbnails to square" 16 | msgstr "Recadrer les miniatures en carré" 17 | 18 | #: resources/views/settings.phtml:97 19 | msgid "Display the image table to refine the selection of images" 20 | msgstr "Afficher la table d'images pour affiner la sélection d'images" 21 | 22 | #: FancyImagebarModule.php:80 23 | msgid "Fancy Imagebar" 24 | msgstr "Fancy Imagebar" 25 | 26 | #: resources/views/settings.phtml:64 27 | msgid "Height of the Fancy Imagebar" 28 | msgstr "Hauteur de Fancy Imagebar" 29 | 30 | #: resources/views/media-table.phtml:20 31 | msgid "Here you can choose which images should be shown in the Fancy Imagebar. If less images are selected than needed to fill the entire Fancy Imagebar, the images will be repeated." 32 | msgstr "Ici, vous pouvez choisir quelles images doivent être affichées dans la barre d'images fantaisie. Si moins d'images sont sélectionnées que nécessaire pour remplir toute la barre d'images fantaisie, les images seront répétées." 33 | 34 | #: resources/views/media-table.phtml:21 35 | msgid "Note: Only local “jpg” or “png” images are supported by this module. External images are not supported. It is not possible to keep transparency for png thumbnails in the Fancy Imagebar. Transparent png-thumbnails will get a black background. The images in this table already have the correct specifications." 36 | msgstr "Remarque : Seules les images locales « jpg » ou « png » sont prises en charge par ce module. Les images externes ne sont pas prises en charge. Il n'est pas possible de conserver la transparence des vignettes png dans la barre d'images fantaisie. Les vignettes png transparentes auront un fond noir. Les images de ce tableau ont déjà les spécifications correctes." 37 | 38 | #: resources/views/media-table.phtml:27 39 | msgid "Select/unselect all" 40 | msgstr "Tout sélectionner/désélectionner" 41 | 42 | #: resources/views/settings.phtml:86 43 | msgid "Show the Fancy Imagebar on the homepage only" 44 | msgstr "Afficher la barre d'images fantaisie sur la page d'accueil uniquement" 45 | 46 | #: resources/views/media-table.phtml:22 47 | msgid "The Fancy Imagebar module respects privacy settings!" 48 | msgstr "Le module Fancy Imagebar respecte les paramètres de confidentialité !" 49 | 50 | #: resources/views/media-table.phtml:28 51 | msgid "Toggle this checkbox to select all images." 52 | msgstr "Cochez cette case pour sélectionner toutes les images." 53 | 54 | -------------------------------------------------------------------------------- /resources/views/script.phtml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 71 | 72 | -------------------------------------------------------------------------------- /resources/css/style.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Fancy Imagebar 3 | */ 4 | .jc-fancy-imagebar { 5 | overflow: hidden; 6 | } 7 | 8 | .jc-fancy-imagebar img { 9 | object-fit: cover; 10 | } 11 | 12 | [dir="ltr"] .jc-fancy-imagebar img { 13 | object-position: left; 14 | } 15 | 16 | [dir="rtl"] .jc-fancy-imagebar img { 17 | object-position: right; 18 | } 19 | 20 | .jc-fancy-imagebar-map area { 21 | outline: none; 22 | } 23 | 24 | /** webtrees themes */ 25 | [dir] .wt-theme-clouds .jc-fancy-imagebar { 26 | border: 1px solid #003399; 27 | } 28 | 29 | .wt-theme-colors .jc-fancy-imagebar-divider { 30 | height: 1px; 31 | } 32 | 33 | [dir] .wt-theme-colors .jc-fancy-imagebar-divider { 34 | background-color: #999; 35 | margin-top: 1px; 36 | } 37 | 38 | .wt-theme-fab .jc-fancy-imagebar { 39 | width: 100%; 40 | } 41 | 42 | [dir] .wt-theme-fab .jc-fancy-imagebar { 43 | border: 5px solid #EEE; 44 | border-bottom-right-radius: 0.25rem; 45 | border-bottom-left-radius: 0.25rem; 46 | margin-left: auto; 47 | margin-right: auto; 48 | } 49 | 50 | @media (min-width: 992px) { 51 | .wt-theme-fab .jc-fancy-imagebar { 52 | max-width: 960px; 53 | } 54 | } 55 | 56 | @media (min-width: 1200px) { 57 | .wt-theme-fab .jc-fancy-imagebar { 58 | max-width: 1140px; 59 | } 60 | } 61 | 62 | @media (min-width: 1400px) { 63 | .wt-theme-fab .jc-fancy-imagebar { 64 | max-width: 1320px; 65 | } 66 | } 67 | 68 | .wt-theme-minimal .jc-fancy-imagebar-divider { 69 | height: 1px; 70 | } 71 | 72 | [dir] .wt-theme-minimal .jc-fancy-imagebar-divider { 73 | background-color: #555; 74 | } 75 | 76 | [dir] .wt-theme-webtrees .jc-fancy-imagebar { 77 | margin-top: 3px; 78 | } 79 | 80 | .wt-theme-webtrees .jc-fancy-imagebar-divider { 81 | height: 1px; 82 | } 83 | 84 | [dir] .wt-theme-webtrees .jc-fancy-imagebar-divider { 85 | background-color: #81A9CB; 86 | margin-top: 3px; 87 | } 88 | 89 | [dir] .wt-theme-xenea .jc-fancy-imagebar { 90 | margin-top: 5px; 91 | } 92 | 93 | .wt-theme-xenea .jc-fancy-imagebar-divider { 94 | height: 2px; 95 | } 96 | 97 | [dir] .wt-theme-xenea .jc-fancy-imagebar-divider { 98 | background-color: #0073CF; 99 | margin: 5px; 100 | } 101 | 102 | /** Custom themes */ 103 | .wt-theme-_myartjaub_ruraltheme_ .jc-fancy-imagebar { 104 | width: 100%; 105 | max-width: 95vw; 106 | } 107 | 108 | [dir] .wt-theme-_myartjaub_ruraltheme_ .jc-fancy-imagebar { 109 | margin-left: auto; 110 | margin-right: auto; 111 | border-left: 15px solid white; 112 | border-right: 15px solid white; 113 | } 114 | 115 | @media (min-width: 992px) { 116 | .wt-theme-_myartjaub_ruraltheme_ .jc-fancy-imagebar { 117 | max-width: 960px; 118 | } 119 | } 120 | 121 | @media (min-width: 1200px) { 122 | .wt-theme-_myartjaub_ruraltheme_ .jc-fancy-imagebar { 123 | max-width: 1140px; 124 | } 125 | } 126 | 127 | @media (min-width: 1400px) { 128 | .wt-theme-_myartjaub_ruraltheme_ .jc-fancy-imagebar { 129 | max-width: 1320px; 130 | } 131 | } 132 | 133 | @media (min-width: 768px) { 134 | .wt-theme-_myartjaub_ruraltheme_ .jc-fancy-imagebar { 135 | max-width: 85vw; 136 | } 137 | } 138 | 139 | [dir] .wt-theme-_myartjaub_ruraltheme_ .container-lg { 140 | padding-left: 15px !important; 141 | padding-right: 15px !important; 142 | } 143 | -------------------------------------------------------------------------------- /resources/views/media-table.phtml: -------------------------------------------------------------------------------- 1 | $media_objects 12 | * @var Tree $tree 13 | */ 14 | 15 | $arr_media_xrefs = array(); 16 | 17 | ?> 18 | 19 | 25 | 26 |
27 | I18N::translate('Select/unselect all'), 'name' => 'select-all']) ?> 28 |

29 |
30 | 33 | data-columns=" 'html'], 35 | ['visible' => false], 36 | ['visible' => false] 37 | ], JSON_THROW_ON_ERROR)) ?>" 38 | > 39 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | make($xref, $tree) ?> 55 | 56 | mediaFiles() as $media_file) : ?> 57 | 58 | 59 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
40 | 41 |
60 | isNotEmpty()) { 63 | $checked = $media_list->contains($media_id) ? 'checked' : ''; 64 | } else { 65 | $checked = 'checked'; 66 | } 67 | // Get list of media xrefs (for select all checkbox) 68 | $arr_media_xrefs[] = $media_id; 69 | ?> 70 | displayImage(100, 100, 'crop', ['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => $media_file->title()]) ?> 71 |
'', 'name' => 'media-checkbox', 'value' => $media_id, 'checked' => $checked]) ?>
72 |
title() ?>
80 | 81 | 82 | 83 | 84 | 127 | 128 | -------------------------------------------------------------------------------- /resources/views/settings.phtml: -------------------------------------------------------------------------------- 1 | 10 | 11 | [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?> 12 | 13 |

14 | 15 |
16 |
17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 |
25 | 40 |
41 |
42 | 43 |
44 | 47 |
48 | 'media-folder', 'selected' => $media_folder, 'options' => $media_folders]) ?> 49 |
50 | 'subfolders', 'label' => /* I18N: Label for check-box */ I18N::translate('Include subfolders'), 'name' => 'subfolders', 'checked' => (int)$subfolders]) ?> 51 |
52 |
53 |
54 | 55 |
56 | 59 |
60 | 'media-type', 'selected' => $media_type, 'options' => $media_types]) ?> 61 |
62 |
63 | 64 |
65 | 68 |
69 | 70 |
71 |
px
72 |
73 | 74 |
75 |
76 | 77 | 78 | 79 |
80 | 'square-thumbs', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int)$square_thumbs]) ?> 81 |
82 |
83 |
84 | 85 |
86 |
87 | 88 | 89 | 90 |
91 | 'homepage-only', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int)$homepage_only]) ?> 92 |
93 |
94 |
95 | 96 |
97 |
98 | 99 | 100 | 101 |
102 | 'display-all', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int)$display_all]) ?> 103 |
104 |
105 |
106 | 107 | 108 |
109 | get(ModuleService::class)->findByName('_jc-fancy-imagebar_'); ?> 110 | name() . '::media-table', ['tree' => $selectedTree, 'xrefs' => $xrefs, 'media_list' => $media_list]) ?> 111 | 112 |
113 | 114 | 118 |
119 |
120 | 121 | 122 | 138 | 139 | -------------------------------------------------------------------------------- /FancyImagebarModule.php: -------------------------------------------------------------------------------- 1 | media_file_service = $media_file_service; 69 | $this->tree_service = $tree_service; 70 | $this->linked_record_service = $linked_record_service; 71 | } 72 | 73 | /** 74 | * How should this module be identified in the control panel, etc.? 75 | * 76 | * @return string 77 | */ 78 | public function title(): string 79 | { 80 | return I18N::translate('Fancy Imagebar'); 81 | } 82 | 83 | /** 84 | * A sentence describing what this module does. 85 | * 86 | * @return string 87 | */ 88 | public function description(): string 89 | { 90 | return I18N::translate('An imagebar with small images between header and content.'); 91 | } 92 | 93 | /** 94 | * {@inheritDoc} 95 | * @see \Fisharebest\Webtrees\Module\ModuleCustomInterface::customModuleAuthorName() 96 | */ 97 | public function customModuleAuthorName(): string 98 | { 99 | return self::CUSTOM_AUTHOR; 100 | } 101 | 102 | /** 103 | * {@inheritDoc} 104 | * @see \Fisharebest\Webtrees\Module\ModuleCustomInterface::customModuleVersion() 105 | */ 106 | public function customModuleVersion(): string 107 | { 108 | return self::CUSTOM_VERSION; 109 | } 110 | 111 | /** 112 | * A URL that will provide the latest stable version of this module. 113 | * 114 | * @return string 115 | */ 116 | public function customModuleLatestVersionUrl(): string 117 | { 118 | return 'https://raw.githubusercontent.com/' . self::CUSTOM_AUTHOR . '/' . self::GITHUB_REPO . '/main/latest-version.txt'; 119 | } 120 | 121 | /** 122 | * {@inheritDoc} 123 | * @see \Fisharebest\Webtrees\Module\ModuleCustomInterface::customModuleSupportUrl() 124 | */ 125 | public function customModuleSupportUrl(): string 126 | { 127 | return self::CUSTOM_SUPPORT_URL; 128 | } 129 | 130 | /** 131 | * Bootstrap. This function is called on *enabled* modules. 132 | * It is a good place to register routes and views. 133 | * 134 | * @return void 135 | */ 136 | public function boot(): void 137 | { 138 | // Register a namespace for our views. 139 | View::registerNamespace($this->name(), $this->resourcesFolder() . 'views/'); 140 | 141 | // Add the javascript used by this module in a separate view 142 | View($this->name() . '::script'); 143 | } 144 | 145 | /** 146 | * Where does this module store its resources 147 | * 148 | * @return string 149 | */ 150 | public function resourcesFolder(): string 151 | { 152 | return __DIR__ . '/resources/'; 153 | } 154 | 155 | /** 156 | * @param ServerRequestInterface $request 157 | * 158 | * @return ResponseInterface 159 | */ 160 | public function getAdminAction(ServerRequestInterface $request): ResponseInterface 161 | { 162 | $this->layout = 'layouts/administration'; 163 | 164 | $tree_id = $this->getPreference('last-tree-id', ''); 165 | 166 | try { 167 | $tree = $this->tree_service->find((int)$tree_id); 168 | } catch (Exception $ex) { 169 | // the last tree saved doesn't exist anymore. Use the first tree instead. 170 | $tree = $this->tree_service->all()->first(); 171 | $tree_id = $tree->id(); 172 | 173 | // remove settings from non existing tree from the database 174 | DB::table('module_setting') 175 | ->where('module_name', '=', $this->name()) 176 | ->where('setting_name', 'LIKE', '' . $this->getPreference('last-tree-id') . '-%' ) 177 | ->delete(); 178 | 179 | // reset the last tree id 180 | $this->setPreference('last-tree-id', ''); 181 | } 182 | 183 | $data_filesystem = Registry::filesystem()->data(); 184 | 185 | $media_folders = $this->media_file_service->allMediaFolders($data_filesystem); 186 | $media_types = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->values(); 187 | 188 | $media_folder = $this->getPreference($tree_id . '-media-folder'); 189 | $media_type = $this->getPreference($tree_id . '-media-type'); 190 | $subfolders = $this->getPreference($tree_id . '-subfolders'); 191 | $xrefs = $this->getMediaXrefs($tree, str_replace($tree->getPreference('MEDIA_DIRECTORY', 'media/'), "", $media_folder), $subfolders, $media_type); 192 | 193 | return $this->viewResponse($this->name() . '::settings', [ 194 | 'all_trees' => $this->tree_service->all(), 195 | 'canvas_height' => $this->getPreference($tree_id . '-canvas-height', '80'), 196 | 'display_all' => $this->getPreference($tree_id . '-display-all'), 197 | 'homepage_only' => $this->getPreference($tree_id . '-homepage-only'), 198 | 'media_folder' => $media_folder, 199 | 'media_folders' => $media_folders, 200 | 'media_list' => $this->getMediaList($tree), 201 | 'media_type' => $media_type, 202 | 'media_types' => $media_types, 203 | 'square_thumbs' => $this->getPreference($tree_id . '-square-thumbs'), 204 | 'subfolders' => $subfolders, 205 | 'title' => $this->title(), 206 | 'tree_id' => $tree_id, 207 | 'xrefs' => $xrefs 208 | ]); 209 | } 210 | 211 | /** 212 | * Save the user preference. 213 | * 214 | * @param ServerRequestInterface $request 215 | * 216 | * @return ResponseInterface 217 | */ 218 | public function postAdminAction(ServerRequestInterface $request): ResponseInterface 219 | { 220 | $params = (array) $request->getParsedBody(); 221 | 222 | // store the preferences in the database when editing the form 223 | $tree_id = $params['tree-id']; 224 | $this->setPreference('last-tree-id', $tree_id); 225 | 226 | if ($params['switch'] === '1') { 227 | $this->setPreference($tree_id . '-media-folder', $params['media-folder']); 228 | $this->setPreference($tree_id . '-subfolders', $params['subfolders'] ?? '0'); 229 | $this->setPreference($tree_id . '-media-type', $params['media-type']); 230 | $this->setPreference($tree_id . '-display-all', $params['display-all']); 231 | } 232 | 233 | if ($params['save'] === '1') { 234 | $this->setPreference($tree_id . '-canvas-height', $params['canvas-height']); 235 | $this->setPreference($tree_id . '-square-thumbs', $params['square-thumbs']); 236 | $this->setPreference($tree_id . '-homepage-only', $params['homepage-only']); 237 | $this->setPreference($tree_id . '-media-list', $params['media-list']); 238 | 239 | // remove previously cached images. The cache is recreated the first time the imagebar is loaded after the settings are changed 240 | $tree = $this->tree_service->find((int)$tree_id); 241 | $this->emptyCache($tree); 242 | 243 | $message = I18N::translate('The preferences for the module “%s” have been updated.', $this->title()); 244 | FlashMessages::addMessage($message, 'success'); 245 | } 246 | 247 | return redirect($this->getConfigLink()); 248 | } 249 | 250 | /** 251 | * Raw content, to be added at the end of the element. 252 | * Typically, this will be '; 264 | 265 | return $body; 266 | } 267 | 268 | /** 269 | * Raw content, to be added at the end of the element. 270 | * Typically, this will be and elements. 271 | * 272 | * @return string 273 | */ 274 | public function headContent(): string 275 | { 276 | $request = Registry::container()->get(ServerRequestInterface::class); 277 | $tree = $request->getAttribute('tree'); 278 | 279 | if ($tree === null) { 280 | return ''; 281 | } 282 | 283 | $canvas_height = $this->getPreference($tree->id() . '-canvas-height', '80'); 284 | $canvas_height_md = 0.85 * $canvas_height; 285 | $canvas_height_sm = 0.75 * $canvas_height; 286 | 287 | $url = $this->assetUrl('css/style.css'); 288 | 289 | return ' 290 | 307 | '; 308 | } 309 | 310 | /** 311 | * Additional/updated translations. 312 | * 313 | * @param string $language 314 | * 315 | * @return string[] 316 | */ 317 | public function customTranslations(string $language): array 318 | { 319 | $lang_dir = $this->resourcesFolder() . 'lang/'; 320 | $file = $lang_dir . $language . '.mo'; 321 | if (file_exists($file)) { 322 | return (new Translation($file))->asArray(); 323 | } else { 324 | return []; 325 | } 326 | } 327 | 328 | /** 329 | * Generate the html for the Fancy imagebar 330 | * 331 | * @return string 332 | */ 333 | public function fancyImagebar(): string 334 | { 335 | $request = Registry::container()->get(ServerRequestInterface::class); 336 | 337 | $tree = $request->getAttribute('tree'); 338 | if ($tree === null) { 339 | return ''; 340 | } 341 | 342 | $route = $request->getAttribute('route'); 343 | $homepage_only = $this->getPreference($tree->id() . '-homepage-only', '0'); 344 | if ($homepage_only === '1' && $route->name !== TreePage::class) { 345 | return ''; 346 | } 347 | 348 | $data_filesystem = Registry::filesystem()->data(); 349 | $data_folder = Registry::filesystem()->dataName(); 350 | 351 | $wt_media_folder = $tree->getPreference('MEDIA_DIRECTORY', 'media/'); 352 | 353 | if (!file_exists(self::CACHE_DIR)) { 354 | mkdir(self::CACHE_DIR); 355 | } 356 | 357 | // Set default values in case the settings are not stored in the database yet 358 | $subfolders = $this->getPreference($tree->id() . '-subfolders', '1'); 359 | $media_type = $this->getPreference($tree->id() . '-media-type'); 360 | $square_thumbs = $this->getPreference($tree->id() . '-square-thumbs', '0'); 361 | $canvas_height = (int)$this->getPreference($tree->id() . '-canvas-height', '80'); 362 | 363 | // strip out the default media directory from the folder path. It is not stored in the database 364 | $folder = str_replace($wt_media_folder, "", $this->getPreference($tree->id() . '-media-folder')); 365 | 366 | // include or exclude subfolders 367 | $subfolders = $subfolders === '1' ? 'include' : 'exclude'; 368 | 369 | // Pull the user defined medialist from the database module settings 370 | $media_list = $this->getMediaList($tree); 371 | 372 | // Get the collection of xrefs to work with 373 | if ($media_list->isEmpty()) { 374 | $xrefs = $this->getMediaXrefs($tree, $folder, $subfolders, $media_type); 375 | } else { 376 | $xrefs = $media_list->map(function ($xref) { 377 | return substr($xref, 0, (int)strpos($xref, "[")); 378 | })->unique(); 379 | } 380 | 381 | // randomize the collection 382 | $xrefs = $xrefs->shuffle(); 383 | 384 | // We need to set a limit due to performance. We use a cookie based on the user's screen width to achieve that. 385 | // The default value (3840) is equal to a 4K screen. 386 | $canvas_width = (int)isset($_COOKIE["FIB_WIDTH"]) ? $_COOKIE["FIB_WIDTH"] : "3840"; 387 | 388 | // add support for small screens (to be in sync with smaller height - see function HeadContent()) 389 | switch ($canvas_width) { 390 | case $canvas_width < 768: 391 | $canvas_width = $canvas_width / 0.75; 392 | break; 393 | case $canvas_width < 992: 394 | $canvas_width = $canvas_width / 0.85; 395 | break; 396 | } 397 | 398 | // Get the thumbnail resources 399 | $resources = array(); 400 | $calculated_width = 0; 401 | 402 | foreach ($xrefs as $xref) { 403 | 404 | $media = Registry::mediaFactory()->make($xref, $tree); 405 | 406 | if ($media && $media->canShow()) { 407 | $i = 0; // counter for multiple media files in a media object 408 | foreach ($media->mediaFiles() as $media_file) { 409 | $i++; 410 | $media_id = $xref . '[' . $i. ']'; 411 | 412 | $process_image = $media->mediaFiles()->count() > 1 ? $media_list->contains($media_id) : true; 413 | 414 | if ($process_image && $media_file->fileExists($data_filesystem)) { 415 | 416 | $file = $data_folder . $wt_media_folder . $media_file->filename(); 417 | $cache_file = $this->cacheFile($tree, $media_id, $file); 418 | 419 | if (is_file($cache_file)) { 420 | $fancy_thumb = $this->loadImage($cache_file); 421 | } else { 422 | $fancy_thumb = $this->fancyThumb($file, $canvas_height, $square_thumbs); 423 | if (!is_null($fancy_thumb)) { 424 | imagejpeg($fancy_thumb, $cache_file); 425 | } 426 | } 427 | 428 | if (!is_null($fancy_thumb)) { 429 | $calculated_width = $calculated_width + imagesx($fancy_thumb); 430 | $resources[] = [ 431 | 'image' => $fancy_thumb, 432 | 'linked' => $this->getLinkedObject($media) 433 | ]; 434 | } 435 | } 436 | } 437 | } 438 | 439 | // Stop when we have enough thumbnails to fill the entire width of the screen with the Fancy Imagebar. 440 | if ($calculated_width >= $canvas_width) { 441 | break; 442 | } 443 | } 444 | 445 | if (count($resources) === 0) { 446 | return ''; 447 | } 448 | 449 | // prevent media files from one media object always stick together 450 | shuffle($resources); 451 | 452 | // Repeat items if neccessary to fill up the Fancy Imagebar 453 | if ($calculated_width < $canvas_width) { 454 | $average_thumb_width = (float)$calculated_width / count($resources); 455 | $num_thumbs = (int)ceil($canvas_width / $average_thumb_width); 456 | // see: https://stackoverflow.com/questions/2963777/how-to-repeat-an-array-in-php 457 | $resources = array_merge(...array_fill(0, (int)ceil($num_thumbs/count($resources)), $resources)); 458 | } 459 | 460 | return $this->createFancyImagebar($resources, $canvas_width, $canvas_height); 461 | } 462 | 463 | private function getMediaList(Tree $tree): Collection 464 | { 465 | return collect(explode(',', $this->getPreference($tree->id() . '-media-list')))->filter(function (string $value) { 466 | return $value <> ""; 467 | }); 468 | } 469 | 470 | /** 471 | * @param Tree $tree 472 | * @param string $folder 473 | * @param string $subfolders 474 | * @param string $type 475 | * 476 | * @return Collection 477 | */ 478 | private function getMediaXrefs(Tree $tree, string $folder, string $subfolders, string $type): Collection 479 | { 480 | $query = DB::table('media_file') 481 | ->where('m_file', '=', $tree->id()) 482 | ->where('multimedia_file_refn', 'LIKE', $folder . '%') 483 | ->whereIn('multimedia_format', ['jpg', 'jpeg', 'png']); 484 | 485 | if ($subfolders === 'exclude') { 486 | $query->where('multimedia_file_refn', 'NOT LIKE', $folder . '%/%'); 487 | } 488 | 489 | if ($type) { 490 | $query->where('source_media_type', '=', $type); 491 | } 492 | 493 | return $query->pluck('m_id')->unique(); 494 | } 495 | 496 | /** 497 | * Create the Fancy Imagebar + html output 498 | * 499 | * @param array $source_images 500 | * @param string $canvas_width 501 | * @param string $canvas_height 502 | * 503 | * @return string 504 | */ 505 | private function createFancyImagebar($source_images, $canvas_width, $canvas_height): string 506 | { 507 | // create the FancyImagebar canvas to put the thumbs on 508 | $fancy_imagebar_canvas = imagecreatetruecolor((int) $canvas_width, (int) $canvas_height); 509 | 510 | $fancy_map = []; 511 | $pos = 0; 512 | foreach ($source_images as $source) { 513 | 514 | $image = $source['image']; 515 | $linked = $source['linked']; 516 | 517 | $x1 = $pos; 518 | $x2 = $x1 + imagesx($image); 519 | $pos = $pos + imagesx($image); 520 | 521 | // copy the images (thumbnails) to the canvas 522 | // imagecopy (resource $dst_im , resource $src_im , int $dst_x , int $dst_y , int $src_x , int $src_y , int $src_w , int $src_h) 523 | imagecopy($fancy_imagebar_canvas, $image, $x1, 0, 0, 0, imagesx($image), (int) $canvas_height); 524 | 525 | // prepare the map 526 | if ($linked !== null) { 527 | $lifespan = $linked instanceof Individual ? ' (' . $linked->lifespan() . ')' : ''; 528 | $fancy_map[] = [ 529 | 'coords' => [ 530 | 'x1' => $x1, 531 | 'y1' => '0', 532 | 'x2' => $x2, 533 | 'y2' => $canvas_height 534 | ], 535 | 'title' => strip_tags($linked->fullName() . $lifespan), 536 | 'url' => e($linked->url()) 537 | ]; 538 | } 539 | } 540 | 541 | // Output 542 | ob_start(); 543 | imagejpeg($fancy_imagebar_canvas); 544 | $fancy_imagebar = ob_get_clean(); 545 | 546 | return view($this->name() . '::fancy-imagebar', [ 547 | 'fancy_imagebar' => $fancy_imagebar, 548 | 'fancy_map' => $fancy_map, 549 | 'canvas_height' => $canvas_height 550 | ]); 551 | } 552 | 553 | /** 554 | * Create a thumbnail 555 | * 556 | * @param string $file 557 | * @param string $canvas_height 558 | * @param string $canvas_width 559 | * 560 | * https://www.jveweb.net/en/archives/2010/09/how-to-create-cropped-and-scaled-thumbnails-in-php.html 561 | */ 562 | private function fancyThumb($file, $canvas_height, $square_thumbs) 563 | { 564 | // error handling to prevent bad images from loading 565 | try { 566 | 567 | $source_image = $this->loadImage($file); 568 | list($source_width, $source_height) = getimagesize($file); 569 | $source_ratio = $source_width / $source_height; 570 | 571 | } catch (Throwable $exception) { 572 | 573 | return null; 574 | 575 | } 576 | 577 | // Cases have been reported where a false source image produces a fatal error at 578 | // the imagecopyresampled function: imagecopyresampled() expects parameter 2 to be resource, bool given 579 | // This source image got through the try/catch section 580 | if ($source_image === false) { 581 | return null; 582 | } 583 | 584 | $source_x = 0; 585 | $source_y = 0; 586 | 587 | // if square thumbnails are wanted then resize and crop the original image 588 | if ($square_thumbs) { 589 | $thumb_width = $thumb_height = $canvas_height; 590 | 591 | if ($source_ratio < 1) { 592 | $source_y = ceil(($source_height - $source_width) / 2); 593 | $source_height = $source_width; 594 | } 595 | 596 | if ($source_ratio > 1) { 597 | $source_x = ceil(($source_width - $source_height) / 2); 598 | $source_width = $source_height; 599 | } 600 | } else { 601 | $thumb_width = $canvas_height * $source_ratio; 602 | $thumb_height = $canvas_height; 603 | } 604 | 605 | $thumb = ImageCreateTrueColor((int)$thumb_width, (int)$thumb_height); 606 | imagecopyresampled($thumb, $source_image, 0, 0, (int)$source_x, (int)$source_y, (int)$thumb_width, (int)$thumb_height, (int)$source_width, (int)$source_height); 607 | 608 | imagedestroy($source_image); 609 | 610 | return $thumb; // resource 611 | } 612 | 613 | /** 614 | * load image from file 615 | * return false if image could not be loaded 616 | * 617 | * @param string $file 618 | */ 619 | private function loadImage($file) 620 | { 621 | $size = getimagesize($file); 622 | switch ($size["mime"]) { 623 | case "image/jpeg": 624 | $image = imagecreatefromjpeg($file); 625 | break; 626 | case "image/png": 627 | $image = imagecreatefrompng($file); 628 | break; 629 | default: 630 | $image = false; 631 | break; 632 | } 633 | return $image; 634 | } 635 | 636 | /** 637 | * Get the filename of the cached image 638 | * 639 | * @param Tree $tree 640 | * @param string $media_id 641 | * @param string $file 642 | * 643 | * @return string 644 | */ 645 | private function cacheFile(Tree $tree, string $media_id, string $file) { 646 | return self::CACHE_DIR . $tree->id() . '-' . $media_id . '-' . filemtime($file) . '.jpg'; 647 | } 648 | 649 | /** 650 | * remove all old cached files for this tree after changing settings in control panel 651 | */ 652 | protected function emptyCache(Tree $tree): void { 653 | foreach (glob(self::CACHE_DIR . '*') as $cache_file) { 654 | if (is_file($cache_file)) { 655 | $tmp = explode('-', basename($cache_file)); 656 | $tree_id = intval($tmp[0]); 657 | if ($tree_id === $tree->id()) { 658 | unlink($cache_file); 659 | } 660 | } 661 | } 662 | } 663 | 664 | /** 665 | * Which objects are linked to this file? 666 | * return the first linked object (indi, fam or source) 667 | * 668 | * @param Media $media 669 | * @return GedcomRecord|null 670 | */ 671 | private function getLinkedObject(Media $media): ?GedcomRecord 672 | { 673 | // return the first link found 674 | return 675 | $this->linked_record_service->linkedIndividuals($media)->first() ?? 676 | $this->linked_record_service->linkedFamilies($media)->first() ?? 677 | $this->linked_record_service->linkedSources($media)->first(); 678 | } 679 | }; 680 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------