Skip to content

Commit

Permalink
Add plugin dialog properly shows in a thickbox popup now
Browse files Browse the repository at this point in the history
  • Loading branch information
blobaugh committed Jul 18, 2012
1 parent 265f234 commit d8206f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion duplicate-tec-event.php
Expand Up @@ -36,6 +36,7 @@
}
} else {
// Show alert telling user to install TEC
add_thickbox();
add_action( 'admin_notices', 'dte_admin_notice_install_tec' );
}
}
Expand All @@ -44,7 +45,7 @@ function dte_admin_notice_install_tec() {
$url = 'plugin-install.php?tab=search&s=the+events+calendar&plugin-search-input=Search+Plugins';
$url = admin_url('plugin-install.php?tab=plugin-information&plugin=the-events-calendar&TB_iframe=true&width=640&height=517');
echo '<div class="error">
<p>You must install <a href="'.$url.'">The Events Calendar</a> plugin before enabling the Duplicate TEC Event plugin!</p>
<p>You must install <a href="'.$url.'" class="thickbox onclick">The Events Calendar</a> plugin before enabling the Duplicate TEC Event plugin!</p>
</div>';
}

Expand Down

0 comments on commit d8206f8

Please sign in to comment.