Commit 5f0e5cb3 authored by Nic's avatar Nic Committed by Aegir user

remove backdrop from LTS listing with version 4.6/7 array

parent 7e1344b7
......@@ -51,31 +51,37 @@ function cividownload_download_list() {
'title' => t('for Drupal 7.x'),
'url' => "{$url}drupal",
'filename' => 'drupal.tar.gz',
'versions' => array('4.6','4.7'),
),
'drupal6' => array(
'title' => t('for Drupal 6.x'),
'url' => "{$url}drupal6",
'filename' => 'drupal6.tar.gz',
'versions' => array('4.6','4.7'),
),
'backdrop' => array(
'title' => t('for Backdrop 1.x'),
'url' => "{$url}backdrop",
'filename' => 'backdrop.tar.gz',
'versions' => array('4.7'),
),
'joomla' => array(
'title' => t('for Joomla 2.5.x / 3.x'),
'url' => "{$url}joomla",
'filename' => 'joomla.zip',
'versions' => array('4.6','4.7'),
),
'wordpress' => array(
'title' => t('for WordPress 3.x / 4.x'),
'url' => "{$url}wordpress",
'filename' => 'wordpress.zip',
'versions' => array('4.6','4.7'),
),
'l10n' => array(
'title' => t('localization files'),
'url' => "{$url}l10n",
'filename' => 'l10n.tar.gz',
'versions' => array('4.6','4.7'),
),
);
......
......@@ -10,7 +10,9 @@
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<?php foreach ($content['download_urls'] as $key => $values) { ?>
<?php foreach ($content['download_urls'] as $key => $values) {
if (!in_array('4.7', $values['versions'])) continue;
?>
<li><?php
$url = $values['url'];
if (arg(1) == 'list' && variable_get('cividownload_mode') == 2 ) {
......@@ -27,7 +29,9 @@
<h3 class="thick capital">Long term support</h3>
<p>The current Long Term Support (LTS) release CiviCRM is <?php echo $content['civicrm_lts_version']; ?>. Select a download based on the content management software (CMS) you are using.</p>
<ul>
<?php foreach ($content['download_urls'] as $key => $values) { ?>
<?php foreach ($content['download_urls'] as $key => $values) {
if (!in_array('4.6', $values['versions'])) continue;
?>
<li><?php
$url = $values['url'];
if (arg(1) == 'list' && variable_get('cividownload_mode') == 2 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment