function output_header($root_url) { $head = '<head>'; // TODO - This is clowny. Make it better. $head .= output_standard_head('Colm\'s Sandbox', 'website', $root_url . 'page-tab/index.php', 'https://fbcdn-photos-a.akamaihd.net/photos-ak-snc7/v85005/230/120999667956026/app_10_120999667956026_1011543027.gif', 'Colm\'s Sandbox', '120999667956026'); $head .= '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>'; $head .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'; $head .= '<link href="' . $root_url . 'css/bootstrap.min.css" rel="stylesheet" media="screen">'; $head .= '<link href="' . $root_url . 'css/font-awesome.min.css" rel="stylesheet" media="screen">'; $head .= '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>'; $head .= '<script src="' . $root_url . 'js/bootstrap.min.js"></script>'; $head .= '<link href="' . $root_url . 'css/prettify/prettify.css" type="text/css" rel="stylesheet" />'; $head .= '<script type="text/javascript" src="' . $root_url . '/js/prettify/prettify.js"></script>'; $head .= '<script src="' . $root_url . 'js/main.js"></script>'; $head .= '<link rel="stylesheet" type="text/css" href="' . $root_url . 'css/screen.css" />'; $head .= '</head>'; return $head; }
<?php /* Copyright 2012 Colm Doyle Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ include_once '../includes/__init__.php'; $login_button = '<fb:login-button scope="user_likes" show-faces="true" width="200" max-rows="1"></fb:login-button>'; $head = '<head>'; $head .= output_standard_head('Colm\'s Sandbox', 'website', 'http://colmd.fbdublin.com/fb-diagnostics/index.php', 'https://fbcdn-photos-a.akamaihd.net/photos-ak-snc7/v85005/230/120999667956026/app_10_120999667956026_1011543027.gif', 'Colm\'s Sandbox', $config['AppId']); $head .= '<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>'; $head .= '<script src="../scripts/main.js"></script>'; $head .= '<script src=\'https://connect.facebook.net/en_US/all.js\'></script>'; $head .= '<link rel="stylesheet" type="text/css" href="../css/screen.css" />'; $head .= '<link rel="stylesheet" type="text/css" href="../css/custom.css" />'; $head .= '<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>'; $head .= '</head>'; echo $head; echo $login_button;