/**
 * This contains all html specific functions
 * @version     $Id: html.php 40 2011-02-09 14:10:00Z biyi $
 * @package     Platform
 * @category    Function
 * @author      Biyi Akinpelu
 * @link        mailto:biyi@entilda.com
 * @copyright   Copyright (C) 2011 - 2012 The Platform Authors. All rights reserved.
 * @license     GNU Public Licence, see LICENSE.php
 * Platform is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */
function html($title = 'Test Application', $file = 'index.html')
{
    ob_start();
    ?>
<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <title><?php 
    echo $title;
    ?>
</title>
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:400,500,700,regular,bold&subset=Latin">
    <link rel="stylesheet" type="text/css" href="assets/css/app.css" />
    <?php 
    js_add_jquery();
    ?>
  </head>
  <body>
    <h1>Hello World</h1>
    <p>This is a sample test application.</p>
    <p>Edit this content as you wish.</p>
    <p>Enjoy!</p>
    <div id="overlay_canvas">
      <div id="app">
        <span class="logo" style="background: transparent url('<?php 
    echo image_data_uri("assets/images/icons/application-128x128.png", "png");
    ?>
') no-repeat;"></span><span class="navigator text"><?php 
    echo $title;
    ?>
</span>
      </div>
    </div>
    <?php 
    js_add('assets/js/app.js');
    ?>
  
  </body>
</html>

  <?php 
    $html = ob_get_clean();
    create_file($file, $html);
}
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */
// initilizing platform for self-contained objects
platform_launch_initialize();
define('SLIDESHOW_PATH', 'supersized/slideshow');
//PLATFORM_SANDBOX_WORKSPACE_URI
?>
<!DOCTYPE html>
<html>
<head>
<title>Photo Viewer</title>
<?php 
js_add_jquery();
// adding jquery library
js_add_jquery_ui();
// adding jquery ui library
html_add_link_css(SLIDESHOW_PATH . DS . 'css/supersized.css', 'media="screen"');
html_add_link_css(SLIDESHOW_PATH . DS . 'theme/supersized.shutter.css', 'media="screen"');
html_add_js('https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js');
html_add_js(SLIDESHOW_PATH . DS . 'js/jquery.easing.min.js');
html_add_js(SLIDESHOW_PATH . DS . 'js/supersized.3.2.7.min.js');
html_add_js(SLIDESHOW_PATH . DS . 'theme/supersized.shutter.min.js');
$cache_path = PLATFORM_SANDBOX_SYSTEM_CACHES_PATH . DS . 'photo';
$photo_files = find_filetype('jpg', PLATFORM_SANDBOX_WORKSPACE_PATH);
$c = 0;
?>
	
		<script type="text/javascript">