Skip to content

Commit

Permalink
MDL-24316 new lang string, improved visualisation
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 14, 2010
1 parent 04cc7da commit 46b2346
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions course/format/topics/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,15 @@
continue;
}

$strstealth = 'Invisible topic'; //TODO: MDL-24316 to be localised after we decide how to call this (skodak)

echo '<li id="section-'.$section.'" class="section main clearfix stealth hidden">'; //'<div class="left side">&nbsp;</div>';
echo '<li id="section-'.$section.'" class="section main clearfix orphaned hidden">'; //'<div class="left side">&nbsp;</div>';

echo '<div class="left side">';
echo $strstealth;
echo '</div>';
// Note, 'right side' is BEFORE content.
echo '<div class="right side">';
echo $strstealth;
echo '</div>';
echo '<div class="content">';
echo $OUTPUT->heading(get_string('orphanedactivities'), 3, 'sectionname');
print_section($course, $thissection, $mods, $modnamesused);
echo '</div>';
echo "</li>\n";
Expand Down
5 changes: 1 addition & 4 deletions course/format/weeks/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,15 @@
continue;
}

$strstealth = 'Invisible week'; //TODO: MDL-24316 to be localised after we decide how to call this (skodak)

echo '<li id="section-'.$section.'" class="section main clearfix stealth hidden">'; //'<div class="left side">&nbsp;</div>';

echo '<div class="left side">';
echo $strstealth;
echo '</div>';
// Note, 'right side' is BEFORE content.
echo '<div class="right side">';
echo $strstealth;
echo '</div>';
echo '<div class="content">';
echo $OUTPUT->heading(get_string('orphanedactivities'), 3, 'sectionname');
print_section($course, $thissection, $mods, $modnamesused);
echo '</div>';
echo "</li>\n";
Expand Down
1 change: 1 addition & 0 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@
$string['opentoguests'] = 'Guest access';
$string['optional'] = 'optional';
$string['order'] = 'Order';
$string['orphanedactivities'] = 'Orphaned activities';
$string['other'] = 'Other';
$string['outline'] = 'Outline';
$string['outlinereport'] = 'Outline report';
Expand Down

0 comments on commit 46b2346

Please sign in to comment.