Exemplo n.º 1
0
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 
    }
}
Exemplo n.º 2
0
 /**
  * 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;
 }
Exemplo n.º 3
0
function header_image()
{
    $settings = theme_settings();
    echo $settings['header_image'];
}