Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 220... Línea 220...
220
        $this->check_permissions();
220
        $this->check_permissions();
Línea 221... Línea 221...
221
 
221
 
222
        // load template
222
        // load template
Línea 223... Línea 223...
223
        $this->template = html_writer::start_tag('div', array('class' => 'comment-message'));
223
        $this->template = html_writer::start_tag('div', array('class' => 'comment-message'));
Línea 224... Línea 224...
224
 
224
 
225
        $this->template .= html_writer::start_tag('div', array('class' => 'comment-message-meta mr-3'));
225
        $this->template .= html_writer::start_tag('div', array('class' => 'comment-message-meta me-3'));
226
 
226
 
Línea 244... Línea 244...
244
     * Receive nonjs comment parameters
244
     * Receive nonjs comment parameters
245
     *
245
     *
246
     * @param moodle_page $page The page object to initialise comments within
246
     * @param moodle_page $page The page object to initialise comments within
247
     *                          If not provided the global $PAGE is used
247
     *                          If not provided the global $PAGE is used
248
     */
248
     */
249
    public static function init(moodle_page $page = null) {
249
    public static function init(?moodle_page $page = null) {
250
        global $PAGE;
250
        global $PAGE;
Línea 251... Línea 251...
251
 
251
 
252
        if (empty($page)) {
252
        if (empty($page)) {
253
            $page = $PAGE;
253
            $page = $PAGE;
Línea 327... Línea 327...
327
     *
327
     *
328
     * @global moodle_page $PAGE
328
     * @global moodle_page $PAGE
329
     * @param moodle_page $page
329
     * @param moodle_page $page
330
     * @return moodle_url
330
     * @return moodle_url
331
     */
331
     */
332
    public function get_nojslink(moodle_page $page = null) {
332
    public function get_nojslink(?moodle_page $page = null) {
333
        if ($page === null) {
333
        if ($page === null) {
334
            global $PAGE;
334
            global $PAGE;
335
            $page = $PAGE;
335
            $page = $PAGE;
336
        }
336
        }
Línea 456... Línea 456...
456
                    $countstring = '(' . html_writer::span($this->count(), 'comment-link-count') . ')';
456
                    $countstring = '(' . html_writer::span($this->count(), 'comment-link-count') . ')';
457
                }
457
                }
458
                $collapsedimage= 't/collapsed';
458
                $collapsedimage= 't/collapsed';
459
                if (right_to_left()) {
459
                if (right_to_left()) {
460
                    $collapsedimage= 't/collapsed_rtl';
460
                    $collapsedimage= 't/collapsed_rtl';
461
                } else {
-
 
462
                    $collapsedimage= 't/collapsed';
-
 
463
                }
461
                }
464
                $html .= html_writer::start_tag('a', array(
462
                $html .= html_writer::start_tag('a', array(
465
                    'class' => 'comment-link',
463
                    'class' => 'comment-link',
466
                    'id' => 'comment-link-'.$this->cid,
464
                    'id' => 'comment-link-'.$this->cid,
467
                    'href' => '#',
465
                    'href' => '#',
468
                    'role' => 'button',
466
                    'role' => 'button',
469
                    'aria-expanded' => 'false')
467
                    'aria-expanded' => 'false')
470
                );
468
                );
471
                $html .= $OUTPUT->pix_icon($collapsedimage, $this->linktext);
469
                $html .= html_writer::img($OUTPUT->image_url($collapsedimage), $this->linktext,
-
 
470
                    ['id' => 'comment-img-' . $this->cid, 'class' => 'icon']);
472
                $html .= html_writer::tag('span', $this->linktext.' '.$countstring, array('id' => 'comment-link-text-'.$this->cid));
471
                $html .= html_writer::tag('span', $this->linktext.' '.$countstring, array('id' => 'comment-link-text-'.$this->cid));
473
                $html .= html_writer::end_tag('a');
472
                $html .= html_writer::end_tag('a');
474
            }
473
            }
Línea 475... Línea 474...
475
 
474
 
Línea 505... Línea 504...
505
 
504
 
506
                $html .= html_writer::start_tag('div', array('class' => 'comment-area'));
505
                $html .= html_writer::start_tag('div', array('class' => 'comment-area'));
507
                $html .= html_writer::start_tag('div', array('class' => 'db'));
506
                $html .= html_writer::start_tag('div', array('class' => 'db'));
508
                $html .= html_writer::tag('label',
507
                $html .= html_writer::tag('label',
509
                        get_string('comment', 'comment'),
508
                        get_string('comment', 'comment'),
510
                        ['for' => 'dlg-content-'.$this->cid, 'class' => 'sr-only']);
509
                        ['for' => 'dlg-content-'.$this->cid, 'class' => 'visually-hidden']);
511
                $html .= html_writer::tag('textarea', '', $textareaattrs);
510
                $html .= html_writer::tag('textarea', '', $textareaattrs);
Línea 512... Línea 511...
512
                $html .= html_writer::end_tag('div'); // .db
511
                $html .= html_writer::end_tag('div'); // .db
513
 
512