'', 'FadeIn_status' => '', 'FadeIn_group' => '', 'FadeIn_link' => '', 'FadeIn_order' => '' ); // Form submitted, check the data if (isset($_POST['FadeIn_form_submit']) && $_POST['FadeIn_form_submit'] == 'yes') { // Just security thingy that wordpress offers us check_admin_referer('FadeIn_form_add'); $form['FadeIn_text'] = isset($_POST['FadeIn_text']) ? $_POST['FadeIn_text'] : ''; if ($form['FadeIn_text'] == '') { $FadeIn_errors[] = __('Please enter the popup message.', WP_FadeIn_UNIQUE_NAME); $FadeIn_error_found = TRUE; } $form['FadeIn_link'] = isset($_POST['FadeIn_link']) ? $_POST['FadeIn_link'] : ''; $form['FadeIn_order'] = isset($_POST['FadeIn_order']) ? $_POST['FadeIn_order'] : ''; $form['FadeIn_status'] = isset($_POST['FadeIn_status']) ? $_POST['FadeIn_status'] : ''; $form['FadeIn_group'] = isset($_POST['FadeIn_group']) ? $_POST['FadeIn_group'] : ''; // No errors found, we can add this Group to the table if ($FadeIn_error_found == FALSE) { $sql = $wpdb->prepare( "INSERT INTO `".WP_FadeIn_TABLE."` (`FadeIn_text`,`FadeIn_link`, `FadeIn_order`, `FadeIn_status`, `FadeIn_group`) VALUES(%s, %s, %d, %s, %s)", array($form['FadeIn_text'], $form['FadeIn_link'], $form['FadeIn_order'], $form['FadeIn_status'], $form['FadeIn_group']) ); $wpdb->query($sql); $FadeIn_success = __('Details was successfully added.', WP_FadeIn_UNIQUE_NAME); // Reset the form fields $form = array( 'FadeIn_text' => '', 'FadeIn_status' => '', 'FadeIn_group' => '', 'FadeIn_link' => '', 'FadeIn_order' => '' ); } } if ($FadeIn_error_found == TRUE && isset($FadeIn_errors[0]) == TRUE) { ?>

0) { ?>

Click here to view the details


Add news

We can enter HTML content in this textarea.

When someone clicks on the content, where do you want to send them.

This is to group the message. Select your group from the list.

Do you want to show this message?.

Please enter news display order in this box. Only number.