contributions/css.yaml/start.inc.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * @defgroup YAML 00004 * @ingroup CSS 00005 * 00006 * Basic installation of YAML CSS framework. 00007 * 00008 * @see http://www.yaml.de/en/ 00009 * 00010 * @section Usage Usage 00011 * 00012 * The module copies YAML css to the app/www directory. Core YAML files are overwritten on 00013 * each systemupdate, while files below /app/www/css/ are only copied once. * 00014 * 00015 * By default a 213-template is installed. Use the YAML builder to create your own template 00016 * and CSS stubs: http://builder.yaml.de/ 00017 * 00018 * This module offers both YAML 3.2 and 3.3. Set APP_YAML_VERSION to either one of this. Default is "3.2". 00019 * 00020 * For YAML licencing see http://www.yaml.de/license.html. 00021 * 00022 * @section Forms Forms 00023 * 00024 * @see http://www.yaml.de/en/documentation/css-components/form-construction-kit.html 00025 * 00026 * Set APP_YAML_USE_FORMS to true to have the YAML module change the HTML of generated input 00027 * widgets to a YAML compatible style. 00028 * 00029 * If forms are enabled in YAML module you should include the YAML forms CSS file. There are two of them 00030 * to choose: 00031 * 00032 * - /css/screen/forms.css: This file works on the form tag directly, so it is compatible with forms 00033 * of existing modules. 00034 * - /yaml/screen/forms.css: This is the original YAML forms file, and requires a class "yforms" to be set on the 00035 * form element. This is not compatible with forms generated by other modules. 00036 */ 00037 00038 EventSource::Instance()->register(new CSSYamlEventSink()); 00039 00040 /** 00041 * Config for CSS YAML module 00042 * 00043 * @author Gerd Riesselmann 00044 * @ingroup YAML 00045 */ 00046 class ConfigYAML { 00047 const YAML_VERSION = 'YAML_VERSION'; 00048 const YAML_USE_FORMS = 'YAML_USE_FORMS'; 00049 } 00050 00051 Config::set_value_from_constant(ConfigYAML::YAML_VERSION, 'APP_YAML_VERSION', '3.2'); 00052 Config::set_feature_from_constant(ConfigYAML::YAML_USE_FORMS, 'APP_YAML_USE_FORMS', false); 00053 00054