Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iena-mahara-link
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Arrêt du service - 27/06 de 07h45 à 08h00 - Mise à jour de sécurité
Show more breadcrumbs
iena
iena-mahara-link
Commits
bcdc9ea9
Commit
bcdc9ea9
authored
2 years ago
by
CORDEL Yannick
Browse files
Options
Downloads
Patches
Plain Diff
Ajout du bouton de connexion à Mahara
parent
76b05d5c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
block_mahara_iena.php
+3
-1
3 additions, 1 deletion
block_mahara_iena.php
lang/en/block_mahara_iena.php
+1
-0
1 addition, 0 deletions
lang/en/block_mahara_iena.php
lang/fr/block_mahara_iena.php
+1
-0
1 addition, 0 deletions
lang/fr/block_mahara_iena.php
with
5 additions
and
1 deletion
block_mahara_iena.php
+
3
−
1
View file @
bcdc9ea9
...
...
@@ -54,7 +54,7 @@ class block_mahara_iena extends block_base
$is_mahara_user
=
$connexion
->
ensure_user_exists_in_mahara
(
$USER
);
$result
=
$DB
->
get_records_sql
(
'SELECT * FROM {block_mahara_iena} WHERE course = ?'
,
array
(
$COURSE
->
id
));
// var_dump($result
);
$url
=
new
\moodle_url
(
'/auth/mnet/jump.php'
,
array
(
'hostid'
=>
$CFG
->
iena_mahara
)
);
// for teachers
if
(
has_capability
(
'moodle/course:update'
,
$context
=
context_course
::
instance
(
$COURSE
->
id
),
$USER
->
id
))
{
...
...
@@ -214,6 +214,8 @@ class block_mahara_iena extends block_base
}
$this
->
content
->
text
.
=
html_writer
::
tag
(
'a'
,
get_string
(
'mahara_link'
,
'block_mahara_iena'
,
$CFG
->
mahara_alias
),
array
(
'href'
=>
$url
,
'class'
=>
'btn btn-primary'
));
return
$this
->
content
;
}
...
...
This diff is collapsed.
Click to expand it.
lang/en/block_mahara_iena.php
+
1
−
0
View file @
bcdc9ea9
...
...
@@ -24,5 +24,6 @@
$string
[
'err_no_stud'
]
=
'You have to enrol users in this course before to create a {$a} group. '
;
$string
[
'course_group'
]
=
'Group for course'
;
$string
[
'bulk_group_confirmation'
]
=
'Group creation succeed. '
;
$string
[
'mahara_link'
]
=
'Go to my {$a} personal space'
;
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lang/fr/block_mahara_iena.php
+
1
−
0
View file @
bcdc9ea9
...
...
@@ -24,6 +24,7 @@
$string
[
'err_no_stud'
]
=
'Vous devez inscrire des utilisateurs dans le cours avant de créer un groupe {$a}. '
;
$string
[
'course_group'
]
=
'Groupe du cours'
;
$string
[
'bulk_group_confirmation'
]
=
'Les groupes ont bien été créés. '
;
$string
[
'mahara_link'
]
=
'Accéder à mon espace personnel {$a}'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment