$section ) { $output .= '
'; $output .= '
' . $section['title'] . '
'; if ( isset( $section['description'] ) ) { $output .= '

' . $section['description'] . '

'; } if ( ! empty( $section['elements'] ) ) { foreach ( $section['elements'] as $name => $props ) { $element = ''; $disabled = ''; $badge = ''; if ( isset( $props['disabled'] ) && $props['disabled'] ) { $disabled = 'disabled="true"'; $badge = '' . __( 'Premium', 'feedzy-rss-feeds' ) . ''; } switch ( $props['type'] ) { case 'select': $element = ''; break; case 'radio': foreach ( $props['opts'] as $opt => $values ) { $checked = ''; if ( $props['value'] == $values['value'] ) { $checked = 'checked="checked"'; } $element .= ''; } break; case 'checkbox': foreach ( $props['opts'] as $opt => $values ) { $checked = ''; if ( $props['value'] == $values['value'] ) { $checked = 'checked="checked"'; } $element .= ' ' . $values['label']; } break; case 'file': $element = ' '; break; default: $element = ''; break; } // End switch(). $output .= '
' . $element . '

'; } // End foreach(). } // End if(). $output .= '
'; } // End foreach(). } // End if(). echo $output; ?>