[ Index ]

krapohl.info

title

Body

[close]

/plugins/ -> function.pc_popup.php (source)

   1  <?php
   2  /**
   3   *  $Id: function.pc_popup.php,v 1.1 2004/02/11 17:31:22 larsneo Exp $
   4   *
   5   *  PostCalendar::PostNuke Events Calendar Module
   6   *  Copyright (C) 2002  The PostCalendar Team
   7   *  http://postcalendar.tv
   8   *  
   9   *  This program is free software; you can redistribute it and/or modify
  10   *  it under the terms of the GNU General Public License as published by
  11   *  the Free Software Foundation; either version 2 of the License, or
  12   *  (at your option) any later version.
  13   *  
  14   *  This program is distributed in the hope that it will be useful,
  15   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17   *  GNU General Public License for more details.
  18   *  
  19   *  You should have received a copy of the GNU General Public License
  20   *  along with this program; if not, write to the Free Software
  21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  22   *
  23   *  To read the license please read the docs/license.txt or visit
  24   *  http://www.gnu.org/copyleft/gpl.html
  25   *
  26   */
  27  function smarty_function_pc_popup($args)
  28  {
  29      // if we're not using popups just return an empty string
  30      if(!_SETTING_USE_POPUPS) { return; }
  31      
  32      extract($args);
  33  
  34      if (empty($text) && !isset($inarray) && empty($function)) {
  35          $text = "overlib: attribute 'text' or 'inarray' or 'function' required";
  36      }
  37  
  38      if (empty($trigger)) { $trigger = "onMouseOver"; }
  39  
  40      echo $trigger.'="return overlib(\''.pc_clean($text).'\'';
  41      if ($sticky) { echo ",STICKY"; }
  42      if (!empty($caption))         { echo ",CAPTION,'".pc_clean($caption)."'"; }
  43      if (!empty($fgcolor))         { echo ",FGCOLOR,'$fgcolor'"; }
  44      if (!empty($bgcolor))         { echo ",BGCOLOR,'$bgcolor'"; }
  45      if (!empty($textcolor))     { echo ",TEXTCOLOR,'$textcolor'"; }
  46      if (!empty($capcolor))      { echo ",CAPCOLOR,'$capcolor'"; }
  47      if (!empty($closecolor))     { echo ",CLOSECOLOR,'$closecolor'"; }
  48      if (!empty($textfont))      { echo ",TEXTFONT,'$textfont'"; }
  49      if (!empty($captionfont))     { echo ",CAPTIONFONT,'$captionfont'"; }
  50      if (!empty($closefont))     { echo ",CLOSEFONT,'$closefont'"; }
  51      if (!empty($textsize))      { echo ",TEXTSIZE,$textsize"; }
  52      if (!empty($captionsize))     { echo ",CAPTIONSIZE,$captionsize"; }
  53      if (!empty($closesize))     { echo ",CLOSESIZE,$closesize"; }
  54      if (!empty($width))         { echo ",WIDTH,$width"; }
  55      if (!empty($height))         { echo ",HEIGHT,$height"; }
  56      if (!empty($left))          { echo ",LEFT"; }
  57      if (!empty($right))         { echo ",RIGHT"; }
  58      if (!empty($center))         { echo ",CENTER"; }
  59      if (!empty($above))         { echo ",ABOVE"; }
  60      if (!empty($below))         { echo ",BELOW"; }
  61      if (isset($border))         { echo ",BORDER,$border"; }
  62      if (isset($offsetx))         { echo ",OFFSETX,$offsetx"; }
  63      if (isset($offsety))         { echo ",OFFSETY,$offsety"; }
  64      if (!empty($fgbackground))  { echo ",FGBACKGROUND,'$fgbackground'"; }
  65      if (!empty($bgbackground))  { echo ",BGBACKGROUND,'$bgbackground'"; }
  66      if (!empty($closetext))     { echo ",CLOSETEXT,'".pc_clean($closetext)."'"; }
  67      if (!empty($noclose))         { echo ",NOCLOSE"; }
  68      if (!empty($status))         { echo ",STATUS,'".pc_clean($status)."'"; }
  69      if (!empty($autostatus))     { echo ",AUTOSTATUS"; }
  70      if (!empty($autostatuscap)) { echo ",AUTOSTATUSCAP"; }
  71      if (isset($inarray))         { echo ",INARRAY,'$inarray'"; }
  72      if (isset($caparray))         { echo ",CAPARRAY,'$caparray'"; }
  73      if (!empty($capicon))         { echo ",CAPICON,'$capicon'"; }
  74      if (!empty($snapx))         { echo ",SNAPX,$snapx"; }
  75      if (!empty($snapy))         { echo ",SNAPY,$snapy"; }
  76      if (isset($fixx))             { echo ",FIXX,$fixx"; }
  77      if (isset($fixy))             { echo ",FIXY,$fixy"; }
  78      if (!empty($background))     { echo ",BACKGROUND,'$background'"; }
  79      if (!empty($padx))          { echo ",PADX,$padx"; }
  80      if (!empty($pady))          { echo ",PADY,$pady"; }
  81      if (!empty($fullhtml))      { echo ",FULLHTML"; }
  82      if (!empty($frame))         { echo ",FRAME,'$frame'"; }
  83      if (isset($timeout))         { echo ",TIMEOUT,$timeout"; }
  84      if (!empty($function))      { echo ",FUNCTION,'$function'"; }
  85      if (isset($delay))          { echo ",DELAY,$delay"; }
  86      if (!empty($hauto))         { echo ",HAUTO"; }
  87      if (!empty($vauto))         { echo ",VAUTO"; }
  88      echo ');" onMouseOut="nd();"';
  89  }
  90  ?>


Generated: Wed Feb 16 22:40:07 2005 Cross-referenced by PHPXref 0.6