This file contains 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
class EventsController < ApplicationController | |
before_filter :authenticate_user! | |
def index | |
end | |
def show | |
@event = Event.find_by_id(params[:id]) | |
end |
This file contains 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
// Add responsive background image code | |
function responsive_bg_styles($attachment_id, $selector) { | |
$srcset = wp_get_attachment_image_srcset($attachment_id); | |
$sets = explode(', ', $srcset); | |
if (is_array($sets)) { | |
$set_build = array(); | |
foreach ($sets as $set) { |
This file contains 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
var el = wp.element.createElement, | |
Fragment = wp.element.Fragment | |
registerBlockType = wp.blocks.registerBlockType, | |
RichText = wp.editor.RichText, | |
BlockControls = wp.editor.BlockControls, | |
AlignmentToolbar = wp.editor.AlignmentToolbar, | |
MediaUpload = wp.editor.MediaUpload, | |
InspectorControls = wp.components.InspectorControls, | |
PanelColor = wp.editor.PanelColor, |
This file contains 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
ar el = wp.element.createElement, | |
Fragment = wp.element.Fragment | |
registerBlockType = wp.blocks.registerBlockType, | |
RichText = wp.editor.RichText, | |
BlockControls = wp.editor.BlockControls, | |
AlignmentToolbar = wp.editor.AlignmentToolbar, | |
MediaUpload = wp.editor.MediaUpload, | |
InspectorControls = wp.components.InspectorControls, | |
PanelColor = wp.editor.PanelColor, |
This file contains 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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ] | |
2 info using npm@6.7.0 | |
3 info using node@v9.5.0 | |
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] | |
5 info lifecycle foundation-emails-template@1.0.0~prebuild: foundation-emails-template@1.0.0 | |
6 info lifecycle foundation-emails-template@1.0.0~build: foundation-emails-template@1.0.0 | |
7 verbose lifecycle foundation-emails-template@1.0.0~build: unsafe-perm in lifecycle true | |
8 verbose lifecycle foundation-emails-template@1.0.0~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/drew/Repo/thirdhome-emails/node_modules/.bin:/Users/drew/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
9 verbose lifecycle foundation-emails-template@1.0.0~build: CWD: /Users/drew/Repo/thirdhome-emails |