| Línea 114... | Línea 114... | 
          
            | 114 |         $fieldselectparams = ['id' => $this->cmid, 'mode' => 'new'];
 | 114 |         $fieldselectparams = ['id' => $this->cmid, 'mode' => 'new'];
 | 
          
            | 115 |         foreach ($menufield as $fieldtype => $fieldname) {
 | 115 |         foreach ($menufield as $fieldtype => $fieldname) {
 | 
          
            | 116 |             $fieldselectparams['newtype'] = $fieldtype;
 | 116 |             $fieldselectparams['newtype'] = $fieldtype;
 | 
          
            | 117 |             $fieldselect->add(new \action_menu_link(
 | 117 |             $fieldselect->add(new \action_menu_link(
 | 
          
            | 118 |                 new moodle_url('/mod/data/field.php', $fieldselectparams),
 | 118 |                 new moodle_url('/mod/data/field.php', $fieldselectparams),
 | 
          
            | 119 |                 new \pix_icon('field/' . $fieldtype, $fieldname, 'data'),
 | 119 |                 new \image_icon('icon', $fieldtype, 'datafield_' . $fieldtype),
 | 
          
            | 120 |                 $fieldname,
 | 120 |                 $fieldname,
 | 
          
            | 121 |                 false
 | 121 |                 false
 | 
          
            | 122 |             ));
 | 122 |             ));
 | 
          
            | 123 |         }
 | 123 |         }
 | 
          
            | 124 |         $fieldselect->set_additional_classes('singlebutton');
 | 124 |         $fieldselect->set_additional_classes('singlebutton');
 | 
          
            | Línea 149... | Línea 149... | 
          
            | 149 |         if ($this->currenturl->get_param('rid') || $this->currenturl->get_param('mode') == 'single') {
 | 149 |         if ($this->currenturl->get_param('rid') || $this->currenturl->get_param('mode') == 'single') {
 | 
          
            | 150 |             $activeurl = $viewsinglelink;
 | 150 |             $activeurl = $viewsinglelink;
 | 
          
            | 151 |         }
 | 151 |         }
 | 
          
            | Línea 152... | Línea 152... | 
          
            | 152 |  
 | 152 |  
 | 
          
            | 153 |         $urlselect = new url_select($menu, $activeurl->out(false), null, 'viewactionselect');
 | 153 |         $urlselect = new url_select($menu, $activeurl->out(false), null, 'viewactionselect');
 | 
          
            | 154 |         $urlselect->set_label(get_string('viewnavigation', 'mod_data'), ['class' => 'sr-only']);
 | 154 |         $urlselect->set_label(get_string('viewnavigation', 'mod_data'), ['class' => 'visually-hidden']);
 | 
          
            | 155 |         $renderer = $PAGE->get_renderer('mod_data');
 | 155 |         $renderer = $PAGE->get_renderer('mod_data');
 | 
          
            | Línea 156... | Línea 156... | 
          
            | 156 |         $viewactionbar = new view_action_bar($this->id, $urlselect, $hasentries, $mode);
 | 156 |         $viewactionbar = new view_action_bar($this->id, $urlselect, $hasentries, $mode);
 | 
          
            | 157 |  
 | 157 |  
 | 
          
            | Línea 186... | Línea 186... | 
          
            | 186 |             $jstemplatelink->out(false) => get_string('jstemplate', 'mod_data'),
 | 186 |             $jstemplatelink->out(false) => get_string('jstemplate', 'mod_data'),
 | 
          
            | 187 |             $rsstemplatelink->out(false) => get_string('rsstemplate', 'mod_data'),
 | 187 |             $rsstemplatelink->out(false) => get_string('rsstemplate', 'mod_data'),
 | 
          
            | 188 |         ];
 | 188 |         ];
 | 
          
            | Línea 189... | Línea 189... | 
          
            | 189 |  
 | 189 |  
 | 
          
            | 190 |         $selectmenu = new \core\output\select_menu('presetsactions', $menu, $this->currenturl->out(false));
 | 190 |         $selectmenu = new \core\output\select_menu('presetsactions', $menu, $this->currenturl->out(false));
 | 
          
            | Línea 191... | Línea 191... | 
          
            | 191 |         $selectmenu->set_label(get_string('templatesnavigation', 'mod_data'), ['class' => 'sr-only']);
 | 191 |         $selectmenu->set_label(get_string('templatesnavigation', 'mod_data'), ['class' => 'visually-hidden']);
 | 
          
            | Línea 192... | Línea 192... | 
          
            | 192 |  
 | 192 |  
 | 
          
            | Línea 266... | Línea 266... | 
          
            | 266 |             if (!$selected || $templatename == $current) {
 | 266 |             if (!$selected || $templatename == $current) {
 | 
          
            | 267 |                 $selected = $link->out(false);
 | 267 |                 $selected = $link->out(false);
 | 
          
            | 268 |             }
 | 268 |             }
 | 
          
            | 269 |         }
 | 269 |         }
 | 
          
            | 270 |         $urlselect = new url_select($menu, $selected, null);
 | 270 |         $urlselect = new url_select($menu, $selected, null);
 | 
          
            | 271 |         $urlselect->set_label(get_string('templatesnavigation', manager::PLUGINNAME), ['class' => 'sr-only']);
 | 271 |         $urlselect->set_label(get_string('templatesnavigation', manager::PLUGINNAME), ['class' => 'visually-hidden']);
 | 
          
            | Línea 272... | Línea 272... | 
          
            | 272 |  
 | 272 |  
 | 
          
            | 273 |         $data = [
 | 273 |         $data = [
 | 
          
            | 274 |             'title' => get_string('preview', manager::PLUGINNAME, preset::get_name_from_plugin($fullname)),
 | 274 |             'title' => get_string('preview', manager::PLUGINNAME, preset::get_name_from_plugin($fullname)),
 | 
          
            | 275 |             'hasback' => true,
 | 275 |             'hasback' => true,
 |