Server: Nginx with Phusion Passenger
Ruby Version: 2.1.3
User System: deploy
| user www-data; | |
| worker_processes auto; | |
| worker_rlimit_nofile 100000; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 10240; | |
| # multi_accept on; | |
| } |
| add_filter( 'genesis_nav_items', 'be_follow_icons', 10, 2 ); | |
| add_filter( 'wp_nav_menu_items', 'be_follow_icons', 10, 2 ); | |
| /** | |
| * Follow Icons in Menu | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/genesis-wordpress-nav-menu-content/ | |
| * | |
| * @param string $menu | |
| * @param array $args | |
| * @return string |
| add_filter( 'woocommerce_loop_add_to_cart_link', 'mw_change_add_to_cart_loop' ); | |
| function mw_change_add_to_cart_loop( $product ) { | |
| global $product; // this may not be necessary as it should have pulled the object in already | |
| return '<a class="button" href="' . esc_url( $product->get_permalink( $product->id ) ) . '">DETALHES</a>'; | |
| } |
| <?php | |
| $args = array( | |
| 'post_type' => 'product', | |
| 'meta_key' => '_featured', | |
| 'meta_value' => 'yes', | |
| 'posts_per_page' => 6 | |
| ); | |
| $featured_query = new WP_Query( $args ); | |
| if ($featured_query->have_posts()) : | |
| ?> |
| // Set the element to select; the only moving part here | |
| // Like literally... | |
| var elem = document.querySelector("elem") | |
| , html = document.querySelector("html"); | |
| // Apply positioning, just in case it wasn't already | |
| elem.style.position = "absolute"; | |
| // Take the viewport height/width into consideration | |
| // @TODO: should be updated on window resize |
| 'use strict'; | |
| // # Globbing | |
| // for performance reasons we're only matching one level down: | |
| // 'test/spec/{,*/}*.js' | |
| // use this if you want to recursively match all subfolders: | |
| // 'test/spec/**/*.js' | |
| module.exports = function(grunt) { | |
| // load all grunt tasks | |
| require('load-grunt-tasks')(grunt); |
| diff --git a/Gruntfile.js b/Gruntfile.js | |
| index 53fe849..80ce14a 100644 | |
| --- a/Gruntfile.js | |
| +++ b/Gruntfile.js | |
| @@ -56,6 +56,16 @@ module.exports = function (grunt) { | |
| max_jshint_notifications: 5 | |
| } | |
| }, | |
| + uncss: { | |
| + gettingStarted: { |
| # Change Java Runtime: | |
| sudo update-alternatives --config java | |
| # Delete Open-JDK | |
| sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\* | |
| # Change fonts - remove hinting: | |
| http://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font | |
| # Change RubyMine AntiAliasing first: |