$content ){
$line++;
if( strpos( $content, " class=\"advanced-sidebar-menu widget advanced-sidebar-category\">" ) ){
$bad[$line] = htmlentities( $content );
}
if( strpos( $content, "
';" ) ){
$bad[$line] = htmlentities( $content );
}
if( strpos( $content, "
';" ) ){
$bad[$line] = htmlentities( $content );
}
}
if( !empty( $bad ) ){
$this->bad = $bad;
$this->cat_file = get_bloginfo( 'stylesheet_directory' ) . 'advanced-sidebar-menu/category_list.php';
add_action( 'admin_notices', array( $this, 'notice_3_2') );
}
}
}
/**
* Adds an admin notice if there are issues with the view
* @since 6/3/12
*/
function notice_3_2( ){
echo '';
echo 'To use version 3.2 of Advanced Sidebar Menu you must delete the following lines from "' . $this->cat_file . '"
';
foreach( $this->bad as $line => $content ){
echo 'line' . $line . ': '. $content . '
';
}
echo '
';
}
/**
* Allows for Overwritting files in the child theme
* @since 6/3/12
*/
static function file_hyercy( $file ){
if ( $theme_file = locate_template(array('advanced-sidebar-menu/'.$file)) ) {
$file = $theme_file;
} else {
$file = ADVANCED_SIDEBAR_VIEWS_DIR . $file;
}
return $file;
}
} //End class