Exemplo n.º 1
0
 public function container_start($classes = '', $id = '')
 {
     list($start, $end) = $this->custom_corners_divs(moodle_renderer_base::prepare_classes($classes), $id);
     $this->opencontainers->push('container', $end);
     $this->wraplevel += 1;
     return $start;
 }
Exemplo n.º 2
0
 /**
  * Outputs the opening section of a container.
  * @param string $classes A space-separated list of CSS classes
  * @param string $id An optional ID
  * @return string the HTML to output.
  */
 public function container_start($classes = '', $id = '')
 {
     $this->opencontainers->push('container', $this->output_end_tag('div'));
     return $this->output_start_tag('div', array('id' => $id, 'class' => moodle_renderer_base::prepare_classes($classes)));
 }
Exemplo n.º 3
0
/**
 * Output a standard heading block
 *
 * @deprecated
 * @param string $heading The text to write into the heading
 * @param string $class An additional Class Attr to use for the heading
 * @param bool $return If set to true output is returned rather than echoed, default false
 * @return string|void HTML String if return=true nothing otherwise
 */
function print_heading_block($heading, $class = '', $return = false)
{
    global $OUTPUT;
    debugging('print_heading_with_block() has been deprecated. Please change your code to use $OUTPUT->heading().');
    $output = $OUTPUT->heading($heading, 2, 'headingblock header ' . moodle_renderer_base::prepare_classes($class));
    if ($return) {
        return $output;
    } else {
        echo $output;
    }
}