config->item ( 'useApplicationName' ); $title = ''; /* Check if we have an appplication title. */ if ( ( $appName = $this->config->item ( 'applicationName' ) ) !== false && $useAppName ) $title = $appName; elseif ( $useAppName ) $title = 'Default'; /** * Check if we got any stylesheets to use. * If we have some in config/application.php use them too. */ $css = array ( ); /* Check config values. */ if ( ( $configCssLinks = $this->config->item ( 'cssLinks' ) ) !== false ): foreach ( $configCssLinks as $item ): /* If item is not array, then it must be a link, make proper. */ if ( ! is_array ( $item ) ) $item = array ( 'href' => site_url ( $item ) ); /* If item has 'href' key, use that. */ elseif ( isset ( $item['href'] ) ) $item['href'] = site_url ( $item['href'] ); /* Blargh, stupid programmer sent me not valid data, skip. */ else continue; /* If we have no default media, */ if ( ! isset ( $item['media'] ) ) $item['media'] = 'all'; $css[] = $item; endforeach; endif; /* Check sent values. */ if ( isset ( $cssLinks ) ): foreach ( $cssLinks as $item ): /* If item is not array, then it must be a link, make proper. */ if ( ! is_array ( $item ) ) $item = array ( 'href' => site_url ( $item ) ); /* Blargh, stupid programmer sent me not valid data, skip. */ else continue; /* If we have no default media, */ if ( ! isset ( $item['media'] ) ) $item['media'] = 'all'; $css[] = $item; endforeach; endif; /** * Check if we got any RSS-flows to announce. */ $rss = array ( ); /* Check config values. */ if ( ( $configRSSValues = $this->config->item ( 'rssLinks' ) ) !== false ): foreach ( $configRSSValues as $item ): /* If item isn't an array, use it as the link and add default values. */ if ( ! is_array ( $item ) ) $item = array ( 'href' => $item, 'title' => '' ); /* If we have no link, continue. */ if ( ! isset ( $item['href'] ) ) continue; /* If we have a title. */ if ( ! isset ( $item['title'] ) ) $item['title'] = ''; $rss[] = $item; endforeach; endif; /** * Check if we got any Javascripts we should use. * If we have some in config/application.php use them too. */ $js = array ( ); /* Check config values. */ if ( ( $configJSValues = $this->config->item ( 'jsLinks' ) ) !== false ): foreach ( $configJSValues as $item ): endforeach; endif; unset ( $configJSValues ); /** * Check if we got any meta-things to use. */ $meta = array ( ); /* Check config values. */ if ( ( $configMetaValues = $this->config->item ( 'metaInfo' ) ) !== false ): endif; ?>