<?php
if (!defined( 'ABSPATH' )) exit;
if(isset($_POST['woo2app-admin']) && wp_verify_nonce($_POST['woo2app-admin'], 'woo2app-admin')) {
	update_option("COLOR_BLOG_SELLOL_BG",$_POST['COLOR_BLOG_SELLOL_BG']);// color of actionbar
	update_option("COLOR_BLOG_SELLOL_TXT",$_POST['COLOR_BLOG_SELLOL_TXT']);// color of statusbar
	update_option("COLOR_BLOG_HEADER_BG",$_POST['COLOR_BLOG_HEADER_BG']);//background color main page
	update_option("COLOR_BLOG_HEADER_TXT",$_POST['COLOR_BLOG_HEADER_TXT']);//background color main page
	update_option("COLOR_BLOG_FOOTER_BG",$_POST['COLOR_BLOG_FOOTER_BG']);//background color main page
	update_option("COLOR_BLOG_FOOTER_TXT",$_POST['COLOR_BLOG_FOOTER_TXT']);//background color main page
}
?>
<div class="div_mainpage">
    <h4 class="background-color-e5e5e5 padding-7px">
		<?php _e('Blog Color' , 'woo2app');?>
    </h4>
    <form method="post">
        <table class="form-table width-600px">
            <tbody>
			<?php wp_nonce_field('woo2app-admin', 'woo2app-admin'); ?>
            <tr>
                <th>
                    <p><?php _e('Cell Background Color', 'woo2app'); ?></p>
                </th>
                <td >
                    <input value="<?= get_option("COLOR_BLOG_SELLOL_BG"); ?>" type="color" name="COLOR_BLOG_SELLOL_BG" >
                </td>
            </tr>
            <tr>
                <th>
                    <p><?php _e('Cell Text Color', 'woo2app'); ?></p>
                </th>
                <td >
                    <input value="<?= get_option("COLOR_BLOG_SELLOL_TXT"); ?>" name="COLOR_BLOG_SELLOL_TXT" type="color" >
                </td>
            </tr>
            <tr>
                <th>
                    <p><?php _e('Header Background Color', 'woo2app'); ?></p>
                </th>
                <td>
                    <input value="<?= get_option("COLOR_BLOG_HEADER_BG"); ?>" name="COLOR_BLOG_HEADER_BG" type="color" >
                </td>
            </tr>
            <tr>
                <th>
                    <p><?php _e('Header Text Color ', 'woo2app'); ?></p>
                </th>
                <td>
                    <input value="<?= get_option("COLOR_BLOG_HEADER_TXT"); ?>" name="COLOR_BLOG_HEADER_TXT" type="color" >
                </td>
            </tr>
            <tr>
                <th>
                    <p><?php _e('Footer Background Color', 'woo2app'); ?></p>
                </th>
                <td >
                    <input value="<?= get_option('COLOR_BLOG_FOOTER_BG'); ?>" name="COLOR_BLOG_FOOTER_BG" type="color" >
                </td>
            </tr>
            <tr>
                <th>
                    <p><?php _e('Footer Text Color', 'woo2app'); ?></p>
                </th>
                <td >
                    <input value="<?= get_option('COLOR_BLOG_FOOTER_TXT'); ?>" name="COLOR_BLOG_FOOTER_TXT" type="color" >
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <button  type="submit" class="button button-primary">
						<?php _e('Save Changes', 'woo2app'); ?>
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>