当前位置: 首页>>代码示例>>PHP>>正文


PHP JEVHelper::loadOverlib方法代码示例

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


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

示例1: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     // Must load admin language files
     $lang = JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $help = $node->attributes('help');
     // RSH 10/5/10 Added this for J!1.6 - $help is now an JXMLElement
     if (!is_null($help) && version_compare(JVERSION, '1.6.0', ">=")) {
         if (is_object($help)) {
             $help = $help->data();
         }
         $help = isset($help) && strlen($help) <= 0 ? null : $help;
     }
     if (!is_null($help)) {
         $parts = explode(",", $value);
         $helps = explode(",", $help);
         foreach ($parts as $key => $valuepart) {
             $help = $helps[$key];
             list($helpfile, $varname, $part) = explode("::", $help);
             JEVHelper::loadOverlib();
             $lang = JFactory::getLanguage();
             $langtag = $lang->getTag();
             if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/help/' . $langtag . '/' . $helpfile)) {
                 $jeventHelpPopup = JPATH_COMPONENT_ADMINISTRATOR . '/help/' . $langtag . '/' . $helpfile;
             } else {
                 $jeventHelpPopup = JPATH_COMPONENT_ADMINISTRATOR . '/help/en-GB/' . $helpfile;
             }
             include $jeventHelpPopup;
             $help = $this->help(${$varname}, $part);
             $parts[$key] = JText::_($valuepart) . $help;
         }
         $value = implode(", ", $parts);
     }
     return "<strong style='color:#993300'>" . JText::_($value) . "</strong>";
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:35,代码来源:jevinfo.php

示例2: defined

<?php

defined('_JEXEC') or die('Restricted access');
$cfg =& JEVConfig::getInstance();
if ($cfg->get("tooltiptype", 'overlib') == 'overlib') {
    JEVHelper::loadOverlib();
}
$view = $this->getViewName();
echo $this->loadTemplate('cell');
$eventCellClass = "EventCalendarCell_" . $view;
echo "<div id='cal_title'>" . $this->data['fieldsetText'] . "</div>\n";
?>
        <table width="100%" align="center" border="0" cellspacing="1" cellpadding="0" class="cal_table">
            <tr valign="top">
            	<td width='2%' class="cal_td_daysnames"/>
                <?php 
foreach ($this->data["daynames"] as $dayname) {
    ?>
                    <td width="14%" align="center" class="cal_td_daysnames">
                        <?php 
    echo $dayname;
    ?>
                    </td>
                    <?php 
}
?>
            </tr>
            <?php 
$datacount = count($this->data["dates"]);
$dn = 0;
for ($w = 0; $w < 6 && $dn < $datacount; $w++) {
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:31,代码来源:calendar_body.php


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