From 30f24886cc86644efe30c062f6c3d2ff10146fda Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Fri, 8 Jun 2012 09:01:04 +0000 Subject: [PATCH] =?UTF-8?q?Fichier=20oublie=CC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 1 + library/ZendAfi/View/Helper/GallicaPlayer.php | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 library/ZendAfi/View/Helper/GallicaPlayer.php diff --git a/.gitattributes b/.gitattributes index f214bb3d3fe..9f10bf47398 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1991,6 +1991,7 @@ library/ZendAfi/View/Helper/FicheAbonneLinks.php -text library/ZendAfi/View/Helper/FileInfos.php -text library/ZendAfi/View/Helper/FonctionsAdmin.php -text library/ZendAfi/View/Helper/FormRadioButtons.php -text +library/ZendAfi/View/Helper/GallicaPlayer.php -text library/ZendAfi/View/Helper/HistoriqueRecherche.php -text library/ZendAfi/View/Helper/HumanDate.php -text library/ZendAfi/View/Helper/IconeSupport.php -text diff --git a/library/ZendAfi/View/Helper/GallicaPlayer.php b/library/ZendAfi/View/Helper/GallicaPlayer.php new file mode 100644 index 00000000000..7d41c71b1a6 --- /dev/null +++ b/library/ZendAfi/View/Helper/GallicaPlayer.php @@ -0,0 +1,53 @@ +<?php +/** + * Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved. + * + * AFI-OPAC 2.0 is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * AFI-OPAC 2.0 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 AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with AFI-OPAC 2.0; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +class ZendAfi_View_Helper_GallicaPlayer extends Zend_View_Helper_HtmlElement { + public function gallicaPlayer($id_ark) { + return sprintf( + '<object + classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" + width="640" + height="415" + codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"> + <param name="id" value="LecteurExportable" /> + <param name="allowScriptAccess" value="always" /> + <param name="wmode" value="window" /> + <param + name="FlashVars" + value="ark=%s&lang=fr&mode=dp&showArrows=1&bgColor=8553603&autoFlip=0&startPage=71&widthWidget=640&heightWidget=415" /> + <param + name="src" + value="http://gallica.bnf.fr/flash/LecteurExportable.swf" /> + <embed + id="LecteurExportable" + type="application/x-shockwave-flash" + width="640" + height="415" + src="http://gallica.bnf.fr/flash/LecteurExportable.swf" + flashvars="ark=%s&lang=fr&mode=dp&showArrows=1&bgColor=8553603&autoFlip=0&startPage=71&widthWidget=640&heightWidget=415" + allowscriptaccess="always" + wmode="window" /> + </object>', $id_ark, $id_ark); + + } +} + +?> \ No newline at end of file -- GitLab