First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| $my-icons-spacing: 10px; // give some space to avoid little pixel size issues on resize | |
| @import "my-icons/*.png"; | |
| $my-icons-sprite-dimensions: true; | |
| @include all-my-icons-sprites; | |
| // the fun part |
##Create an alias to MAMP's PHP installation
To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.
Within the terminal, run:
nano ~/.bash_profile
This will open nano with the contents, at the top in a blank line add the following line:
| mymodule { | |
| @at-root { | |
| .#{&}-header { ... } | |
| .#{&}-footer { ... } | |
| .#{&}-body { | |
| a { ... } | |
| span { ... } | |
| p { ... } | |
| } | |
| } |
| @mixin resize-sprite($map, $sprite, $percent) { | |
| $spritePath: sprite-path($map); | |
| $spriteWidth: image-width($spritePath); | |
| $spriteHeight: image-height($spritePath); | |
| $width: image-width(sprite-file($map, $sprite)); | |
| $height: image-height(sprite-file($map, $sprite)); | |
| @include background-size(ceil($spriteWidth * ($percent/100)) ceil($spriteHeight * ($percent/100))); | |
| width: ceil($width*($percent/100)); | |
| height: ceil($height*($percent/100)); |
| // http://compass-style.org/reference/compass/helpers/sprites/ | |
| @mixin get-sprite($map, $sprite, $repeat: no-repeat, $height: true, $width: true) | |
| //http://compass-style.org/reference/compass/helpers/sprites/#sprite-file | |
| $sprite-image: sprite-file($map, $sprite) | |
| // http://compass-style.org/reference/compass/helpers/sprites/#sprite-url | |
| $sprite-map: sprite-url($map) | |
| // http://compass-style.org/reference/compass/helpers/sprites/#sprite-position |
| .shadow-stuff { | |
| -moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| -webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; | |
| -moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| -webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| box-shadow: rgba(0,0,0,.30) 0 2px 3px; | |
| } | |
| .container { |
| <?php | |
| include($config->paths->root . "site/.libs/countries/countryList.class.php"); | |
| $ct = new CountryList(); | |
| $countries = $ct->getCountryList($lang); | |
| $show_form = true; | |
| $note = '<h3>Danke!</h3>'; | |
| $errors = ''; |
| UseCanonicalName Off | |
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| ServerAlias *.example.com | |
| VirtualDocumentRoot /var/www/%1/public | |
| DirectoryIndex index.php index.htm index.html | |
| <Directory /var/www/*/public/> | |
| AllowOverride All | |
| </Directory> |