<?php
/*

# CloudFW Only Admin Area Functions
# Author: Orkun Gürsel - contact@orkungursel.com - support@cloudfw.net

*/

//updateCOA(PFIX . "_setup", TRUE, TRUE);
cloudfw_reset_options();

wp_create_nav_menu('[Header Menu]', array(
	'slug' => 'primary'
));


$default_skin_data = array (
  'mode' => 'custom',
  'name' => 'Green',
  'id' => PFIX.'_skin_default_data',
  'data' => 
  array (
    'body' => 
    array (
      'background-color' => 'eff6ff',
    ),
    'body_pattern' => 
    array (
      'pattern' => 'ver-triangle-1-05',
    ),
    'header_highlight' => 
    array (
      'border-top' => 
      array (
        0 => '74bd2f',
      ),
    ),
    'header_text_colors' => 
    array (
      'color' => '687e9a',
    ),
    'header_colors' => 
    array (
      'color' => '687e9a',
    ),
    'header_colors_active' => 
    array (
      'color' => 'FFFFFF',
    ),
    'navigation_background' => 
    array (
      'background-color' => '6db52d',
    ),
    'navigation_image' => 
    array (
      'pattern' => 'pattern-2',
    ),
    'navigation_link' => 
    array (
      'color' => 'ffffff',
      'text-shadow' => 
      array (
        0 => '609c27',
      ),
    ),
    'sub_navigation_background' => 
    array (
      'background-color' => 
      array (
        0 => '599425',
      ),
    ),
    'sub_navigation_link' => 
    array (
      'color' => 
      array (
        0 => 'ffffff',
      ),
    ),
    'sub_navigation_link_active' => 
    array (
      'color' => 
      array (
        0 => 'ffffff',
      ),
    ),
    'sub_navigation_highlight' => 
    array (
      'border-top' => 
      array (
        0 => '0.03',
      ),
      'border-bottom' => 
      array (
        0 => '0.1',
      ),
    ),
    'home_icon' => 
    array (
      'background-color' => '46701c',
    ),
    'home_icon_highlight' => 
    array (
      'border-bottom-color' => '6fb52d',
    ),
    'home_icon_active' => 
    array (
      'background-color' => '3a5c17',
    ),
    'home_icon_highlight_active' => 
    array (
      'border-bottom-color' => '6fb52d',
    ),
    'body_head' => 
    array (
      'background-color' => '344050',
    ),
    'body_head_pattern' => 
    array (
      'pattern' => 'ver-triangle-1-10',
    ),
    'middle_highlight' => 
    array (
      'border-bottom' => 
      array (
        0 => 'ffffff',
      ),
    ),
    'middle_height' => 
    array (
      'height' => '185',
    ),
    'blurb' => 
    array (
      'color' => 'ffffff',
      'padding-top' => '50',
    ),
    'content_margin_top' => 
    array (
      'margin-top' => '-135',
    ),
    'the_arrow' => 
    array (
      'border-top-color' => '599425',
    ),
    'navigation_shadow' => 
    array (
      'box-shadow||-moz-box-shadow||-webkit-box-shadow' => 
      array (
        'opacity' => '0.2',
        'size' => '15',
      ),
    ),
    'global_radius' => 
    array (
      'border-radius' => '8',
    ),
    'custom' => 
    array (
      'custom-css' => '#navigation-menu-items .depth-0 > .sub-menu{
   -moz-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3) inset;
   -webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3) inset;
   box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3) inset;
}',
      'menu-width' => 'fixed',
      'page-shadow' => true
    ),
  ),
  'foldername' => 'Green',
);

$def_skin_id = cloudfw_manage_skin_ID(PFIX.'_skin_default_data', 'add', $default_skin_data);
cloudfw_sync_skins($def_skin_id, true);

update_option(PFIX . '_already_installed', true);

add_action( 'admin_notices', 'cloudfw_theme_installed_message', 5 );
function cloudfw_theme_installed_message() {
  
      printf ("<div id='cloudfw-update-message' class='updated'>%s</div>",
      sprintf ("<div style='padding:15px;'>%s</div>", 
        sprintf (__("Theme is installed","cloudfw"))
         
      )
    
    );
}