<?php
/**
 * Implement Default Theme/Customizer Options
 *
 * @package Catch Themes
 * @subpackage Gridalicious
 * @since Gridalicious 1.0
 */

if ( ! defined( 'GRIDALICIOUS_THEME_VERSION' ) ) {
	header( 'Status: 403 Forbidden' );
	header( 'HTTP/1.1 403 Forbidden' );
	exit();
}


/**
 * Returns the default options for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_get_default_theme_options() {

	$theme_data = wp_get_theme();

	$default_theme_options = array(
		//Site Title an Tagline
		'logo'                                             => trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/headers/logo.png',
		'logo_alt_text'                                    => '',
		'logo_disable'                                     => 1,
		'move_title_tagline'                               => 0,

		//Layout
		'theme_layout'                                     => 'right-sidebar',
		'woocommerce_layout'                               => 'right-sidebar',
		'content_layout'                                   => 'excerpt-image-left',
		'single_post_image_layout'                         => 'featured',
		'hide_archive_meta'                                => 0,

		//Header Image
		'enable_featured_header_image'                     => 'disabled',
		'featured_header_image_position'                   => 'before-menu',
		'featured_image_size'                              => 'featured-header',
		'featured_header_image_url'                        => '',
		'featured_header_image_alt'                        => '',
		'featured_header_image_base'                       => 0,

		//Navigation
		'primary_menu_disable'                             => 0,
		'primary_search_disable'                           => 0,

		//Breadcrumb Options
		'breadcumb_option'                                 => 0,
		'breadcumb_onhomepage'                             => 0,
		'breadcumb_seperator'                              => '&raquo;',

		//Comment Options
		'comment_option'                                   => 'use-wordpress-setting',
		'disable_notes'                                    => 0,
		'disable_website_field'                            => 0,

		//Custom CSS
		'custom_css'                                       => '',

		//Scrollup Options
		'disable_scrollup'                                 => 0,

		//Header Right Sidebar Options
		'disable_header_right_sidebar'                     => 0,

		//Excerpt Options
		'excerpt_length'                                   => '40',
		'excerpt_more_text'                                => esc_html__( 'Read More ...', 'gridalicious-pro' ),

		//Homepage / Frontpage Settings
		'front_page_category'                              => '0',

		//Pagination Options
		'pagination_type'                                  => 'default',

		//Promotion Headline Options
		'promotion_headline_option'                        => 'homepage',
		'promotion_headline'                               => esc_html__( 'Gridalicious Pro is a Premium Responsive WordPress Theme', 'gridalicious-pro' ),
		'promotion_subheadline'                            => esc_html__( 'This is promotion headline. You can edit this from Appearance -> Customize -> Theme Options -> Promotion Headline Options', 'gridalicious-pro' ),
		'promotion_headline_button'                        => esc_html__( 'Buy Now', 'gridalicious-pro' ),
		'promotion_headline_url'                           => esc_url( 'https://catchthemes.com/' ),
		'promotion_headline_target'                        => 1,

		//Responsive Options
		'responsive_select'                                => 0,

		//Search Options
		'search_text'                                      => esc_html__( 'Search...', 'gridalicious-pro' ),

		//Single Post Navigation
		'disable_single_post_navigation'                   => 0,

		//Feed Redirect
		'feed_redirect'                                    => '',

		//Font Family Options
		'body_font'                                        => 'sans-serif',
		'title_font'                                       => 'sans-serif',
		'tagline_font'                                     => 'sans-serif',
		'content_title_font'                               => 'sans-serif',
		'content_font'                                     => 'sans-serif',
		'headings_font'                                    => 'sans-serif',
		'reset_typography'                                 => 0,

		//Footer Editor Options
		'footer_left_content'                              => sprintf( _x( 'Copyright &copy; %1$s %2$s. All Rights Reserved. %3$s', '1: Year, 2: Site Title with home URL 3: Privacy Policy Link', 'gridalicious-pro' ), '[the-year]', '[site-link]', '[privacy-policy-link]' ),
		'footer_right_content'                             => '<a target="_blank" href="'. esc_url( $theme_data->get( 'ThemeURI' ) ) .'">Theme: '. esc_attr( $theme_data->get( 'Name' ) ) .'</a>',
		'reset_footer_content'                             => 0,

		//Update Notifier
		'update_notifier'                                  => 0,

		//WooCommerce Options
		'disable_product_gallery_zoom'                     => 0,
		'disable_product_gallery_lightbox'                 => 0,
		'disable_product_gallery_slider'                   => 0,

		//Basic Color Options
		'color_scheme'                                     => 'light',
		'background_color'                                 => '#eeeeee',
		'text_color'                                       => '#404040',
		'link_color'                                       => '#21759b',
		'link_hover_color'                                 => '#404040',

		//Header Color Options
		'header_textcolor'                                 => '#404040',
		'header_background_color'                          => 'transparent',
		'site_title_hover_color'                           => '#21759b',
		'tagline_color'                                    => '#404040',

		//Content Color Options
		'content_wrapper_background_color'                 => '#ffffff',
		'content_background_color'                         => '#ffffff',
		'content_title_color'                              => '#404040',
		'content_title_hover_color'                        => '#21759b',
		'content_meta_color'                               => '#21759b',
		'content_meta_hover_color'                         => '#404040',

		//Sidebar Color Options
		'sidebar_background_color'                         => '#ffffff',
		'sidebar_widget_title_color'                       => '#404040',
		'sidebar_widget_text_color'                        => '#404040',
		'sidebar_widget_link_color'                        => '#21759b',

		//Pagination Color Options //Need to check in details after
		'pagination_background_color'                      => '#ffffff',
		'pagination_hover_background_color'                => '#ffffff',
		'pagination_text_color'                            => '#404040',
		'pagination_link_color'                            => '#21759b',
		'pagination_hover_active_color'                    => '#ffffff',
		'numeric_infinite_scroll_background_color'         => '#f2f2f2',
		'numeric_infinite_scroll_hover_background_color'   => '#222222',

		//Footer Color Options
		'footer_background_color'                          => '#222222',
		'footer_text_color'                                => '#aaaaaa',
		'footer_link_color'                                => '#cccccc',
		'footer_sidebar_area_background_color'             => '#333333',
		'footer_widget_background_color'                   => '#333333',
		'footer_widget_title_color'                        => '#dddddd',
		'footer_widget_text_color'                         => '#bbbbbb',
		'footer_widget_link_color'                         => '#cccccc',

		//Promotion Headline Color Options
		'promotion_headline_background_color'              => '#ffffff',
		'promotion_headline_text_color'                    => '#404040',
		'promotion_headline_link_color'                    => '#21759b',
		'promotion_headline_button_background_color'       => '#f2f2f2',
		'promotion_headline_button_text_color'             => '#666666',
		'promotion_headline_button_hover_background_color' => '#f2f2f2',
		'promotion_headline_button_hover_text_color'       => '#666666',

		//Scrollup Color Options
		'scrollup_background_color'                        => '#666666',
		'scrollup_hover_background_color'                  => '#000000',
		'scrollup_text_color'                              => '#eeeeee',
		'scrollup_hover_text_color'                        => '#ffffff',

		//Featured Grid Content Color Options
		'grid_content_text_color'                          => '#ffffff',

		//Featured Content Color Options
		'featured_content_background_color'                => '#f2f2f2',
		'featured_content_title_color'                     => '#404040',
		'featured_content_text_color'                      => '#404040',
		'featured_content_link_color'                      => '#21759b',

		//Primary Menu Color Options
		'menu_background_color'                            => '#444444',
		'menu_color'                                       => '#ffffff',
		'hover_active_background_color'                    => '#444444',
		'hover_active_text_color'                          => '#dddddd',
		'sub_menu_background_color'                        => '#444444',
		'sub_menu_text_color'                              => '#ffffff',

		//Secondary Menu Color Options
		'secondary_menu_background_color'                  => '#333333',
		'secondary_menu_color'                             => '#cccccc',
		'secondary_hover_active_background_color'          => '#333333',
		'secondary_hover_active_text_color'                => '#ffffff',
		'secondary_sub_menu_background_color'              => '#333333',
		'secondary_sub_menu_text_color'                    => '#cccccc',

		//Header Right Color Options
		'header_right_menu_background_color'               => 'transparent',
		'header_right_menu_color'                          => '#333333',
		'header_right_hover_active_background_color'       => 'transparent',
		'header_right_hover_active_text_color'             => '#21759b',
		'header_right_sub_menu_background_color'           => '#eeeeee',
		'header_right_sub_menu_text_color'                 => '#666666',

		//Footer Menu Color Options
		'footer_menu_color'                                => '#cccccc',
		'footer_hover_active_background_color'             => '#222222',
		'footer_hover_active_text_color'                   => '#ffffff',

		//Featured Content Options
		'featured_content_option'                          => 'homepage',
		'featured_content_layout'                          => 'layout-three',
		'featured_content_position'                        => 0,
		'featured_content_headline'                        => '',
		'featured_content_subheadline'                     => '',
		'featured_content_type'                            => 'demo-featured-content',
		'featured_content_number'                          => '3',
		'featured_content_select_category'                 => '0',
		'featured_content_show'                            => 'excerpt',

		//Featured Grid Content Options
		'featured_grid_content_option'                     => 'homepage',
		'featured_grid_content_layout'                     => 'layout-three',
		'featured_grid_content_type'                       => 'demo-featured-grid-content',
		'featured_grid_content_number'                     => '3',
		'featured_grid_content_select_category'            => '0',
		'exclude_grid_content_post'                        => 0,

		//Social Links
		'social_icon_size'                                 => '20',
		'custom_social_icons'                              => '1',

		//Reset all settings
		'reset_all_settings'                               => 0,
	);

	return apply_filters( 'gridalicious_default_theme_options', $default_theme_options );
}


/**
 * Returns an array of color schemes registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_color_schemes() {
	$color_scheme_options = array(
		'light' => esc_html__( 'Light', 'gridalicious-pro' ),
		'dark'  => esc_html__( 'Dark', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_color_schemes', $color_scheme_options );
}


/**
 * Returns an array of layout options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_layouts() {
	$layout_options = array(
		'left-sidebar'          => esc_html__( 'Primary Sidebar, Content', 'gridalicious-pro' ),
		'right-sidebar'         => esc_html__( 'Content, Primary Sidebar', 'gridalicious-pro' ),
		'no-sidebar'            => esc_html__( 'No Sidebar ( Content Width )', 'gridalicious-pro' ),
		'no-sidebar-one-column' => esc_html__( 'No Sidebar ( One Column )', 'gridalicious-pro' ),
		'no-sidebar-full-width' => esc_html__( 'No Sidebar ( Full Width )', 'gridalicious-pro' ),
	);
	return apply_filters( 'gridalicious_layouts', $layout_options );
}


/**
 * Returns an array of content layout options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_get_archive_content_layout() {
	$layout_options = array(
		'excerpt-image-left'  => esc_html__( 'Show Excerpt (Image Left)', 'gridalicious-pro' ),
		'excerpt-image-right' => esc_html__( 'Show Excerpt (Image Right)', 'gridalicious-pro' ),
		'excerpt-image-top'   => esc_html__( 'Show Excerpt (Image Top)', 'gridalicious-pro' ),
		'full-content'        => esc_html__( 'Show Full Content (No Featured Image)', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_get_archive_content_layout', $layout_options );
}


/**
 * Returns an array of feature header enable options
 *
 * @since Gridalicious 1.0
 */
function gridalicious_enable_featured_header_image_options() {
	$enable_featured_header_image_options = array(
		'homepage'               => esc_html__( 'Homepage / Frontpage', 'gridalicious-pro' ),
		'exclude-home'           => esc_html__( 'Excluding Homepage', 'gridalicious-pro' ),
		'exclude-home-page-post' => esc_html__( 'Excluding Homepage, Page/Post Featured Image', 'gridalicious-pro' ),
		'entire-site'            => esc_html__( 'Entire Site', 'gridalicious-pro' ),
		'entire-site-page-post'  => esc_html__( 'Entire Site, Page/Post Featured Image', 'gridalicious-pro' ),
		'pages-posts'            => esc_html__( 'Pages and Posts', 'gridalicious-pro' ),
		'disabled'               => esc_html__( 'Disabled', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_enable_featured_header_image_options', $enable_featured_header_image_options );
}


/**
 * Returns an array of feature header image positions
 *
 * @since Gridalicious 1.0
 */
function gridalicious_featured_header_image_position_options() {
	$featured_header_image_position_options = array(
		'before_menu'        => esc_html__( 'Before Secondary Menu', 'gridalicious-pro' ),
		'after_menu'         => esc_html__( 'After Secondary Menu', 'gridalicious-pro' ),
		'before_header'      => esc_html__( 'Before Header', 'gridalicious-pro' ),
		'after_grid_content' => esc_html__( 'After Grid Content', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_header_image_position_options', $featured_header_image_position_options );
}


/**
 * Returns an array of feature image size
 *
 * @since Gridalicious 1.0
 */
function gridalicious_featured_image_size_options() {
	$featured_image_size_options = array(
		'featured-header' => esc_html__( 'Featured Header Size', 'gridalicious-pro' ),
		'featured'        => esc_html__( 'Featured Size', 'gridalicious-pro' ),
		'full-size'       => esc_html__( 'Full Size', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_image_size_options', $featured_image_size_options );
}


/**
 * Returns an array of content and grid content layout options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_featured_grid_content_options() {
	$featured_grid_content_content_options = array(
		'homepage'    => esc_html__( 'Homepage / Frontpage', 'gridalicious-pro' ),
		'entire-site' => esc_html__( 'Entire Site', 'gridalicious-pro' ),
		'disabled'    => esc_html__( 'Disabled', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_grid_content_options', $featured_grid_content_content_options );
}


/**
 * Returns an array of feature content types registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_featured_content_types() {
	$featured_content_types = array(
		'demo-featured-content'     => esc_html__( 'Demo', 'gridalicious-pro' ),
		'featured-post-content'     => esc_html__( 'Post', 'gridalicious-pro' ),
		'featured-page-content'     => esc_html__( 'Page', 'gridalicious-pro' ),
		'featured-category-content' => esc_html__( 'Category', 'gridalicious-pro' ),
		'featured-image-content'    => esc_html__( 'Custom', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_content_types', $featured_content_types );
}


/**
 * Returns an array of featured content options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_featured_content_layout_options() {
	$featured_content_layout_option = array(
		'layout-three' => esc_html__( '3 columns', 'gridalicious-pro' ),
		'layout-four'  => esc_html__( '4 columns', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_content_layout_options', $featured_content_layout_option );
}

/**
 * Returns an array of featured content show registered for gridalicious.
 *
 * @since Gridalicious 1.1
 */
function gridalicious_featured_content_show() {
	$featured_content_show_option = array(
		'excerpt'      => esc_html__( 'Show Excerpt', 'gridalicious-pro' ),
		'full-content' => esc_html__( 'Show Full Content', 'gridalicious-pro' ),
		'hide-content' => esc_html__( 'Hide Content', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_content_show', $featured_content_show_option );
}


/**
 * Returns an array of feature grid content types registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_featured_grid_content_types() {
	$featured_grid_content_types = array(
		'demo-featured-grid-content'     => esc_html__( 'Demo', 'gridalicious-pro' ),
		'featured-post-grid-content'     => esc_html__( 'Post', 'gridalicious-pro' ),
		'featured-page-grid-content'     => esc_html__( 'Page', 'gridalicious-pro' ),
		'featured-category-grid-content' => esc_html__( 'Category', 'gridalicious-pro' ),
		'featured-image-grid-content'    => esc_html__( 'Custom', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_featured_grid_content_types', $featured_grid_content_types );
}


/**
 * Returns an array of color schemes registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_get_pagination_types() {
	$pagination_types = array(
		'default'                => esc_html__( 'Default(Older Posts/Newer Posts)', 'gridalicious-pro' ),
		'numeric'                => esc_html__( 'Numeric', 'gridalicious-pro' ),
		'infinite-scroll-click'  => esc_html__( 'Infinite Scroll (Click)', 'gridalicious-pro' ),
		'infinite-scroll-scroll' => esc_html__( 'Infinite Scroll (Scroll)', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_get_pagination_types', $pagination_types );
}


/**
 * Returns an array of content featured image size.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_single_post_image_layout_options() {
	$single_post_image_layout_options = array(
		'featured'  => esc_html__( 'Featured', 'gridalicious-pro' ),
		'full-size' => esc_html__( 'Full Size', 'gridalicious-pro' ),
		'disabled'  => esc_html__( 'Disabled', 'gridalicious-pro' ),
	);
	return apply_filters( 'gridalicious_single_post_image_layout_options', $single_post_image_layout_options );
}


/**
 * Returns an array of comment options for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_comment_options() {
	$comment_options = array(
		'use-wordpress-setting' => esc_html__( 'Use WordPress Setting', 'gridalicious-pro' ),
		'disable-in-pages'      => esc_html__( 'Disable in Pages', 'gridalicious-pro' ),
		'disable-completely'    => esc_html__( 'Disable Completely', 'gridalicious-pro' ),
	);

	return apply_filters( 'gridalicious_comment_options', $comment_options );
}


/**
 * Returns an array of avaliable fonts registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_avaliable_fonts() {
	$avaliable_fonts = array(
		'arial-black' => array(
			'value' => 'arial-black',
			'label' => '"Arial Black", Gadget, sans-serif',
		),
		'allan' => array(
			'value' => 'allan',
			'label' => '"Allan", sans-serif',
		),
		'allerta' => array(
			'value' => 'allerta',
			'label' => '"Allerta", sans-serif',
		),
		'amaranth' => array(
			'value' => 'amaranth',
			'label' => '"Amaranth", sans-serif',
		),
		'arial' => array(
			'value' => 'arial',
			'label' => 'Arial, Helvetica, sans-serif',
		),
		'bitter' => array(
			'value' => 'bitter',
			'label' => '"Bitter", sans-serif',
		),
		'cabin' => array(
			'value' => 'cabin',
			'label' => '"Cabin", sans-serif',
		),
		'cantarell' => array(
			'value' => 'cantarell',
			'label' => '"Cantarell", sans-serif',
		),
		'century-gothic' => array(
			'value' => 'century-gothic',
			'label' => '"Century Gothic", sans-serif',
		),
		'courier-new' => array(
			'value' => 'courier-new',
			'label' => '"Courier New", Courier, monospace',
		),
		'crimson-text' => array(
			'value' => 'crimson-text',
			'label' => '"Crimson Text", sans-serif',
		),
		'cuprum' => array(
			'value' => 'cuprum',
			'label' => '"Cuprum", sans-serif',
		),
		'dancing-script' => array(
			'value' => 'dancing-script',
			'label' => '"Dancing Script", sans-serif',
		),
		'droid-sans' => array(
			'value' => 'droid-sans',
			'label' => '"Droid Sans", sans-serif',
		),
		'droid-serif' => array(
			'value' => 'droid-serif',
			'label' => '"Droid Serif", sans-serif',
		),
		'exo' => array(
			'value' => 'exo',
			'label' => '"Exo", sans-serif',
		),
		'exo-2' => array(
			'value' => 'exo-2',
			'label' => '"Exo 2", sans-serif',
		),
		'georgia' => array(
			'value' => 'georgia',
			'label' => 'Georgia, "Times New Roman", Times, serif',
		),
		'helvetica' => array(
			'value' => 'helvetica',
			'label' => 'Helvetica, "Helvetica Neue", Arial, sans-serif',
		),
		'helvetica-neue' => array(
			'value' => 'helvetica-neue',
			'label' => '"Helvetica Neue",Helvetica,Arial,sans-serif',
		),
		'istok-web' => array(
			'value' => 'istok-web',
			'label' => '"Istok Web", sans-serif',
		),
		'impact' => array(
			'value' => 'impact',
			'label' => 'Impact, Charcoal, sans-serif',
		),
		'josefin-sans' => array(
			'value' => 'josefin-sans',
			'label' => '"Josefin Sans", sans-serif',
		),
		'lato' => array(
			'value' => 'lato',
			'label' => '"Lato", sans-serif',
		),
		'libre-baskerville' => array(
			'value' => 'libre-baskerville',
			'label' => '"Libre Baskerville",serif'
		),
		'lucida-sans-unicode' => array(
			'value' => 'lucida-sans-unicode',
			'label' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif',
		),
		'lucida-grande' => array(
			'value' => 'lucida-grande',
			'label' => '"Lucida Grande", "Lucida Sans Unicode", sans-serif',
		),
		'lobster' => array(
			'value' => 'lobster',
			'label' => '"Lobster", sans-serif',
		),
		'lora' => array(
			'value' => 'lora',
			'label' => '"Lora", serif',
		),
		'monaco' => array(
			'value' => 'monaco',
			'label' => 'Monaco, Consolas, "Lucida Console", monospace, sans-serif',
		),
		'montserrat' => array(
			'value' => 'montserrat',
			'label' => '"Montserrat", sans-serif',
		),
		'nobile' => array(
			'value' => 'nobile',
			'label' => '"Nobile", sans-serif',
		),
		'noto-serif' => array(
			'value' => 'noto-serif',
			'label' => '"Noto Serif", serif',
		),
		'neuton' => array(
			'value' => 'neuton',
			'label' => '"Neuton", serif',
		),
		'open-sans' => array(
			'value' => 'open-sans',
			'label' => '"Open Sans", sans-serif',
		),
		'oswald' => array(
			'value' => 'oswald',
			'label' => '"Oswald", sans-serif',
		),
		'palatino' => array(
			'value' => 'palatino',
			'label' => 'Palatino, "Palatino Linotype", "Book Antiqua", serif',
		),
		'patua-one' => array(
			'value' => 'patua-one',
			'label' => '"Patua One", sans-serif',
		),
		'playfair-display' => array(
			'value' => 'playfair-display',
			'label' => '"Playfair Display", sans-serif',
		),
		'pt-sans' => array(
			'value' => 'pt-sans',
			'label' => '"PT Sans", sans-serif',
		),
		'pt-serif' => array(
			'value' => 'pt-serif',
			'label' => '"PT Serif", serif',
		),
		'quattrocento-sans' => array(
			'value' => 'quattrocento-sans',
			'label' => '"Quattrocento Sans", sans-serif',
		),
		'roboto' => array(
			'value' => 'roboto',
			'label' => '"Roboto", sans-serif',
		),
		'roboto-slab' => array(
			'value' => 'roboto-slab',
			'label' => '"Roboto Slab", serif',
		),
		'sans-serif' => array(
			'value' => 'sans-serif',
			'label' => 'Sans Serif, Arial',
		),
		'source-sans-pro' => array(
			'value' => 'source-sans-pro',
			'label' => '"Source Sans Pro", sans-serif',
		),
		'tahoma' => array(
			'value' => 'tahoma',
			'label' => 'Tahoma, Geneva, sans-serif',
		),
		'trebuchet-ms' => array(
			'value' => 'trebuchet-ms',
			'label' => '"Trebuchet MS", "Helvetica", sans-serif',
		),
		'times-new-roman' => array(
			'value' => 'times-new-roman',
			'label' => '"Times New Roman", Times, serif',
		),
		'ubuntu' => array(
			'value' => 'ubuntu',
			'label' => '"Ubuntu", sans-serif',
		),
		'varela' => array(
			'value' => 'varela',
			'label' => '"Varela", sans-serif',
		),
		'verdana' => array(
			'value' => 'verdana',
			'label' => 'Verdana, Geneva, sans-serif',
		),
		'yanone-kaffeesatz' => array(
			'value' => 'yanone-kaffeesatz',
			'label' => '"Yanone Kaffeesatz", sans-serif',
		),
	);

	return apply_filters( 'gridalicious_avaliable_fonts', $avaliable_fonts );
}


/**
 * Returns list of social icons currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_social_icons_list() {
	$gridalicious_social_icons_list = array(
		'facebook_link'		=> array(
			'genericon_class' 	=> 'facebook-alt',
			'label' 			=> esc_html__( 'Facebook', 'gridalicious-pro' )
			),
		'twitter_link'		=> array(
			'genericon_class' 	=> 'twitter',
			'label' 			=> esc_html__( 'Twitter', 'gridalicious-pro' )
			),
		'googleplus_link'	=> array(
			'genericon_class' 	=> 'googleplus-alt',
			'label' 			=> esc_html__( 'Googleplus', 'gridalicious-pro' )
			),
		'email_link'		=> array(
			'genericon_class' 	=> 'mail',
			'label' 			=> esc_html__( 'Email', 'gridalicious-pro' )
			),
		'feed_link'			=> array(
			'genericon_class' 	=> 'feed',
			'label' 			=> esc_html__( 'Feed', 'gridalicious-pro' )
			),
		'wordpress_link'	=> array(
			'genericon_class' 	=> 'wordpress',
			'label' 			=> esc_html__( 'WordPress', 'gridalicious-pro' )
			),
		'github_link'		=> array(
			'genericon_class' 	=> 'github',
			'label' 			=> esc_html__( 'GitHub', 'gridalicious-pro' )
			),
		'linkedin_link'		=> array(
			'genericon_class' 	=> 'linkedin',
			'label' 			=> esc_html__( 'LinkedIn', 'gridalicious-pro' )
			),
		'pinterest_link'	=> array(
			'genericon_class' 	=> 'pinterest',
			'label' 			=> esc_html__( 'Pinterest', 'gridalicious-pro' )
			),
		'flickr_link'		=> array(
			'genericon_class' 	=> 'flickr',
			'label' 			=> esc_html__( 'Flickr', 'gridalicious-pro' )
			),
		'vimeo_link'		=> array(
			'genericon_class' 	=> 'vimeo',
			'label' 			=> esc_html__( 'Vimeo', 'gridalicious-pro' )
			),
		'youtube_link'		=> array(
			'genericon_class' 	=> 'youtube',
			'label' 			=> esc_html__( 'YouTube', 'gridalicious-pro' )
			),
		'tumblr_link'		=> array(
			'genericon_class' 	=> 'tumblr',
			'label' 			=> esc_html__( 'Tumblr', 'gridalicious-pro' )
			),
		'instagram_link'	=> array(
			'genericon_class' 	=> 'instagram',
			'label' 			=> esc_html__( 'Instagram', 'gridalicious-pro' )
			),
		'polldaddy_link'	=> array(
			'genericon_class' 	=> 'polldaddy',
			'label' 			=> esc_html__( 'PollDaddy', 'gridalicious-pro' )
			),
		'codepen_link'		=> array(
			'genericon_class' 	=> 'codepen',
			'label' 			=> esc_html__( 'CodePen', 'gridalicious-pro' )
			),
		'path_link'			=> array(
			'genericon_class' 	=> 'path',
			'label' 			=> esc_html__( 'Path', 'gridalicious-pro' )
			),
		'dribbble_link'		=> array(
			'genericon_class' 	=> 'dribbble',
			'label' 			=> esc_html__( 'Dribbble', 'gridalicious-pro' )
			),
		'skype_link'		=> array(
			'genericon_class' 	=> 'skype',
			'label' 			=> esc_html__( 'Skype', 'gridalicious-pro' )
			),
		'digg_link'			=> array(
			'genericon_class' 	=> 'digg',
			'label' 			=> esc_html__( 'Digg', 'gridalicious-pro' )
			),
		'reddit_link'		=> array(
			'genericon_class' 	=> 'reddit',
			'label' 			=> esc_html__( 'Reddit', 'gridalicious-pro' )
			),
		'stumbleupon_link'	=> array(
			'genericon_class' 	=> 'stumbleupon',
			'label' 			=> esc_html__( 'Stumbleupon', 'gridalicious-pro' )
			),
		'pocket_link'		=> array(
			'genericon_class' 	=> 'pocket',
			'label' 			=> esc_html__( 'Pocket', 'gridalicious-pro' ),
			),
		'dropbox_link'		=> array(
			'genericon_class' 	=> 'dropbox',
			'label' 			=> esc_html__( 'DropBox', 'gridalicious-pro' ),
			),
		'spotify_link'		=> array(
			'genericon_class' 	=> 'spotify',
			'label' 			=> esc_html__( 'Spotify', 'gridalicious-pro' ),
			),
		'foursquare_link'	=> array(
			'genericon_class' 	=> 'foursquare',
			'label' 			=> esc_html__( 'Foursquare', 'gridalicious-pro' ),
			),
		'twitch_link'		=> array(
			'genericon_class' 	=> 'twitch',
			'label' 			=> esc_html__( 'Twitch', 'gridalicious-pro' ),
			),
		'website_link'		=> array(
			'genericon_class' 	=> 'website',
			'label' 			=> esc_html__( 'Website', 'gridalicious-pro' ),
			),
		'phone_link'		=> array(
			'genericon_class' 	=> 'phone',
			'label' 			=> esc_html__( 'Phone', 'gridalicious-pro' ),
			),
		'handset_link'		=> array(
			'genericon_class' 	=> 'handset',
			'label' 			=> esc_html__( 'Handset', 'gridalicious-pro' ),
			),
		'cart_link'			=> array(
			'genericon_class' 	=> 'cart',
			'label' 			=> esc_html__( 'Cart', 'gridalicious-pro' ),
			),
		'cloud_link'		=> array(
			'genericon_class' 	=> 'cloud',
			'label' 			=> esc_html__( 'Cloud', 'gridalicious-pro' ),
			),
		'link_link'		=> array(
			'genericon_class' 	=> 'link',
			'label' 			=> esc_html__( 'Link', 'gridalicious-pro' ),
			),
	);

	return apply_filters( 'gridalicious_social_icons_list', $gridalicious_social_icons_list );
}


/**
 * Returns list of basic color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_basic_color_options() {
	$options =	array(
					'text_color' 		=> esc_html__( 'Text Color', 'gridalicious-pro' ),
					'link_color' 		=> esc_html__( 'Link Color', 'gridalicious-pro' ),
					'link_hover_color'	=> esc_html__( 'Link Hover Color', 'gridalicious-pro' ),
				);
	return apply_filters( 'gridalicious_get_basic_color_options', $options );
}


/**
 * Returns list of content color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_content_color_options() {
	$options =	array(
					'content_wrapper_background_color' 	=> esc_html__( 'Wrapper Background Color', 'gridalicious-pro' ),
					'content_background_color'			=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'content_title_color' 				=> esc_html__( 'Title Color', 'gridalicious-pro' ),
					'content_title_hover_color' 		=> esc_html__( 'Title Hover Color', 'gridalicious-pro' ),
					'content_meta_color' 				=> esc_html__( 'Meta Color', 'gridalicious-pro' ),
					'content_meta_hover_color' 			=> esc_html__( 'Meta Hover Color', 'gridalicious-pro' ),
				);

	return apply_filters( 'gridalicious_get_content_color_options', $options );
}


/**
 * Returns list of header color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_header_color_options() {
	$options =	array(
					'header_background_color' 	=> esc_html__( 'Header Background color', 'gridalicious-pro' ),
					'site_title_hover_color' 	=> esc_html__( 'Site Title Hover Color', 'gridalicious-pro' ),
					'tagline_color' 			=> esc_html__( 'Tagline Color', 'gridalicious-pro' )
				);

	return apply_filters( 'gridalicious_get_header_color_options', $options );
}


/**
 * Returns list of sidebar color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_sidebar_color_options() {
	$options = array(
					'sidebar_background_color' 		=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'sidebar_widget_title_color' 	=> esc_html__( 'Widget Title Color', 'gridalicious-pro' ),
					'sidebar_widget_text_color' 	=> esc_html__( 'Widget Text Color', 'gridalicious-pro' ),
					'sidebar_widget_link_color' 	=> esc_html__( 'Widget Link Color', 'gridalicious-pro' ),
				);
	return apply_filters( 'gridalicious_get_sidebar_color_options', $options );
}


/**
 * Returns list of pagination color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_pagination_color_options() {
	$options = array(
					'pagination_background_color' 					=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'pagination_hover_background_color' 			=> esc_html__( 'Hover Background Color', 'gridalicious-pro' ),
					'pagination_text_color' 						=> esc_html__( 'Text Color', 'gridalicious-pro' ),
					'pagination_link_color' 						=> esc_html__( 'Link Color', 'gridalicious-pro' ),
					'pagination_hover_active_color' 				=> esc_html__( 'Hover/Active Color', 'gridalicious-pro' ),
					'numeric_infinite_scroll_background_color' 		=> esc_html__( 'Numeric/Infinite Scroll Background Color', 'gridalicious-pro' ),
					'numeric_infinite_scroll_hover_background_color'=> esc_html__( 'Numeric/Infinite Scroll Hover Background Color', 'gridalicious-pro' ),
				);
	return apply_filters( 'gridalicious_get_pagination_color_options', $options );
}


/**
 * Returns list of footer color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_footer_color_options() {
	$options =	array(
					'footer_background_color' 				=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'footer_text_color' 					=> esc_html__( 'Text Color', 'gridalicious-pro' ),
					'footer_link_color' 					=> esc_html__( 'Link Color', 'gridalicious-pro' ),
					'footer_sidebar_area_background_color' 	=> esc_html__( 'Sidebar Area Background Color', 'gridalicious-pro' ),
					'footer_widget_background_color' 		=> esc_html__( 'Widget Background Color', 'gridalicious-pro' ),
					'footer_widget_title_color'				=> esc_html__( 'Widget Title Color', 'gridalicious-pro' ),
					'footer_widget_text_color'				=> esc_html__( 'Widget Text Color', 'gridalicious-pro' ),
					'footer_widget_link_color'				=> esc_html__( 'Widget Link Color', 'gridalicious-pro' ),
				);

	return apply_filters( 'gridalicious_get_footer_color_options', $options );
}


/**
 * Returns list of promotion headline color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_promotion_headline_color_options() {
	$options =	array(
					'promotion_headline_background_color'				=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'promotion_headline_text_color'						=> esc_html__( 'Text Color', 'gridalicious-pro' ),
					'promotion_headline_link_color'						=> esc_html__( 'Link Color', 'gridalicious-pro' ),
					'promotion_headline_button_background_color'		=> esc_html__( 'Button Background Color', 'gridalicious-pro' ),
					'promotion_headline_button_text_color'				=> esc_html__( 'Button Text Color', 'gridalicious-pro' ),
					'promotion_headline_button_hover_background_color'	=> esc_html__( 'Button Hover Background Color', 'gridalicious-pro' ),
					'promotion_headline_button_hover_text_color'		=> esc_html__( 'Button Hover Text Color', 'gridalicious-pro' ),
				);

	return apply_filters( 'gridalicious_get_promotion_headline_color_options', $options );
}


/**
 * Returns list of scrollup color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_scrollup_color_options() {
	$options =	array(
					'scrollup_background_color'			=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'scrollup_hover_background_color'	=> esc_html__( 'Hover Background Color', 'gridalicious-pro' ),
					'scrollup_text_color'				=> esc_html__( 'Text Color', 'gridalicious-pro' ),
					'scrollup_hover_text_color'			=> esc_html__( 'Hover Text Color', 'gridalicious-pro' ),
				);

	return apply_filters( 'gridalicious_get_scrollup_color_options', $options );
}


/**
 * Returns list of Grid Content color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_grid_content_color_options() {
	$options =	array(
					'grid_content_text_color'	=> esc_html__( 'Text Color', 'gridalicious-pro' ),
				);

	return apply_filters( 'gridalicious_get_grid_content_color_options', $options );
}


/**
 * Returns list of featured_content color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_featured_content_color_options() {
	$options =	array(
					'featured_content_background_color'	=> esc_html__( 'Background Color', 'gridalicious-pro' ),
					'featured_content_title_color'		=> esc_html__( 'Title Color', 'gridalicious-pro' ),
					'featured_content_text_color'		=> esc_html__( 'Text Color', 'gridalicious-pro' ),
					'featured_content_link_color'		=> esc_html__( 'Link Color', 'gridalicious-pro' ),
				);

	return apply_filters( 'gridalicious_get_featured_content_color_options', $options );
}


/**
 * Returns list of menu color options currently supported
 *
 * @since Gridalicious 1.0
*/
function gridalicious_get_menu_color_options() {
	$options =	array(
					'menu_background_color'			=> esc_html__( 'Menu Background color', 'gridalicious-pro' ),
					'menu_color'					=> esc_html__( 'Menu Color', 'gridalicious-pro' ),
					'hover_active_background_color'	=> esc_html__( 'Hover Active Background Color', 'gridalicious-pro' ),
					'hover_active_text_color'		=> esc_html__( 'Hover Active Text Color', 'gridalicious-pro' ),
					'sub_menu_background_color'		=> esc_html__( 'Sub Menu Background Color', 'gridalicious-pro' ),
					'sub_menu_text_color'			=> esc_html__( 'Sub Menu Text Color', 'gridalicious-pro' ),
				);
	return apply_filters( 'gridalicious_get_menu_color_options', $options );
}

/**
 * Returns an array of metabox layout options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_metabox_layouts() {
	$layout_options = array(
		'default' 	=> array(
			'id' 	=> 'gridalicious-layout-option',
			'value' => 'default',
			'label' => esc_html__( 'Default', 'gridalicious-pro' ),
		),
		'left-sidebar' 	=> array(
			'id' 	=> 'gridalicious-layout-option',
			'value' => 'left-sidebar',
			'label' => esc_html__( 'Primary Sidebar, Content', 'gridalicious-pro' ),
		),
		'right-sidebar' => array(
			'id' 	=> 'gridalicious-layout-option',
			'value' => 'right-sidebar',
			'label' => esc_html__( 'Content, Primary Sidebar', 'gridalicious-pro' ),
		),
		'no-sidebar'	=> array(
			'id' 	=> 'gridalicious-layout-option',
			'value' => 'no-sidebar',
			'label' => esc_html__( 'No Sidebar ( Content Width )', 'gridalicious-pro' ),
		),
		'no-sidebar-one-column' => array(
			'id' 	=> 'gridalicious-layout-option',
			'value' => 'no-sidebar-one-column',
			'label' => esc_html__( 'No Sidebar ( One Column )', 'gridalicious-pro' ),
		),
		'no-sidebar-full-width' => array(
			'id' 	=> 'gridalicious-layout-option',
			'value' => 'no-sidebar-full-width',
			'label' => esc_html__( 'No Sidebar ( Full Width )', 'gridalicious-pro' ),
		),
	);
	return apply_filters( 'gridalicious_layouts', $layout_options );
}

/**
 * Returns an array of metabox header featured image options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_metabox_header_featured_image_options() {
	$header_featured_image_options = array(
		'default' => array(
			'id'		=> 'gridalicious-header-image',
			'value' 	=> 'default',
			'label' 	=> esc_html__( 'Default', 'gridalicious-pro' ),
		),
		'enable' => array(
			'id'		=> 'gridalicious-header-image',
			'value' 	=> 'enable',
			'label' 	=> esc_html__( 'Enable', 'gridalicious-pro' ),
		),
		'disable' => array(
			'id'		=> 'gridalicious-header-image',
			'value' 	=> 'disable',
			'label' 	=> esc_html__( 'Disable', 'gridalicious-pro' )
		)
	);
	return apply_filters( 'header_featured_image_options', $header_featured_image_options );
}


/**
 * Returns an array of metabox sidebar options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_metabox_sidebar_options() {
	$sidebar_options = array(
		'main-sidebar' => array(
			'id'		=> 'gridalicious-sidebar-options',
			'value' 	=> 'default-sidebar',
			'label' 	=> esc_html__( 'Default Sidebar', 'gridalicious-pro' )
		),
		'optional-sidebar-one' => array(
			'id' 	=> 'gridalicious-sidebar-options',
			'value' => 'optional-sidebar-one',
			'label' => esc_html__( 'Optional Sidebar One', 'gridalicious-pro' )
		),
		'optional-sidebar-two' => array(
			'id' 	=> 'gridalicious-sidebar-options',
			'value' => 'optional-sidebar-two',
			'label' => esc_html__( 'Optional Sidebar Two', 'gridalicious-pro' )
		),
		'optional-sidebar-three' => array(
			'id' 	=> 'gridalicious-sidebar-options',
			'value' => 'optional-sidebar-three',
			'label' => esc_html__( 'Optional Sidebar three', 'gridalicious-pro' )
		)
	);
	return apply_filters( 'sidebar_options', $sidebar_options );
}


/**
 * Returns an array of metabox featured image options registered for gridalicious.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_metabox_featured_image_options() {
	$featured_image_options = array(
		'default' => array(
			'id'		=> 'gridalicious-featured-image',
			'value' 	=> 'default',
			'label' 	=> esc_html__( 'Default', 'gridalicious-pro' ),
		),
		'featured' => array(
			'id'		=> 'gridalicious-featured-image',
			'value' 	=> 'featured',
			'label' 	=> esc_html__( 'Featured Image', 'gridalicious-pro' )
		),
		'full' => array(
			'id' => 'gridalicious-featured-image',
			'value' => 'full',
			'label' => esc_html__( 'Full Size', 'gridalicious-pro' )
		),
		'disable' => array(
			'id' => 'gridalicious-featured-image',
			'value' => 'disable',
			'label' => esc_html__( 'Disable Image', 'gridalicious-pro' )
		)
	);
	return apply_filters( 'featured_image_options', $featured_image_options );
}


/**
 * Returns the default options for gridalicious dark theme.
 *
 * @since Gridalicious 1.0
 */
function gridalicious_default_dark_color_options() {
	$default_dark_color_options = array(
		//Basic Color Options
		'background_color'									=> '#191919',
		'text_color'										=> '#bebebe',
		'link_color'										=> '#a92f41',
		'link_hover_color'									=> '#bebebe',

		//Header Color Options
		'header_textcolor'									=> '#bebebe',
		'header_background_color'							=> 'transparent',
		'site_title_hover_color'							=> '#a92f41',
		'tagline_color'										=> '#bebebe',

		//Content Color Options
		'content_wrapper_background_color'					=> '#202020',
		'content_background_color'							=> '#202020',
		'content_title_color'								=> '#bebebe',
		'content_title_hover_color'							=> '#a92f41',
		'content_meta_color'								=> '#a92f41',
		'content_meta_hover_color'							=> '#bebebe',

		//Sidebar Color Options
		'sidebar_background_color'							=> '#202020',
		'sidebar_widget_title_color'						=> '#bebebe',
		'sidebar_widget_text_color'							=> '#bebebe',
		'sidebar_widget_link_color'							=> '#a92f41',

		//Pagination Color Options //Need to check in details after
		'pagination_background_color'						=> '#202020',
		'pagination_hover_background_color'					=> '#202020',
		'pagination_text_color'								=> '#bebebe',
		'pagination_link_color'								=> '#a92f41',
		'pagination_hover_active_color'						=> '#ffffff',
		'numeric_infinite_scroll_background_color'			=> '#191919',
		'numeric_infinite_scroll_hover_background_color'	=> '#111111',

		//Footer Color Options
		'footer_background_color'							=> '#111111',
		'footer_text_color'									=> '#aaaaaa',
		'footer_link_color'									=> '#cccccc',
		'footer_sidebar_area_background_color'				=> '#191919',
		'footer_widget_background_color'					=> '#202020',
		'footer_widget_title_color'							=> '#dddddd',
		'footer_widget_text_color'							=> '#bbbbbb',
		'footer_widget_link_color'							=> '#cccccc',

		//Promotion Headline Color Options
		'promotion_headline_background_color'				=> '#202020',
		'promotion_headline_text_color'						=> '#bebebe',
		'promotion_headline_link_color'						=> '#a92f41',
		'promotion_headline_button_background_color'		=> '#191919',
		'promotion_headline_button_text_color'				=> '#a92f41',
		'promotion_headline_button_hover_background_color'	=> '#191919',
		'promotion_headline_button_hover_text_color'		=> '#a92f41',

		//Scrollup Color Options
		'scrollup_background_color'							=> '#666666',
		'scrollup_hover_background_color'					=> '#000000',
		'scrollup_text_color'								=> '#eeeeee',
		'scrollup_hover_text_color'							=> '#ffffff',

		//Featured Grid Content Color Options
		'grid_content_text_color'							=> '#ffffff',

		//Featured Content Color Options
		'featured_content_background_color'					=> '#191919',
		'featured_content_title_color'						=> '#bebebe',
		'featured_content_text_color'						=> '#bebebe',
		'featured_content_link_color'						=> '#a92f41',

		//Primary Menu Color Options
		'menu_background_color'								=> '#444444',
		'menu_color'										=> '#ffffff',
		'hover_active_background_color'						=> '#444444',
		'hover_active_text_color'							=> '#dddddd',
		'sub_menu_background_color'							=> '#444444',
		'sub_menu_text_color'								=> '#ffffff',

		//Secondary Menu Color Options
		'secondary_menu_background_color'					=> '#111111',
		'secondary_menu_color'								=> '#cccccc',
		'secondary_hover_active_background_color'			=> '#333333',
		'secondary_hover_active_text_color'					=> '#ffffff',
		'secondary_sub_menu_background_color'				=> '#333333',
		'secondary_sub_menu_text_color'						=> '#cccccc',

		//Header Right Color Options
		'header_right_menu_background_color'				=> 'transparent',
		'header_right_menu_color'							=> '#bebebe',
		'header_right_hover_active_background_color'		=> 'transparent',
		'header_right_hover_active_text_color'				=> '#a92f41',
		'header_right_sub_menu_background_color'			=> '#191919',
		'header_right_sub_menu_text_color'					=> '#bebebe',

		//Footer Menu Color Options
		'footer_menu_color'									=> '#cccccc',
		'footer_hover_active_background_color'				=> '#111111',
		'footer_hover_active_text_color'					=> '#ffffff',
	);

	return apply_filters( 'gridalicious_default_dark_color_options', $default_dark_color_options );
}


/**
 * Checks if there are options already present from Gridalicious free version and adds it to the Gridalicious Pro theme options
 *
 * @since Gridalicious Pro 1.0
 * @hook after_theme_switch
 */
function gridalicious_setup_options( $old_theme_name ) {
	if ( $old_theme_name ) {
		$old_theme_slug = sanitize_title( $old_theme_name );

		$free_version_slug = 'gridalicious';
		$pro_version_slug  = 'gridalicious-pro';

		$free_options = get_option( 'theme_mods_' . $old_theme_slug );

		// Perform action only if options of free version exists and theme is being switched from free version
		if ( $free_version_slug === $old_theme_slug && $free_options && '1' !== get_theme_mod( 'free_pro_migration' ) ) {
			$new_options = wp_parse_args( get_theme_mods(), $free_options );

			if ( update_option( 'theme_mods_' . $pro_version_slug, $free_options ) ) {
				// Set Migration Parameter to true so that this script does not run multiple times.
				set_theme_mod( 'free_pro_migration', '1' );
			}
		}
	}
}
add_action( 'after_switch_theme', 'gridalicious_setup_options', 100 );
