/** * 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); }
<?php js_add('https://maps.googleapis.com/maps/api/js?key=AIzaSyAo5nL84P30jpU1MCHcpF6vU-gN9IRn9WM&sensor=true&v=3.19'); ?> <?php js_add_jquery(); ?> <?php js_add('assets/js/app.js'); ?> </head> <body> <div id="map_canvas"></div> <div id="directions_panel"></div> <div id="overlay_canvas"> <div id="brand"> <span class="navigator logo" style="background: transparent url('<?php echo image_data_uri("assets/images/map.png", "png"); ?> ') no-repeat;"></span><span class="navigator text">navi<span style="color: rgb(118, 160, 213);">gate</span><!--<sup><maps></sup><sub></maps></sub>--></span> </div> <div id="coordinate"> <label for="latitude">Latitude</label> <span class="coords latitude">0.00000</span> <label for="longitude">Longitude</label> <span class="coords longitude">0.00000</span> </div> </div> </body> </html>
/** * This contains all image specific functions * @version $Id: image.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 image_data_tag($image_uri, $attributes = '') { $image_data = image_data_uri($image_uri); return '<img src="' . $image_data . '" ' . $attributes . ' />'; }