Mensagens colocadas por Chad Parmentier

Moodle in English -> Themes -> theme requirements -> Re: theme requirements

por Chad Parmentier -

Hi Andrew,

Um I have not checked but the themes should be fine upgrading to 2.1. You might consider setting up a development server so you can test then migrate the system over. Regarding the plugins I would stick to the ones supported by remote learner and moodle rooms as they are fairly stable. Some of the plugins are abandond and many have not been upgraded to work with m20. hope this helps.

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>

This site I am working on duplicated the splash theme then modified it. all was ok until they upgraded to the newest version of moodle 2.0. At that point the logo.gif file does not show even though its in the correct spot. The theme loads fine on earlier versions of moodle 2.0. you can see it here as you dont need a login. http://idealliance.ostiarydev.com/courses/

The permissions are ok aswell when I right click view image I get a "The requested URL could not be retrieved" error from the server. some how it seems maybe the lang string is not correct im not a php guru so...