source: extensions/Stereo/stereo.tpl @ 14186

Revision 14186, 2.0 KB checked in by Gotcha, 7 years ago (diff)

Compatible with Piwigo v2.3

Line 
1{combine_script id='swfobject' load='header' path='plugins/Stereo/stflv/swfobject.js'}
2{html_head}
3<script type="text/javascript"><!--
4function fnStereoInsertHelp()
5{ldelim}
6        // Création d'un lien
7        var oA = document.createElement('a');
8        oA.setAttribute('href', '{$STEREO_PATH}help.php');
9        oA.setAttribute('target', 'help');
10        //oA.setAttribute('class', 'navButton');       
11        var oImgA = document.createElement('img');
12        oImgA.setAttribute('src', '{$PHPWG_ROOT_PATH}{$themeconf.icon_dir}/help.png');
13        oImgA.setAttribute('class', 'button'); 
14        oImgA.setAttribute('alt', '{'Help'|@translate}');       
15        oA.appendChild(oImgA);
16        var nodeTag = document.getElementById('imageToolBar').getElementsByTagName('div');
17        for (I=0;I<nodeTag.length; I++) {ldelim}
18                if (nodeTag[I].className == '{$stereo.helpbuttonblock}')  {ldelim}
19                        {if (($stereo.helpbuttonposition=='left')&&($stereo.helpbuttonblock=='navButtons')||($stereo.helpbuttonposition=='right')&&($stereo.helpbuttonblock=='randomButtons'))}
20                                nodeTag[I].appendChild(oA); //position interne
21                        {else}
22                                nodeTag[I].insertBefore(oA,nodeTag[I].firstElementChild);  // position externe
23                        {/if}
24                {rdelim}
25        {rdelim}   
26{rdelim}
27//--></script>
28{/html_head}
29{if ($stereo.showhelp=='true')}
30<script type="text/javascript"><!--
31        fnStereoInsertHelp();
32//--></script>
33{/if}
34<link rel="stylesheet" type="text/css" href="{$STEREO_PATH}help.css">
35<!-- Template plugin stereo -->
36<div id="stereo">
37        <FONT color="#ff0000"><B>Can not run the Flash applet!</B></FONT>
38</div>
39<script type="text/javascript">
40        var so = new SWFObject("{$STEREO_PATH}stflv/stflv.swf?imgfile={$SRC_IMG}&type=embedded", "image",  "{$stereo.containerwidth}", "{$stereo.containerheight}", "9", "#000000");
41        so.addParam("allowFullScreen", "{$stereo.allowFullScreen}");
42        so.write("stereo");
43</script>
44{if isset($high)}
45        <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">{'Stereo_picture_high'|@translate}</a>
46{/if}
Note: See TracBrowser for help on using the repository browser.