This repository has been archived by the owner on May 6, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 10ac327
Showing
647 changed files
with
151,017 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
*.cache | ||
.ftppass | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.DS_Store | ||
*.log | ||
*.zip | ||
*.map | ||
*.pot | ||
*.css | ||
*.min.css | ||
*.min.js | ||
_demo/ | ||
_dist/ | ||
node_modules | ||
changelog.txt | ||
inc/admin/gulp/sftp.json | ||
environment.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* The template for displaying the 404 error page | ||
* This page is set automatically, not through the use of a template | ||
* | ||
* @package Emma | ||
* @link https://themebeans.com/themes/emma | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div class="entry-content"> | ||
|
||
<div class="error-logo"> | ||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_html( bloginfo( 'name' ) ); ?>" rel="home"> | ||
<?php if ( get_theme_mod( '404-img-upload' ) ) { ?> | ||
<img src="<?php echo esc_url( get_theme_mod( '404-img-upload' ) ); ?>"/> | ||
<?php } else { ?> | ||
<img src="<?php echo esc_url( get_theme_file_uri( '/assets/images/404.png' ) ); ?>"> | ||
<?php } ?> | ||
</a> | ||
</div> | ||
|
||
<p> | ||
<?php esc_html_e( 'We could not find the page you were looking for.', 'emma' ); ?></br> | ||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Click here to go to the homepage', 'emma' ); ?></a> | ||
</p> | ||
|
||
</div> | ||
|
||
<?php | ||
get_footer(); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Scripts within the customizer controls window. | ||
* | ||
* Contextually shows the color hue control and informs the preview | ||
* when users open or close the front page sections section. | ||
*/ | ||
|
||
(function() { | ||
wp.customize.bind( 'ready', function() { | ||
|
||
// Only show the color hue control when there's a custom color scheme. | ||
wp.customize( 'colorscheme', function( setting ) { | ||
wp.customize.control( 'colorscheme_hue', function( control ) { | ||
var visibility = function() { | ||
if ( 'custom' === setting.get() ) { | ||
control.container.slideDown( 180 ); | ||
} else { | ||
control.container.slideUp( 180 ); | ||
} | ||
}; | ||
|
||
visibility(); | ||
setting.bind( visibility ); | ||
}); | ||
}); | ||
|
||
// Detect when the front page sections section is expanded (or closed) so we can adjust the preview accordingly. | ||
wp.customize.section( 'emma_home' ).expanded.bind( function( isExpanding ) { | ||
|
||
// Value of isExpanding will = true if you're entering the section, false if you're leaving it. | ||
wp.customize.previewer.send( 'section-highlight', { expanded: isExpanding }); | ||
}); | ||
}); | ||
})( jQuery ); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/** | ||
* This file adds some LIVE to the Theme Customizer live preview. To leverage | ||
* this, set your custom settings to 'postMessage' and then add your handling | ||
* here. This javascript will grab settings from customizer controls, and | ||
* then make any necessary changes to the page using jQuery. | ||
*/ | ||
|
||
( function( $ ) { | ||
|
||
wp.customize( 'blogname', function( value ) { | ||
value.bind( function( newval ) { | ||
$( '.site-title a' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'custom_logo_max_width', function( value ) { | ||
value.bind( function( newval ) { | ||
$( 'body .custom-logo-link img.custom-logo' ).css( 'width', newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'blogdescription', function( value ) { | ||
value.bind( function( newval ) { | ||
$( '.site-description' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'footer_copyright', function( value ) { | ||
value.bind( function( newval ) { | ||
$( 'footer p' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'home_title', function( value ) { | ||
value.bind( function( newval ) { | ||
$( '.emma-front-page .hero h1.entry-title' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'home_subtitle', function( value ) { | ||
value.bind( function( newval ) { | ||
$( '.emma-front-page .hero h3.entry-subtitle' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'home_date', function( value ) { | ||
value.bind( function( newval ) { | ||
$( '.emma-front-page .hero h4.entry-date' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
wp.customize( 'contact_button_text', function( value ) { | ||
value.bind( function( newval ) { | ||
$( '.bean-contactform li.submit .button' ).html( newval ); | ||
} ); | ||
} ); | ||
|
||
} )( jQuery ); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
jQuery( document ).ready( function($) { | ||
|
||
//COLORPICKER | ||
$('.colorpicker').each(function(){ | ||
$(this).wpColorPicker(); | ||
}); | ||
|
||
//POST FORMAT METABOX SWITCH | ||
var $linkSettings = $('#bean-meta-box-link').hide(), | ||
$videoSettings = $('#bean-meta-box-video').hide(), | ||
$audioSettings = $('#bean-meta-box-audio').hide(), | ||
$gallerySettings = $('#bean-meta-box-gallery').hide(), | ||
$quoteSettings = $('#bean-meta-box-quote').hide(), | ||
$postFormat = $('#post-formats-select input[name="post_format"]'); | ||
$postFormat.each(function() { | ||
var $this = $(this); | ||
if( $this.is(':checked') ) | ||
changePostFormat( $this.val() ); | ||
}); | ||
|
||
$postFormat.change(function() { | ||
changePostFormat( $(this).val() ); | ||
}); | ||
|
||
function changePostFormat( val ) { | ||
$linkSettings.hide(); | ||
$videoSettings.hide(); | ||
$audioSettings.hide(); | ||
$gallerySettings.hide(); | ||
$quoteSettings.hide(); | ||
|
||
if( val === 'link' ) { | ||
$linkSettings.show(); | ||
} else if( val === 'video' ) { | ||
$videoSettings.show(); | ||
} else if( val === 'audio' ) { | ||
$audioSettings.show(); | ||
} else if( val === 'image' ) { | ||
$gallerySettings.show(); | ||
} else if( val === 'gallery' ) { | ||
$gallerySettings.show(); | ||
} else if( val === 'quote' ) { | ||
$quoteSettings.show(); | ||
} | ||
} | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/** | ||
* Theme javascript functions file. | ||
* | ||
*/ | ||
( function( $ ) { | ||
"use strict"; | ||
|
||
$(document).ready(function() { | ||
|
||
/* Fitvids */ | ||
$("body").fitVids(); | ||
|
||
/* Mobile Nav */ | ||
$('#mobile-nav').meanmenu(); | ||
|
||
/* Dropdowns */ | ||
$('nav ul').superfish({ | ||
delay: 100, | ||
animation: { opacity:'show', height:'show' }, | ||
speed: 150, | ||
cssArrows: false, | ||
disableHI: true | ||
}); | ||
|
||
/* Body Preloader */ | ||
setTimeout(function(){ | ||
$('body').addClass('loaded'); | ||
}, 500); | ||
|
||
/* Blogroll Masonry */ | ||
if ($('#masonry-container').length > 0) { | ||
var container = document.querySelector('#masonry-container'); | ||
var msnry; | ||
imagesLoaded( container, function() { | ||
msnry = new Masonry( container, { | ||
itemSelector: '#masonry-container article', | ||
transitionDuration:"0.2s", | ||
}); | ||
}); | ||
|
||
var $container = $('#masonry-container'); | ||
|
||
$(function(){ | ||
$container.infinitescroll({ | ||
navSelector : '#page_nav', | ||
nextSelector : '#page_nav a', | ||
itemSelector : 'article', | ||
loading: { | ||
loadingText: 'Loading', | ||
finishedMsg: 'Done Loading', | ||
img: '', | ||
} | ||
}, | ||
|
||
function( newElements ) { | ||
var $newElems = $( newElements ).css({ opacity: 0 }); | ||
|
||
$newElems.imagesLoaded(function() { | ||
$newElems.addClass('loaded'); | ||
msnry.appended( $newElems, true ); | ||
}); | ||
|
||
}); | ||
}); | ||
|
||
} | ||
|
||
/* Form Validation */ | ||
if (jQuery().validate) { | ||
jQuery("#commentform").validate(); | ||
jQuery("#BeanForm").validate(); | ||
} | ||
|
||
}); | ||
|
||
/* Window Height elements */ | ||
$(window).load(function(){ | ||
var pageHeight = jQuery(window).height(); | ||
$('.page-item.no-content.bg-img, .page-item.parallax').css({ "height": $(window).height() + 'px' }); | ||
! function(a) { | ||
$(".mean-container a.meanmenu-reveal").css({"height": a(".header").outerHeight(),}); | ||
$(".single-post-content, .mean-container .mean-nav, #masonry-container, .single-attachment .entry-content-media").css({"margin-top": a(".header").outerHeight(),}); | ||
$(".contact-alert").css({"margin-top": a(".contact-alert").outerHeight() - a(".contact-alert").outerHeight() * 2,}); | ||
}(window.jQuery); | ||
}); | ||
|
||
$(window).resize(function(){ | ||
var pageHeight = jQuery(window).height(); | ||
$('.page-item.no-content.bg-img, .page-item.parallax').css({ "height": $(window).height() + 'px' }); | ||
! function(a) { | ||
$(".mean-container a.meanmenu-reveal").css({"height": a(".header").outerHeight(),}); | ||
$(".single-post-content, .mean-container .mean-nav, #masonry-container, .single-attachment .entry-content-media").css({"margin-top": a(".header").outerHeight(),}); | ||
$(".contact-alert").css({"margin-top": a(".contact-alert").outerHeight() - a(".contact-alert").outerHeight() * 2,}); | ||
}(window.jQuery); | ||
}); | ||
|
||
} )( jQuery ); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
(function( $ ){ | ||
|
||
"use strict"; | ||
|
||
$.fn.fitVids = function( options ) { | ||
var settings = { | ||
customSelector: null, | ||
ignore: null, | ||
}; | ||
|
||
if(!document.getElementById('fit-vids-style')) { | ||
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js | ||
var head = document.head || document.getElementsByTagName('head')[0]; | ||
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; | ||
var div = document.createElement('div'); | ||
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>'; | ||
head.appendChild(div.childNodes[1]); | ||
} | ||
|
||
if ( options ) { | ||
$.extend( settings, options ); | ||
} | ||
|
||
return this.each(function(){ | ||
var selectors = [ | ||
"iframe[src*='player.vimeo.com']", | ||
"iframe[src*='youtube.com']", | ||
"iframe[src*='youtube-nocookie.com']", | ||
"iframe[src*='kickstarter.com'][src*='video.html']", | ||
"object", | ||
"embed" | ||
]; | ||
|
||
if (settings.customSelector) { | ||
selectors.push(settings.customSelector); | ||
} | ||
|
||
var ignoreList = '.fitvidsignore'; | ||
|
||
if(settings.ignore) { | ||
ignoreList = ignoreList + ', ' + settings.ignore; | ||
} | ||
|
||
var $allVideos = $(this).find(selectors.join(',')); | ||
$allVideos = $allVideos.not("object object"); // SwfObj conflict patch | ||
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. | ||
|
||
$allVideos.each(function(){ | ||
var $this = $(this); | ||
if($this.parents(ignoreList).length > 0) { | ||
return; // Disable FitVids on this video. | ||
} | ||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } | ||
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) | ||
{ | ||
$this.attr('height', 9); | ||
$this.attr('width', 16); | ||
} | ||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), | ||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), | ||
aspectRatio = height / width; | ||
if(!$this.attr('id')){ | ||
var videoID = 'fitvid' + Math.floor(Math.random()*999999); | ||
$this.attr('id', videoID); | ||
} | ||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); | ||
$this.removeAttr('height').removeAttr('width'); | ||
}); | ||
}); | ||
}; | ||
// Works with either jQuery or Zepto | ||
})( window.jQuery || window.Zepto ); | ||
|
||
// // Init fitVids | ||
// jQuery( document ).ready( function ($) { | ||
// if ( $.fn.fitVids) { | ||
// $('.hentry').fitVids(); | ||
// } | ||
// }); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.