mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-46346 blog: coding style fixes
This commit is contained in:
parent
e9fb99b15c
commit
2b6e53e8e2
13 changed files with 340 additions and 276 deletions
|
@ -63,7 +63,9 @@ class core_blog_renderer extends plugin_renderer_base {
|
|||
$o .= $this->output->container_start('topic starter header clearfix');
|
||||
|
||||
// Title.
|
||||
$titlelink = html_writer::link(new moodle_url('/blog/index.php', array('entryid' => $entry->id)), format_string($entry->subject));
|
||||
$titlelink = html_writer::link(new moodle_url('/blog/index.php',
|
||||
array('entryid' => $entry->id)),
|
||||
format_string($entry->subject));
|
||||
$o .= $this->output->container($titlelink, 'subject');
|
||||
|
||||
// Post by.
|
||||
|
@ -244,9 +246,14 @@ class core_blog_renderer extends plugin_renderer_base {
|
|||
$o = html_writer::empty_tag('img', $attrs);
|
||||
$class = 'attachedimages';
|
||||
} else {
|
||||
$image = $this->output->pix_icon(file_file_icon($attachment->file), $attachment->filename, 'moodle', array('class'=>'icon'));
|
||||
$image = $this->output->pix_icon(file_file_icon($attachment->file),
|
||||
$attachment->filename,
|
||||
'moodle',
|
||||
array('class' => 'icon'));
|
||||
$o = html_writer::link($attachment->url, $image);
|
||||
$o .= format_text(html_writer::link($attachment->url, $attachment->filename), FORMAT_HTML, array('context' => $syscontext));
|
||||
$o .= format_text(html_writer::link($attachment->url, $attachment->filename),
|
||||
FORMAT_HTML,
|
||||
array('context' => $syscontext));
|
||||
$class = 'attachments';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue