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
mahara
mahara
Commits
25b12f04
Commit
25b12f04
authored
May 05, 2009
by
Nigel McNie
Browse files
Show view title and description when exporting views.
parent
c8c53aac
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/export/html/lib.php
View file @
25b12f04
...
...
@@ -260,6 +260,9 @@ class PluginExportHtml extends PluginExport {
array
(
'text'
=>
get_string
(
'Views'
,
'view'
)),
array
(
'text'
=>
$view
->
get
(
'title'
),
'path'
=>
'index.html'
),
));
$smarty
->
assign
(
'viewtitle'
,
$view
->
get
(
'title'
));
$smarty
->
assign
(
'ownername'
,
$view
->
formatted_owner
());
$smarty
->
assign
(
'viewdescription'
,
$view
->
get
(
'description'
));
$directory
=
$this
->
exportdir
.
'/'
.
$this
->
rootdir
.
'/views/'
.
self
::
text_to_path
(
$view
->
get
(
'title'
));
if
(
!
check_dir_exists
(
$directory
))
{
...
...
htdocs/export/html/theme/default/view.tpl
View file @
25b12f04
{
include
file
=
"export:html:header.tpl"
}
<h2
id=
"view-title"
>
{
$viewtitle
|
escape
}{
if
$ownername
}
{
str
tag
=
by
section
=
view
}
{
$ownername
|
escape
}{/
if
}
</h2>
<p
id=
"view-description"
>
{
$viewdescription
}
</p>
{
$view
}
{
include
file
=
"export:html:footer.tpl"
}
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