Skip to content

Commit 85fca08

Browse files
author
David Hurley
committed
Merge pull request joomla#1 from joomla-extensions/commercialToFr
Update checks for free/paid extensions
2 parents 5f675d7 + f7cde3d commit 85fca08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

layouts/joomla/apps/extensions_full.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@
126126
<button class="install btn btn-success" id="appssubmitbutton" onclick="return Joomla.installfromwebexternal('<?php echo $extension_data->downloadurl; ?>');" type="submit"><span class="icon-cart"></span> <?php echo JText::_('COM_APPS_INSTALL_PURCHASE') . "&hellip;"; ?></button>
127127
<?php endif; ?>&nbsp;&nbsp;&nbsp;
128128
<?php elseif ($extension_data->fields->get('29')) : ?>
129-
<?php if ((is_numeric($extension_data->type) && $extension_data->type == 0) || $extension_data->type == 1 || (strtolower($extension_data->fields->get('50')) == "non-commercial" && strtolower($extension_data->fields->get('38')) != "require registration to download")): ?>
129+
<?php if ((is_numeric($extension_data->type) && $extension_data->type == 0) || $extension_data->type == 1 || (strtolower($extension_data->fields->get('50')) == "free" && strtolower($extension_data->fields->get('38')) != "require registration to download")): ?>
130130
<a target="_blank" class="transcode install btn btn-success" href="<?php echo $extension_data->fields->get('29'); ?>"><span class="icon-download"></span> <?php echo JText::_('COM_APPS_INSTALL_DOWNLOAD_EXTERNAL') . "&hellip;"; ?></a>
131-
<?php elseif ($extension_data->type == 2 || (strtolower($extension_data->fields->get('50')) == "non-commercial" && strtolower($extension_data->fields->get('38')) == "require registration to download")): ?>
131+
<?php elseif ($extension_data->type == 2 || (strtolower($extension_data->fields->get('50')) == "free" && strtolower($extension_data->fields->get('38')) == "require registration to download")): ?>
132132
<a target="_blank" class="install btn btn-success" href="<?php echo $extension_data->fields->get('29'); ?>"><span class="icon-pencil"></span> <?php echo JText::_('COM_APPS_INSTALL_REGISTER_DOWNLOAD_EXTERNAL') . "&hellip;"; ?></a>
133-
<?php elseif ($extension_data->type == 3 || (strtolower($extension_data->fields->get('50')) != "non-commercial")): ?>
133+
<?php elseif ($extension_data->type == 3 || (strtolower($extension_data->fields->get('50')) != "free")): ?>
134134
<a target="_blank" class="install btn btn-success" href="<?php echo $extension_data->fields->get('29'); ?>"><span class="icon-cart"></span> <?php echo JText::_('COM_APPS_INSTALL_PURCHASE_EXTERNAL') . "&hellip;"; ?></a>
135135
<?php endif; ?>&nbsp;&nbsp;&nbsp;
136136
<?php endif; ?>

0 commit comments

Comments
 (0)