function halcyonic_favicon() { $settings = theme_settings(); if (strstr("http", $settings['favicon'])) { ?> <link rel="shortcut icon" href="<?php echo $settings['favicon']; ?> " /> <?php } else { ?> <link rel="shortcut icon" href="<?php qoolinfo('home'); ?> /<?php template_path(); ?> /<?php echo $settings['favicon']; ?> " /> <?php } }
/** * Create virtual array for theme change * @return array */ public function themes() { $path = themes_path(); $dir_arr = \File::directories($path); $themes = array(); foreach ($dir_arr as $path) { $name_arr = explode('/', $path); $name = array_pop($name_arr); $theme_name = array_get(theme_settings($path), 'theme_name'); $themes[$name] = $theme_name; } return $themes; }
function header_image() { $settings = theme_settings(); echo $settings['header_image']; }