';
printf( '
%s
', $heading );
printf( '
%s
', $loc_info );
printf( '
%s
', $loc_desc );
printf( '
';
echo '
';
}
/**
* Extends the WP_List_Table to create a table of dropin files.
*
* @since 3.1.9
*/
class WP_Members_Dropins_Table extends WP_List_Table {
/**
* Constructor.
*
* @since 3.1.9
*/
function __construct(){
global $status, $page;
//Set parent defaults
parent::__construct( array(
'singular' => 'dropin',
'plural' => 'dropins',
'ajax' => false,
) );
$this->dropins = get_option( 'wpmembers_dropins', array() ); //print_r( $this->dropins );
}
/**
* Checkbox at start of row.
*
* @since 3.1.9
*
* @param $item
* @return string The checkbox.
*/
function column_cb( $item ) {
global $wpmem;
$checked = checked( true, in_array( $item['dropin_file'], $wpmem->dropins_enabled ), false );
//return sprintf( '