Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-path-block
Commits
2c6fca87
Commit
2c6fca87
authored
May 27, 2019
by
Thomas Fradet
Browse files
add mod descr to path page
parent
7124b2da
Changes
1
Hide whitespace changes
Inline
Side-by-side
view/view_career_unit.php
View file @
2c6fca87
<?php
$careerId
=
required_param
(
"career"
,
PARAM_INT
);
global
$DB
;
global
$DB
,
$CFG
,
$COURSE
;
$requete
=
$DB
->
get_record_sql
(
'SELECT * FROM {block_career} WHERE id = ?'
,
array
(
$careerId
));
$percent
=
70
;
...
...
@@ -51,13 +51,15 @@ foreach ($sections as $value){
$sections
=
array_combine
(
$keys
,
$sections
);
ksort
(
$sections
);
$cours_url
=
$CFG
->
wwwroot
.
"/course/view.php?id="
.
$COURSE
->
id
;
?>
<section
class=
"section"
>
<h2
class=
"display-4"
>
<?=
$titre
;
?>
</h2>
<div
class=
"career-descr"
>
<h2
class=
"display-4"
style=
"float: left;"
>
<?=
$titre
;
?>
</h2>
<a
class=
"btn btn-primary"
style=
"float: right;"
href=
"
<?php
echo
$cours_url
;
?>
"
>
Retour au cours
</a>
<div
class=
"career-descr"
style=
"clear: both;"
>
<?php
echo
$intro
;
?>
</div>
<?php
foreach
(
$sections
as
$section
)
:
?>
...
...
@@ -78,7 +80,7 @@ ksort($sections);
</h5>
<img
class=
""
alt=
""
src=
"
<?php
echo
$CFG
->
wwwroot
?>
/theme/image.php/boost/
<?php
echo
$value
->
type
?>
/1/icon>"
>
</div>
<!--
<div>
<?php
echo
$value
->
descrition
;
?>
</div>
-->
<div>
<?php
echo
$value
->
descrition
;
?>
</div>
</a>
<?php
endif
;
?>
<?php
endforeach
;
?>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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