/**
 * Register all actions and filters for the plugin
 *
 * @link       http://jeweltheme.com
 * @since      1.0.0
 *
 * @package    Sunrise_Coming_Soon
 * @subpackage Sunrise_Coming_Soon/includes
 */
function sunrise_customization_settings()
{
    $sunrise_custom = new Sunrise_Coming_Soon_Loader();
    $logo_width = $sunrise_custom->sunrise_get_option('logo_width', 'sunrise_general', '');
    $logo_height = $sunrise_custom->sunrise_get_option('logo_height', 'sunrise_general', '');
    $sunrise_bg_image_type_select = $sunrise_custom->sunrise_get_option('sunrise_bg_image_type_select', 'sunrise_general', '');
    $sunrise_bg_image = $sunrise_custom->sunrise_get_option('sunrise_bg_image', 'sunrise_general', '');
    $bg_color = $sunrise_custom->sunrise_get_option('bg_color', 'sunrise_general', '');
    ?>
	<style>
		.logo-image{
			width: <?php 
    echo $logo_width;
    ?>
;
			height: <?php 
    echo $logo_height;
    ?>
;
		}
		<?php 
    if ($sunrise_bg_image_type_select == "image") {
        ?>
			.bg {
				background: url(<?php 
        echo $sunrise_bg_image;
        ?>
)  no-repeat center center !important;
			    width: 100%;
			}	
		<?php 
    } elseif ($sunrise_bg_image_type_select == "color") {
        ?>
			.bg {
				background: none;
			}
			.bg-color{
				background-color: <?php 
        echo $bg_color;
        ?>
;
			}
		<?php 
    }
    ?>
		

	</style>
<?php 
}
<?php

/**
 * Provide a public-facing view for the plugin
 *
 * This file is used to markup the public-facing aspects of the plugin.
 *
 * @link       http://jeweltheme.com
 * @since      1.0.0
 *
 * @package    Sunrise_Coming_Soon
 * @subpackage Sunrise_Coming_Soon/public/partials
 */
//General
$sunrise = new Sunrise_Coming_Soon_Loader();
$countdown_date = $sunrise->sunrise_get_option('sunrise_countdown_date', 'sunrise_general', '');
$old_date_timestamp = strtotime($countdown_date);
$new_date = date('Y-m-d h:i:s', $old_date_timestamp);
$logo_image = $sunrise->sunrise_get_option('logo_image', 'sunrise_general', '');
$sunrise_left_image = $sunrise->sunrise_get_option('sunrise_left_image', 'sunrise_general', '');
$footer_copyright = $sunrise->sunrise_get_option('footer_copyright', 'sunrise_general', '');
$logo_type_select = $sunrise->sunrise_get_option('logo_type_select', 'sunrise_general', '');
$logo_text = $sunrise->sunrise_get_option('logo_text', 'sunrise_general', '');
$custom_css = $sunrise->sunrise_get_option('custom_css', 'sunrise_general', '');
$body_content = $sunrise->sunrise_get_option('body_content', 'sunrise_content', '');
//Emails
$subscribe_api = $sunrise->sunrise_get_option('subscribe_api', 'sunrise_email', '');
$placeholder_email = $sunrise->sunrise_get_option('placeholder_email', 'sunrise_email', '');
$subscribe_button = $sunrise->sunrise_get_option('subscribe_button', 'sunrise_email', '');
//Socials
$facebook = $sunrise->sunrise_get_option('facebook', 'sunrise_socials', '');