Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 115... Línea 115...
115
                $name = get_string('moodlenet:deletedactivity');
115
                $name = get_string('moodlenet:deletedactivity');
116
                $deleted = true;
116
                $deleted = true;
117
            }
117
            }
118
        }
118
        }
119
        if ($deleted) {
119
        if ($deleted) {
120
            $class = 'font-italic';
120
            $class = 'fst-italic';
121
        }
121
        }
122
        // Add a link to the resource if it was recorded.
122
        // Add a link to the resource if it was recorded.
123
        if (!empty($row->resourceurl)) {
123
        if (!empty($row->resourceurl)) {
124
            // Apply bold to resource links that aren't deleted.
124
            // Apply bold to resource links that aren't deleted.
125
            if (!$deleted) {
125
            if (!$deleted) {
126
                $class = 'font-weight-bold';
126
                $class = 'fw-bold';
127
            }
127
            }
128
            $icon = $OUTPUT->pix_icon('i/externallink', get_string('opensinnewwindow'), 'moodle', ['class' => 'ml-1']);
128
            $icon = $OUTPUT->pix_icon('i/externallink', get_string('opensinnewwindow'), 'moodle', ['class' => 'ms-1']);
129
            $text = $name . $icon;
129
            $text = $name . $icon;
130
            $attributes = [
130
            $attributes = [
131
                'target' => '_blank',
131
                'target' => '_blank',
132
                'rel' => 'noopener noreferrer',
132
                'rel' => 'noopener noreferrer',
133
            ];
133
            ];