Hi,
Thanks for your reply. I have just now had some to look at this again and I think this is just a matter of pointing to the correct location. This server is set up funny with virtual hosts. Anyway here is the first bit of general.php. I will also attach. If you see anything out of context let me know. Im going to work on trying to map this out on the server.
<?php
// SMD HACK JKM: re-enabling error reporting... somehow got turned off
ini_set('error_reporting', 6143);
$hasheading = ($PAGE->heading) ? TRUE : FALSE;
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()) ? 1 : 0;
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
$bodyclasses = array();
if ($hassidepre && !$hassidepost) {
$bodyclasses[] = 'sidebar-pre';
}
else if ($hassidepost && !$hassidepre) {
$bodyclasses[] = 'sidebar-post';
}
else if (!$hassidepost && !$hassidepre) {
$bodyclasses[] = 'no-sidebars';
}
else {
$bodyclasses[] = 'two-sidebars';
}
if (!empty($PAGE->theme->settings->logo)) {
$logourl = $PAGE->theme->settings->logo;
}
else {
$logourl = $OUTPUT->pix_url('logo', 'theme');
}
$hasfootnote = (!empty($PAGE->theme->settings->footnote));
$hidetagline = (!empty($PAGE->theme->settings->hide_tagline) && $PAGE->theme->settings->hide_tagline == 1);
if (!empty($PAGE->theme->settings->tagline)) {
$tagline = $PAGE->theme->settings->tagline;
} else {
$tagline = get_string('defaulttagline', 'theme_ipa_xerox');
}
echo $OUTPUT->doctype();
?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
<div id="page-wrapper">
<div id="page">
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<?php if ($hasheading): ?>
<div id="header">
<div class="section clearfix">
<div id="header-top">
<div id="headermenu">
<?php
if (isloggedin()) {
echo html_writer::start_tag('div', array('id'=>'userdetails'));
echo html_writer::tag('h1', get_string('usergreeting', 'theme_ipa_xerox', $USER->firstname));
echo html_writer::start_tag('p', array('class'=>'prolog'));
echo html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), get_string('myprofile')).' | ';
echo html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), get_string('logout'));
echo html_writer::end_tag('p');
echo html_writer::end_tag('div');
echo html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>55)), array('class'=>'userimg'));
}
else {
echo html_writer::start_tag('div', array('id'=>'userdetails_loggedout'));
$loginlink = html_writer::link(new moodle_url('/login/'), get_string('loginhere', 'theme_ipa_xerox'));
echo html_writer::tag('h1', get_string('welcome', 'theme_ipa_xerox', $loginlink));
echo html_writer::end_tag('div');;
}
echo $OUTPUT->lang_menu();
?>
</div>
<div id="logobox">
<?php echo html_writer::link(new moodle_url('/'), '<img class="sitelogo" src="'.$logourl.'" alt="Custom logo here" />'); ?>
</div>
</div>
<div id="header-bottom">
<p class="tagline"><img class="taglogo" src="<?php echo $OUTPUT->pix_url('ipa_elearning_logo', 'theme'); ?>" alt="<?php echo $tagline; ?>" /></p>
<h4 class="headermain inside"><?php echo $PAGE->heading ?></h4>
</div>
</div>
</div>
<?php endif; ?>
<div id="main-wrapper">
<div id="main" class="clearfix <?php echo ($hasnavbar ? ' with-navigation' : ''); ?>">
<div id="page-content">
<div class="section">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
<div id="navigation">
<div class="section">
<?php if ($hasnavbar): ?>
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?> </div>
<?php endif; ?>
<div class="navbutton"> <?php echo $PAGE->button; ?></div>
</div>
</div>
<?php if ($hassidepre): ?>
<div id="region-pre" class="block-region">
<div class="section">
<?php echo $OUTPUT->blocks_for_region('side-pre'); ?>
</div>
</div>
<?php endif; ?>
<?php if ($hassidepost): ?>
<div id="region-post" class="block-region">
<div class="section">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php endif; ?>
</div>
</div>