Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 296... Línea 296...
296
     *
296
     *
297
     * @return string
297
     * @return string
298
     */
298
     */
299
    public function render_no_calendar_subscriptions(): string {
299
    public function render_no_calendar_subscriptions(): string {
300
        $output = html_writer::start_div('mt-5');
300
        $output = html_writer::start_div('mt-5');
301
        $importlink = html_writer::link((new moodle_url('/calendar/import.php', calendar_get_export_import_link_params()))->out(),
301
        $importlink = (new moodle_url('/calendar/import.php', calendar_get_export_import_link_params()))->out();
302
                get_string('importcalendarexternal', 'calendar'));
-
 
303
        $output .= get_string('nocalendarsubscriptions', 'calendar', $importlink);
302
        $output .= get_string('nocalendarsubscriptionsimportexternal', 'core_calendar', $importlink);
304
        $output .= html_writer::end_div();
303
        $output .= html_writer::end_div();
Línea 305... Línea 304...
305
 
304
 
306
        return $output;
305
        return $output;
Línea 325... Línea 324...
325
        );
324
        );
326
        $table->data  = array();
325
        $table->data  = array();
327
        $table->id = 'subscription_details_table';
326
        $table->id = 'subscription_details_table';
Línea 328... Línea 327...
328
 
327
 
-
 
328
        if (empty($subscriptions)) {
329
        if (empty($subscriptions)) {
329
            $importlink = (new moodle_url('/calendar/import.php', calendar_get_export_import_link_params()))->out();
330
            $cell = new html_table_cell(get_string('nocalendarsubscriptions', 'calendar'));
330
            $cell = new html_table_cell(get_string('nocalendarsubscriptionsimportexternal', 'core_calendar', $importlink));
331
            $cell->colspan = 5;
331
            $cell->colspan = 5;
332
            $table->data[] = new html_table_row(array($cell));
332
            $table->data[] = new html_table_row(array($cell));
333
        }
333
        }
334
        $strnever = new lang_string('never', 'calendar');
334
        $strnever = new lang_string('never', 'calendar');