public function spacer(array $attributes = null, $br = false) {
        $attributes = (array)$attributes;
        if (empty($attributes['width'])) {
            $attributes['width'] = 1;
        }
        if (empty($attributes['height'])) {
            $attributes['height'] = 1;
        }
        $attributes['class'] = 'spacer';

        $output = $this->pix_icon('spacer', '', 'moodle', $attributes);

        if (!empty($br)) {
            $output .= '<br />';
        }

        return $output;
    }
public function spacer(array $attributes = null, $br = false) {
        $attributes = (array)$attributes;
        if (empty($attributes['width'])) {
            $attributes['width'] = 1;
        }
        if (empty($attributes['height'])) {
            $attributes['height'] = 1;
        }
        $attributes['class'] = 'spacer';

        $output = $this->pix_icon('spacer', '', 'moodle', $attributes);

        if (!empty($br)) {
            $output .= '<br />';
        }

        return $output;
    }
public function spacer ( array $ attributes = null , $ br = false ) { $ attributes = ( array ) $ attributes ; if ( empty ( $ attributes [ 'width' ] ) ) { $ attributes [ 'width' ] = 1 ; } if ( empty ( $ attributes [ 'height' ] ) ) { $ attributes [ 'height' ] = 1 ; } $ attributes [ 'class' ] = 'spacer' ; $ output = $ this -> pix_icon ( 'spacer' , '' , 'moodle' , $ attributes ) ; if ( ! empty ( $ br ) ) { $ output .= '<br />' ; } return $ output ; }
Creates and returns a spacer image with optional line break.

@param array $attributes Any HTML attributes to add to the spaced.
@param bool $br Include a BR after the spacer.... DON'T USE THIS. Don't be
laxy do it with CSS which is a much better solution.
@return string HTML fragment
Creates and returns a spacer image with optional line break .