Advertisement
pixedelic

flowplayer_statistic.php

Aug 15th, 2011
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.22 KB | None | 0 0
  1. <?php require_once( '../../../../wp-load.php' ); ?>
  2. <!DOCTYPE HTML>
  3. <!-- Delight is developed is a Pixedelic work, by Consorzio Creativo on Wordpress platform | Manuel Masia (designer and developer) -->
  4. <html>
  5. <head>
  6. <script type="text/javascript" language="javascript" src="<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/scripts/flowplayer-3.2.6.min.js"></script>
  7. <script type="text/javascript" language="javascript" src="<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/scripts/projekktor.min.js"></script>
  8. <style>
  9. html, body {
  10.     margin:0;
  11.     padding:0;
  12.     height:100%;
  13.     width:100%;
  14. }
  15. /*
  16. Theme Name: Applicious
  17. Theme URI: http://themes.projekktor.com/eklektik
  18. Description: This is inspired by something I dont know.
  19. Author: Johnny Flash
  20. Author URI:http://www.90revolutions.com
  21.  
  22. under GNU General Public License
  23. http://www.projekktor.com/license/
  24. */
  25.  
  26. .projekktor {
  27.     overflow:hidden;
  28.     background-color:#000;
  29.     font-family: 'Lucida Grande', Arial, Sans-Serif;
  30.     position:relative; /* !!! */
  31.     padding:0;
  32.     margin:0;
  33.     display:block;    /* !!! */
  34. }
  35.  
  36. .ppcontrols {
  37.     position: absolute; /* !!! */
  38.     left: 50%;
  39.     bottom: 0;
  40.     margin-left:-210px;
  41.     display: block;
  42.     width: 420px;
  43.     height: 87px;
  44.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) 0 0 no-repeat;
  45.     z-index:8000;
  46.     padding: 0px;
  47. }
  48.  
  49. .pplogo.inactive,
  50. .ppstart.inactive,
  51. .ppbuffering.inactive,
  52. .ppcontrols.inactive,
  53. .ppplay.inactive,
  54. .pppause.inactive,
  55. .ppfsenter.inactive,
  56. .ppfsexit.inactive,
  57. .ppprev.inactive,
  58. .ppnext.inactive {
  59.     display: none;
  60. }
  61.  
  62. .pplogo.active,
  63. .ppstart.active,
  64. .ppbuffering.active,
  65. .ppcontrols.active,
  66. .ppplay.active,
  67. .pppause.active,
  68. .ppfsenter.active,
  69. .ppfsexit.active,
  70. .ppprev.active,
  71. .ppnext.active {
  72.     display: block;
  73. }
  74.  
  75.  
  76. .ppfsexit {
  77.     display:block;
  78.     position: absolute;
  79.     left: 380px;
  80.     top: 13px;
  81.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -420px -30px no-repeat;
  82.     width: 27px;
  83.     height: 22px;
  84.     cursor: pointer;
  85. }
  86.  
  87. .ppfsexit:hover {
  88.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -457px -30px no-repeat;
  89. }
  90.  
  91. .ppfsenter {
  92.     display:block;
  93.     position: absolute;
  94.     left: 380px;
  95.     top: 13px;
  96.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -420px 0px no-repeat;
  97.     width: 27px;
  98.     height: 22px;
  99.     cursor: pointer;
  100. }
  101. .ppfsenter:hover {
  102.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -457px 0px no-repeat;
  103. }
  104.  
  105.  
  106. .ppplay{
  107.     display:block;
  108.     position: absolute;
  109.     top: 11px;
  110.     left: 192px;
  111.     /*background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -825px 0 no-repeat;*/
  112.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -619px 0 no-repeat;
  113.     width: 34px;
  114.     height: 27px;
  115.     cursor: pointer;
  116. }
  117.  
  118. .pppause:hover {
  119.     /*background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -781px 0 no-repeat;*/
  120.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -585px 0 no-repeat;
  121. }
  122.  
  123.  
  124.  
  125. .pppause  {
  126.     display:none;
  127.     position: absolute;
  128.     top: 11px;
  129.     left: 192px;
  130.     /*background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -737px 0 no-repeat;*/
  131.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -551px 0 no-repeat;
  132.     width: 34px;
  133.     height: 27px;
  134.     cursor: pointer;
  135. }
  136.  
  137. .ppplay:hover {
  138.     /*background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -869px 0 no-repeat;*/
  139.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -653px 0 no-repeat;
  140. }
  141.  
  142.  
  143.  
  144. .ppnext {
  145.     position: absolute;
  146.     top: 11px;
  147.     left: 232px;
  148.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -484px 0 no-repeat;
  149.     width: 34px;
  150.     height: 27px;
  151.     cursor: pointer;
  152.  
  153. }
  154.  
  155. .ppnext:hover {
  156.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -517px 0 no-repeat;
  157. }
  158.  
  159. .ppprev {
  160.     position: absolute;
  161.     top: 11px;
  162.     left: 153px;
  163.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -687px 0 no-repeat;
  164.     width: 34px;
  165.     height: 27px;
  166. }
  167.  
  168. .ppprev:hover {
  169.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -721px 0 no-repeat;
  170. }
  171.  
  172. .pptitle {
  173.     position: absolute;
  174.     top: 20px;
  175.     left: 10px;
  176.     height: 15px;
  177.     width: 400px;
  178.     cursor: pointer;
  179.     text-align:center;
  180.     font-family:Arial, Helvetica, sans-serif;
  181.     font-size:14px;
  182.     font-weight: bold;
  183.     color: #0087ef;
  184.     visibility: hidden;
  185. }
  186.  
  187. .pptimeleft {
  188.     position: absolute;
  189.     top:14px;
  190.     left: 290px;
  191.     height: 15px;
  192.     width: 75px;
  193.     cursor: pointer;
  194.     text-align:left;
  195.     font-size: 9px;
  196.     color: #fff;
  197. }
  198.  
  199.  
  200. .ppscrubber {
  201.     position: absolute;
  202.     top: 44px;
  203.     left: 62px;
  204.     height: 8px;
  205.     width: 293px;
  206.     cursor: pointer;
  207. }
  208.  
  209. .ppplayhead, .pploaded {
  210.     z-index: 101;
  211.     position: absolute;
  212.     bottom:0;
  213.     height: 8px;
  214.     width: 1px;
  215.     background-color: #0087ef;
  216.     cursor: pointer;
  217.     -moz-border-radius: 4px;
  218.     -webkit-border-radius: 4px;
  219. }
  220.  
  221. .pploaded {
  222.     z-index: 100;
  223.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/loaded.png) repeat-x;
  224. }
  225.  
  226.  
  227. .ppvslider {
  228.     position: absolute;
  229.     top:20px;
  230.     left:30px;
  231.     height: 10px;
  232.     width: 80px;
  233. }
  234.  
  235. .ppvmarker {
  236.     position: absolute;
  237.     top:0;
  238.     left:0;
  239.     height: 10px;
  240.     width: 100%;
  241. }
  242.  
  243. .ppvknob  {
  244.     cursor: pointer;
  245.     z-index: 201;
  246.     position: absolute;
  247.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -1552px 0 no-repeat;
  248.     top:-4px;
  249.     left:0px;
  250.     width: 17px;
  251.     height: 17px;
  252. }
  253.  
  254. .ppvknob:hover  {
  255.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -1577px 0px no-repeat;
  256. }
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263. .ppvmax  {
  264.     cursor: pointer;
  265.     position: absolute;
  266.     top:15px;
  267.     left:116px;
  268.     width: 22px;
  269.     height: 25px;
  270.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -1329px 0px no-repeat;
  271. }
  272.  
  273. .ppvmax:hover {
  274.     cursor: pointer;
  275.     position: absolute;
  276.     top:15px;
  277.     left:116px;
  278.     width: 22px;
  279.     height: 25px;
  280.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -1354px 0px no-repeat;
  281. }
  282.  
  283.  
  284. .ppmute  {
  285.     cursor: pointer;
  286.     position: absolute;
  287.     top:15px;
  288.     left:10px;
  289.     width: 17px;
  290.     height: 18px;
  291.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -1518px 0px no-repeat;
  292. }
  293.  
  294. .ppmute:hover  {
  295.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/eklektik.png) -1534px 0px no-repeat;
  296. }
  297.  
  298. .pptestcard {
  299.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/testcard.jpg) center center no-repeat;
  300.     width: 100%;
  301.     height: 100%;
  302.     color: red;
  303.     font-weight: bold;
  304.     font-size: 24px;
  305.     overflow: hidden;
  306. }
  307.  
  308.  
  309. .ppbuffering {
  310.     position: relative;
  311.     left: 50%;
  312.     top: 50%;
  313.     margin-left:-30px;
  314.     margin-top: -30px;
  315.     display: block;
  316.     z-index:8000;
  317.     padding: 0px;
  318.     background: #F6F6F6 url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/buffering.gif) center center no-repeat;
  319.     height: 60px;
  320.     width: 60px;
  321.     -moz-border-radius: 15px;
  322.     -webkit-border-radius: 15px;
  323.     display: none;
  324. }
  325.  
  326. .ppstart {
  327.     position: relative;
  328.     left: 50%;
  329.     top: 50%;
  330.     margin-left:-40px;
  331.     margin-top: -40px;
  332.     display: block;
  333.     z-index:8000;
  334.     padding: 0px;
  335.     background: transparent url(<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/images/start.png) center center no-repeat;
  336.     cursor: pointer;
  337.     height: 80px;
  338.     width: 80px;
  339. }
  340.  
  341. .pptestcard p {
  342.     background-color: #fdfdfd;
  343.     width: 50%;
  344.     margin: auto;
  345.     line-height: 25px;
  346.     position: relative;
  347.     top: 40%;
  348.     padding: 10px;
  349.     border:5px solid #000;
  350.     text-align: center;
  351. }
  352. </style>
  353.  
  354. </head>
  355. <body>
  356. <?php if(!detectMobile()){ ?>
  357. <a
  358.     href="<?php echo $_GET['movie']; ?>"
  359.     style="display:block;width:100%;height:100%;"
  360.     id="player">
  361. </a>                                       
  362. <script language="JavaScript">
  363.     flowplayer("player", {src:"<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/scripts/flowplayer-3.2.7.swf", wmode:"opaque"},  {
  364.         clip: {
  365.             autoPlay: false,
  366.             scaling: "orig",
  367.             autoBuffering: true
  368.         },
  369.         plugins: {
  370.             viral: {
  371.                 url: "<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/scripts/flowplayer.viralvideos-3.2.5.swf",
  372.                 share: {
  373.                     description: "<?php echo $_GET['title']; ?>"
  374.                 }
  375.             }, gatracker: {
  376.                 url: "<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/scripts/flowplayer.analytics-3.2.2-dev.swf",
  377.                
  378.                 // track all possible events. By default only Start and Stop
  379.                 // are tracked with their corresponding playhead time.
  380.                 events: {
  381.                     all: true
  382.                 },
  383.                 debug: true,
  384.                 accountId: "UA-5877901-1" // your Google Analytics id here
  385.             }
  386.         }
  387.     });
  388. </script>
  389. <?php } else { ?>
  390. <video id="player" class="projekktor" width="100%" height="100%" controls>
  391.             <source src="<?php echo remove_something('.flv',$_GET['movie']); ?>.ogg" type="video/ogg">
  392.             <source src="<?php echo remove_something('.flv',$_GET['movie']); ?>.mp4" type="video/mp4">
  393.             <source src="<?php echo remove_something('.flv',$_GET['movie']); ?>.webm" type="video/mp4">
  394.         </video>';
  395.        
  396.        
  397.         <script type="text/javascript">
  398.         jQuery(window).one("load",function() {
  399.             projekktor("#player'");
  400.         });
  401.         </script>
  402. <?php } ?>
  403. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement