This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Instant Gallery Plugin | |
| * Description: A plugin for displaying post images in gallery | |
| * Author: Josh Nelson | |
| * Version: 0.1.0 | |
| */ | |
| function instant_gallery() { | |
| global $post; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Instant Gallery Plugin | |
| * Description: A plugin for displaying post images in gallery | |
| * Author: Josh Nelson | |
| * Version: 0.1.0 | |
| */ | |
| function instant_gallery() { | |
| global $post; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Enable GZIP | |
| <ifmodule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
| BrowserMatch ^Mozilla/4 gzip-only-text/html | |
| BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
| BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
| </ifmodule> | |
| # Expires Headers - 2678400s = 31 days | |
| <ifmodule mod_expires.c> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $furniture_galleries = get_field('furniture_galleries'); | |
| if( $furniture_galleries ) { | |
| $html .= '<ul class="group stations">'; | |
| while(the_repeater_field('furniture_galleries')) { | |
| $fgproduct = get_sub_field('fg_product'); | |
| $fgID = $fgproduct->ID; | |
| $fgimage = get_the_post_thumbnail($fgID, 'thumbnail'); | |
| $title = get_the_title($fgID); | |
| $firstbullet = get_sub_field('first_bullet'); | |
| $secondbullet = get_sub_field('second_bullet'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| ( function ($) { | |
| $('.window-list.thumbs').on('click','img', function(){ // When someone clicks on a thumbnail | |
| var $this = $(this); | |
| $('#main-image').fadeOut("1000",function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This goes in the htaccess file */ | |
| # MAINTENANCE-PAGE REDIRECT | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 | |
| RewriteCond %{REQUEST_URI} !/503.php$ [NC] | |
| RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] | |
| RewriteRule .* /503.php [R=302,L] | |
| </IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (grunt) { | |
| // Project configuration | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| concat: { | |
| options: { | |
| separator: ';' | |
| }, | |
| dist: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "my-next-project", | |
| "author": "josh", | |
| "version": "0.1.0", | |
| "devDependencies": { | |
| "grunt": "~0.4.1", | |
| "grunt-contrib-jshint": "~0.1.1", | |
| "grunt-contrib-nodeunit": "~0.1.2", | |
| "grunt-contrib-uglify": "~0.2.0", | |
| "grunt-contrib-concat": "~0.3.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First, require any additional compass plugins installed on your system. | |
| require 'zurb-foundation' | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "sass" | |
| images_dir = "images" | |
| javascripts_dir = "js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Enqueue scripts and styles | |
| */ | |
| function steelsentry_theme_scripts() { | |
| wp_enqueue_style( 'steelsentry-theme-style', get_stylesheet_uri() ); | |
| wp_enqueue_style( 'app.min', get_template_directory_uri() . '/css/app.min.css' ); | |
| wp_enqueue_script( 'steelsentry-theme-js', get_template_directory_uri() . '/js/steelsentry-theme.min.js', array('jquery'), false, true ); |