cividownload.tpl.php 2.18 KB
Newer Older
1

Nic's avatar
Nic committed
2 3 4 5 6 7 8 9 10 11 12 13 14
  <?php $block = module_invoke('block', 'block_view', '63');
			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">
	  <?php foreach ($content['download_urls'] as $key => $values) { ?>
	  		<li><?php
15 16 17 18 19
        $url = $values['url'];
        if (arg(1) == 'list' && variable_get('cividownload_mode') == 2 ) {
          $url = "https://download.civicrm.org/civicrm-{$content['civicrm_version']}-" . $values['filename'] . "?src=donate";
        }
        ?>
Nic's avatar
Nic committed
20
        <a href="<?php echo $url;?>" target="_blank">Download CiviCRM <?php echo $content['civicrm_version']; ?> <?php echo $values['title']; ?></a></li>
21
    <?php } ?>
Nic's avatar
Nic committed
22
  </ul>
23 24
  </div>
</div>
Nic's avatar
Nic committed
25 26 27 28 29
    <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>
    <h2 class="thin border">Other options</h2>
    <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>
30
  <?php foreach ($content['download_urls'] as $key => $values) { ?>
Nic's avatar
Nic committed
31 32 33 34 35 36 37 38 39 40 41 42
	  		<li><?php
        $url = $values['url'];
        if (arg(1) == 'list' && variable_get('cividownload_mode') == 2 ) {
          $url = "https://download.civicrm.org/civicrm-{$content['civicrm_lts_version']}-" . $values['filename'] . "?src=donate";
        }
        ?>
        <a href="<?php echo $url;?>" target="_blank">Download CiviCRM <?php echo $content['civicrm_lts_version']; ?> <?php echo $values['title']; ?></a></li>
    <?php } ?>
    </ul>
  <?php $block = module_invoke('block', 'block_view', '64');
			print render($block['content']); ?>	
	<?php echo views_embed_view('partners_and_contributors', 'block_4'); ?>