web/archives-iframe.php
changeset 507 7f7fdf4eb06c
parent 502 b035e0787bb0
child 1091 89455742ba35
equal deleted inserted replaced
487:323b5f770fa0 507:7f7fdf4eb06c
       
     1 <?php
       
     2 error_reporting(E_ALL);
       
     3 ini_set('display_errors', '1');
       
     4 /**
       
     5  * include some common code (like we did in the 90s)
       
     6  * People still do this? ;)
       
     7  */
       
     8 include_once './common.php';
       
     9 
       
    10 function special_display_archives_list($archives_list, $box_class, $url_root, $basepath, &$translate) {
       
    11     
       
    12     
       
    13     for($i=0;$i<count($archives_list);$i++) {
       
    14         print("             <div class=\"$box_class\">\n");
       
    15         $archive_ref = $archives_list[$i];
       
    16     
       
    17         $archive_name = $archive_ref;
       
    18         $metadata = null;
       
    19         if(is_array($archive_ref)) {
       
    20             $archive_name = $archive_ref[0];
       
    21             $metadata = $archive_ref[1];
       
    22         }
       
    23         print(get_archive_box($archive_name,$metadata, $url_root, $basepath, $translate));
       
    24         print("             </div>\n");
       
    25     }
       
    26 }
       
    27 
       
    28 ?>
       
    29 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
    30 <html lang="<?php echo($actual); ?>">
       
    31   <head>
       
    32     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       
    33     <title>Polemic tweet - Live Video and Annotation</title>
       
    34 
       
    35     <link rel="stylesheet" href="<?php echo(registry_url('archives-iframe','css'));?>" type="text/css" media="screen, projection"/>
       
    36 
       
    37     <!-- JAVASCRIPT -->
       
    38     <script type="text/javascript" src="<?php echo(registry_url('jquery','js'));?>"></script>
       
    39     <script type="text/javascript" src="<?php echo(registry_url('jquery-tools','js'));?>"></script>
       
    40 
       
    41     <!-- FONT -->
       
    42     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'>
       
    43 
       
    44     <script type="text/javascript">
       
    45         var _timerJqScroll;
       
    46         function startTimer() {
       
    47             if (_timerJqScroll) {
       
    48                 clearInterval(_timerJqScroll);
       
    49             }
       
    50             _timerJqScroll = setInterval(function() { $(".scrollable").scrollable().next()}, 8000);
       
    51         }
       
    52         $(function() {
       
    53             $(".archivesVideoBox").mouseover(function() {
       
    54                 $(this).css({'backgroundColor':'#fff'});
       
    55                 $(this).cursor = "pointer";
       
    56             }).mouseout(function() {
       
    57                 $(this).css({'backgroundColor':'#f2f2f2'});
       
    58             });
       
    59             $(".scrollable").scrollable({"circular":true});
       
    60             $(".browse, .item").click(function() {
       
    61                 startTimer();
       
    62             })
       
    63             startTimer();
       
    64             $("a").attr("target", "_blank");
       
    65         });
       
    66 
       
    67         var _gaq = _gaq || [];
       
    68         _gaq.push(['_setAccount', 'UA-23581291-1']);
       
    69         _gaq.push(['_trackPageview']);
       
    70         _gaq.push(['_setAllowAnchor', true]);
       
    71       
       
    72         (function() {
       
    73             var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
    74             ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
    75             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
    76         })();
       
    77     
       
    78     </script>
       
    79   </head>
       
    80   <body>
       
    81         <div class="archivesBoxContainer scrollable">
       
    82             <!-- -->
       
    83             <div class="archivesTitleActionsContainer">
       
    84                 <div class="archivesActionsContainer" id="actions">
       
    85                     <a class="prev browse left">&laquo;&nbsp;</a>
       
    86                     <a class="next browse right">&nbsp;&raquo;</a>
       
    87                 </div>
       
    88                 <h3 class="archivesTitle">Polemic Tweet</h3>
       
    89             </div>
       
    90             
       
    91             <!-- -->
       
    92             <div class="items">
       
    93                 <?php
       
    94                 $arch_list = array_reverse($archives_list);
       
    95                 special_display_archives_list($arch_list, "archive_box_3 item", URL_ROOT, dirname(__FILE__)."/", $translate);
       
    96                 ?>
       
    97             </div>
       
    98         </div>
       
    99   </body>
       
   100 </html>