Skip to content

Commit

Permalink
change widgets name #40
Browse files Browse the repository at this point in the history
  • Loading branch information
jameer1612 committed Dec 6, 2022
1 parent e2a6bbf commit 879512e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions modules/episodes/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ public function get_style_depends() {
* @return array
*/
public function get_widgets() {
return array(
'Episodes',
);
$widgets = array();
if ( class_exists( 'MasVideos' ) ) {
$widgets = array( 'Episodes' );
}
return $widgets;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/episodes/widgets/episodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function carousel_loop_footer( array $settings = array() ) {
<!-- If we need navigation buttons -->
<div class="d-flex mas-swiper-arrows">
<?php
$this->render_button( $this, $prev_id, $next_id, );
$this->render_button( $this, $prev_id, $next_id );
?>
</div>
<?php
Expand Down
8 changes: 5 additions & 3 deletions modules/mas-tv-shows-episodes/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ public function get_style_depends() {
* @return array
*/
public function get_widgets() {
return array(
'Mas_Tv_Shows_Episodes',
);
$widgets = array();
if ( class_exists( 'MasVideos' ) ) {
$widgets = array( 'Mas_Tv_Shows_Episodes' );
}
return $widgets;
}

/**
Expand Down

0 comments on commit 879512e

Please sign in to comment.