本文整理汇总了PHP中VmConfig::isJ15方法的典型用法代码示例。如果您正苦于以下问题:PHP VmConfig::isJ15方法的具体用法?PHP VmConfig::isJ15怎么用?PHP VmConfig::isJ15使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmConfig
的用法示例。
在下文中一共展示了VmConfig::isJ15方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if (version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '2.5.0', 'ge')) {
echo 'password';
} else {
echo 'passwd';
}
?>
" class="inputbox" size="20" onkeypress="return Onepage.submitenter(this,event)" autocomplete="off" />
</div>
<br />
<br />
<?php
if (JPluginHelper::isEnabled('system', 'remember')) {
?>
<br />
<div class="formLabel"> <label for="remember_login"><?php
echo $remember_me = VmConfig::isJ15() ? OPCLang::_('Remember me') : OPCLang::_('JGLOBAL_REMEMBER_ME');
?>
</label></div>
<div class="formField">
<input type="checkbox" name="remember" id="remember_login" value="yes" checked="checked" />
</div>
<?php
} else {
?>
<input type="hidden" name="remember" value="yes" />
<?php
}
?>
<div class="formField" style="width: 60%; padding-left: 20%;">
<span style="float: left; padding-right: 5%; padding-top: 5px;">
(<a title="<?php
示例2: PrintIcon
/**
* @author RolandD, Christopher Roussel
*
* @deprecated
*/
function PrintIcon($link = '', $use_icon = true, $add_text = '')
{
if (VmConfig::get('show_printicon', 1) == '1') {
$folder = VmConfig::isJ15() ? '/images/M_images/' : '/media/system/images/';
// checks template image directory for image, if non found default are loaded
if ($use_icon) {
$filter = JFilterInput::getInstance();
$text = JHtml::_('image.site', 'printButton.png', $folder, null, null, JText::_('COM_VIRTUEMART_PRINT'));
$text .= $filter->clean($add_text);
} else {
$text = '| ' . JText::_('COM_VIRTUEMART_PRINT') . ' |';
}
$isPopup = JRequest::getVar('pop');
if ($isPopup) {
// Print Preview button - used when viewing page
$html = '<span class="vmNoPrint">
<a href="javascript:void(0)" onclick="javascript:window.print(); return false;" title="' . JText::_('COM_VIRTUEMART_PRINT') . '">
' . $text . '
</a></span>';
return $html;
} else {
// Print Button - used in pop-up window
return self::vmPopupLink($link, $text, 640, 480, '_blank', JText::_('COM_VIRTUEMART_PRINT'));
}
}
}
示例3: getJoomlaPluginId
/**
* Gets the id of the joomla table where the plugin is registered
* @author Max Milbers
*/
protected final function getJoomlaPluginId()
{
if (!empty($this->_jid)) {
return $this->_jid;
}
$db = JFactory::getDBO();
if (VmConfig::isJ15()) {
$q = 'SELECT j.`id` AS c FROM #__plugins AS j
WHERE j.element = "' . $this->_name . '" AND j.folder = "' . $this->_type . '"';
} else {
$q = 'SELECT j.`extension_id` AS c FROM #__extensions AS j
WHERE j.element = "' . $this->_name . '" AND j.`folder` = "' . $this->_type . '"';
}
$x = vmPlugin::getCache('getJoomlaPluginId', $q);
if (!empty($x)) {
return $x;
}
$db->setQuery($q);
$this->_jid = $db->loadResult();
if (!$this->_jid) {
vmError('getJoomlaPluginId ' . $db->getErrorMsg());
$res = false;
return vmPlugin::setCache($res, 'getJoomlaPluginId', $q);
return false;
} else {
return vmPlugin::setCache($this->_jid, 'getJoomlaPluginId', $q);
return $this->_jid;
}
}
示例4: submitenter
<input type="password" id="passwd_login" name="<?php
if (version_compare(JVERSION, '1.7.0', 'ge') || version_compare(JVERSION, '2.5.0', 'ge')) {
echo 'password';
} else {
echo 'passwd';
}
?>
" class="inputbox" size="20" onkeypress="return submitenter(this,event)" autocomplete="off" />
</div>
<?php
if (JPluginHelper::isEnabled('system', 'remember')) {
?>
<div class="formLabel"> <label for="remember_login"><?php
echo $remember_me = VmConfig::isJ15() ? JText::_('Remember me') : JText::_('JGLOBAL_REMEMBER_ME');
?>
</label></div>
<div class="formField">
<input type="checkbox" name="remember" id="remember_login" value="yes" checked="checked" />
</div>
<?php
} else {
?>
<input type="hidden" name="remember" value="yes" />
<?php
}
?>
<div style="width: 100%; margin-left: 0; margin-right:0; padding-left:0; padding-right:0; clear: both;" >
<div style="text-align: center; margin-right: auto; margin-left: auto;">
<input type="button" name="LoginSubmit" class="buttonopc" value="<?php