/*-----------------------------------------------------------------------------------*/
/* Check for the Options Framework Plugin
/*-----------------------------------------------------------------------------------*/
add_action( 'admin_init', 'sf_of_check' );
function sf_of_check() {
if ( ! function_exists( 'optionsframework_init' ) ) {
add_thickbox(); // Required for the plugin install dialog.
add_action( 'admin_notices', 'sf_of_check_notice' );
}
}
function sf_of_check_notice() {
if ( ! current_user_can( 'install_plugins' ) ) return;
?>
<div class="updated fade">
<p>The Options Framework plugin is required for this theme to function properly. <a href="<?php echo admin_url('plugin-install.php?tab=plugin-information&plugin=options-framework&TB_iframe=true&width=640&height=517'); ?>" class="thickbox onclick">Click Here</a> to install and activate this required plugin.</p>
</div>
<?php
}