From bd98151f8162105e973822d935e3a944454a524c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 13 Apr 2011 12:46:00 +0200 Subject: [PATCH] Added LSformElement :: pre --- public_html/css/default/LSformElement_pre.css | 4 ++ .../includes/class/class.LSattr_html_pre.php | 36 +++++++++++++ .../class/class.LSformElement_pre.php | 50 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 public_html/css/default/LSformElement_pre.css create mode 100644 public_html/includes/class/class.LSattr_html_pre.php create mode 100644 public_html/includes/class/class.LSformElement_pre.php diff --git a/public_html/css/default/LSformElement_pre.css b/public_html/css/default/LSformElement_pre.css new file mode 100644 index 00000000..df6df8e9 --- /dev/null +++ b/public_html/css/default/LSformElement_pre.css @@ -0,0 +1,4 @@ +p.LSformElement_pre { + white-space: pre-line; + word-wrap: break-word; +} diff --git a/public_html/includes/class/class.LSattr_html_pre.php b/public_html/includes/class/class.LSattr_html_pre.php new file mode 100644 index 00000000..b9d8683c --- /dev/null +++ b/public_html/includes/class/class.LSattr_html_pre.php @@ -0,0 +1,36 @@ + + */ +class LSattr_html_pre extends LSattr_html_textarea { + + var $LSformElement_type = 'pre'; + +} + +?> diff --git a/public_html/includes/class/class.LSformElement_pre.php b/public_html/includes/class/class.LSformElement_pre.php new file mode 100644 index 00000000..b0ad0af1 --- /dev/null +++ b/public_html/includes/class/class.LSformElement_pre.php @@ -0,0 +1,50 @@ + + */ + +class LSformElement_pre extends LSformElement_textarea { + + var $fieldTemplateExtraClass = 'LSformElement_pre'; + + /** + * Retourne les infos d'affichage de l'élément + * + * Cette méthode retourne les informations d'affichage de l'élement + * + * @retval array + */ + function getDisplay(){ + $return = parent :: getDisplay(); + LSsession :: addCssFile('LSformElement_pre.css'); + return $return; + } + +} + +?>