mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
new functions to get logo
This commit is contained in:
@@ -118,4 +118,20 @@ class OptionsLib {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function get_logo($logo_location) {
|
||||
|
||||
$CI =& get_instance();
|
||||
|
||||
// get the theme with the get_theme() function above
|
||||
$theme = $this->get_theme();
|
||||
|
||||
// load the themes model and fetch the logo name from it
|
||||
$CI->load->model('Themes_model');
|
||||
|
||||
$logo = $CI->Themes_model->get_logo_from_theme($theme, $logo_location);
|
||||
|
||||
return $logo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user