projects
/
WP-Themes
/
wmta.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ab0849
)
Check for function to exists before calling it.
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 26 Feb 2019 15:57:44 +0000
(10:57 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Tue, 26 Feb 2019 15:57:44 +0000
(10:57 -0500)
So royalSlider plugin can be turned off for debugging.
sidebar-member.php
patch
|
blob
|
history
diff --git
a/sidebar-member.php
b/sidebar-member.php
index
66a3f6b
..
2ee01a3
100644
(file)
--- a/
sidebar-member.php
+++ b/
sidebar-member.php
@@
-31,7
+31,7
@@
if ( ! is_active_sidebar( 'sidebar-2' ) ) {
<section class="widget sidebar" style="display: none;">
<h2 class="widget-title news-feed-title">What's Happening</h2>
- <div class="widget-container"><?php
echo get_new_royalslider(2);
?></div>
+ <div class="widget-container"><?php
if( function_exists('get_new_royalslider') ){ echo get_new_royalslider(2); }
?></div>
</section>
<?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>