A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| <?php | |
| /** | |
| * Get a list of post types that support a specific feature. | |
| * | |
| * @param $feature | |
| * @return array | |
| */ | |
| function get_post_types_supporting( $feature ) { | |
| global $_wp_post_type_features; |
| .gform_wrapper ul { | |
| @extend .list-unstyled; | |
| } | |
| .gform_wrapper li { | |
| @extend .form-group; | |
| } | |
| .gform_wrapper form { | |
| margin-bottom: 0; | |
| } | |
| .gform_wrapper .gfield_required { |
| .gform_wrapper ul { | |
| padding-left: 0; | |
| list-style: none; } | |
| .gform_wrapper li { | |
| margin-bottom: 15px; } | |
| .gform_wrapper form { | |
| margin-bottom: 0; } |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| <?php | |
| /** | |
| * Full Content in Display Posts Shortcode plugin | |
| * @author Bill Erickson | |
| * @link http://wordpress.org/extend/plugins/display-posts-shortcode/ | |
| * | |
| * @param string $output the original markup for an individual post | |
| * @param array $atts all the attributes passed to the shortcode | |
| * @param string $image the image part of the output | |
| * @param string $title the title part of the output |
| Vagrant::Config.run do |config| | |
| config.vm.customize do |vm| | |
| vm.name = "PHP dev" | |
| vm.memory_size = 512 | |
| end | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "ubuntu32" | |
| # Assign this VM to a host only network IP, allowing you to access it |
| // FitText Mixin | |
| // Based on https://github.com/bookcasey/fittext by @bookcasey | |
| @mixin fittext( $min-font-size: 20px, $max-font-size: 80px, $font-increment: 2px, $min-media: 320px, $max-media: auto, $media-increment: auto, $ratio: 1 ) { | |
| $font-size: $min-font-size; | |
| $media: $min-media; | |
| // If no max width or increment, set a max of 1200px | |
| @if ( $max-media == 'auto' and $media-increment == 'auto' ) { | |
| $max-media: 1200px; | |
| } |
| <?php | |
| /* | |
| Plugin Name: Disable plugins when doing local dev | |
| Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
| Version: 0.1 | |
| License: GPL version 2 or any later version | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ |