/**
* Returns lang menu or '', this method also checks forcing of languages in courses.
*
+ * This function calls {@link core_renderer::render_single_select()} to actually display the language menu.
+ *
* @return string The lang menu HTML or empty string
*/
public function lang_menu() {
/**
* Renders a special html link with attached action
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_action_link()} instead.
+ *
* @param string|moodle_url $url
* @param string $text HTML fragment
* @param component_action $action
* most part. What it does different is prepare the icon as HTML and use it
* as the link text.
*
+ * Theme developers: If you want to change how action links and/or icons are rendered,
+ * consider overriding function {@link core_renderer::render_action_link()} and
+ * {@link core_renderer::render_pix_icon()}.
+ *
* @param string|moodle_url $url A string URL or moodel_url
* @param pix_icon $pixicon
* @param component_action $action
/**
* Returns a form with a single button.
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_single_button()} instead.
+ *
* @param string|moodle_url $url
* @param string $label button text
* @param string $method get or post submit method
/**
* Returns a form with a single select widget.
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_single_select()} instead.
+ *
* @param moodle_url $url form action target, includes hidden fields
* @param string $name name of selection field - the changing parameter in url
* @param array $options list of options
/**
* Returns a form with a url select widget.
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_url_select()} instead.
+ *
* @param array $urls list of urls - array('/course/view.php?id=1'=>'Frontpage', ....)
* @param string $selected selected element
* @param array $nothing
/**
* Return HTML for a pix_icon.
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_pix_icon()} instead.
+ *
* @param string $pix short pix name
* @param string $alt mandatory alt attribute
* @param string $component standard compoennt name like 'moodle', 'mod_forum', etc.
/**
* Returns HTML to display a help icon.
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_help_icon()} instead.
+ *
* @param string $identifier The keyword that defines a help page
* @param string $component component name
* @param string|bool $linktext true means use $title as link text, string means link text value
* $OUTPUT->render($userpic);
* </pre>
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_user_picture()} instead.
+ *
* @param stdClass $user Object with at least fields id, picture, imagealt, firstname, lastname
* If any of these are missing, the database is queried. Avoid this
* if at all possible, particularly for reports. It is very bad for performance.
* $OUTPUT->file_picker($options);
* </pre>
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_file_picker()} instead.
+ *
* @param array $options associative array with file manager options
* options are:
* maxbytes=>-1,
/**
* Returns HTML to display a single paging bar to provide access to other pages (usually in a search)
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_paging_bar()} instead.
+ *
* @param int $totalcount The total number of entries available to be paged through
* @param int $page The page you are currently viewing
* @param int $perpage The number of entries that should be shown per page
* Settings: Administration > Appearance > Themes > Theme settings
* and then configuring the custommenu config setting as described.
*
+ * Theme developers: DO NOT OVERRIDE! Please override function
+ * {@link core_renderer::render_custom_menu()} instead.
+ *
* @param string $custommenuitems - custom menuitems set by theme instead of global theme settings
* @return string
*/
return '';
}
$custommenu = new custom_menu($custommenuitems, current_language());
- return $this->render_custom_menu($custommenu);
+ return $this->render($custommenu);
}
/**
*
* This function replaces print_tabs() used before Moodle 2.5 but with slightly different arguments
*
+ * Theme developers: In order to change how tabs are displayed please override functions
+ * {@link core_renderer::render_tabtree()} and/or {@link core_renderer::render_tabobject()}
+ *
* @param array $tabs array of tabs, each of them may have it's own ->subtree
* @param string|null $selected which tab to mark as selected, all parent tabs will
* automatically be marked as activated
* their level. Note that you can as weel specify tabobject::$inactive for separate instances
* @return string
*/
- public function tabtree($tabs, $selected = null, $inactive = null) {
+ public final function tabtree($tabs, $selected = null, $inactive = null) {
return $this->render(new tabtree($tabs, $selected, $inactive));
}