本文整理汇总了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>";
}
示例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++) {