diff --git a/module/VuFind/src/VuFind/View/Helper/Bootprint/Factory.php b/module/VuFind/src/VuFind/View/Helper/Bootprint/Factory.php deleted file mode 100644 index 6a84eeb1ced50e06a27ec5fe20237dbd59d34c90..0000000000000000000000000000000000000000 --- a/module/VuFind/src/VuFind/View/Helper/Bootprint/Factory.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php -/** - * Factory for Bootprint view helpers. - * - * PHP version 5 - * - * Copyright (C) Villanova University 2014. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -namespace VuFind\View\Helper\Bootprint; -use Zend\ServiceManager\ServiceManager; - -/** - * Factory for Bootprint view helpers. - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - * - * @codeCoverageIgnore - */ -class Factory -{ - /** - * Construct the LayoutClass helper. - * - * @param ServiceManager $sm Service manager. - * - * @return LayoutClass - */ - public static function getLayoutClass(ServiceManager $sm) - { - $config = $sm->getServiceLocator()->get('VuFind\Config')->get('config'); - $left = !isset($config->Site->sidebarOnLeft) - ? false : $config->Site->sidebarOnLeft; - return new LayoutClass($left); - } -} \ No newline at end of file diff --git a/module/VuFind/src/VuFind/View/Helper/Bootprint/LayoutClass.php b/module/VuFind/src/VuFind/View/Helper/Bootprint/LayoutClass.php deleted file mode 100644 index 87d93f2db7dc06a17a1078a4c2f0141c85b65efc..0000000000000000000000000000000000000000 --- a/module/VuFind/src/VuFind/View/Helper/Bootprint/LayoutClass.php +++ /dev/null @@ -1,62 +0,0 @@ -<?php -/** - * Helper class for managing bootprint theme's high-level (body vs. sidebar) page - * layout. - * - * PHP version 5 - * - * Copyright (C) Villanova University 2011. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -namespace VuFind\View\Helper\Bootprint; - -/** - * Helper class for managing bootprint theme's high-level (body vs. sidebar) page - * layout. - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -class LayoutClass extends \VuFind\View\Helper\AbstractLayoutClass -{ - /** - * Helper to allow easily configurable page layout -- given a broad class - * name, return appropriate CSS classes to lay out the page according to - * the current configuration file settings. - * - * @param string $class Type of class to return ('mainbody' or 'sidebar') - * - * @return string CSS classes to apply - */ - public function __invoke($class) - { - switch ($class) { - case 'mainbody': - return $this->left ? 'span9 pull-right' : 'span9 switch-margins'; - case 'sidebar': - return $this->left - ? 'span3 switch-margins noprint sidebar' : 'span3 noprint sidebar'; - } - } -}