mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 14:46:35 +02:00
MDL-21695 Cleaning up legacy strings and help
Text of help pages Read carefully, Write carefully and Ask questions moved to wiki by Helen. Text formatting help removed, to be re-introduced properly in editors rewrite. Unused editorhelp form element removed completely.
This commit is contained in:
parent
fffc7ddf5a
commit
096ec8d63d
@ -46,7 +46,6 @@ class blog_edit_form extends moodleform {
|
||||
|
||||
$mform->setType('summary_editor', PARAM_RAW);
|
||||
$mform->addRule('summary_editor', get_string('emptybody', 'blog'), 'required', null, 'client');
|
||||
$mform->setHelpButton('summary_editor', array('writing', 'richtext2'), false, 'editorhelpbutton');
|
||||
|
||||
$mform->addElement('format', 'summaryformat', get_string('format'));
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
* Allows a creator to edit custom scales, and also display help about scales
|
||||
*
|
||||
* @copyright 1999 Martin Dougiamas http://dougiamas.com
|
||||
* @deprecated - TODO remove this file or replace it with an alternative solution for scales overview
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package course
|
||||
*/
|
||||
@ -43,16 +44,9 @@ require_login($course);
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_capability('moodle/course:viewscales', $context);
|
||||
|
||||
$strscale = get_string("scale");
|
||||
$strscales = get_string("scales");
|
||||
$strcustomscale = get_string("scalescustom");
|
||||
$strstandardscale = get_string("scalesstandard");
|
||||
$strcustomscales = get_string("scalescustom");
|
||||
$strstandardscales = get_string("scalesstandard");
|
||||
$strname = get_string("name");
|
||||
$strdescription = get_string("description");
|
||||
$strhelptext = get_string("helptext");
|
||||
$stractivities = get_string("activities");
|
||||
|
||||
$PAGE->set_title($strscales);
|
||||
echo $OUTPUT->header();
|
||||
|
@ -1,17 +0,0 @@
|
||||
<h1>Course Cost</h1>
|
||||
|
||||
<p>If the site has been configured to use an enrolment method
|
||||
that requires payment (such as the PayPal module), then
|
||||
you can enter a course cost here with no symbol (the currency
|
||||
is set by the enrolment plugin). For example, 19.95.</p>
|
||||
|
||||
<p>If the cost field is empty then the payment option is not presented
|
||||
and the interface will fall back to other methods of enrolment
|
||||
(such as keys, or manual enrolments).</p>
|
||||
|
||||
<p>If the cost field is NOT empty, then students trying to enrol will
|
||||
be presented with the option of making a payment to enter.</p>
|
||||
|
||||
<p>If you ALSO enter an enrolment key in the course settings, then
|
||||
students will also have the option to enrol using a key. This is
|
||||
useful if you have a mixture of paying and non-paying students.</p>
|
@ -1,25 +0,0 @@
|
||||
<h1>Directory paths</h1>
|
||||
|
||||
<p>The full syntax of a directory path depends on your operating system:</p>
|
||||
|
||||
<div class="indent">
|
||||
|
||||
<p>In <b>Windows Systems</b> use something like:</p>
|
||||
<ul>
|
||||
<li>c:\program files\data\moodle</li>
|
||||
<li>c:\documents and settings\moodle\temp\saved</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>In <b>Unix Systems</b> use something like:</p>
|
||||
<ul>
|
||||
<li>/usr/data/moodle</li>
|
||||
<li>/home/moodle/tmp/saved</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<p>Note that it's usually a good idea to make sure the directory already exists.
|
||||
Sometimes Moodle can create the directory when required but this is not always possible.</p>
|
||||
|
||||
<p>Finally, make sure the case is correct (upper vs lower) and never include a trailing slash.</p>
|
@ -1,128 +0,0 @@
|
||||
<h1>Using Smilies (emoticons)</h1>
|
||||
|
||||
<!-- Note, this file is no loger used in HEAD, it has been replaced by emoticons2.html
|
||||
which uses a dynamically buils list of smilies. The purpose of this note is to
|
||||
point out that it is not a problem that none fo the href="javascript:inserttext('...')"
|
||||
links work any more in HEAD. See MDL-16654. -->
|
||||
|
||||
<table align="center" border="1">
|
||||
<tbody><tr valign="top">
|
||||
<td>
|
||||
<table align="center" border="0" cellpadding="5">
|
||||
<tbody><tr>
|
||||
<td><a href="javascript:inserttext(':-)')"><img src="emoticons_files/smiley.html" class="icon" alt=""></a></td>
|
||||
<td>smile</td>
|
||||
<td><code>:-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(':-D')"><img src="emoticons_files/biggrin.html" class="icon" alt=""></a></td>
|
||||
<td>big grin</td>
|
||||
<td><code>:-D</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(';-)')"><img src="emoticons_files/wink.html" class="icon" alt=""></a></td>
|
||||
<td>wink</td>
|
||||
<td><code>;-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(':-/')"><img src="emoticons_files/mixed.html" class="icon" alt=""></a></td>
|
||||
<td>mixed</td>
|
||||
<td><code>:-/</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('V-.')"><img src="emoticons_files/thoughtful.html" class="icon" alt=""></a></td>
|
||||
<td>thoughtful</td>
|
||||
<td><code>V-.</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(':-P')"><img src="emoticons_files/tongueout.html" class="icon" alt=""></a></td>
|
||||
<td>tongue out</td>
|
||||
<td><code>:-P</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('B-)')"><img src="emoticons_files/cool.html" class="icon" alt=""></a></td>
|
||||
<td>cool</td>
|
||||
<td><code>B-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('^-)')"><img src="emoticons_files/approve.html" class="icon" alt=""></a></td>
|
||||
<td>approve</td>
|
||||
<td><code>^-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('8-)')"><img src="emoticons_files/wideeyes.html" class="icon" alt=""></a></td>
|
||||
<td>wide eyes</td>
|
||||
<td><code>8-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('8-o')"><img src="emoticons_files/surprise.html" class="icon" alt=""></a></td>
|
||||
<td>surprise</td>
|
||||
<td><code>8-o</code></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<table align="center" border="0" cellpadding="5">
|
||||
<tbody><tr>
|
||||
<td><a href="javascript:inserttext(':-(')"><img src="emoticons_files/sad.html" class="icon" alt=""></a></td>
|
||||
<td>sad</td>
|
||||
<td><code>:-(</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('8-.')"><img src="emoticons_files/shy.html" class="icon" alt=""></a></td>
|
||||
<td>shy</td>
|
||||
<td><code>8-.</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(':-I')"><img src="emoticons_files/blush.html" class="icon" alt=""></a></td>
|
||||
<td>blush</td>
|
||||
<td><code>:-I</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(':-X')"><img src="emoticons_files/kiss.html" class="icon" alt=""></a></td>
|
||||
<td>kisses</td>
|
||||
<td><code>:-X</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext(':o)')"><img src="emoticons_files/clown.html" class="icon" alt=""></a></td>
|
||||
<td>clown</td>
|
||||
<td><code>:o)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('P-|')"><img src="emoticons_files/blackeye.html" class="icon" alt=""></a></td>
|
||||
<td>black eye</td>
|
||||
<td><code>P-|</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('8-[')"><img src="emoticons_files/angry.html" class="icon" alt=""></a></td>
|
||||
<td>angry</td>
|
||||
<td><code>8-[</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('xx-P')"><img src="emoticons_files/dead.html" class="icon" alt=""></a></td>
|
||||
<td>dead</td>
|
||||
<td><code>xx-P</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('|-.')"><img src="emoticons_files/sleepy.html" class="icon" alt=""></a></td>
|
||||
<td>sleepy</td>
|
||||
<td><code>|-.</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:inserttext('}-]')"><img src="emoticons_files/evil.html" class="icon" alt=""></a></td>
|
||||
<td>evil</td>
|
||||
<td><code>}-]</code></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
<p>When writing online, it can sometimes difficult to express emotion with plain text.
|
||||
These little icons can help. </p>
|
||||
|
||||
<p>To insert these icons in your text: just click the icon above, or type the associated text code directly in your text.</p>
|
||||
|
||||
<p>Note that the codes themselves are like little pictures - just turn your head to the left when looking at them</p>
|
||||
|
@ -1,13 +0,0 @@
|
||||
<h1>Using Smilies (emoticons)</h1>
|
||||
|
||||
<div id="emoticons">##emoticons_html##</div>
|
||||
<div style="clear: both;"> </div>
|
||||
|
||||
<p>When writing online, it can sometimes difficult to express emotion with plain text.
|
||||
These little icons can help.</p>
|
||||
|
||||
<p>To insert these icons in your text: just click the icon above, or type the
|
||||
associated text code directly in your text.</p>
|
||||
|
||||
<p>Note that the codes themselves are like little pictures - just turn your
|
||||
head to the left when looking at them</p>
|
@ -1,19 +0,0 @@
|
||||
<h1>Help on writing html</h1>
|
||||
|
||||
<p>When writing HTML in Moodle, you are free to use almost any HTML tags you like
|
||||
to produce the effect you want.</p>
|
||||
|
||||
<p>Note that scripting (eg Javascript or VB Script) is not allowed, and will be removed
|
||||
automatically.</p>
|
||||
|
||||
<p>Your code will normally be printed on the page within a table cell,
|
||||
so:</p>
|
||||
|
||||
<ul>
|
||||
<li>there is no need to use any <HEAD> or <BODY> tags
|
||||
<li>be careful about unmatched </TABLE> tags that may mess up the display.
|
||||
</ul>
|
||||
|
||||
<p>Smilies (emoticons) will be converted into their graphical equivalent, and
|
||||
bare URLs will be converted into links.
|
||||
</p>
|
@ -1,12 +0,0 @@
|
||||
<h1>Language Editing</h1>
|
||||
|
||||
<p>To edit languages on this page the files need to be writable
|
||||
by the web server process.</p>
|
||||
|
||||
<p>Within some of the strings you will notice <b>$a</b> and <b>$a->something</b>.</p>
|
||||
|
||||
<p>These represent variables that will be replaced by names or other words from
|
||||
within Moodle.</p>
|
||||
|
||||
<p>When there is only one variable, the $a form is used. When there are two or
|
||||
more variables, then each one has a name.</p>
|
@ -1,28 +0,0 @@
|
||||
<h1>Language packages</h1>
|
||||
|
||||
<dl>
|
||||
<dt>Master English pack</dt>
|
||||
|
||||
<dd>is primary source of all built-in texts in Moodle. It is distributed as a
|
||||
part of Moodle and plugins. It consists of PHP string files and HTML help
|
||||
files in the folder "en_utf". All add-on plugins (modules, blocks,
|
||||
etc.) have to contain their own master English files. Master English pack
|
||||
can't be edited via lang.php.</dd>
|
||||
|
||||
<dt>Master language pack</dt>
|
||||
|
||||
<dd>is official translation of Master English pack. Usually, it is maintained
|
||||
by a voluntary member of the community. Master language packs for Moodle core
|
||||
can be updated automatically from admin menu under "Languages" (you will
|
||||
find a utility that allows you to select, download and install these language
|
||||
packs directly from within Moodle). They can also be downloaded manually from
|
||||
<a href="http://download.moodle.org/lang16/" target="_blank">http://download.moodle.org</a>.
|
||||
</dd>
|
||||
|
||||
<dt>Local modifications</dt>
|
||||
|
||||
<dd>of master language pack are stored in separate directory on your server.
|
||||
Therefore, you can update master language pack without overwriting your on-site
|
||||
customization.</dd>
|
||||
|
||||
</dl>
|
@ -1,3 +0,0 @@
|
||||
<p align="center"><strong>Saving edited language files</strong></p>
|
||||
<p>Edited files may either be saved in the parent language folder or, preferably, in the local language folder, parentlanguage_local.</p>
|
||||
<p>The local language folder will be created automatically if it doesn't yet exist.</p>
|
@ -1,172 +0,0 @@
|
||||
<h1>Questions</h1>
|
||||
|
||||
|
||||
|
||||
<p>A good way to help other people think about a subject is to
|
||||
|
||||
ask them a question about it. Being asked a good question
|
||||
|
||||
can really help us put information together, evaluate our
|
||||
|
||||
existing ideas and create new ideas.</p>
|
||||
|
||||
|
||||
|
||||
<p>Asking questions that are specifically intended to help
|
||||
|
||||
others learn is known as <i>Socratic questioning</i>, named
|
||||
|
||||
after Socrates in Ancient Greece.</p>
|
||||
|
||||
|
||||
|
||||
<p>Socratic questions require you to listen very carefully
|
||||
|
||||
to the other person to help you judge and phrase your question
|
||||
|
||||
in a helpful, constructive, and hopefully non-confrontational way.
|
||||
|
||||
|
||||
|
||||
<p>Here are some examples of such questions:</p>
|
||||
|
||||
|
||||
|
||||
<!--Hidden comment: Someday I will include a great example dialogue here -->
|
||||
|
||||
|
||||
|
||||
<h3>Questions of clarification</h3>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>What do you mean when you say ______?</li>
|
||||
|
||||
<li>What is your main point?</li>
|
||||
|
||||
<li>How does _____ relate to _____?</li>
|
||||
|
||||
<li>Could you put that another way?</li>
|
||||
|
||||
<li>Let me see if I understand you; do you mean _____ or _____?</li>
|
||||
|
||||
<li>How does this relate to our problem/discussion/issue?</li>
|
||||
|
||||
<li>Jane, can you summarize in your own words what Richard said? ... Richard, is this what you meant?</li>
|
||||
|
||||
<li>Could you give me an example?</li>
|
||||
|
||||
<li>Would _____ be a good example of that?</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<h3>Questions that probe assumptions</h3>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>What are you assuming here?</li>
|
||||
|
||||
<li>What is Jenny assuming?</li>
|
||||
|
||||
<li>What could we assume instead?</li>
|
||||
|
||||
<li>You seem to be assuming _____. Do I understand you correctly?</li>
|
||||
|
||||
<li>All of your reasoning depends on the idea that _____. Why have you based your reasoning on _____ instead of _____?</li>
|
||||
|
||||
<li>You seem to be assuming _____. How do you justify taking that for granted?</li>
|
||||
|
||||
<li>Is that always the case? Why do you think the assumption holds here?</li>
|
||||
|
||||
<li>Why would someone make that assumption? </li>
|
||||
|
||||
</ul>
|
||||
|
||||
<h3>Questions that probe reasons and evidence</h3>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>Could you explain your reasons to us?</li>
|
||||
|
||||
<li>How does that apply to this case?</li>
|
||||
|
||||
<li>Is there a reason to doubt that evidence?</li>
|
||||
|
||||
<li>Who is in a position to know that is true?</li>
|
||||
|
||||
<li>What would you say to someone who said that ____?</li>
|
||||
|
||||
<li>Can someone else give evidence to support that view?</li>
|
||||
|
||||
<li>By what reasoning did you come to that conclusion?</li>
|
||||
|
||||
<li>How could we find out if that is true? </li>
|
||||
|
||||
</ul>
|
||||
|
||||
<h3>Questions about viewpoints or perspectives </h3>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>What are you implying by that?</li>
|
||||
|
||||
<li>When you say _____, are you implying _____?</li>
|
||||
|
||||
<li>But, if that happened, what else would happen as a result? Why?</li>
|
||||
|
||||
<li>What effect would that have?</li>
|
||||
|
||||
<li>Would that necessarily happen or only possibly/probably happen?</li>
|
||||
|
||||
<li>What is an alternative?</li>
|
||||
|
||||
<li>If _____ and _____ are the case, then what might also be true?</li>
|
||||
|
||||
<li>If we say that ____ is ethical, how about _____? </li>
|
||||
|
||||
</ul>
|
||||
|
||||
<h3>Questions that probe implications and consequences </h3>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>How can we find out?</li>
|
||||
|
||||
<li>What does this question assume?</li>
|
||||
|
||||
<li>Would _____ ask this question differently?</li>
|
||||
|
||||
<li>How could someone settle this question?</li>
|
||||
|
||||
<li>Can we break this question down at all?</li>
|
||||
|
||||
<li>Is this question clear? Do we understand it?</li>
|
||||
|
||||
<li>Is this question easy or hard to answer? Why?</li>
|
||||
|
||||
<li>Do we all agree that this is the question?</li>
|
||||
|
||||
<li>To answer this question, what other questions must we answer first?</li>
|
||||
|
||||
<li>How would _____ state the issue?</li>
|
||||
|
||||
<li>Why is this issue important?</li>
|
||||
|
||||
<li>Is this the most important question, or is there an underlying question?</li>
|
||||
|
||||
<li>Can you see how this might relate to ________?</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
<font size="1"><i>Questions adapted from Paul, R. (1993). Critical Thinking: How To Prepare Students for a Rapidly Changing World: Foundation for Critical Thinking, Santa Rosa, CA. </i></font>
|
||||
|
||||
|
||||
|
||||
<p class="moreinfo"><a href="help.php?file=writing.html">More info about writing</a></p>
|
||||
|
||||
<p class="moreinfo"><a href="help.php?file=reading.html">More info about reading</a></p>
|
||||
|
@ -1,26 +0,0 @@
|
||||
<h1>Reading</h1>
|
||||
|
||||
|
||||
|
||||
<p>When reading texts quickly it is often very easy to misunderstand what the
|
||||
|
||||
author was trying to say.</p>
|
||||
|
||||
|
||||
|
||||
<p>To avoid misunderstanding, read their words carefully and try to see things
|
||||
|
||||
from the author's point of view.<p>
|
||||
|
||||
|
||||
|
||||
<p>It can also help to think of what the author has NOT said or left in doubt
|
||||
|
||||
- this may help you form questions in your own mind.</p>
|
||||
|
||||
|
||||
|
||||
<p class="moreinfo"><a href="help.php?file=writing.html">More info about writing</a></p>
|
||||
|
||||
<p class="moreinfo"><a href="help.php?file=questions.html">More info about questions</a></p>
|
||||
|
@ -1,162 +0,0 @@
|
||||
<h1>About the Richtext HTML editor</h1>
|
||||
|
||||
<p>Availability: <b>
|
||||
<?php if (!$CFG->htmleditor) {
|
||||
print_string("htmleditordisabledadmin");
|
||||
} else if (!$USER->htmleditor) {
|
||||
print_string("htmleditordisabled");
|
||||
} else if (!can_use_html_editor()) {
|
||||
print_string("htmleditordisabledbrowser");
|
||||
} else {
|
||||
print_string("htmleditoravailable");
|
||||
}
|
||||
?>
|
||||
</b></p>
|
||||
|
||||
<p>The Richtext HTML editor provides a word-processor interface embedded in your web page to allow you to edit text in an intuitive way, and produces normal HTML code.</p>
|
||||
|
||||
<p>In addition to formatting text, this editor provides a number of extra features you may find useful.
|
||||
|
||||
<h2>Paste text in from other Applications</h2>
|
||||
<div class="indent">
|
||||
<p>You can cut and paste rich text from other Windows applications such as Microsoft Word
|
||||
straight into this editor, and your formatting will be preserved. Just use the normal cut and paste
|
||||
menus in your web browser (or Control-C and Control-V).</p>
|
||||
</div>
|
||||
|
||||
<h2>Inserting images <img alt="" src="lib/editor/htmlarea/images/ed_image.gif" /></h2>
|
||||
<div class="indent">
|
||||
<p>If you have images that are already published on a web site and accessible via a URL, you can include these images in your texts using the "Insert Image" button.</p>
|
||||
</div>
|
||||
|
||||
<h2>Inserting Tables <img alt="" src="lib/editor/htmlarea/images/insert_table.gif" /></h2>
|
||||
<div class="indent">
|
||||
<p>To add layout to your texts, you can use the "Insert Tables" button in the toolbar.
|
||||
</div>
|
||||
|
||||
<h2>Inserting Links <img alt="" src="lib/editor/htmlarea/images/ed_link.gif" /> /</h2>
|
||||
<div class="indent">
|
||||
<p>To make a new link, first type the text that you want to be a link. Then select it and click the link button in the toolbar. Type the URL you want to link to and it's done!</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Inserting smilies (emoticons) <img alt="" src="pix/s/smiley.gif" class="icon" /></h2>
|
||||
<div class="indent">
|
||||
<p>To embed these small icons in your text, click on the smiley icon in the toolbar. A dialog will pop up that allows you to select from the following smiley icons. (Alternatively, you can just type the corresponding code straight into your text and it will be converted later when your text is displayed).</p>
|
||||
|
||||
<table border="1">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<table border="0" align="center" cellpadding="10">
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/smiley.gif" class="icon" /></td>
|
||||
<td>smile</td>
|
||||
<td nowrap="nowrap"><code>:-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/biggrin.gif" class="icon" /></td>
|
||||
<td>big grin</td>
|
||||
<td nowrap="nowrap"><code>:-D</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/wink.gif" class="icon" /></td>
|
||||
<td>wink</td>
|
||||
<td nowrap="nowrap"><code>;-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/mixed.gif" class="icon" /></td>
|
||||
<td>mixed</td>
|
||||
<td nowrap="nowrap"><code>:-/</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/thoughtful.gif" class="icon" /></td>
|
||||
<td>thoughtful</td>
|
||||
<td nowrap="nowrap"><code>V-.</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/tongueout.gif" class="icon" /></td>
|
||||
<td>tongue out</td>
|
||||
<td nowrap="nowrap"><code>:-P</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/cool.gif" class="icon" /></td>
|
||||
<td>cool</td>
|
||||
<td nowrap="nowrap"><code>B-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/approve.gif" class="icon" /></td>
|
||||
<td>approve</td>
|
||||
<td nowrap="nowrap"><code>^-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/wideeyes.gif" class="icon" /></td>
|
||||
<td>wide eyes</td>
|
||||
<td nowrap="nowrap"><code>8-)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/surprise.gif" class="icon" /></td>
|
||||
<td>surprise</td>
|
||||
<td nowrap="nowrap"><code>8-o</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table border="0" align="center" cellpadding="10">
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/sad.gif" class="icon" /></td>
|
||||
<td>sad</td>
|
||||
<td nowrap="nowrap"><code>:-(</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/shy.gif" class="icon" /></td>
|
||||
<td>shy</td>
|
||||
<td nowrap="nowrap"><code>8-.</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/blush.gif" class="icon" /></td>
|
||||
<td>blush</td>
|
||||
<td nowrap="nowrap"><code>:-I</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/kiss.gif" class="icon" /></td>
|
||||
<td>kisses</td>
|
||||
<td nowrap="nowrap"><code>:-X</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/clown.gif" class="icon" /></td>
|
||||
<td>clown</td>
|
||||
<td nowrap="nowrap"><code>:o)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/blackeye.gif" class="icon" /></td>
|
||||
<td>black eye</td>
|
||||
<td nowrap="nowrap"><code>P-|</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/angry.gif" class="icon" /></td>
|
||||
<td>angry</td>
|
||||
<td nowrap="nowrap"><code>8-[</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/dead.gif" class="icon" /></td>
|
||||
<td>dead</td>
|
||||
<td nowrap="nowrap"><code>xx-P</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/sleepy.gif" class="icon" /></td>
|
||||
<td>sleepy</td>
|
||||
<td nowrap="nowrap"><code>|-.</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="" src="pix/s/evil.gif" class="icon" /></td>
|
||||
<td>evil</td>
|
||||
<td nowrap="nowrap"><code>}-]</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -1,65 +0,0 @@
|
||||
<h1>About the Richtext HTML editor</h1>
|
||||
|
||||
<p>Availability: <b>
|
||||
<?php if (!$CFG->htmleditor) {
|
||||
print_string("htmleditordisabledadmin");
|
||||
} else if (!$USER->htmleditor) {
|
||||
print_string("htmleditordisabled");
|
||||
} else if (!can_use_html_editor()) {
|
||||
print_string("htmleditordisabledbrowser");
|
||||
} else {
|
||||
print_string("htmleditoravailable");
|
||||
}
|
||||
?>
|
||||
</b></p>
|
||||
|
||||
<p>The Richtext HTML editor provides a word-processor interface embedded in your
|
||||
web page to allow you to edit text in an intuitive way, and produces normal HTML code.</p>
|
||||
|
||||
<p>In addition to formatting text, this editor provides a number of extra
|
||||
features you may find useful.</p>
|
||||
|
||||
|
||||
<h2>Paste text in from other Applications</h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>You can cut and paste rich text from other Windows applications such as Microsoft Word
|
||||
straight into this editor, and your formatting will be preserved. Just use the normal cut and paste
|
||||
menus in your web browser (or Control-C and Control-V).</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Inserting images <img alt="" src="lib/editor/htmlarea/images/ed_image.gif" /></h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>If you have images that are already published on a web site and accessible
|
||||
via a URL, you can include these images in your texts using the "Insert Image" button.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Inserting Tables <img alt="" src="lib/editor/htmlarea/images/insert_table.gif" /></h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>To add layout to your texts, you can use the "Insert Tables" button in the toolbar.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Inserting Links <img alt="" src="lib/editor/htmlarea/images/ed_link.gif" /> /</h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>To make a new link, first type the text that you want to be a link.
|
||||
Then select it and click the link button in the toolbar. Type the URL you want
|
||||
to link to and it's done!</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Inserting smilies (emoticons) <img alt="" src="pix/s/smiley.gif" class="icon" /></h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>To embed these small icons in your text, click on the smiley icon in the
|
||||
toolbar. A dialog will pop up that allows you to select from the following
|
||||
smiley icons. (Alternatively, you can just type the corresponding code straight
|
||||
into your text and it will be converted later when your text is displayed).</p>
|
||||
<div id="emoticons">##emoticons_html##</div>
|
||||
</div>
|
||||
<div style="clear:both"> </div>
|
@ -1,68 +0,0 @@
|
||||
<h1>Formatting text</h1>
|
||||
|
||||
<p>When writing text in Moodle there are several formats you can choose
|
||||
to produce your text, depending on your expertise and the type of browser
|
||||
you are using.</p>
|
||||
|
||||
<p><b>Usually you can just leave this setting to the default value and things
|
||||
should work as you expect</b>.</p>
|
||||
|
||||
|
||||
<h2>1. Moodle auto-format</h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>This format is best for when you are using normal web forms for entry
|
||||
(instead of the Richtext HTML editor). Just type text normally, as if you
|
||||
were sending an email.</p>
|
||||
|
||||
<p>When you save your text, Moodle will do a number of things to automatically
|
||||
format your text for you. </p>
|
||||
<p>For example, URLs such as </p>
|
||||
<a href="http://yahoo.com/">http://yahoo.com</a> or even
|
||||
<a href="http://www.yahoo.com/">www.yahoo.com</a> will be turned into links.
|
||||
<p>Your line breaks will be retained, and blank lines will start new paragraphs.</p>
|
||||
<p>Smiley characters such as :-) will automatically become their graphical equivalents.</p>
|
||||
<p>You can even embed HTML code if you want to and it will be retained.</p>
|
||||
<p class="moreinfo"><a href="help.php?file=text2.html">More info about Moodle auto-formatting</a></p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>2. HTML format</h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>This format assumes the text is pure HTML. If you are using the
|
||||
HTML editor to edit text then this is the default format - all
|
||||
the commands in the toolbar are producing HTML for you.</p>
|
||||
|
||||
<p>Even if you are not using the Richtext HTML editor, you can use HTML code
|
||||
in your text and it should come out exactly as you intended.</p>
|
||||
|
||||
<p>Unlike the Moodle auto-format, no automatic formatting is performed.</p>
|
||||
<p class="moreinfo"><a href="help.php?file=html.html">More info about HTML in Moodle</a></p>
|
||||
<p class="moreinfo"><a href="help.php?file=richtext2.html">More info about the Richtext HTML editor</a></p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>3. Plain text format</h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>This format is useful when you need to include lots of code
|
||||
or HTML that you want to be displayed exactly as you wrote it.</p>
|
||||
|
||||
<p>It still translates spaces and new lines, but otherwise your
|
||||
text isn't touched.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>4. Markdown text format</h2>
|
||||
|
||||
<div class="indent">
|
||||
<p>Markdown format tries to make it easy as possible to type
|
||||
well-formatted XHTML pages using nothing but text written
|
||||
more or less like you would write an email.</p>
|
||||
|
||||
<p>It's very good for writing clean text pages with some headings
|
||||
and some lists but without many links or images.</p>
|
||||
|
||||
<p class="moreinfo"><a href="help.php?file=markdown.html">More info about the Markdown format</a></p>
|
||||
</div>
|
@ -443,7 +443,6 @@ $string['deselectall'] = 'Deselect all';
|
||||
$string['detailedless'] = 'Less detailed';
|
||||
$string['detailedmore'] = 'More detailed';
|
||||
$string['directory'] = 'Directory';
|
||||
$string['directorypaths'] = 'Directory paths';
|
||||
$string['disable'] = 'Disable';
|
||||
$string['disabledcomments'] = 'Comments are disabled';
|
||||
$string['displayingfirst'] = 'Only the first {$a->count} {$a->things} are displayed';
|
||||
@ -489,7 +488,6 @@ $string['editordefaultfont'] = 'Default font';
|
||||
$string['editorenablespelling'] = 'Enable spellchecking';
|
||||
$string['editorfontlist'] = 'Fontlist';
|
||||
$string['editorfontsize'] = 'Default font-size';
|
||||
$string['editorhelptopics'] = 'Editor help topics.';
|
||||
$string['editorresettodefaults'] = 'Reset to default values';
|
||||
$string['editorsettings'] = 'Editor settings';
|
||||
$string['editorshortcutkeys'] = 'Editor shortcut keys';
|
||||
@ -794,20 +792,9 @@ $string['healthproblemsolution'] = 'Health Problem Solution';
|
||||
$string['healthreturntomain'] = 'Continue';
|
||||
$string['healthsolution'] = 'Solution';
|
||||
$string['help'] = 'Help';
|
||||
$string['helpemoticons'] = 'Use emoticons';
|
||||
$string['helpformatting'] = 'About formatting text';
|
||||
$string['helphtml'] = 'How to write html';
|
||||
$string['helpindex'] = 'Index of all help files';
|
||||
$string['helpprefix'] = 'Help, {$a}';
|
||||
$string['helpprefix2'] = 'Help with {$a}';
|
||||
$string['helpquestions'] = 'Ask good questions';
|
||||
$string['helpreading'] = 'Read carefully';
|
||||
$string['helprichtext'] = 'About the HTML editor';
|
||||
$string['helpsummaries'] = 'About these summaries';
|
||||
$string['helptext'] = 'How to write text';
|
||||
$string['helpwiki'] = 'How to write Wiki-like text';
|
||||
$string['helpwiththis'] = 'Help with this';
|
||||
$string['helpwriting'] = 'Write carefully';
|
||||
$string['hiddenassign'] = 'Hidden assignment';
|
||||
$string['hiddenfromstudents'] = 'Hidden from students';
|
||||
$string['hiddensections'] = 'Hidden sections';
|
||||
|
@ -2850,62 +2850,6 @@ function editorhelpbutton(){
|
||||
return '';
|
||||
|
||||
/// TODO: MDL-21215
|
||||
|
||||
global $CFG, $SESSION, $OUTPUT;
|
||||
$items = func_get_args();
|
||||
$i = 1;
|
||||
$urlparams = array();
|
||||
$titles = array();
|
||||
foreach ($items as $item){
|
||||
if (is_array($item)){
|
||||
$urlparams[] = "keyword$i=".urlencode($item[0]);
|
||||
$urlparams[] = "title$i=".urlencode($item[1]);
|
||||
if (isset($item[2])){
|
||||
$urlparams[] = "module$i=".urlencode($item[2]);
|
||||
}
|
||||
$titles[] = trim($item[1], ". \t");
|
||||
} else if (is_string($item)) {
|
||||
$urlparams[] = "button$i=".urlencode($item);
|
||||
switch ($item) {
|
||||
case 'reading' :
|
||||
$titles[] = get_string("helpreading");
|
||||
break;
|
||||
case 'writing' :
|
||||
$titles[] = get_string("helpwriting");
|
||||
break;
|
||||
case 'questions' :
|
||||
$titles[] = get_string("helpquestions");
|
||||
break;
|
||||
case 'emoticons2' :
|
||||
$titles[] = get_string("helpemoticons");
|
||||
break;
|
||||
case 'richtext2' :
|
||||
$titles[] = get_string('helprichtext');
|
||||
break;
|
||||
case 'text2' :
|
||||
$titles[] = get_string('helptext');
|
||||
break;
|
||||
default :
|
||||
print_error('unknownhelp', '', '', $item);
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
if (count($titles)>1){
|
||||
//join last two items with an 'and'
|
||||
$a = new object();
|
||||
$a->one = $titles[count($titles) - 2];
|
||||
$a->two = $titles[count($titles) - 1];
|
||||
$titles[count($titles) - 2] = get_string('and', '', $a);
|
||||
unset($titles[count($titles) - 1]);
|
||||
}
|
||||
$alttag = join (', ', $titles);
|
||||
|
||||
$paramstring = join('&', $urlparams);
|
||||
$linkobject = '<img alt="'.$alttag.'" class="iconhelp" src="'.$OUTPUT->pix_url('help') . '" />';
|
||||
$link = moodle_url('/lib/form/editorhelp.php?'.$paramstring);
|
||||
$action = new popup_action('click', $link->url, 'popup', array('height' => 400, 'width' => 500));
|
||||
return $OUTPUT->action_link($link, $linkobject, $action, array('title'=>$alttag));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,91 +0,0 @@
|
||||
<?php
|
||||
require_once('../../config.php');
|
||||
|
||||
$PAGE->set_url('/lib/form/editorhelp.php');
|
||||
|
||||
$topics = array();
|
||||
$titles = array();
|
||||
for ($i=1; ; $i++){
|
||||
$button = optional_param("button$i", '', PARAM_ALPHANUMEXT);
|
||||
if ($button){
|
||||
switch ($button){
|
||||
case 'reading' :
|
||||
$topics[$i] = helplink('reading', get_string('helpreading'), 'moodle', false, true);
|
||||
break;
|
||||
case 'writing' :
|
||||
$topics[$i] = helplink('writing', get_string('helpwriting'));
|
||||
break;
|
||||
case 'questions' :
|
||||
$topics[$i] = helplink('questions', get_string('helpquestions'));
|
||||
break;
|
||||
case 'emoticons' :
|
||||
debugging("You are referring to the old help file 'emoticons'. " .
|
||||
"This was renamed to 'emoticons2' becuase of MDL-13233. " .
|
||||
"Please update your code.", DEBUG_DEVELOPER);
|
||||
// Fall through.
|
||||
case 'emoticons2' :
|
||||
$topics[$i] = helplink('emoticons2', get_string('helpemoticons'));
|
||||
break;
|
||||
case 'richtext' :
|
||||
debugging("You are referring to the old help file 'richtext'. " .
|
||||
"This was renamed to 'richtext2' becuase of MDL-13233. " .
|
||||
"Please update your code.", DEBUG_DEVELOPER);
|
||||
// Fall through.
|
||||
case 'richtext2' :
|
||||
$topics[$i] = helplink('richtext2', get_string('helprichtext'));
|
||||
break;
|
||||
case 'text' :
|
||||
debugging("You are referring to the old help file 'text'. " .
|
||||
"This was renamed to 'text2' becuase of MDL-13233. " .
|
||||
"Please update your code.", DEBUG_DEVELOPER);
|
||||
// Fall through.
|
||||
case 'text2' :
|
||||
$topics[$i] = helplink('text2', get_string('helptext'));
|
||||
break;
|
||||
default :
|
||||
print_error('unknownhelp', '', '', $item);
|
||||
}
|
||||
} else {
|
||||
$keyword = optional_param("keyword$i", '', PARAM_ALPHAEXT);
|
||||
if ('' == $keyword) {
|
||||
break;//exit for loop - no more help items
|
||||
}
|
||||
$title = optional_param("title$i", '', PARAM_NOTAGS);
|
||||
$module = optional_param("module$i", 'moodle', PARAM_ALPHAEXT);
|
||||
$func[$i] = 'helpbutton';
|
||||
$topics[$i] = helplink($keyword, $title, $module);
|
||||
}
|
||||
|
||||
}
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->box_start();
|
||||
echo $OUTPUT->heading(get_string('editorhelptopics'));
|
||||
|
||||
|
||||
echo '<ul>';
|
||||
foreach ($topics as $i => $topic){
|
||||
echo('<li>'.$topics[$i].'</li>');
|
||||
}
|
||||
echo '</ul>';
|
||||
echo $OUTPUT->box_end();
|
||||
// End of page.
|
||||
echo $OUTPUT->close_window_button();
|
||||
global $CFG;
|
||||
echo '<p align="center"><a href="'.$CFG->wwwroot.'/help.php?file=index.html">'. get_string('helpindex') .'</a></p>';
|
||||
|
||||
$CFG->docroot = ''; // We don't want a doc link here
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
/**
|
||||
* A function to return a simple link to a help page. We don't want a popup here
|
||||
* since these links are displayed in a pop up already.
|
||||
*
|
||||
* @param string $page
|
||||
* @param string $linktext
|
||||
* @param string $module
|
||||
* @return string
|
||||
*/
|
||||
function helplink($page, $linktext='', $module='moodle'){
|
||||
global $CFG;
|
||||
return "<a href=\"$CFG->wwwroot/help.php?module=$module&file=$page.html\">$linktext</a>";
|
||||
}
|
@ -67,7 +67,6 @@ class MoodleQuickForm_format extends MoodleQuickForm_select{
|
||||
case 'createElement':
|
||||
$menu = format_text_menu();
|
||||
$this->load($menu);
|
||||
//$this->setHelpButton(array('textformat', get_string('helpformatting')));
|
||||
break;
|
||||
case 'updateValue' :
|
||||
$value = $this->_findValue($caller->_constantValues);
|
||||
|
@ -1001,7 +1001,6 @@ class assignment_base {
|
||||
} else {
|
||||
echo '<div class="format">';
|
||||
echo html_writer::select(format_text_menu(), "format", $submission->format, false);
|
||||
echo $OUTPUT->old_help_icon("textformat", get_string("helpformatting"));
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
@ -74,7 +74,6 @@ class data_field_textarea extends data_field_base {
|
||||
$str .= '<option value="'.s($key).'" '.$selected.'>'.$desc.'</option>';
|
||||
}
|
||||
$str .= '</select>';
|
||||
$str .= $OUTPUT->old_help_icon('textformat', get_string('helpformatting'), 'moodle');
|
||||
$str .= '</div>';
|
||||
|
||||
$str .= '</div>';
|
||||
|
@ -57,7 +57,6 @@ class mod_wiki_mod_form extends moodleform_mod {
|
||||
// $mform->addElement('htmleditor', 'intro', get_string('wikiintro', 'wiki'));
|
||||
// $mform->setType('intro', PARAM_RAW);
|
||||
// $mform->addRule('intro', get_string('required'), 'required', null, 'client');
|
||||
// $mform->setHelpButton('intro', array('writing', 'richtext2'), false, 'editorhelpbutton');
|
||||
//
|
||||
// $mform->addElement('format', 'introformat', get_string('format'));
|
||||
$this->add_intro_editor(true, get_string('wikiintro', 'wiki'));
|
||||
|
@ -109,7 +109,6 @@ class question_edit_form extends moodleform {
|
||||
$mform->addElement('htmleditor', 'questiontext', get_string('questiontext', 'quiz'),
|
||||
array('rows' => 15, 'course' => $this->coursefilesid));
|
||||
$mform->setType('questiontext', PARAM_RAW);
|
||||
//$mform->setHelpButton('questiontext', array(array('questiontext', get_string('questiontext', 'quiz'), 'quiz'), 'richtext2'), false, 'editorhelpbutton');
|
||||
$mform->addElement('format', 'questiontextformat', get_string('format'));
|
||||
|
||||
make_upload_directory($this->coursefilesid); // Just in case
|
||||
|
@ -23,7 +23,6 @@
|
||||
} else {
|
||||
choose_from_menu(format_text_menu(), "format", $format, "");
|
||||
}
|
||||
echo $OUTPUT->old_help_icon("textformat", get_string("helpformatting"));
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user