Skip to content

Commit

Permalink
simplify the find out more block
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjn committed Sep 19, 2024
1 parent b4e0b2e commit d33ee76
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions php/blocks/sidebar/find-out-more-vvv.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
<div class="box">
<h3>Find out more about VVV</h3>
<?php
if ( file_exists( '/vagrant/version' ) ) {
// note that at this time we cannot check for updates to be 100% sure,
// that requires a network connection which isn't always present
?>
<p>You're running VVV <code>v<?php echo trim( strip_tags( file_get_contents( '/vagrant/version' ) ) ); ?></code>, <strong>if</strong> there are updates available you can run <code>git pull</code> and <code>vagrant up --provision</code> to apply them.</p>
<?php
}
$distro_version = exec( 'lsb_release -ds' );
?>
<p>This VVV instance is inside a <?php echo $distro_version; ?> virtual machine.</p>
<p>This VVV instance is inside a <?php echo htmlspecialchars( $distro_version ); ?> virtual machine.</p>
<a class="button" href="https://github.com/varying-vagrant-vagrants/vvv/" target="_blank">View the code on GitHub</a>
</div>

0 comments on commit d33ee76

Please sign in to comment.