Proyectos de Subversion Moodle

Rev

Rev 681 | Rev 684 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 681 Rev 682
Línea 2378... Línea 2378...
2378
        }
2378
        }
Línea 2379... Línea 2379...
2379
 
2379
 
2380
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-calendar.png';
2380
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-calendar.png';
Línea 2381... Línea 2381...
2381
    }
2381
    }
2382
 
2382
 
2383
    public function get_image_login()
2383
    public function get_theme_image_login_bg()
Línea 2384... Línea 2384...
2384
    {
2384
    {
2385
        global $CFG;
2385
        global $CFG;
2386
 
2386
 
2387
        if (!empty($this->page->theme->settings->navbar_icon_calendar)) {
2387
        if (!empty($this->page->theme->settings->loginimagebackground)) {
2388
            $url = $this->page->theme->setting_file_url('navbar_icon_calendar', 'navbar_icon_calendar');
2388
            $url = $this->page->theme->setting_file_url('loginimagebackground', 'loginimagebackground');
2389
            // Get a URL suitable for moodle_url.
2389
            // Get a URL suitable for moodle_url.
2390
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
2390
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
Línea 2391... Línea 2391...
2391
            $url = str_replace($relativebaseurl, '', $url);
2391
            $url = str_replace($relativebaseurl, '', $url);
2392
            return new moodle_url($url);
2392
            return new moodle_url($url);
2393
        }
2393
        }