diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-18 09:46:42 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-18 09:46:42 +0200 |
commit | 66abbda5576ed5f675c645584969fc3e09152164 (patch) | |
tree | a1c4f585f1ee5c2f196953b0d2ab021c742baf99 /templates | |
parent | 7ba16780c74875a6af885bbdc1dddd10775d81a9 (diff) |
add custom heise.de style
Diffstat (limited to 'templates')
-rw-r--r-- | templates/7.php | 45 | ||||
-rw-r--r-- | templates/index.php | 11 |
2 files changed, 0 insertions, 56 deletions
diff --git a/templates/7.php b/templates/7.php deleted file mode 100644 index 24dde55b4..000000000 --- a/templates/7.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/** - * ownCloud - News - * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. - * - * @author Alessandro Cosentino <cosenal@gmail.com> - * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @copyright Alessandro Cosentino 2012 - * @copyright Bernhard Posselt 2012, 2014 - */ - - -/** - * Shortcut for adding scripts to a page - * @param string $app the appname - * @param string|string[] $file the filename, - * if an array is given it will add all scripts - */ -function script($app, $file) { - if(is_array($file)) { - foreach($file as $f) { - OC_Util::addScript($app, $f); - } - } else { - OC_Util::addScript($app, $file); - } -} - -/** - * Shortcut for adding styles to a page - * @param string $app the appname - * @param string|string[] $file the filename, - * if an array is given it will add all styles - */ -function style($app, $file) { - if(is_array($file)) { - foreach($file as $f) { - OC_Util::addStyle($app, $f); - } - } else { - OC_Util::addStyle($app, $file); - } -}
\ No newline at end of file diff --git a/templates/index.php b/templates/index.php index 3d277dbbf..cb6a89bc1 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,15 +1,4 @@ <?php -// owncloud 7 backported style sheets -$version = \OCP\Util::getVersion(); - -if ($version[0] === 7 && $version[1] === 0 && $version[2] < 3) { - require_once __DIR__ . '/7.php'; -} - -if($version[0] > 7 && $version[1] <= 8) { - style('news', '7'); -} - script('news', [ 'vendor/es6-shim/es6-shim.min', 'vendor/angular/angular.min', |