web/client_new.php
changeset 424 e67c4b18a16b
parent 421 c8db83b70def
child 466 8231b4f3acca
--- a/web/client_new.php	Fri Dec 16 19:17:47 2011 +0100
+++ b/web/client_new.php	Fri Dec 16 20:10:31 2011 +0100
@@ -1,3 +1,8 @@
+<?php
+    $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']);
+    $videoWidth = ( $embed ? 442 : 480 );
+    $videoHeight = ( $embed ? 250 : 320 );
+?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
 
@@ -144,10 +149,86 @@
     </script>
     
   </head>
-  <body>
+  <body<?php if ($embed) { echo ' class="embed"'; } ?>>
     <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
 
         <div id="container">
+            
+            <div id="coldroite">
+                <ul id="onglets">
+                    <li class="selected">
+                        <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
+                    </li>
+                    <li>
+                        <a href="../sweet-tweet/small.html"><?php echo($translate->_('SemanticBoard')); ?></a>
+                    </li>
+                    <li>
+                        <a href="http://labs.knowtex.com/enmi2011"><?php echo($translate->_('SocialGraph')); ?></a>
+                    </li>
+                </ul>
+                <div class="ifwrap" id="vlWrap">
+                    <div id="videoLivePlayer">
+                    <?php if ($config['islive']):?>
+                        <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>">
+                            <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
+                            <param name="allowfullscreen" value="true" />
+                            <param name="allowscriptaccess" value="always" />
+                            <param name="wmode" value="transparent" />
+                            <param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" />
+                            <embed
+                                type="application/x-shockwave-flash"
+                                id="player2"
+                                name="player2"
+                                src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
+                                width="<?php echo $videoWidth; ?>"
+                                height="<?php echo $videoHeight; ?>"
+                                allowscriptaccess="always"
+                                allowfullscreen="true"
+                                wmode="transparent"
+                                flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true"
+                            />
+                        </object>
+                    <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
+                        <?php echo($config['islive_embed']); ?>
+                    <?php else: ?>
+                        <img src="<?php echo($big_visual_url); ?>" width="<?php echo $videoWidth; ?>"  height="<?php echo $videoHeight; ?>" />
+                    <?php endif; ?>
+                    </div>
+                </div>
+                <div class="ifwrap hidden" id="iframeWrap">
+                    <iframe id="graphFrame"></iframe>
+                </div>
+                <div id="out_fleche">
+                <!--    <div id="in_fleche"></div> -->
+                </div>
+                <ul id="accordeon">
+                    <li class="acctitre">
+                        <h3><?php echo($translate->_('config__title')); ?></h3>
+                    </li>
+                    <li class="acctexte">
+                        <p><?php echo($translate->_('config__description')); ?></p>
+                    </li>
+                    <li class="acctitre">
+                        <h3><?php echo($translate->_('keywords')); ?></h3>
+                    </li>
+                    <li class="acctexte hidden">
+                        <div class="accsubtitle">
+                            <div class="aroundsubtitle">
+                                <h4><?php echo($translate->_('suggested')); ?></h4>
+                            </div>
+                        </div>
+                        <div class="tagcloud" id="suggkw"></div>
+                    </li>
+                    <li class="acctexte hidden">
+                        <div class="accsubtitle">
+                            <div class="aroundsubtitle">
+                                <h4><?php echo($translate->_('contextual')); ?></h4>
+                            </div>
+                        </div>
+                        <div class="tagcloud" id="motscles"></div>
+                    </li>
+                </ul>
+            </div>
             <div id="colgauche">
                 <div class="barre">
                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
@@ -244,81 +325,6 @@
                     </div>
                 </div>
             </div>
-            <div id="coldroite">
-                <ul id="onglets">
-                    <li class="selected">
-                        <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
-                    </li>
-                    <li>
-                        <a href="../sweet-tweet/small.html"><?php echo($translate->_('SemanticBoard')); ?></a>
-                    </li>
-                    <li>
-                        <a href="http://labs.knowtex.com/enmi2011"><?php echo($translate->_('SocialGraph')); ?></a>
-                    </li>
-                </ul>
-                <div class="ifwrap" id="vlWrap">
-                    <div id="videoLivePlayer">
-                    <?php if ($config['islive']):?>
-                        <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="480" height="320">
-                            <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
-                            <param name="allowfullscreen" value="true" />
-                            <param name="allowscriptaccess" value="always" />
-                            <param name="wmode" value="transparent" />
-                            <param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" />
-                            <embed
-                                type="application/x-shockwave-flash"
-                                id="player2"
-                                name="player2"
-                                src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
-                                width="480"
-                                height="320"
-                                allowscriptaccess="always"
-                                allowfullscreen="true"
-                                wmode="transparent"
-                                flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true"
-                            />
-                        </object>
-                    <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
-                        <?php echo($config['islive_embed']); ?>
-                    <?php else: ?>
-                        <img src="<?php echo($big_visual_url); ?>" width="480"  height="320" />
-                    <?php endif; ?>
-                    </div>
-                </div>
-                <div class="ifwrap hidden" id="iframeWrap">
-                    <iframe id="graphFrame"></iframe>
-                </div>
-                <div id="out_fleche">
-                <!--    <div id="in_fleche"></div> -->
-                </div>
-                <ul id="accordeon">
-                    <li class="acctitre">
-                        <h3><?php echo($translate->_('config__title')); ?></h3>
-                    </li>
-                    <li class="acctexte">
-                        <p><?php echo($translate->_('config__description')); ?></p>
-                    </li>
-                    <li class="acctitre">
-                        <h3><?php echo($translate->_('keywords')); ?></h3>
-                    </li>
-                    <li class="acctexte hidden">
-                        <div class="accsubtitle">
-                            <div class="aroundsubtitle">
-                                <h4><?php echo($translate->_('suggested')); ?></h4>
-                            </div>
-                        </div>
-                        <div class="tagcloud" id="suggkw"></div>
-                    </li>
-                    <li class="acctexte hidden">
-                        <div class="accsubtitle">
-                            <div class="aroundsubtitle">
-                                <h4><?php echo($translate->_('contextual')); ?></h4>
-                            </div>
-                        </div>
-                        <div class="tagcloud" id="motscles"></div>
-                    </li>
-                </ul>
-            </div>
             <div class="footer">
                 <hr />
          <?php