Commit ae03e44e authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1840565: Add short instructions on placeholder admin page"

parents f2475f0e f9a215b1
......@@ -17,8 +17,9 @@ define('TITLE', get_string('pluginadmin', 'admin'));
$plugintype = param_alpha('plugintype');
define('SECTION_PLUGINTYPE', $plugintype);
define('SECTION_PAGE', 'pluginconfig');
define('SECTION_PLUGINTYPE', 'core');
define('SECTION_PLUGINNAME', 'admin');
define('SECTION_PAGE', $plugintype);
require_once(get_config('docroot') . $plugintype . '/lib.php');
$classname = 'Plugin' . ucfirst($plugintype);
......@@ -66,6 +67,7 @@ $form = pieform($form);
$smarty = smarty(array('js/jquery/jquery-ui/js/jquery-ui.min.js','js/jquery/jquery-ui/js/jquery-ui.touch-punch.min.js'), $formcss);
$smarty->assign('form', $form);
$smarty->assign('plugintype', $plugintype);
$smarty->assign('plugintypedescription', (string_exists('plugintypedescription_' . $plugintype, 'admin') ? get_string('plugintypedescription_' . $plugintype, 'admin') : false));
$heading = get_string('pluginadmin', 'admin') . ': ' . $plugintype;
$smarty->assign('PAGEHEADING', $heading);
$smarty->assign('INLINEJAVASCRIPT', $formjs);
......
......@@ -167,6 +167,7 @@ $string['pluginadmindescription'] = 'Install and configure plugins';
$string['missingplugindisabled1'] = 'The installed plugin "%s" could not be found and has been disabled';
$string['installedpluginsmissing'] = 'The following plugins are installed but can no longer be found';
$string['ensurepluginsexist'] = 'Please make sure all your installed plugins are available under %s and readable by the webserver.';
$string['plugintypedescription_blocktype'] = 'Move individual blocks to change the order in which they appear in the placeholder block that is put on a page. The numbers indicate how many times a specific block type is already in use on the site.';
$string['htmlfilters'] = 'HTML filters';
$string['htmlfiltersdescription'] = 'Enable new filters for HTML Purifier';
......
<!-- @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later -->
<!-- @copyright For copyright information on Mahara, please see the README file distributed with this software. -->
<h3>Plugin administration: blocktype</h3>
<p>All block types that are possible to use on the site are displayed. You can change their order by dragging and dropping them. The order will be changed for everyone on the site.</p>
<p>By changing the order you can highlight often used block types or encourage people to add lesser used ones as they are higher up.</p>
<p>Per default, up to 4 block types are displayed when adding the placeholder block to a page. These are the most important ones. The other blocks are made visible by clicking the "Show more" button in the block configuration.</p>
<p>The numbers in each block type on this page indicate how many times a particular block type is already in use. Note that some block types are placed on every dashboard, profile, or group homepage. These numbers may then be higher due to being on everyone's page or every group homepage.</p>
{include file='header.tpl'}
{if $plugintypedescription}
<p class="lead">
{$plugintypedescription}
</p>
{/if}
{$form|safe}
{$form|safe}
{include file='footer.tpl'}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment