web/client.php
changeset 620 953c68b4da79
parent 616 151ebf102b92
child 621 44f90de0016f
--- a/web/client.php	Mon May 21 12:16:03 2012 +0200
+++ b/web/client.php	Mon May 21 18:18:08 2012 +0200
@@ -2,7 +2,7 @@
 header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
 if(!isset($_REQUEST['rep'])) {
     include_once dirname(__FILE__).'/common.php';
-    header('Location: ' . URL_ROOT . "$C_default_rep/client.php" );
+    header('Location: ' . URL_ROOT . "$C_default_rep/client_pad.php" );
     exit();
 }
 
@@ -126,7 +126,7 @@
                     "s" : .8
                 }
             }
-        }    
+        }
     </script>
     <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
 
@@ -317,7 +317,7 @@
                             />
                         </object>
                     <?php elseif(isset($config['islive_embed']) && $config['islive_embed']):?>
-                        <?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $translate->_($config['islive_embed'])); ?>
+                        <?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $translate->_('config__islive_embed')); ?>
                     <?php else: ?>
                         <img class="live-thumbnail" src="<?php echo($big_visual_url); ?>" />
                     <?php endif; ?>
@@ -326,14 +326,11 @@
                 <div class="ifwrap hidden" id="iframeWrap">
                     <iframe id="graphFrame"></iframe>
                 </div>
-                <div id="out_fleche">
-                <!--    <div id="in_fleche"></div> -->
-                </div>
-                <ul id="accordeon">
+                <ul class="accordeon">
                     <li class="acctitre">
                         <h3><?php echo($translate->_('config__title')); ?></h3>
                     </li>
-                    <li class="acctexte">
+                    <li class="acctexte acclimited">
                         <p><?php echo($translate->_('config__description')); ?></p>
                     </li>
                     <li class="acctitre">
@@ -477,6 +474,19 @@
                     </div>
                 </div>
             </div>
+            <?php $pad_url = $translate->_('config__pad_url');?>
+            <?php if ($pad_url !== "config__pad_url"):?>
+                <ul class="accordeon">
+                    <li class="acctitre">
+                        <h3><?php echo $translate->_('CollaborativePad');?></h3>
+                    </li>
+                    <li class="acctexte">
+                        <?php echo $translate->_('ThisIsTheCollaborativePad');?>
+                        <iframe src='<?php echo($pad_url); ?>' width='100%' height=400></iframe>
+                    </li>
+                </ul>
+            </div>
+            <?php endif;?>
             <div class="footer">
                 <hr />
          <?php
@@ -497,4 +507,3 @@
             <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
         </ul>
   </body>
-</html>
\ No newline at end of file