Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
b52247a5
Commit
b52247a5
authored
Jan 16, 2011
by
Petr Skoda
Browse files
get rid of the table layout
parent
2cdbd448
Changes
1
Hide whitespace changes
Inline
Side-by-side
view.php
View file @
b52247a5
...
...
@@ -167,41 +167,25 @@ list($toc, $currtitle, $currsubtitle, $titles) = book_get_toc($chapters, $chapte
// Book display HTML code
// =====================================================
?>
<table
class=
"booktable"
width=
"100%"
cellspacing=
"0"
cellpadding=
"2"
>
<!-- subchapter title and upper navigation row //-->
<tr>
<td>
<div
class=
"booknav"
>
<?php
echo
$chnavigation
?>
</div>
</td>
</tr>
<!-- toc and chapter row //-->
<tr
class=
"tocandchapter"
valign=
"top"
>
<td
align=
"right"
valign=
"top"
><div
class=
"clearer"
>
</div>
<?php
echo
$OUTPUT
->
box_start
(
'generalbox'
);
echo
'<div class="book_content">'
;
if
(
!
$book
->
customtitles
)
{
if
(
$currsubtitle
==
' '
)
{
echo
'<p class="book_chapter_title">'
.
$currtitle
.
'</p>'
;
}
else
{
echo
'<p class="book_chapter_title">'
.
$currtitle
.
'<br />'
.
$currsubtitle
.
'</p>'
;
}
}
$chaptertext
=
file_rewrite_pluginfile_urls
(
$chapter
->
content
,
'pluginfile.php'
,
$context
->
id
,
'mod_book'
,
'chapter'
,
$chapter
->
id
);
echo
format_text
(
$chaptertext
,
$chapter
->
contentformat
,
array
(
'noclean'
=>
true
,
'context'
=>
$context
));
echo
'</div>'
;
echo
$OUTPUT
->
box_end
();
/// lower navigation
echo
'<div class="booknav">'
.
$chnavigation
.
'</div>'
;
?>
</td>
</tr>
</table>
// upper nav
echo
'<div class="booknav">'
.
$chnavigation
.
'</div>'
;
// chapter itself
echo
$OUTPUT
->
box_start
(
'generalbox book_content'
);
if
(
!
$book
->
customtitles
)
{
if
(
!
$chapter
->
subchapter
)
{
echo
'<p class="book_chapter_title">'
.
$currtitle
.
'</p>'
;
}
else
{
echo
'<p class="book_chapter_title">'
.
$currtitle
.
'<br />'
.
$currsubtitle
.
'</p>'
;
}
}
$chaptertext
=
file_rewrite_pluginfile_urls
(
$chapter
->
content
,
'pluginfile.php'
,
$context
->
id
,
'mod_book'
,
'chapter'
,
$chapter
->
id
);
echo
format_text
(
$chaptertext
,
$chapter
->
contentformat
,
array
(
'noclean'
=>
true
,
'context'
=>
$context
));
<?php
echo
$OUTPUT
->
box_end
();
/// lower navigation
echo
'<div class="booknav">'
.
$chnavigation
.
'</div>'
;
echo
$OUTPUT
->
footer
();
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment