Skip to content

Commit

Permalink
glossary MDL-23360 fixed some display problems with the glossary
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Davis committed Jul 18, 2010
1 parent 3db2ddb commit 4ce2746
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 29 deletions.
2 changes: 1 addition & 1 deletion mod/glossary/formats/dictionary/dictionary_format.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode='
glossary_print_entry_attachment($entry, $cm, 'html', 'right');
echo '<div class="concept">';
glossary_print_entry_concept($entry);
echo ':</div> ';
echo '</div> ';
glossary_print_entry_definition($entry, $glossary, $cm);
echo '</td></tr>';
echo '<tr valign="top"><td class="entrylowersection">';
Expand Down
7 changes: 1 addition & 6 deletions mod/glossary/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1648,18 +1648,13 @@ function glossary_print_alphabet_links($cm, $glossary, $mode, $hook, $sortkey, $
global $CFG;
if ( $glossary->showalphabet) {
$alphabet = explode(",", get_string('alphabet', 'langconfig'));
$letters_by_line = 14;
for ($i = 0; $i < count($alphabet); $i++) {
if ( $hook == $alphabet[$i] and $hook) {
echo "<b>$alphabet[$i]</b>";
} else {
echo "<a href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&amp;mode=$mode&amp;hook=".urlencode($alphabet[$i])."&amp;sortkey=$sortkey&amp;sortorder=$sortorder\">$alphabet[$i]</a>";
}
if ((int) ($i % $letters_by_line) != 0 or $i == 0) {
echo ' | ';
} else {
echo '<br />';
}
echo ' | ';
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions mod/glossary/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** General Styles **/
.path-mod-glossary .glossarypost {border-collapse:separate;margin:5px auto;text-align: left;}
.path-mod-glossary .glossarypost {width: 95%;border-collapse:separate;margin:0px auto;text-align: left;}
.path-mod-glossary .glossarypost.entrylist {border-width:0px;}
.path-mod-glossary .glossarypost.continuous .concept {display: inline;}
.path-mod-glossary .glossarypost .commands {width: 200px;white-space: nowrap;}
Expand All @@ -16,9 +16,12 @@
.path-mod-glossary table.glossarypopup {width: 95%;}
.path-mod-glossary .entrybox, /** Used in tabs.php **/
.path-mod-glossary table.glossaryapproval,
.path-mod-glossary .glossarypost .entrylowersection table{width: 100%;}
.path-mod-glossary .glossarypost .entrylowersection table{width: 100%;margin-bottom:0em;}

/** Page specific styles **/
#page-mod-glossary-view .glossarycontrol {float: right;text-align:right;white-space: nowrap;margin: 5px 0;}
#page-mod-glossary-view table.glossarycategoryheader,
#page-mod-glossary-import table.glossaryimportexport {margin-left:auto;margin-right:auto;}
#page-mod-glossary-import table.glossaryimportexport {margin-left:auto;margin-right:auto;}

#page-mod-glossary-view table.glossarycategoryheader {margin-bottom:0em;}
#page-mod-glossary-view table.glossarycategoryheader th {padding:0px;}
17 changes: 0 additions & 17 deletions mod/glossary/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,23 +300,6 @@
echo '<div class="glossarycontrol" style="text-align: right">';
echo $availableoptions;

/// If rss are activated at site and glossary level and this glossary has rss defined, show link
/*if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds)
&& $glossary->rsstype && $glossary->rssarticles) {
$tooltiptext = get_string("rsssubscriberss",'glossary',format_string($glossary->name,true));
if (!isloggedin()) {
$userid = 0;
} else {
$userid = $USER->id;
}
// print_box_start('rsslink');
echo '<span class="wrap rsslink">';
rss_print_link($context->id, $userid, "glossary", $glossary->id, $tooltiptext);
echo '</span>';
// print_box_end();
}*/

/// The print icon
if ( $showcommonelements and $mode != 'search') {
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
Expand Down
4 changes: 2 additions & 2 deletions theme/standard/style/modules.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ table.mod_index {width:90%;margin:1em auto;}
#page-mod-forum-view .highlight2 {color:#AA0000;}

/** Glossary **/
.path-mod-glossary .glossarypost {width: 95%;border:1px solid #DDD;}
.path-mod-glossary .glossarypost {border:1px solid #DDD;}
.path-mod-glossary .glossarypost .entry {padding: 3px;}
.path-mod-glossary .glossarypost .concept h3 {font-size: 1em;margin: 0;font-weight: normal;text-align: left;}
.path-mod-glossary .glossarypost .entryheader {font-weight: normal;text-align: left;}
Expand All @@ -133,7 +133,7 @@ table.mod_index {width:90%;margin:1em auto;}
.path-mod-glossary .entrybox {border-width: 0px 1px 1px 1px;border-style: solid;border-color: #BBB;}
.path-mod-glossary .entrybox hr {border-left:none;border-right:none;}
#page-mod-glossary-report table tr.teacher {background: #F0F0F0;}
#page-mod-glossary-view table.glossarycategoryheader {width: 95%;background-color: #DDD;}
#page-mod-glossary-view table.glossarycategoryheader {background-color: #DDD;}
#page-mod-glossary-view table.glossarycategoryheader h2 {font-size: 1em;margin: 0;}

/** Lesson **/
Expand Down

0 comments on commit 4ce2746

Please sign in to comment.