PageRenderTime 62ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/includes/header.php

https://github.com/Biggytv/phpvideotoolkit-v2
PHP | 144 lines | 116 code | 28 blank | 0 comment | 5 complexity | fec0319dbda3bce14970e60236d1f7c0 MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. $current_page = basename($_SERVER['PHP_SELF']);
  3. include_once 'configuration.php';
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="en">
  7. <head>
  8. <meta charset="utf-8">
  9. <title>PHPVideoToolkit V2 Documention.</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="description" content="">
  12. <meta name="author" content="">
  13. <!-- Le styles -->
  14. <link href="./css/bootstrap.css" rel="stylesheet">
  15. <style type="text/css">
  16. body{padding-top:60px;padding-bottom:40px;}
  17. .sidebar-nav{padding:9px 0;}
  18. @media (max-width:980px){/* Enable use of floated navbar text */
  19. ￿ .navbar-text.pull-right{float:none;padding-left:5px;padding-right:5px;}
  20. }
  21. </style>
  22. <link href="./css/bootstrap-responsive.css" rel="stylesheet">
  23. <!-- pretty printer -->
  24. <link href="./css/google-code-prettify/prettify.css" type="text/css" rel="stylesheet" />
  25. <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  26. <!--[if lt IE 9]>
  27. <script src="./js/html5shiv.js"></script>
  28. <![endif]-->
  29. <!-- Fav and touch icons -->
  30. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="./ico/apple-touch-icon-144-precomposed.png">
  31. <link rel="apple-touch-icon-precomposed" sizes="114x114" href="./ico/apple-touch-icon-114-precomposed.png">
  32. <link rel="apple-touch-icon-precomposed" sizes="72x72" href="./ico/apple-touch-icon-72-precomposed.png">
  33. <link rel="apple-touch-icon-precomposed" href="./ico/apple-touch-icon-57-precomposed.png">
  34. <link rel="shortcut icon" href="./ico/favicon.png">
  35. </head>
  36. <body>
  37. <div class="navbar navbar-inverse navbar-fixed-top">
  38. <div class="navbar-inner">
  39. <div class="container-fluid">
  40. <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  41. <span class="icon-bar"></span>
  42. <span class="icon-bar"></span>
  43. <span class="icon-bar"></span>
  44. </button>
  45. <a class="brand" href="#">PHPVideoToolkit</a>
  46. <div class="nav-collapse collapse">
  47. <p class="navbar-text pull-right">
  48. <a href="https://github.com/buggedcom/phpvideotoolkit-v2">GitHub Repository</a>
  49. </p>
  50. <ul class="nav">
  51. <li<?php echo $current_page === 'index.php' ? ' class="active"' : ''; ?>><a href="./index.php">Home</a></li>
  52. <li<?php echo strpos($current_page, 'documentation.') === 0 ? ' class="active"' : ''; ?>><a href="./documentation.what-phpvideotoolkit-is-not.php">Documentation</a></li>
  53. <li<?php echo strpos($current_page, 'examples.') === 0 ? ' class="active"' : ''; ?>><a href="./examples.your-ffmpeg-setup.php">Examples</a></li>
  54. <li<?php echo $current_page === 'about-and-license.php' ? ' class="active"' : ''; ?>><a href="./about-and-license.php">About &amp; License</a></li>
  55. <li<?php echo $current_page === 'change-log.php' ? ' class="active"' : ''; ?>><a href="./change-log.php">Change Log</a></li>
  56. </ul>
  57. </div><!--/.nav-collapse -->
  58. </div>
  59. </div>
  60. </div>
  61. <div class="container-fluid">
  62. <div class="row-fluid">
  63. <div class="span3">
  64. <div class="well sidebar-nav">
  65. <ul class="nav nav-list">
  66. <li class="nav-header">Documentation</li>
  67. <li<?php echo $current_page === 'documentation.what-phpvideotoolkit-is-not.php' ? ' class="active"' : ''; ?>><a href="./documentation.what-phpvideotoolkit-is-not.php">What PHPVideoToolkit is NOT</a></li>
  68. <li<?php echo $current_page === 'documentation.installing-ffmpeg.php' ? ' class="active"' : ''; ?>><a href="./documentation.installing-ffmpeg.php">Installing FFmpeg</a></li>
  69. <li<?php echo $current_page === 'documentation.the-basics.php' ? ' class="active"' : ''; ?>><a href="./documentation.the-basics.php">The Basics</a></li>
  70. <li<?php echo $current_page === 'documentation.timecodes.php' ? ' class="active"' : ''; ?>><a href="./documentation.timecodes.php">Timecodes</a></li>
  71. <li<?php echo $current_page === 'documentation.input-and-output-formats.php' ? ' class="active"' : ''; ?>><a href="./documentation.input-and-output-formats.php">Input and Output Formats</a></li>
  72. <li<?php echo $current_page === 'documentation.advanced-options.php' ? ' class="active"' : ''; ?>><a href="./documentation.advanced-options.php">Advanced Options</a></li>
  73. <li<?php echo $current_page === 'documentation.phpvideotoolkit-class-reference.php' ? ' class="active"' : ''; ?>><a href="./documentation.phpvideotoolkit-class-reference.php">PHPVideoToolkit Class Reference</a></li>
  74. <li class="divider"></li>
  75. <li class="nav-header">Examples</li>
  76. <li<?php echo $current_page === 'examples.your-ffmpeg-setup.php' ? ' class="active"' : ''; ?>><a href="./examples.your-ffmpeg-setup.php">Your FFmpeg Setup</a></li>
  77. <li<?php echo $current_page === 'examples.export-a-single-frame.php' ? ' class="active"' : ''; ?>><a href="./examples.export-a-single-frame.php">Export a Single Frame</a></li>
  78. <li<?php echo $current_page === 'examples.export-a-series-of-frames.php' ? ' class="active"' : ''; ?>><a href="./examples.export-a-series-of-frames.php">Export a Series of Frames</a></li>
  79. <li<?php echo $current_page === 'examples.export-animated-gif.php' ? ' class="active"' : ''; ?>><a href="./examples.export-animated-gif.php">Export an Animated Gif</a></li>
  80. <li<?php echo $current_page === 'examples.extract-a-segment.php' ? ' class="active"' : ''; ?>><a href="./examples.extract-a-segment.php">Extract a Segment</a></li>
  81. <li<?php echo $current_page === 'examples.split-or-chunk-media.php' ? ' class="active"' : ''; ?>><a href="./examples.split-or-chunk-media.php">Split/Chunk Media</a></li>
  82. <li<?php echo $current_page === 'examples.extract-audio.php' ? ' class="active"' : ''; ?>><a href="./examples.extract-audio.php">Extract Audio</a></li>
  83. <li<?php echo $current_page === 'examples.convert-media-formats.php' ? ' class="active"' : ''; ?>><a href="./examples.convert-media-formats.php">Convert Media Formats</a></li>
  84. <li<?php echo $current_page === 'examples.add-watermarking.php' ? ' class="active"' : ''; ?>><a href="./examples.add-watermarking.php">Add Watermarking</a></li>
  85. <li<?php echo $current_page === 'examples.overlay-audio.php' ? ' class="active"' : ''; ?>><a href="./examples.overlay-audio.php">Overlay Audio</a></li>
  86. <li<?php echo $current_page === 'examples.join-videos.php' ? ' class="active"' : ''; ?>><a href="./examples.join-videos.php">Join Videos</a></li>
  87. <li<?php echo $current_page === 'examples.transcoding-without-blocking-PHP.php' ? ' class="active"' : ''; ?>><a href="./examples.transcoding-without-blocking-PHP.php">Transcoding without Blocking PHP</a></li>
  88. <li<?php echo $current_page === 'examples.transcoding-with-progress-handlers.php' ? ' class="active"' : ''; ?>><a href="./examples.transcoding-with-progress-handlers.php">Transcoding with Progress Handlers</a></li>
  89. <li<?php echo $current_page === 'examples.queuing-transcoding.php' ? ' class="active"' : ''; ?>><a href="./examples.queuing-transcoding.php">Queuing Transcoding</a></li>
  90. </ul>
  91. </div><!--/.well -->
  92. </div><!--/span-->
  93. <?php
  94. if(PROGRAM_PATH === null)
  95. {
  96. ?>
  97. <div class="span9">
  98. <div class="alert alert-error">
  99. <strong>Configuration Not Configured!</strong>
  100. <p>In order for some of the examples in the documentation to work you need set the configuration options in <?php echo dirname(__FILE__); ?>/configuration.php.</p>
  101. </div>
  102. </div>
  103. <?php
  104. }
  105. if(is_file($example_video_path) === false)
  106. {
  107. ?>
  108. <div class="span9">
  109. <div class="alert alert-error">
  110. <strong>BigBuckBunny_320x180.mp4 Does not exist</strong>
  111. <p>In order for the supplied examples to work, you need to download a version of the animated short Big Buck Bunny. <a href="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4">You can download the file here.</a> Once downloaded please move or copy the mp4 to the <?php echo HTML(BASE); ?>examples/media directory. This message will then dissapear.</p>
  112. </div>
  113. </div>
  114. <?php
  115. }
  116. ?>