• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP JDocumentHtml类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中JDocumentHtml的典型用法代码示例。如果您正苦于以下问题:PHP JDocumentHtml类的具体用法?PHP JDocumentHtml怎么用?PHP JDocumentHtml使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了JDocumentHtml类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: testRender

 /**
  * Test JDocumentRendererHtmlModules::render
  *
  * @return  void
  *
  * @since   3.6
  */
 public function testRender()
 {
     $document = new JDocumentHtml();
     $renderer = $document->loadRenderer('modules');
     $params = array('name' => 'position-0', 'style' => 'xhtml');
     $this->callbackExecuted = false;
     $output = $renderer->render('position-0', $params);
     $htmlClean = trim(preg_replace('~>\\s+<~', '><', $output));
     $this->assertTrue($this->callbackExecuted, 'onAfterRenderModules event is not executed');
     $html = '<div class="moduletable"><h3>Search</h3><div class="search mod_search63">' . '<form action="index.php" method="post" class="form-inline">' . '<label for="mod-search-searchword63" class="element-invisible">Search ...</label>' . '<input name="searchword" id="mod-search-searchword63" maxlength="200"  ' . 'class="inputbox search-query" type="search" size="20" placeholder="Search ..." />' . '<input type="hidden" name="task" value="search" /><input type="hidden" name="option" value="com_search" />' . '<input type="hidden" name="Itemid" value="" /></form></div></div>';
     $this->assertEquals($html, $htmlClean, 'render output does not match expected content');
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:19,代码来源:JDocumentRendererHtmlModulesTest.php


示例2: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle($this->documentTitle);
     // Add scripts
     JHtml::_('behavior.tooltip');
     JHtml::_('behavior.formvalidation');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . String::strtolower($this->getName()) . '.js');
 }
开发者ID:bellodox,项目名称:GamificationPlatform,代码行数:13,代码来源:view.html.php


示例3: setDocument

 protected function setDocument()
 {
     // Add scripts
     JHtml::_('bootstrap.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('formbehavior.chosen', 'select');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . $this->getName() . '.js');
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:8,代码来源:view.html.php


示例4: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle(JText::_('COM_CROWDFUNDING_IMPORT_MANAGER'));
     // Scripts
     JHtml::_('behavior.formvalidation');
     JHtml::_('bootstrap.tooltip');
     JHtml::_('Prism.ui.bootstrap2FileInput');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js');
 }
开发者ID:ITPrism,项目名称:CrowdfundingDistribution,代码行数:14,代码来源:view.html.php


示例5: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle(JText::_('COM_GAMIFICATION_TOOLS'));
     // Scripts
     JHtml::_('bootstrap.tooltip');
     JHtml::_('formbehavior.chosen', 'select');
     JHtml::_('Prism.ui.pnotify');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js');
 }
开发者ID:ITPrism,项目名称:GamificationDistribution,代码行数:14,代码来源:view.html.php


示例6: setDocument

 /**
  * Method to set up the document properties
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle($this->documentTitle);
     // Scripts
     JHtml::_('behavior.formvalidation');
     JHtml::_('behavior.tooltip');
     JHtml::_('formbehavior.chosen', 'select');
     $this->document->addScript(JURI::root() . 'media/' . $this->option . '/js/admin/' . Joomla\String\String::strtolower($this->getName()) . '.js');
 }
开发者ID:Eautentik,项目名称:CrowdFunding,代码行数:13,代码来源:view.html.php


示例7: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle(JText::_('COM_VIRTUALCURRENCY_IMPORT_MANAGER'));
     $this->legend = JText::_("COM_VIRTUALCURRENCY_IMPORT_REAL_CURRENCY_DATA");
     // Scripts
     JHtml::_('behavior.formvalidation');
     JHtml::_('bootstrap.tooltip');
     JHtml::_('itprism.ui.bootstrap_fileuploadstyle');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js');
 }
开发者ID:bellodox,项目名称:VirtualCurrency,代码行数:15,代码来源:view.html.php


示例8: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle($this->documentTitle);
     // Add behaviors
     JHtml::_('bootstrap.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('formbehavior.chosen', '#jform_country_id');
     JHtml::_('prism.ui.bootstrap2Typeahead');
     // Add scripts
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js');
 }
开发者ID:pashakiz,项目名称:crowdf,代码行数:16,代码来源:view.html.php


示例9: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle($this->documentTitle);
     // Add scripts
     JHtml::_('bootstrap.tooltip');
     JHtml::_('behavior.keepalive');
     JHtml::_('behavior.formvalidation');
     $d3Cdn = (bool) $this->params->get("d3_cdn", true);
     JHtml::_("prism.ui.d3", $d3Cdn);
     $js = "\n            cfProjectId = " . $this->item->id . ";\n        ";
     $this->document->addScriptDeclaration($js);
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js');
 }
开发者ID:bellodox,项目名称:CrowdfundingFinance,代码行数:18,代码来源:view.html.php


示例10: preparePageTitle

 private function preparePageTitle()
 {
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // If it is assigned to menu item, params will contains "page_title".
     // If it is not assigned, I will use the title of the item
     if ($this->params->get("page_title")) {
         $title = $this->params->get("page_title");
     } else {
         $seo = $this->params->get("seo_cat_to_title");
         switch ($seo) {
             case "1":
                 // Before page title
                 $title = $this->category->title . " | " . $this->item->title;
                 break;
             case "2":
                 // After page title
                 $title = $this->item->title . " | " . $this->category->title;
                 break;
             default:
                 // NONE
                 $title = $this->item->title;
                 break;
         }
     }
     // Add title before or after Site Name
     if (!$title) {
         $title = $app->get('sitename');
     } elseif ($app->get('sitename_pagetitles', 0) == 1) {
         $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title);
     } elseif ($app->get('sitename_pagetitles', 0) == 2) {
         $title = JText::sprintf('JPAGETITLE', $title, $app->get('sitename'));
     }
     $this->document->setTitle($title);
 }
开发者ID:johngrange,项目名称:wookeyholeweb,代码行数:35,代码来源:view.html.php


示例11: preparePageTitle

 private function preparePageTitle()
 {
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Prepare page title
     //        $title = $this->params->get('page_title', $this->item->title);
     $title = $this->item->title;
     switch ($this->screen) {
         case "updates":
             $title .= " | " . JText::_("COM_CROWDFUNDING_UPDATES");
             break;
         case "comments":
             $title .= " | " . JText::_("COM_CROWDFUNDING_COMMENTS");
             break;
         case "funders":
             $title .= " | " . JText::_("COM_CROWDFUNDING_FUNDERS");
             break;
     }
     // Add title before or after Site Name
     if (!$title) {
         $title = $app->get('sitename');
     } elseif ($app->get('sitename_pagetitles', 0) == 1) {
         $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title);
     } elseif ($app->get('sitename_pagetitles', 0) == 2) {
         $title = JText::sprintf('JPAGETITLE', $title, $app->get('sitename'));
     }
     $this->document->setTitle($title);
 }
开发者ID:phpsource,项目名称:CrowdFunding,代码行数:28,代码来源:view.html.php


示例12: addFavicon

 /**
  * addFavicon
  *
  * @return  void
  */
 protected static function addFavicon()
 {
     // Favicon
     if ('html' == static::$template->getType()) {
         static::$template->addFavicon(static::$template->baseurl . '/templates/' . static::$template->template . '/images/favicon.ico');
     }
 }
开发者ID:lyrasoft,项目名称:lyrasoft.github.io,代码行数:12,代码来源:Template.php


示例13: preparePageTitle

 private function preparePageTitle()
 {
     // Prepare page title
     $title = $this->item->title;
     switch ($this->screen) {
         case 'updates':
             $title .= ' | ' . JText::_('COM_CROWDFUNDING_UPDATES');
             break;
         case 'comments':
             $title .= ' | ' . JText::_('COM_CROWDFUNDING_COMMENTS');
             break;
         case 'funders':
             $title .= ' | ' . JText::_('COM_CROWDFUNDING_FUNDERS');
             break;
     }
     // Add title before or after Site Name
     if (!$title) {
         $title = $this->app->get('sitename');
     } elseif ((int) $this->app->get('sitename_pagetitles', 0) === 1) {
         $title = JText::sprintf('JPAGETITLE', $this->app->get('sitename'), $title);
     } elseif ((int) $this->app->get('sitename_pagetitles', 0) === 2) {
         $title = JText::sprintf('JPAGETITLE', $title, $this->app->get('sitename'));
     }
     $this->document->setTitle($title);
 }
开发者ID:ITPrism,项目名称:CrowdfundingDistribution,代码行数:25,代码来源:view.html.php


示例14: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle($this->documentTitle);
     $layout = $this->getLayout();
     // Scripts
     JHtml::_('bootstrap.tooltip');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js');
     switch ($layout) {
         case "files":
             // HTML Helpers
             JHtml::_('itprism.ui.pnotify');
             JHtml::_("itprism.ui.joomla_helper");
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_DELETE_FILE_QUESTION');
             break;
     }
 }
开发者ID:phpsource,项目名称:CrowdFunding,代码行数:22,代码来源:view.html.php


示例15: setDocument

 /**
  * Method to set up the document properties
  *
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle(JText::_('COM_IDENTITYPROOF_USERS_MANAGER'));
     // Scripts
     JHtml::_('behavior.multiselect');
     JHtml::_('bootstrap.tooltip');
     JHtml::_('formbehavior.chosen', 'select');
     JHtml::_('itprism.ui.joomla_list');
 }
开发者ID:xop32,项目名称:Proof-of-Identity,代码行数:14,代码来源:view.html.php


示例16: setDocument

 /**
  * Method to set up the document properties
  * @return void
  */
 protected function setDocument()
 {
     $this->document->setTitle(JText::_('COM_CROWDFUNDING_LOGS_MANAGER'));
     // Load language string in JavaScript
     JText::script('COM_CROWDFUNDING_DELETE_ALL_ITEMS');
     // Scripts
     JHtml::_('behavior.multiselect');
     JHtml::_('bootstrap.tooltip');
     JHtml::_('formbehavior.chosen', 'select');
     JHtml::_('prism.ui.joomlaList');
     $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js');
 }
开发者ID:bellodox,项目名称:CrowdFunding,代码行数:16,代码来源:view.html.php



注:本文中的JDocumentHtml类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP JDom类代码示例发布时间:2022-05-23
下一篇:
PHP JDocument类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap