Skip to content

Commit

Permalink
Merge pull request #158 from presscodes/infinite-scroll
Browse files Browse the repository at this point in the history
Minor updates & bugfixes
  • Loading branch information
aristath committed Jun 3, 2015
2 parents ac788cb + 01ee6db commit 83d3a7f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## HEAD
## 1.2

* New: Kirki & Timber plugins as well as some Jetpack classes are now embedded. Installing external plugins is no longer required for the core theme.
* New: Easy-Digital-Downloads integration
* New: WooCommerce integration
* Fix: Core shell CSS tweaks
Expand Down
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function maera_autoload_classes( $class_name ) {
/**
* If Kirki is not installed as a plugin include the embedded Version
*/
if ( ! class_exists( 'Kirki' ) ) {
if ( ! class_exists( 'Kirki' ) && ! is_admin() ) {
define( 'KIRKI_PATH', get_template_directory() . '/includes/plugins/kirki' );
define( 'KIRKI_URL', get_template_directory_uri() . '/includes/plugins/kirki' );
require_once( get_template_directory() . '/includes/plugins/kirki/kirki.php' );
Expand All @@ -36,15 +36,15 @@ function maera_autoload_classes( $class_name ) {
/**
* If Timber is not installed as a plugin include the embedded version.
*/
if ( ! class_exists( 'Timber' ) ) {
if ( ! class_exists( 'Timber' ) && ! is_admin() ) {
require_once( get_template_directory() . '/includes/plugins/timber-library/timber.php' );
}

/**
* Dummy function to prevent fatal errors with the Tonesque library
* Only used when Jetpack is not installed.
*/
if ( ! function_exists( 'jetpack_require_lib' ) ) {
if ( ! function_exists( 'jetpack_require_lib' ) && ! is_admin() ) {
function jetpack_require_lib() {}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-maera.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Maera {

function __construct() {

Maera_Helper::define( 'MAERA_VERSION', '1.1.1' );
Maera_Helper::define( 'MAERA_VERSION', '1.2' );
Maera_Helper::define( 'MAERA_ASSETS_URL', get_stylesheet_directory_uri() . '/assets' );

add_filter( 'kirki/config', array( $this, 'customizer_config' ) );
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name: Maera
Theme URI: http://maera.io
Description: Advanced WordPress theme based on Bootstrap.
Version: 1.1.1
Version: 1.2
Author: aristath, fovoc
Author URI: http://wpmu.io
License: GPL v2 License
Expand Down
2 changes: 1 addition & 1 deletion views/main.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.twig" %}
{% block main %}
<main class="{{ 'main'|apply_filters( 'maera/section_class/content' ) }}" role="main">
<main class="{{ 'main'|apply_filters( 'maera/section_class/content' ) }}" role="main" id="main">
{% if title %}<h1>{{ title }}</h1>{% endif %}
{% block content %}
{{ __( 'Sorry, no content', 'maera' ) }}
Expand Down

0 comments on commit 83d3a7f

Please sign in to comment.