當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FabrikHelperHTML::_calendartranslation方法代碼示例

本文整理匯總了PHP中FabrikHelperHTML::_calendartranslation方法的典型用法代碼示例。如果您正苦於以下問題:PHP FabrikHelperHTML::_calendartranslation方法的具體用法?PHP FabrikHelperHTML::_calendartranslation怎麽用?PHP FabrikHelperHTML::_calendartranslation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FabrikHelperHTML的用法示例。


在下文中一共展示了FabrikHelperHTML::_calendartranslation方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: loadCalendar

 function loadCalendar()
 {
     static $calendarLoaded;
     // Only load once
     if ($calendarLoaded) {
         return;
     }
     $calendarLoaded = true;
     $document =& JFactory::getDocument();
     // $$$ hugh - if 'raw' and we output the JS stuff, it screws things up by echo'ing stuff ahead
     // of the raw view display() method's JSON echo
     if ($document->getType() == 'raw') {
         return;
     }
     $config =& JFactory::getConfig();
     $debug = $config->getValue('config.debug');
     FabrikHelperHTML::stylesheet('calendar-jos.css', 'media/system/css/', array(' title' => JText::_('green'), ' media' => 'all'));
     // $$$ hugh - need to just use JHTML::script() for these, to avoid recursion issues if anything else
     // includes these files, and Fabrik is using merged JS, which means page ends up with two copies,
     // causing a "too much recursion" error (calendar.js overrides some date object functions)
     //FabrikHelperHTML::script('calendar.js', 'media/system/js/');
     //FabrikHelperHTML::script('calendar-setup.js', 'media/system/js/');
     // $$$ rob as per what Hugh said above these should be JHTML, otherwise calendard viz popup form cant select date
     // gives too much recursion error. Any main view should therefore always call this method if there is a chance that
     // it will be loading a popup form.
     JHTML::script('calendar.js', 'media/system/js/');
     JHTML::script('calendar-setup.js', 'media/system/js/');
     $translation = FabrikHelperHTML::_calendartranslation();
     if ($translation) {
         FabrikHelperHTML::addScriptDeclaration($translation);
     }
 }
開發者ID:nikshade,項目名稱:fabrik21,代碼行數:32,代碼來源:html.php


注:本文中的FabrikHelperHTML::_calendartranslation方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。