setting default donation level
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 20 Nov 2017 17:08:37 +0000 (12:08 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 20 Nov 2017 17:08:37 +0000 (12:08 -0500)
setting the title bar to use a default donation level

setup/donation-output.php

index 1096edd..757307a 100644 (file)
@@ -14,8 +14,14 @@ class Donation_Output{
         echo '<ul id="level-nav">';
             foreach($this->donation_levels as $level){
                 echo "<li id='" . $level["id"] . "'>" . $level['title'] . '<br>' . '<span class="level-amount">'.$level['value'] . "</li>";
+            
+                if((strpos($level['title'], strtoupper('enthusiast')) !== false)){
+                    $initial = $level['title'];
+                    $value   = $level['value'];
+                }
             }
-            echo '<div id="level-title"><span>'.$level['title'] .' - ' . $level['value'].'</span></div>';
+
+            echo '<div id="level-title"><span>'.$initial .' - ' . $value.'</span></div>';
             echo '<div id="level-link-container"><a class="level-link" href="">Contribute Now</a></div>';
         echo '</ul>';