*/
static function returnDynamicJS($tplFile, $vars = array()) {
$smarty = CRM_Core_Smarty::singleton();
- $vars += array('timeGenerated' => date('d M Y H:i:s'));
foreach ($vars as $name => $val) {
$smarty->assign($name, $val);
}
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}// http://civicrm.org/licensing
-// <script> Generated {$timeGenerated}
+// <script> Generated {$smarty.now|date_format:'%d %b %Y %H:%M:%S'}
{* This file should only contain strings and settings which rarely change *}
(function($) {ldelim}
// Config settings
{/if}
{$navigation}
</ul>
-{/strip}{/capture}// <script> Generated {$timeGenerated}
+{/strip}{/capture}// <script> Generated {$smarty.now|date_format:'%d %b %Y %H:%M:%S'}
{literal}
(function($) {
var menuMarkup = {/literal}{$menuMarkup|@json_encode};