]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/Smarty/plugins/function.ext_includes.php
Release 6.5.0
[Github/sugarcrm.git] / include / Smarty / plugins / function.ext_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 r51719 - 2009-10-22 10:18:00 -0700 (Thu, 22 Oct 2009) - mitani - Converted to Build 3  tags and updated the build system 
14
15 r51634 - 2009-10-19 13:32:22 -0700 (Mon, 19 Oct 2009) - mitani - Windex is the branch for Sugar Sales 1.0 development
16
17 r50375 - 2009-08-24 18:07:43 -0700 (Mon, 24 Aug 2009) - dwong - branch kobe2 from tokyo r50372
18
19 r47412 - 2009-05-20 17:50:30 -0700 (Wed, 20 May 2009) - xye - Bug30528 Merged the fix for bug 30528 into Tokyo RC.
20 Modified:
21 modules/ModuleBuilder/tpls/includes.tpl
22 modules/Configurator/EditView.tpl
23 include/Smarty/plugins/function.ext_includes.php
24
25 r42807 - 2008-12-29 11:16:59 -0800 (Mon, 29 Dec 2008) - dwong - Branch from trunk/sugarcrm r42806 to branches/tokyo/sugarcrm
26
27 r32672 - 2008-03-11 18:48:38 -0700 (Tue, 11 Mar 2008) - dwheeler - Added new Field Types to Studio/Module Builder.
28 iFrame, Displays a dynamic or static URL in an iFrame in the detail view of a record.
29 dynamicURL, You can generate a url based on the properties of a record. Such as displaying a link to the shipping location of an account on google maps. 
30
31 r32667 - 2008-03-11 17:16:04 -0700 (Tue, 11 Mar 2008) - majed - changes for templating
32
33 r31712 - 2008-02-11 18:44:00 -0800 (Mon, 11 Feb 2008) - awu - fixing END sugarcrm int tag
34 Touched:
35 - include/Smarty/plugins/function.ext_includes.php
36
37 r31615 - 2008-02-05 10:52:49 -0800 (Tue, 05 Feb 2008) - dwheeler - Added Ext theming abilities as well as an ext_includes smarty function.
38
39
40 */
41
42
43
44 function smarty_function_ext_includes($params, &$smarty)
45 {
46         $ret = '<link rel="stylesheet" type="text/css" href="' . getJSPath("themes/default/ext/resources/css/ext-all.css") . '" />'
47                  . '<link rel="stylesheet" type="text/css" href="' . getJSPath("themes/default/ext/resources/css/xtheme-gray.css") . '" />';
48                  
49         global $theme;
50         if (is_dir("themes/$theme/ext/resources/css")) {
51                         $cssDir = opendir("themes/$theme/ext/resources/css");
52                         while (($file = readdir($cssDir)) !== false) {
53                                 if (strcasecmp(substr($file, -4), '.css' == 0)) {
54                         $ret .= "<link rel='stylesheet' type='text/css' href='" . getJSPath("themes/$theme/ext/resources/css/$file") . "' />";
55                                 }
56                 }
57         }
58                         
59         return $ret;
60         
61 }