Editor capabilities

Add editor the privilege to edit theme & menu:

// get the the role object
$role_object = get_role( 'editor' );

// add $cap capability to this role object

// Design menu point
$role_object->add_cap( 'edit_theme_options' );

//theme settings
$role_object->add_cap( 'manage_options' );