From 1093b461f67bbd35818a7aa58b517423b2c1392a Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 7 Nov 2016 16:54:06 +0800 Subject: [PATCH] MDL-56803 mod_glossary: Fix styles for boost theme --- mod/glossary/export.php | 7 +------ mod/glossary/lib.php | 18 +++++++++++++----- mod/glossary/styles.css | 4 ---- mod/glossary/view.php | 24 ++++++++++-------------- 4 files changed, 24 insertions(+), 29 deletions(-) diff --git a/mod/glossary/export.php b/mod/glossary/export.php index af790b6b4f2..56bdb8f3cd2 100644 --- a/mod/glossary/export.php +++ b/mod/glossary/export.php @@ -58,12 +58,7 @@ $exporturl = moodle_url::make_pluginfile_url($context->id, 'mod_glossary', 'expo ?>
- -
- -
-
-
+
alias)) { if ($return == '') { - $return = ''; } $return .= ""; } @@ -1233,7 +1233,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h if (has_capability('mod/glossary:approve', $context) && !$glossary->defaultapproval && $entry->approved) { $output = true; - $return .= ''.
@@ -1248,7 +1248,10 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
             $mainglossary = $DB->get_record('glossary', array('mainglossary'=>1,'course'=>$course->id));
             if ( $mainglossary ) {  // if there is a main glossary defined, allow to export the current entry
                 $output = true;
-                $return .= '<a class='.get_string('exporttomainglossary','glossary').$altsuffix.''; + $return .= '' . + ''; } } @@ -1264,11 +1267,16 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h $ineditperiod = ((time() - $entry->timecreated < $CFG->maxeditingtime) || $glossary->editalways); if ( !$importedentry and (has_capability('mod/glossary:manageentries', $context) or ($entry->userid == $USER->id and ($ineditperiod and has_capability('mod/glossary:write', $context))))) { $output = true; - $return .= "id&mode=delete&entry=$entry->id&prevmode=$mode&hook=".urlencode($hook)."\">\"""; - $return .= "id&id=$entry->id&mode=$mode&hook=".urlencode($hook)."\">pix_url('t/edit') . "\" class=\"smallicon\" alt=\"" . get_string("edit") .$altsuffix. "\" />"; + $url = "edit.php?cmid=$cm->id&id=$entry->id&mode=$mode&hook=".urlencode($hook); + $return .= "" . + "pix_url('t/edit') . "\" class=\"smallicon\" " . + "alt=\"" . get_string("edit") .$altsuffix. "\" />"; } elseif ( $importedentry ) { $return .= "" . get_string("exportedentry","glossary") . ""; } diff --git a/mod/glossary/styles.css b/mod/glossary/styles.css index f4d92eb5cd8..12530e1a732 100644 --- a/mod/glossary/styles.css +++ b/mod/glossary/styles.css @@ -23,10 +23,6 @@ width: 35px; } -.path-mod-glossary .glossarypost .entrylowersection .aliases { - text-align: center; -} - .path-mod-glossary .glossarypost .entrylowersection .icons { text-align: right; padding-right: 5px; diff --git a/mod/glossary/view.php b/mod/glossary/view.php index 7c023e1f27f..8a4e64125a5 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -360,46 +360,42 @@ if ($glossary->intro && $showcommonelements) { /// Search box if ($showcommonelements ) { - echo '
'; + echo ''; - echo ''; - echo '
'; - echo ' '; if ($mode == 'search') { - echo ' '; + echo ' '; } else { - echo ' '; + echo ' '; } + echo ' '; if ($fullsearch || $mode != 'search') { $fullsearchchecked = 'checked="checked"'; } else { $fullsearchchecked = ''; } - echo ''; + echo '
'; + echo $strsearchindefinition.''; echo '
'; - - echo '
'; } /// Show the add entry button if allowed if (has_capability('mod/glossary:write', $context) && $showcommonelements ) { echo '
'; - echo "
wwwroot/mod/glossary/edit.php\">"; + echo "wwwroot/mod/glossary/edit.php\">"; echo '
'; echo "id\" />"; - echo ''; + echo ''; echo '
'; echo '
'; echo "
\n"; } -echo '
'; require("tabs.php");