Skip to content

Commit

Permalink
Merge pull request #12 from justcoded/develop
Browse files Browse the repository at this point in the history
Fixed widget view include call
  • Loading branch information
aprokopenko authored Jan 12, 2018
2 parents 8bce294 + 1269d5e commit e21a913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Widgets/Hero_Slider_Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function widget( $args, $instance ) {
$instance = $this->get_template_variables( $instance, $args );
if ( ! empty( $instance['images'] ) ) {
$template = ( self::TYPE_FULL === $instance['widget_type'] ) ? 'hero-slider-full' : 'hero-slider-default';
View::instance()->render( 'widgets/' . $template, array(
View::instance()->include( 'widgets/' . $template, array(
'instance' => $instance,
'before_widget' => $args['before_widget'],
'after_widget' => $args['after_widget'],
Expand Down

0 comments on commit e21a913

Please sign in to comment.