Skip to content

Commit

Permalink
Update module to new registration method introduced in Hogan Core 1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pederan committed Apr 4, 2018
1 parent 7b55b57 commit 09822e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hogan-parallax-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/dekodeinteraktiv/hogan-parallax-image
* GitHub Plugin URI: https://github.com/dekodeinteraktiv/hogan-parallax-image
* Description: Parallax Image Module for Hogan.
* Version: 1.0.0
* Version: 1.0.1
* Author: Dekode
* Author URI: https://dekode.no
* License: GPL-3.0-or-later
Expand Down Expand Up @@ -39,8 +39,7 @@ function hogan_load_textdomain() {
/**
* Register module in Hogan
*/
function hogan_register_module() {
// Include image and register module class.
function hogan_register_module( \Dekode\Hogan\Core $core ) {
require_once 'class-parallax-image.php';
\hogan_register_module( new \Dekode\Hogan\Parallax_Image() );
$core->register_module( new \Dekode\Hogan\Parallax_Image() );
}

0 comments on commit 09822e0

Please sign in to comment.