Proyectos de Subversion Moodle

Rev

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

Rev 648 Rev 655
Línea 2312... Línea 2312...
2312
 
2312
 
2313
            }
2313
            }
2314
        }
2314
        }
2315
        return $html;
2315
        return $html;
-
 
2316
    }
-
 
2317
 
-
 
2318
    public function get_navbar_image_courses()
-
 
2319
    {
-
 
2320
        global $CFG;
-
 
2321
 
-
 
2322
        if (!empty($this->page->theme->settings->navbar_icon_courses)) {
-
 
2323
            $url = $this->page->theme->setting_file_url('navbar_icon_courses', 'navbar_icon_courses');
-
 
2324
            // Get a URL suitable for moodle_url.
-
 
2325
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
-
 
2326
            $url = str_replace($relativebaseurl, '', $url);
-
 
2327
            return new moodle_url($url);
-
 
2328
        }
-
 
2329
 
-
 
2330
 
-
 
2331
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-book.png';
-
 
2332
    }
-
 
2333
 
-
 
2334
    public function get_navbar_image_progress()
-
 
2335
    {
-
 
2336
        global $CFG;
-
 
2337
 
-
 
2338
        if (!empty($this->page->theme->settings->navbar_icon_progress)) {
-
 
2339
            $url = $this->page->theme->setting_file_url('navbar_icon_progress', 'navbar_icon_progress');
-
 
2340
            // Get a URL suitable for moodle_url.
-
 
2341
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
-
 
2342
            $url = str_replace($relativebaseurl, '', $url);
-
 
2343
            return new moodle_url($url);
-
 
2344
        }
-
 
2345
 
-
 
2346
 
-
 
2347
 
-
 
2348
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-progress.png';
-
 
2349
    }
-
 
2350
 
-
 
2351
    public function get_navbar_image_forums()
-
 
2352
    {
-
 
2353
        global $CFG;
-
 
2354
 
-
 
2355
 
-
 
2356
        if (!empty($this->page->theme->settings->navbar_icon_forums)) {
-
 
2357
            $url = $this->page->theme->setting_file_url('navbar_icon_forums', 'navbar_icon_forums');
-
 
2358
            // Get a URL suitable for moodle_url.
-
 
2359
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
-
 
2360
            $url = str_replace($relativebaseurl, '', $url);
-
 
2361
            return new moodle_url($url);
-
 
2362
        }
-
 
2363
 
-
 
2364
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-foros.png';
-
 
2365
    }
-
 
2366
 
-
 
2367
    public function get_navbar_image_calendar()
-
 
2368
    {
-
 
2369
        global $CFG;
-
 
2370
 
-
 
2371
 
-
 
2372
        if (!empty($this->page->theme->settings->navbar_icon_calendar)) {
-
 
2373
            $url = $this->page->theme->setting_file_url('navbar_icon_calendar', 'navbar_icon_calendar');
-
 
2374
            // Get a URL suitable for moodle_url.
-
 
2375
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
-
 
2376
            $url = str_replace($relativebaseurl, '', $url);
-
 
2377
            return new moodle_url($url);
-
 
2378
        }
-
 
2379
 
-
 
2380
 
-
 
2381
 
-
 
2382
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-calendar.png';
2316
    }
2383
    }