Skip to content

Commit

Permalink
fixes #559
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed May 26, 2013
1 parent cb54613 commit 5e12d29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/InnovationPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
);

# hooks
add_action('theme-sidebar','createSideMenu',array($thisfile_innov, i18n_r($thisfile_innov.'/INNOVATION_TITLE')));
# enable side menu is theme is innovation or on theme page and enabling innovation, handle plugin exec before global is set
if(
( $TEMPLATE == "Innovation" || ( get_filename_id() == 'theme' && $_POST['template'] == 'Innovation') ) &&
!( $TEMPLATE == "Innovation" && get_filename_id() == 'theme' && $_POST['template'] != 'Innovation')
) {
add_action('theme-sidebar','createSideMenu',array($thisfile_innov, i18n_r($thisfile_innov.'/INNOVATION_TITLE')));
}

$services = array(
'facebook',
Expand Down

0 comments on commit 5e12d29

Please sign in to comment.