';
foreach ( $import_plugins as $id => $label ) {
if ( ! Shapely_Notify_System::shapely_has_plugin( $id ) ) {
$plugins_html .= $this->generate_checkbox( $id, $label, 'plugins' );
}
}
if ( '' != $plugins_html ) {
$html .= '
';
$html .= '
' . __( 'Plugins', 'shapely' ) . '
';
$html .= '
';
$html .= $plugins_html;
$html .= '
';
$html .= '
';
}
$html .= '
';
$html .= '
' . __( 'Demo Content', 'shapely' ) . '
';
$html .= '
';
foreach ( $import_actions as $id => $label ) {
$html .= $this->generate_checkbox( $id, $label );
}
$html .= '
';
$html .= '
';
$html .= '
';
}
return $html;
}
private function generate_checkbox( $id, $label, $name = 'options', $block = false ) {
$string = '