~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to mod/glossary/view.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
$strwaitingapproval = get_string('waitingapproval', 'glossary');
241
241
 
242
242
/// If we are in approval mode, prit special header
243
 
$PAGE->set_title(format_string($glossary->name));
 
243
$PAGE->set_title($glossary->name);
244
244
$PAGE->set_heading($course->fullname);
245
245
$url = new moodle_url('/mod/glossary/view.php', array('id'=>$cm->id));
246
246
if (isset($mode)) {
263
263
} else { /// Print standard header
264
264
    echo $OUTPUT->header();
265
265
}
 
266
echo $OUTPUT->heading(format_string($glossary->name), 2);
266
267
 
267
268
/// All this depends if whe have $showcommonelements
268
269
if ($showcommonelements) {
314
315
/// The print icon
315
316
    if ( $showcommonelements and $mode != 'search') {
316
317
        if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
317
 
//                print_box_start('printicon');
318
 
            echo '<span class="wrap printicon">';
319
 
            echo " <a title =\"". get_string("printerfriendly","glossary") ."\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=".urlencode($hook)."&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img class=\"icon\" src=\"".$OUTPUT->pix_url('print', 'glossary')."\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
320
 
            echo '</span>';
321
 
//                print_box_end();
 
318
            echo " <a class='printicon' title =\"". get_string("printerfriendly","glossary") ."\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=".urlencode($hook)."&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\">" . get_string("printerfriendly","glossary")."</a>";
322
319
        }
323
320
    }
324
321
/// End glossary controls
423
420
 
424
421
        // Setting the pivot for the current entry
425
422
        $pivot = $entry->glossarypivot;
426
 
        $upperpivot = textlib::strtoupper($pivot);
427
 
        $pivottoshow = textlib::strtoupper(format_string($pivot, true, $fmtoptions));
 
423
        $upperpivot = core_text::strtoupper($pivot);
 
424
        $pivottoshow = core_text::strtoupper(format_string($pivot, true, $fmtoptions));
428
425
        // Reduce pivot to 1cc if necessary
429
426
        if ( !$fullpivot ) {
430
 
            $upperpivot = textlib::substr($upperpivot, 0, 1);
431
 
            $pivottoshow = textlib::substr($pivottoshow, 0, 1);
 
427
            $upperpivot = core_text::substr($upperpivot, 0, 1);
 
428
            $pivottoshow = core_text::substr($pivottoshow, 0, 1);
432
429
        }
433
430
 
434
431
        // if there's a group break
453
450
                    echo '<th >';
454
451
                }
455
452
 
456
 
                echo $OUTPUT->heading($pivottoshow);
 
453
                echo $OUTPUT->heading($pivottoshow, 3);
457
454
                echo "</th></tr></table></div>\n";
458
455
 
459
456
            }