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
7124b2da
Commit
7124b2da
authored
May 27, 2019
by
Thomas Fradet
Browse files
useless script removed
parent
1adcb9fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
7124b2da
...
...
@@ -46,5 +46,13 @@ Suppression de la possibilité de plier / déplier les description de parcours e
Amélioration de l'affichage des titres et de la liste des ressources du parcours.
#### CSS inutile
Nettoyage de CSS inutile.
#### Scripts inutiles
Non inclusion de scripts inutiles dans la page career_unit.php.
career_unit.php
View file @
7124b2da
...
...
@@ -21,9 +21,9 @@
$PAGE
->
set_title
(
get_string
(
'title_plugin'
,
'block_career'
));
$PAGE
->
set_heading
(
$OUTPUT
->
heading
(
$COURSE
->
fullname
,
2
,
'headingblock header outline'
));
echo
$OUTPUT
->
header
();
$PAGE
->
requires
->
js
(
"/blocks/career/js/jquery.min.js"
);
$PAGE
->
requires
->
js
(
"/blocks/career/js/file.js"
);
echo
"<link rel=
\"
stylesheet
\"
type=
\"
text/css
\"
href=
\"
styles.css
\"
>"
;
//
$PAGE->requires->js("/blocks/career/js/jquery.min.js");
//
$PAGE->requires->js("/blocks/career/js/file.js");
//
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">";
require_once
(
'view/view_career_unit.php'
);
...
...
styles.css
View file @
7124b2da
...
...
@@ -14,6 +14,15 @@
padding
:
0.6rem
1rem
;
}
.career-descr
{
padding
:
.75rem
1.25rem
;
margin-bottom
:
1rem
;
border
:
0
solid
transparent
;
border-color
:
#f1f3f5
;
color
:
#6b6e71
;
background-color
:
#f5f6f8
;
}
/* Path settings */
.left_course_elements
,
.right_course_elements
{
width
:
33%
;
...
...
view/view_career_unit.php
View file @
7124b2da
...
...
@@ -56,8 +56,8 @@ ksort($sections);
<section
class=
"section"
>
<h2
class=
"display-
3
"
>
<?=
$titre
;
?>
</h2>
<div
class=
"
iena-
car
r
er-
path-descr wrappe
r"
>
<h2
class=
"display-
4
"
>
<?=
$titre
;
?>
</h2>
<div
class=
"car
e
er-
desc
r"
>
<?php
echo
$intro
;
?>
</div>
<?php
foreach
(
$sections
as
$section
)
:
?>
...
...
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