To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion
| <?php | |
| // Prefixing is recommended if you are not using a namespace. | |
| // namespace TimJensen\GenesisStarter\Setup; | |
| /** | |
| * Adds hooks immediately before and after Genesis structural wraps. | |
| * | |
| * @version 1.1.0 | |
| * | |
| * @return void |
| /********************************** | |
| * | |
| * Replace Header Site Title with Inline Logo | |
| * Fix Genesis bug - when using static front page and blog page (admin reading settings) Home page is <p> tag and Blog page is <h1> tag | |
| * Replace "is_home" with "is_front_page" to correctly display Home page wit <h1> tag and Blog page with <p> tag | |
| * | |
| * @author AlphaBlossom / Tony Eppright | |
| * @link http://www.alphablossom.com | |
| * | |
| ************************************/ |
| <?php | |
| /** | |
| * Dont Update the Theme | |
| * | |
| * If there is a theme in the repo with the same name, this prevents WP from prompting an update. | |
| * | |
| * @since 1.0.0 | |
| * @param array $r Existing request arguments | |
| * @param string $url Request URL | |
| * @return array Amended request arguments |
| <section class="mpu mpu-3 <?php if ($mpu_3_box_css):echo $mpu_3_box_css; endif;?>"> | |
| <div class="container"> | |
| <div class="row <?php if (!empty($mpu_3_collapse)): echo 'no-gutters'; endif; ?>"> | |
| <?php if($mpu_3_title): echo '<h3 class="mpu-title">' . $mpu_3_title . '</h3>'; endif; ?> | |
| <div class="col-md-4 mpu-flex box1"> | |
| <div class="mpu-item-wrap"> | |
| <?php if ($mpu_3_box_1_title):echo '<h3>' . $mpu_3_box_1_title . '</h3>'; endif;?> | |
| <div class="mpu-item-content-wrap"> | |
| <?php $image_att = wp_get_attachment_image_src( $mpu_3_box_1_image, $mpu_3_size ); ?> | |
| <?php if ($mpu_3_box_1_image): echo '<div style="background-image: url( '. $image_att[0] . ')" class="mpu-header-image"></div>'; endif; ?> |
| // Require our dependencies | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var browserSync = require('browser-sync').create(); | |
| gulp.task('styles', function(){ | |
| return gulp.src('sass/style.scss') | |
| .pipe(sass({ | |
| outputStyle: 'expanded', // Options: nested, expanded, compact, compressed | |
| indentType: 'tab', |
| <?php | |
| class Gravity_Forms_Customizations { | |
| public static function init() { | |
| add_action( 'gform_after_save_form', array( __CLASS__, 'enable_honeypot_on_new_form_creation' ), 10, 2 ); | |
| } | |
| public static function enable_honeypot_on_new_form_creation( $form, $is_new ) { | |
| if ( $is_new ) { | |
| $form['enableHoneypot'] = true; |
| var gulp = require('gulp'); | |
| var browserify = require('gulp-browserify'); | |
| var concat = require('gulp-concat'); | |
| var less = require('gulp-less'); | |
| var refresh = require('gulp-livereload'); | |
| var lr = require('tiny-lr'); | |
| var server = lr(); | |
| var minifyCSS = require('gulp-minify-css'); | |
| var embedlr = require('gulp-embedlr'); |
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
| .tabs{ | |
| margin: {top:40px;} | |
| &:last-child{ | |
| margin: {bottom:80px;} | |
| } | |
| h2{ | |
| color: $color-1; | |
| font: { | |
| size: emCalc(36px); | |
| } |