Textpattern | PHP Cross Reference | Content Management Systems |
Description: Css
1 <?php 2 3 /* 4 * Textpattern Content Management System 5 * https://textpattern.com/ 6 * 7 * Copyright (C) 2020 The Textpattern Development Team 8 * 9 * This file is part of Textpattern. 10 * 11 * Textpattern is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation, version 2. 14 * 15 * Textpattern is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with Textpattern. If not, see <https://www.gnu.org/licenses/>. 22 */ 23 24 /** 25 * Css 26 * 27 * Manages stylesheets. 28 * 29 * @since 4.7.0 30 * @package Skin 31 */ 32 33 namespace Textpattern\Skin; 34 35 class Css extends AssetBase implements CssInterface 36 { 37 protected static $extension = 'css'; 38 protected static $dir = 'styles'; 39 protected static $fileContentsField = 'css'; 40 protected static $mimeTypes = array(); 41 protected static $essential = array( 42 array( 43 'name' => 'default', 44 'css' => '/* Contents of the css tag goes here. See https://docs.textpattern.com/tags/css */' 45 ), 46 ); 47 48 /** 49 * {@inheritdoc} 50 */ 51 52 public function setInfos( 53 $name, 54 $css = null 55 ) { 56 $name = $this->setName($name)->getName(); 57 58 $this->infos = compact('name', 'css'); 59 60 return $this; 61 } 62 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title