cividownload.tpl.php 1.82 KB
Newer Older
Nic's avatar
Nic committed
1 2
<!-- Download intro block -->
<?php $block = module_invoke('block', 'block_view', '63');
Nic's avatar
Nic committed
3 4 5 6 7 8 9 10 11 12
			print render($block['content']); ?>

<!-- Download button -->
<div>
<div class="btn-group">
  <button type="button" class="btn btn-primary btn-lg" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Download CiviCRM <?php echo $content['civicrm_version']; ?>&nbsp;&nbsp;
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu">
13 14 15
	  <?php foreach ($content['download_urls'] as $key => $values) {
		  	if (!in_array('4.7', $values['versions'])) continue; 
		  	?>
Nic's avatar
Nic committed
16
	  		<li><?php
17 18
        $url = $values['url'];
        if (arg(1) == 'list' && variable_get('cividownload_mode') == 2 ) {
Nic's avatar
Nic committed
19
          $url = "https://download.civicrm.org/civicrm-{$content['civicrm_version']}-" . $values['filename'];
20 21
        }
        ?>
Nic's avatar
Nic committed
22
        <a href="<?php echo $url;?>" target="_blank">Download CiviCRM <?php echo $content['civicrm_version']; ?> <?php echo $values['title']; ?></a></li>
23
    <?php } ?>
Nic's avatar
Nic committed
24
  </ul>
25 26
  </div>
</div>
Nic's avatar
Nic committed
27
    <p>CiviCRM <?php echo $content['civicrm_version']; ?> is the latest version, containing the latest features and improvements. <a href="https://civicrm.org/blog/tags/release">View recent release announcements for details</a>.</p>
28

Nic's avatar
Nic committed
29
    <h2 class="thin border">Other options</h2>
30 31 32 33 34 35 36

<!-- Download footer block -->
<?php
  $block = module_invoke('block', 'block_view', '64');
  print render($block['content']);
?>

37 38
    <h3 class="thick capital">Extended Security Releases</h3>
    <p>Need security support for a previous version of CiviCRM? <a href="https://civicrm.org/blog/josh/civicrm-version-57-candidate-for-extended-security-release">Read more about Extended Security Releases</a>.</p>
39

Nic's avatar
Nic committed
40
<!-- Partner view -->
Nic's avatar
Nic committed
41
<?php echo views_embed_view('partners_and_contributors', 'block_4'); ?>