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


PHP JHtmlBehavior::_calendartranslation方法代碼示例

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


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

示例1: calendar

 /**
  * Add unobtrusive javascript support for a calendar control.
  *
  * @return  void
  * @since   11.1
  */
 public static function calendar()
 {
     static $loaded = false;
     // Only load once
     if ($loaded) {
         return;
     }
     $document = JFactory::getDocument();
     $tag = JFactory::getLanguage()->getTag();
     //Add uncompressed versions when debug is enabled
     $uncompressed = JFactory::getConfig()->get('debug') ? '-uncompressed' : '';
     JHtml::_('stylesheet', 'system/calendar-jos.css', array(' title' => JText::_('JLIB_HTML_BEHAVIOR_GREEN'), ' media' => 'all'), true);
     JHtml::_('script', $tag . '/calendar' . $uncompressed . '.js', false, true);
     JHtml::_('script', $tag . '/calendar-setup' . $uncompressed . '.js', false, true);
     $translation = JHtmlBehavior::_calendartranslation();
     if ($translation) {
         $document->addScriptDeclaration($translation);
     }
     $loaded = true;
 }
開發者ID:carmerin,項目名稱:cesae-web,代碼行數:26,代碼來源:behavior.php

示例2: calendar

 public static function calendar()
 {
     $document =& JFactory::getDocument();
     JHtml::stylesheet('calendar-jos.css', 'media/system/css/', array(' title' => JText::_('green'), ' media' => 'all'));
     JHtml::script('calendar.js', 'media/system/js/');
     JHtml::script('calendar-setup.js', 'media/system/js/');
     $translation = JHtmlBehavior::_calendartranslation();
     if ($translation) {
         $document->addScriptDeclaration($translation);
     }
 }
開發者ID:joebushi,項目名稱:joomla,代碼行數:11,代碼來源:behavior.php

示例3: calendar

 /**
  * Add unobtrusive javascript support for a calendar control.
  *
  * @return  void
  *
  * @since   11.1
  */
 public static function calendar()
 {
     // Only load once
     if (isset(self::$loaded[__METHOD__])) {
         return;
     }
     $document = JFactory::getDocument();
     $tag = JFactory::getLanguage()->getTag();
     JHtml::_('stylesheet', 'system/calendar-jos.css', array(' title' => JText::_('JLIB_HTML_BEHAVIOR_GREEN'), ' media' => 'all'), true);
     JHtml::_('script', $tag . '/calendar.js', false, true);
     JHtml::_('script', $tag . '/calendar-setup.js', false, true);
     $translation = JHtmlBehavior::_calendartranslation();
     if ($translation) {
         $document->addScriptDeclaration($translation);
     }
     self::$loaded[__METHOD__] = true;
 }
開發者ID:NavaINT1876,項目名稱:ccustoms,代碼行數:24,代碼來源:behavior.php

示例4: calendar

 /**
  * Add unobtrusive javascript support for a calendar control.
  *
  * @return  void
  *
  * @since   11.1
  */
 public static function calendar()
 {
     // Only load once
     if (isset(self::$loaded[__METHOD__])) {
         return;
     }
     JHtml::_('stylesheet', 'system/calendar-jos.css', array(' title' => FText::_('JLIB_HTML_BEHAVIOR_GREEN'), ' media' => 'all'), true);
     $translation = JHtmlBehavior::_calendartranslation();
     $document = JFactory::getDocument();
     $tag = JFactory::getLanguage()->getTag();
     $app = JFactory::getApplication();
     $option = $app->input->get('option');
     // Bah - not sure why we were trying to load the calendar via requirejs
     $isFabrik = $option == 'com_fabrik' || !is_null($app->input->get('fabrik_sticky_filters'));
     $isFabrik = false;
     if ($app->isAdmin() || !$isFabrik) {
         $tag = JFactory::getLanguage()->getTag();
         JHtml::_('script', $tag . '/calendar.js', false, true);
         JHtml::_('script', $tag . '/calendar-setup.js', false, true);
         if ($translation) {
             $document->addScriptDeclaration($translation);
         }
     } else {
         $f = array();
         $f[] = JHtml::_('script', $tag . '/calendar.js', false, true, true);
         $f[] = JHtml::_('script', $tag . '/calendar-setup.js', false, true, true);
         if ($translation) {
             // In any event its not right as the 2 scrips would need to be loaded one after the other
             $translation = "requirejs(" . json_encode($f) . ", function () { {$translation} });\n";
             $document->addScriptDeclaration($translation);
         }
     }
     self::$loaded[__METHOD__] = true;
 }
開發者ID:jfquestiaux,項目名稱:fabrik,代碼行數:41,代碼來源:behavior.php


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