Skip to content

Commit

Permalink
Merge pull request #3 from LUniversiteNumerique/rc1.0
Browse files Browse the repository at this point in the history
rc1.0
  • Loading branch information
Hipjea authored Feb 14, 2022
2 parents 9f51caf + 2473b0d commit 11b4fa4
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion block_punchy.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class block_punchy extends block_base
{
public function init()
{
$this->title = get_string('pluginname', 'block_punchy');
$this->title = get_string('defaulttitle', 'block_punchy');
}

public function instance_allow_multiple()
Expand Down
2 changes: 2 additions & 0 deletions db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'teacher' => CAP_PREVENT,
'editingteacher' => CAP_PREVENT,
'manager' => CAP_ALLOW,
),
),
Expand Down
12 changes: 9 additions & 3 deletions lang/en/block_punchy.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@
*/

$string['pluginname'] = 'PUNCHY';
$string['title'] = "Partageons l'Université Numérique et des Cursus HYbrides";
$string['title'] = 'Partageons L\'Université Numérique et des Cursus HYbrides';
$string['blocktitle'] = 'Change the title :';
$string['blockstring'] = 'Change the content :';
$string['defaulttitle'] = "Partageons l'Université Numérique et des Cursus HYbrides";
$string['defaulttext'] = "<p>A project of the Digital University allied to a consortium of partners:<p><ul><li>To meet a strong demand for easily reusable hybrid training materials</li><li>To initiate a general, systemic and collective approach aimed at the creation and sharing of digital educational resources with a large potential for reuse, revision and adaptation to various contexts</li></ul>";
$string['defaulttitle'] = 'Partageons L\'Université Numérique et des Cursus HYbrides';
$string['defaulttext'] = '<p>A project of the Digital University allied to a consortium of partners:<p>
<ul>
<li>To meet a strong demand for easily reusable hybrid training materials</li>
<li>To initiate a general, systemic and collective approach aimed at the creation and sharing of digital educational
resources with a large potential for reuse, revision and adaptation to various contexts</li>
</ul>';
$string['imagealt'] = 'Logos of France Relance, Government of France, L\'Université Numérique, Fondation UNIT, European Union';
12 changes: 9 additions & 3 deletions lang/fr/block_punchy.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@
*/

$string['pluginname'] = 'PUNCHY';
$string['title'] = "Partageons l'Université Numérique et des Cursus HYbrides";
$string['title'] = 'Partageons L\'Université Numérique et des Cursus HYbrides';
$string['blocktitle'] = 'Modifier le titre :';
$string['blockstring'] = 'Modifier le contenu :';
$string['defaulttitle'] = "Partageons l'Université Numérique et des Cursus HYbrides";
$string['defaulttext'] = "<p>Un projet de L'Université Numérique alliée à un consortium de partenaires :<p><ul><li>Pour répondre à une forte demande de supports de formations hybrides facilement réutilisables</li><li>Pour engager une démarche générale, systémique et collective visant la création et le partage de ressources pédagogiques numériques à large potentiel de réutilisation, révision et adaptation à des contextes divers</li></ul>";
$string['defaulttitle'] = 'Partageons L\'Université Numérique et des Cursus HYbrides';
$string['defaulttext'] = '<p>Un projet de L\'Université Numérique alliée à un consortium de partenaires :<p>
<ul>
<li>Pour répondre à une forte demande de supports de formations hybrides facilement réutilisables</li>
<li>Pour engager une démarche générale, systémique et collective visant la création et le partage de ressources pédagogiques
numériques à large potentiel de réutilisation, révision et adaptation à des contextes divers</li>
</ul>';
$string['imagealt'] = 'Logos France Relance, Gouvernement, L\'Université Numérique, Fondation UNIT, Union Européenne';
2 changes: 1 addition & 1 deletion templates/content.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{{content}}}

<div class="img">
{{#pix}} punchy-financement, block_punchy {{/pix}}
{{#pix}} punchy-financement, block_punchy, {{#str}} imagealt, block_punchy {{/str}} {{/pix}}
</div>
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2022020214;
$plugin->version = 2022021401;
$plugin->requires = 2016052300;
$plugin->release = '1.0.0';
$plugin->component = 'block_punchy';
Expand Down

0 comments on commit 11b4fa4

Please sign in to comment.