blob: bb7204388763ec611e5fe757cc01846d1093322a [file] [log] [blame]
atoulme13073032009-01-27 16:31:27 +00001<?php
2/*******************************************************************************
3 * Copyright (c) 2007-2009 Intalio, Inc.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Antoine Toulme, Intalio Inc.
11*******************************************************************************/
12
13require (dirname(__FILE__) . "/../html_functions.php");
14
15// Use a class to define the hooks to avoid bugs with already defined functions.
16class BabelEclipseOrgStaging extends BabelEclipseOrg {
17
atoulmea4adf8e2009-01-27 19:01:35 +000018 function head() {
19 BabelEclipseOrg::head();
20 echo "<h1 style='color: red'>This is the staging area. Don't do any serious translation work here!</h1><br/>";
21 }
atoulme13073032009-01-27 16:31:27 +000022}
23
24function __register_html_staging($addon) {
atoulme828bc472009-01-28 06:52:51 +000025 __register_html($addon);
atoulmea4adf8e2009-01-27 19:01:35 +000026 $addon->register('head', array('BabelEclipseOrgStaging', 'head'));
atoulme13073032009-01-27 16:31:27 +000027}
28
29global $register_function_html;
30$register_function_html = '__register_html_staging';
31?>