Skip to content
Snippets Groups Projects
Commit d06a4207 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V0.2: Initial version, including text version list display

parent 24efd549
No related branches found
No related tags found
No related merge requests found
<html>
<body bgcolor="#FFFFFF">
</body>
</html>
\ No newline at end of file
<html>
<body bgcolor="#FFFFFF">
</body>
</html>
\ No newline at end of file
versioncompat/images/VirtueMart/vm1.0.png

877 B

versioncompat/images/VirtueMart/vm1.1.png

797 B

versioncompat/images/VirtueMart/vm2.0.png

924 B

versioncompat/images/VirtueMart/vm3.0.png

836 B

<html>
<body bgcolor="#FFFFFF">
</body>
</html>
\ No newline at end of file
<?php
<?php
/*------------------------------------------------------------------------
# joocompatibility - Custom field for Virtuemart
# versioncompat - Custom field for Virtuemart
# ------------------------------------------------------------------------
# author Jeremy Magne
# author Reinhold Kainhofer, Jeremy Magne
# copyright Copyright (C) 2014 OpenTools.net. All Rights Reserved.
# copyright Copyright (C) 2010 Daycounts.com. All Rights Reserved.
# Websites: http://www.daycounts.com
# Technical Support: http://www.daycounts.com/en/contact/
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
-------------------------------------------------------------------------*/
defined('_JEXEC') or die();
defined('_JEXEC') or die();
// Here the plugin values
//JHTML::_('behavior.tooltip');
$path = $viewData[0];
$compatibility = $viewData[1];
$versions = $viewData[2];
$cssclass = 'versioncompat-'.strtolower(basename($path));
static $versioncompat_css_included;
if (!$versioncompat_css_included) {
$css =
"ul.versioncompat {
list-style: none;
margin-left: 0;
}
.versioncompat li {
float: left;
margin-left: 0;
margin-right: 0px;
}
.versioncompat-versions {
margin-left: 5px;
}
";
$document = JFactory::getDocument();
$document->addStyleDeclaration($css);
$versioncompat_css_included = true;
}
// style="list-style:none; margin-left:0;"
// style="float:left; margin-left:0; margin-right:10px;"
if (count($compatibility)>0) {
?>
<ul class="joocompatibility" style="list-style:none; margin-left:0;">
<ul class="versioncompat <?php echo $cssclass; ?>">
<?php
foreach ($this->params->selectedOptions as $compat) {
echo '<li style="float:left; margin-left:0; margin-right:10px;">'.JHTML::image(JURI::root() . $this->params->path.$compat, JText::_(basename($compat,'.png'))).'</li>';
foreach ($compatibility as $compat) {
echo '<li>'.JHTML::image(JURI::root() . $path . DS . $compat, JText::_(basename($compat,'.png'))).'</li>';
}
?>
</ul>
</ul>
<?php
}
if (count($versions)>0) {
echo "<span class=\"versioncompat-versions\">".join(", ", $versions)."</span>";
}
<?php
/*------------------------------------------------------------------------
# joocompatibility - Custom field for Virtuemart
# ------------------------------------------------------------------------
# author Jeremy Magne
# copyright Copyright (C) 2010 Daycounts.com. All Rights Reserved.
# Websites: http://www.daycounts.com
# Technical Support: http://www.daycounts.com/en/contact/
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
-------------------------------------------------------------------------*/
defined('_JEXEC') or die();
// Here the plugin values
?>
<?php
echo $this->params->custom_title.'&nbsp;:&nbsp;';
foreach ($this->params->images as $image) {
if (in_array($image,$this->params->searched)) {
$checked = 'checked="checked"';
} else {
$checked = '';
}
?>
<label><input type="checkbox" value="<?php echo $image ?>" name="joocompatibility[]" <?php echo $checked; ?>><?php echo JHTML::image(JURI::root() . $this->params->path.$image, basename($image,'.png')); ?></label>
<?php
}
?>
<br />
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment