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; }
/** * 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))); }
/** * 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; } }