[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/sitemgr/modules/ -> class.module_html.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare SiteMgr - Web Content Management                              *
   4      * http://www.egroupware.org                                                *
   5      * --------------------------------------------                             *
   6      *  This program is free software; you can redistribute it and/or modify it *
   7      *  under the terms of the GNU General Public License as published by the   *
   8      *  Free Software Foundation; either version 2 of the License, or (at your  *
   9      *  option) any later version.                                              *
  10      \**************************************************************************/
  11  
  12      /* $Id: class.module_html.inc.php 22000 2006-07-05 12:29:59Z nelius_weiss $ */
  13  
  14      class module_html extends Module
  15      {
  16  		function module_html()
  17          {
  18              $this->i18n = true;
  19              $this->arguments = array(
  20                  'htmlcontent' => array(
  21                      'type' => 'htmlarea',
  22                      'label' => lang('Enter the block content here'),
  23                      'large' => True,    // show label above content
  24                      'i18n' => True,
  25                      'params' => Array(
  26                          'style' => 'width:100%; min-width:500px; height:280px',
  27                          'plugins' => '
  28                              theme : "advanced",
  29                              theme_advanced_toolbar_location : "top",
  30                              theme_advanced_toolbar_align : "left",
  31                              theme_advanced_disable : "styleselect",
  32                              plugins : "filemanager,table,contextmenu,paste,fullscreen,advhr,advimage,advlink,iespell,insertdatetime,searchreplace,flash",
  33                              theme_advanced_buttons1_add : "fontselect,fontsizeselect,separator,search,replace",
  34                              theme_advanced_buttons2_add : "separator,iespell,insertdate,inserttime,separator,flash",
  35                              theme_advanced_buttons3_add : "separator,filemanager,fullscreen,separator,forecolor,backcolor",
  36                              theme_advanced_buttons3_add_before : "tablecontrols,separator,advhr",
  37                              verify_html: false,
  38                              flash_wmode : "transparent",
  39                              flash_quality : "high",
  40                              flash_menu : "false"'
  41                      )
  42                  )
  43              );
  44              $this->properties = array('striphtml' => array('type' => 'checkbox', 'label' => lang('Strip HTML from block content?')));
  45              $this->title = lang('HTML module');
  46              $this->description = lang('This module is a simple HTML editor');
  47          }
  48  
  49  		function get_content(&$arguments,$properties)
  50          {
  51              if ($properties['striphtml'])
  52              {
  53                  return $GLOBALS['egw']->strip_html($arguments['htmlcontent']);
  54              }
  55              // spamsaver emailaddress and activating the links
  56              if (!is_object($GLOBALS['egw']->html))
  57              {
  58                  $GLOBALS['egw']->html =& CreateObject('phpgwapi.html');
  59              }
  60              return $GLOBALS['egw']->html->activate_links($arguments['htmlcontent']);
  61          }
  62      }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7