* @author Ross Reyman */ /** * This theme (code named "Matrix") is based on the UI designed by Ross Reyman. * * @package MatrixTheme */ class MatrixTheme extends GalleryTheme { function MatrixTheme() { $this->GalleryTheme(dirname(__FILE__)); } /** * @see GalleryTheme::style() */ function style($params) { global $gallery; $platform = $gallery->getPlatform(); $format = ''; $urlGenerator =& $gallery->getUrlGenerator(); $style[] = sprintf($format, $urlGenerator->generateUrl(array('href' => 'themes/matrix/styles/theme.css'))); list ($view, $controller) = GalleryUtilities::getRequestVariables('view', 'controller'); if (!empty($controller) || (!empty($view) && $view != 'core:ShowItem')) { $style[] = sprintf($format, $urlGenerator->generateUrl(array('href' => 'themes/matrix/styles/layout.css.php'))); } return join("\n", $style); } } ?>