[ Index ]
 

Code source de CMS made simple 1.0.5

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

title

Body

[fermer]

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

   1  <?php
   2  #CMS - CMS Made Simple
   3  #(c)2004 by Ted Kulp (wishy@users.sf.net)
   4  #This project's homepage is: http://cmsmadesimple.sf.net
   5  #
   6  #This program is free software; you can redistribute it and/or modify
   7  #it under the terms of the GNU General Public License as published by
   8  #the Free Software Foundation; either version 2 of the License, or
   9  #(at your option) any later version.
  10  #
  11  #This program is distributed in the hope that it will be useful,
  12  #but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  #GNU General Public License for more details.
  15  #You should have received a copy of the GNU General Public License
  16  #along with this program; if not, write to the Free Software
  17  #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18  
  19  function smarty_cms_function_stopExpandCollapse($params, &$smarty) {
  20      echo '</div>';
  21  }
  22  
  23  function smarty_cms_help_function_stopExpandCollapse() {
  24      ?>
  25      <h3>What does this do?</h3>
  26      <p>Enables content to be expandable and collapsable. Like the following:<br />
  27      <a href="#expand1" onClick="expandcontent('expand1')" style="cursor:hand; cursor:pointer">Click here for more info</a><span id="expand1" class="expand"><a name="help"></a> - Here is all the info you will ever need...</a></span></p>
  28  
  29      <h3>How do I use it?</h3>
  30      <p>Just insert the tag into your template/page like:<br />
  31      <br />
  32      <code>{startExpandCollapse id="name" title="Click Here"}<br />
  33      This is all the content the user will see when they click the title "Click Here" above. It will display all the content that is between the {startExpandCollapse} and {stopExpandCollapse} when clicked.<br />
  34      {stopExpandCollapse}
  35      </code>
  36      <br />
  37      <br />
  38      Note: If you intend to use this multiple times on a single page each startExpandCollapse tag must have a unique id.</p>
  39      <h3>What if I want to change the look of the title?</h3>
  40      <p>The look of the title can be changed via css. The title is wrapped in a div with the id you specify.</p>
  41  
  42      <h3>What parameters does it take?</h3>
  43      <p>
  44      <i>startExpandCollapse takes the following parameters</i><br />
  45      &nbsp; &nbsp;id - A unique id for the expand/collapse section.<br />
  46      &nbsp; &nbsp;title - The text that will be displayed to expand/collapse the content.<br />
  47      <i>stopExpandCollapse takes no parameters</i><br />
  48      </p>
  49      <?php
  50  }
  51  
  52  function smarty_cms_about_function_stopExpandCollapse() {
  53      ?>
  54      <p>Author: Brett Batie&lt;brett-cms@classicwebdevelopment.com&gt;</p>
  55      <p>Version: 1.0</p>
  56      <p>
  57      Change History:<br/>
  58      None
  59      </p>
  60      <?php
  61  }
  62  
  63  ?>


Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7