]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/Smarty/plugins/function.overlib_includes.php
Release 6.4.0
[Github/sugarcrm.git] / include / Smarty / plugins / function.overlib_includes.php
1 <?php
2
3 /*
4
5 Modification information for LGPL compliance
6
7 r56990 - 2010-06-16 13:05:36 -0700 (Wed, 16 Jun 2010) - kjing - snapshot "Mango" svn branch to a new one for GitHub sync
8
9 r56989 - 2010-06-16 13:01:33 -0700 (Wed, 16 Jun 2010) - kjing - defunt "Mango" svn dev branch before github cutover
10
11 r55980 - 2010-04-19 13:31:28 -0700 (Mon, 19 Apr 2010) - kjing - create Mango (6.1) based on windex
12
13 r53253 - 2009-12-16 10:19:07 -0800 (Wed, 16 Dec 2009) - jmertic - Bug 34308 - Set a max width for all overlib boxes to 400px.
14
15 r51719 - 2009-10-22 10:18:00 -0700 (Thu, 22 Oct 2009) - mitani - Converted to Build 3  tags and updated the build system 
16
17 r51634 - 2009-10-19 13:32:22 -0700 (Mon, 19 Oct 2009) - mitani - Windex is the branch for Sugar Sales 1.0 development
18
19 r50375 - 2009-08-24 18:07:43 -0700 (Mon, 24 Aug 2009) - dwong - branch kobe2 from tokyo r50372
20
21 r42807 - 2008-12-29 11:16:59 -0800 (Mon, 29 Dec 2008) - dwong - Branch from trunk/sugarcrm r42806 to branches/tokyo/sugarcrm
22
23 r32629 - 2008-03-11 00:44:13 -0700 (Tue, 11 Mar 2008) - majed - fixes issues with overlib and templating
24
25 r32200 - 2008-02-29 10:44:55 -0800 (Fri, 29 Feb 2008) - jmertic - Add string placeholders for several tooltips on Step 3.
26 Pushed code for help popups into smarty function sugar_help and the code for including the overlib stuff into overlib_includes.
27
28
29 */
30
31
32 /**
33  * Smarty plugin
34  * @package Smarty
35  * @subpackage plugins
36  *
37  * This is a Smarty plugin to handle the inclusion of the overlib js library.
38  *
39  * @author John Mertic {jmertic@sugarcrm.com}
40  */
41  
42 /**
43  * smarty_function_overlib_includes
44  * This is the constructor for the Smarty plugin.
45  * 
46  * @param $params The runtime Smarty key/value arguments
47  * @param $smarty The reference to the Smarty object used in this invocation 
48  */
49 function smarty_function_overlib_includes($params, &$smarty)
50 {
51     $path = getJSPath('cache/include/javascript/sugar_grp_overlib.js');
52         return <<<EOHTML
53 <!-- begin includes for overlib -->
54 <script id="sugar_grp_overlib" src="$path"></script>
55 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000; max-width: 400px;"></div>
56 <!-- end includes for overlib -->
57 EOHTML;
58 }