Skip to content
Snippets Groups Projects
Commit ad87d8ac authored by Aspectis's avatar Aspectis Committed by Dorian Merz
Browse files

refs #18596 [fid_bbi] redesign frontpage

* Update/create all templates required for the frontpage
* Add new styles, webfonts, icons and images
* Update/add translations
* Add a factory method for including SVG icons

for more details see issue/18596
parent 307e6df6
No related merge requests found
Showing
with 68 additions and 8 deletions
......@@ -29,8 +29,8 @@ Username = "E-Mail-Adresse"
history_search = "Suchverlauf"
Authors/Corporations = "verantwortlich"
Login = "Mein BBI"
Your Account = "Mein BBI"
Login = "Anmelden"
Your Account = "Konto"
Holdings = "Verfügbarkeit"
view_worldcat = "Verfügbarkeit"
worldcat_availability = "Lokale Bestände (über WorldCat)"
......@@ -45,8 +45,8 @@ Availability = "Zugang"
Data Collection = "Datenquellen"
FAQs = "FAQ"
Free = "Open Access"
LibraryName = "Fachinformationsdienst Buch-, Bibliotheks- und Informationswissenschaft (FID BBI)"
LibraryNameShort = "Fachinformationsdienst Buch-, Bibliotheks- und Informationswissenschaft"
LibraryName = "Fachinformationsdienst Buch-, Bibliotheks- und Informationswissenschaft"
LibraryNameShort = "FID BBI"
Local = "Lokale Bestände"
Questions And Notes = "allgemeine Fragen / Anmerkungen"
Privacy Policy = "Datenschutzerklärung"
......
......@@ -25,7 +25,7 @@ FAQs = "FAQ"
Free = "Open Access"
Get RSS Feed = "RSS Feed"
LibraryName = Fachinformationsdienst Buch-, Bibliotheks- und Informationswissenschaft (FID BBI)
LibraryNameShort = Fachinformationsdienst Buch-, Bibliotheks- und Informationswissenschaft
LibraryNameShort = FID BBI
Local = "Local Holdings"
Questions And Notes = "Questions And Notes"
Terms of Use = "Terms of Use"
......@@ -42,8 +42,8 @@ ISBD Citation = ISBD Citation
Project Coordination = "Project Coordination"
; #14758
Login = "My BBI"
Your Account = "My BBI"
Login = "Login"
Your Account = "Account"
; #14878
DDC = "DDC Notation"
......@@ -395,7 +395,7 @@ AAAAA= "None of the Specified Libraries"
BBI Welcome = Sehr geehrte Nutzerin, sehr geehrter Nutzer, wir freuen uns, dass Sie unsere Dienste ab sofort nutzen möchten. Ein Mitarbeiter des Fachinformationsdienstes wird sich mit Ihnen in Verbindung setzen. Nach erfolgter Registrierung können Sie die erweiterten Funktionalitäten des Portals nutzen. Für Rückfragen stehen wir Ihnen unter der Mailadresse info@fid-bbi.de jederzeit zur Verfügung.
Cite this = Cite
Add to favorites = "Add to My BBI"
Add to favorites = "Add to favorites"
Email this = E-Mail
Permalink = Permalink
......
<?php
/**
* View helper for inserting an SVG icon
*
* PHP version 7
*
* Copyright (C) Aspectis 2020.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* @category VuFind
* @package View_Helpers
* @author Tobias Schäfer <ts@aspectis.net>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development Wiki
*/
namespace fid_bbi\View\Helper\Root;
/*
* View helper for inserting an SVG icon.
*
* Included SVG files must be present in <theme directory>/icons and
* not have a class on the root element, nor an XML declaration.
*
* @category VuFind
* @package View_Helpers
* @author Tobias Schäfer <ts@aspectis.net>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development Wiki
*/
class Icon
{
/**
* Construct the SVG icon template helper.
*
* @return \Closure which accepts the $name (and optional $class) of an icon
* and returns an SVG string
*/
public function __invoke(\Zend\ServiceManager\ServiceManager $serviceManager): \Closure
{
$themeInfo = $serviceManager->get('VuFindTheme\ThemeInfo');
$iconsDir = $themeInfo->getBaseDir() . '/' . $themeInfo->getTheme() . '/icons';
return function (string $name, string $class = 'icon') use ($iconsDir) {
$svg = file_get_contents("$iconsDir/$name.svg");
return implode("<svg class=\"$class\" ", explode('<svg ', $svg, 2));
};
}
}
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment