* Which doctype to use. Can be configured in the
* constructor. If set to 'strict', headerHTMLDeclaration will
* create a doctype definition that uses the strict doctype,
- * otherwise it will use the transitional doctype.
+ * otherwise it will use the transitional doctype.
* @var string $doctype
*/
var $doctype = 'transitional';
/**
- * The default main page content
+ * The default main page content
* @var string $rootindex
*/
var $rootindex = 'index_std.php';
/**
* The base directory of the theme in the servers file system
* @var string $themedir
- */
+ */
var $themedir;
/**
* The base url of the theme
* @var string $themeurl
- */
+ */
var $themeurl;
/**
* The base directory of the image files in the servers file system
* @var string $imgdir
- */
+ */
var $imgdir;
/**
* The base url of the image files
* @var string $imgbaseurl
- */
+ */
var $imgbaseurl;
/**
* The base directory of the js files in the servers file system
* @var string $jsdir
- */
+ */
var $jsdir;
/**
* The base url of the js files
* @var string $jsbaseurl
- */
+ */
var $jsbaseurl;
/**
}
/**
- * Constructs a list of Javascript files followed by some timestamp
+ * Constructs a list of Javascript files followed by some timestamp
*
* TODO document the purpose of this : probably to avoid caching versions updated on the server
* @param string $js path to the JS file
return $code;
}
- /**
- * header() - generates the complete header of page by calling
+ /**
+ * header() - generates the complete header of page by calling
* headerStart() and bodyHeader().
*/
function header($params) {
}
/**
- * headerStart() - generates the header code for all themes up to the
+ * headerStart() - generates the header code for all themes up to the
* closing </head>.
- * Override any of the methods headerHTMLDeclaration(), headerTitle(),
- * headerFavIcon(), headerRSS(), headerSearch(), headerCSS(), or
- * headerJS() to adapt your theme.
+ * Override any of the methods headerHTMLDeclaration(), headerTitle(),
+ * headerFavIcon(), headerRSS(), headerSearch(), headerCSS(), or
+ * headerJS() to adapt your theme.
*
* @param array Header parameters array
*/
$this->headerRSS();
$this->headerSearch();
$this->headerCSS();
- $this->headerJS();
- $this->headerForgepluckerMeta();
+ $this->headerJS();
+ $this->headerForgepluckerMeta();
?>
</head>
<?php
- }
+ }
/**
* headerHTMLDeclaration() - generates the HTML declaration, i.e. the
- * XML declaration, the doctype definition, and the opening <html>.
+ * XML declaration, the doctype definition, and the opening <html>.
*
*/
function headerHTMLDeclaration() {
}
/**
- * headerTitle() - creates the <title> header
+ * headerTitle() - creates the <title> header
*
* @param array Header parameters array
*/
*
*/
function headerSearch() {
- echo '<link rel="search" title="'
- . forge_get_config ('forge_name').'" href="'
- . util_make_url ('/export/search_plugin.php')
+ echo '<link rel="search" title="'
+ . forge_get_config ('forge_name').'" href="'
+ . util_make_url ('/export/search_plugin.php')
. '" type="application/opensearchdescription+xml"/>'."\n";
}
- /**
+ /**
* Create the CSS headers for all cssfiles in $cssfiles and
* calls the plugin cssfile hook.
*/
<script type="text/javascript" src="'. util_make_uri('/js/common.js') .'"></script>';
plugin_hook ("javascript_file",false);
echo $this->getJavascripts();
-
+
// invoke the 'javascript' hook for custom javascript addition
$params = array('return' => false);
plugin_hook("javascript",$params);
}
$return = "\n".
'<table'.$args.'>';
-
+
if (count($titleArray)) {
$return .= '<thead><tr>';
echo '
<form id="quicknavform" name="quicknavform" action=""><div>
- <select name="quicknav" id="quicknav">
+ <select name="quicknav" id="quicknav" onChange="location.href=document.quicknavform.quicknav.value">
<option value="">'._('Quick Jump To...').'</option>';
foreach ($groups as $g) {
$menu = $this->navigation->getProjectMenu($group_id);
echo '
- <option value="' . $menu['starturl'] . '">'
+ <option value="' . $menu['starturl'] . '">'
. $menu['name'] .'</option>';
for ($j = 0; $j < count($menu['urls']); $j++) {
echo '
- <option value="' . $menu['urls'][$j] .'"> '
+ <option value="' . $menu['urls'][$j] .'"> '
. $menu['titles'][$j] . '</option>';
if (@$menu['adminurls'][$j]) {
echo '
- <option value="' . $menu['adminurls'][$j]
- . '"> '
+ <option value="' . $menu['adminurls'][$j]
+ . '"> '
. _('Admin') . '</option>';
}
}
return $return.'
- </table>
+ </table>
<!-- end tabs -->
';
* getThemeIdFromName()
*
* @param string the dirname of the theme
- * @return integer the theme id
+ * @return integer the theme id
*/
function getThemeIdFromName($dirname) {
$res = db_query_params ('SELECT theme_id FROM themes WHERE dirname=$1',
foreach ($params as $b => $v) {
$prms[] = '<input type="hidden" name="'.$b.'" value="'.$v.'" />'."\n";
}
- $prm = join(' ', $prms);
+ $prm = join(' ', $prms);
foreach ($buttons as $b => $v) {
$btns[] = '<input type="submit" name="'.$b.'" value="'.$v.'" />'."\n";
function getPicto($url, $title, $alt, $width = '20', $height = '20') {
if (!$alt) {
- $alt = $title;
+ $alt = $title;
}
return html_image($url, $width, $height, array('title'=>$title, 'alt'=>$alt));
}
echo '<script language="JavaScript" type="text/javascript">/* <![CDATA[ */'."
document.observe('dom:loaded', function () {
$('$element_id-ajax').update('<div style=\"text-align:center\">". $this->getPicto('ic/spinner.gif','spinner','spinner') ."</div>');
- new Ajax.Updater('$element_id-ajax',
+ new Ajax.Updater('$element_id-ajax',
'". $widget->getAjaxUrl($owner_id, $owner_type) ."'
);
});
function printSoftwareMapLinks() {
$subMenuTitle = array();
$subMenuUrl = array();
-
+
if (forge_get_config('use_project_tags')) {
$subMenuTitle[] = _('Tag cloud');
$subMenuUrl[] = '/softwaremap/tag_cloud.php';
}
-
+
if (forge_get_config('use_trove')) {
$subMenuTitle[] = _('Project Tree');
$subMenuUrl[] = '/softwaremap/trove_list.php';
}
-
+
if (forge_get_config('use_project_full_list')) {
$subMenuTitle[] = _('Project List');
$subMenuUrl[] = '/softwaremap/full_list.php';
}
-
+
echo $this->subMenu($subMenuTitle, $subMenuUrl);
}
}