mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-28460 fix for master
This commit is contained in:
parent
6884b598f3
commit
e0523b9729
4 changed files with 37 additions and 6 deletions
|
@ -56,7 +56,12 @@ $string['choosereadme'] = '
|
||||||
<p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.
|
<p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
|
$string['creditstomoodleorg'] = 'Display credits to moodle.org';
|
||||||
|
$string['creditstomoodleorgdesc'] = 'Display the usual small moodle logo at the bottom of the page';
|
||||||
$string['configtitle'] = 'Formal white theme';
|
$string['configtitle'] = 'Formal white theme';
|
||||||
|
$string['ctmo_no'] = 'never'; // ctmo == credits to moodle org
|
||||||
|
$string['ctmo_onfrontpageonly'] = 'in the front page only'; // ctmo == credits to moodle org
|
||||||
|
$string['ctmo_ineverypage'] = 'in every page'; // ctmo == credits to moodle org
|
||||||
$string['customcss'] = 'Custom CSS';
|
$string['customcss'] = 'Custom CSS';
|
||||||
$string['customcssdesc'] = 'Any CSS you enter here will be added to every page allowing your to easily customise this theme.';
|
$string['customcssdesc'] = 'Any CSS you enter here will be added to every page allowing your to easily customise this theme.';
|
||||||
$string['displaylogo'] = 'Pages header content';
|
$string['displaylogo'] = 'Pages header content';
|
||||||
|
|
|
@ -200,8 +200,10 @@ if ($hasfooter) {
|
||||||
} ?>
|
} ?>
|
||||||
<div class="moodledocsleft">
|
<div class="moodledocsleft">
|
||||||
<?php
|
<?php
|
||||||
//echo $OUTPUT->login_info();
|
echo $OUTPUT->login_info();
|
||||||
//echo $OUTPUT->home_link();
|
if ($PAGE->theme->settings->creditstomoodleorg) {
|
||||||
|
echo $OUTPUT->home_link();
|
||||||
|
}
|
||||||
echo $OUTPUT->standard_footer_html();
|
echo $OUTPUT->standard_footer_html();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -198,14 +198,29 @@ if ($hasfooter) {
|
||||||
} ?>
|
} ?>
|
||||||
<div class="moodledocsleft">
|
<div class="moodledocsleft">
|
||||||
<?php
|
<?php
|
||||||
//echo $OUTPUT->login_info();
|
echo $OUTPUT->login_info();
|
||||||
//echo $OUTPUT->home_link();
|
//echo $OUTPUT->home_link();
|
||||||
echo $OUTPUT->standard_footer_html();
|
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
<div class="moodledocs">
|
<div class="moodledocs">
|
||||||
<?php echo page_doc_link(get_string('moodledocslink')); ?>
|
<?php echo page_doc_link(get_string('moodledocslink')); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
if ($PAGE->theme->settings->creditstomoodleorg == 2) {
|
||||||
|
// can not use $OUTPUT->home_link() here because whether $OUTPUT->page->pagetype != 'site-index'
|
||||||
|
// the output of the function is not the classic nice moodle logo $this->pix_url('moodlelogo')
|
||||||
|
?>
|
||||||
|
<div class="sitelink">
|
||||||
|
<a title="Moodle" href="http://moodle.org/">
|
||||||
|
<img style="width:100px;height:30px" src="<?php echo $this->pix_url('moodlelogo') ?>" alt="moodlelogo" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
echo $OUTPUT->standard_footer_html();
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
</div> <!-- end of page-footer or page-footer_noframe -->
|
</div> <!-- end of page-footer or page-footer_noframe -->
|
||||||
<?php //the waiting div has been closed
|
<?php //the waiting div has been closed
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,15 @@ if ($ADMIN->fulltree) {
|
||||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||||
$settings->add($setting);
|
$settings->add($setting);
|
||||||
|
|
||||||
|
// creditstomoodleorg: ctmo
|
||||||
|
$name = 'theme_formal_white/creditstomoodleorg';
|
||||||
|
$title = get_string('creditstomoodleorg','theme_formal_white');
|
||||||
|
$description = get_string('creditstomoodleorgdesc', 'theme_formal_white');
|
||||||
|
$default = '2';
|
||||||
|
$choices = array(2=>get_string('ctmo_ineverypage', 'theme_formal_white'), 1=>get_string('ctmo_onfrontpageonly', 'theme_formal_white'), 0=>get_string('ctmo_no', 'theme_formal_white'));
|
||||||
|
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||||
|
$settings->add($setting);
|
||||||
|
|
||||||
// Block content background colour setting
|
// Block content background colour setting
|
||||||
$name = 'theme_formal_white/blockcontentbgc';
|
$name = 'theme_formal_white/blockcontentbgc';
|
||||||
$title = get_string('blockcontentbgc','theme_formal_white');
|
$title = get_string('blockcontentbgc','theme_formal_white');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue