<!-- DASHBOARD -->

<?php
	global $_opt;
	$_opt = getCO(NULL, array(PFIX.'_setup_status' ,PFIX."_ga_id", PFIX."_ga_pass", PFIX."_ga_profile"));
	
	if (_isOnOff($_opt[PFIX.'_cloudfw_actives']['map'])) 
		require(TMP_ADMIN_PATH . '/inc/fn.guide.php');
?>


 <?php if (is_support_curl() && _isOnOff( $_opt[PFIX.'_cloudfw_actives']['ga'] )):?>

<!--GA-->
<div class="framework_container">

    <div class="header"></div>
    
    <div class="content">
        
        <div class="head">
                
			<?php
					
				if ( defined("GA_ID") && defined("GA_PASS") ):
					$ga_id = GA_ID;
				else:
					$ga_id = $_opt[PFIX."_ga_id"];
				endif;
					
				$ga_profile = $_opt[PFIX."_ga_profile"];
					
					
					
					if (!empty($ga_id)) echo '<div class="current-version">'.__('Account','cloudfw').': <span>'.$ga_id.' ('.$ga_profile.')</span></div>' ;
					
					
					?>
                	<div class="icon rss"></div>  <h1><?php _e('Google Analytics','cloudfw'); ?></h1>
                    
              		<div class="clear"></div>
                </div>
        
        <div id="ga">
            
            	<div class="loading"></div>
            
            </div>
            
                 
            <?php echo
			'<script type="text/javascript">
							jQuery(document).ready(function() {
										
								
										jQuery.ajax({
										  url: "'.TMP_ADMIN.'/ajax/ga.php",
										  cache: false,
										  data: ({x : "main"}),
										  success: function(data) {
											jQuery("#ga").html(data);
											jQuery(".tabs").tabs({ cookie: { expires: 60 },
																  load: function(event, ui) {
																		
																		
																		jQuery(".tabs").tabs({ cookie: { expires: 60 } });
																		
																		
																	},
																	spinner: "Retrieving data...",
																	deselectable: true
																 
																 });

										  }
										});
										
										
															
															
							
							});
							
							</script>
			
			';?>


			<div class="clear"></div>

       
    </div>

</div>              
<!--/GA-->

<?php endif; // CURL Support Check?>

 <?php if ( $_opt[PFIX.'_cloudfw_actives']['updates'] !=="FALSE" ):?>
 
 
 <!--CONTAINER-->
<div class="framework_container">

    <div class="header"></div>
    
    <div class="content">
        
        <div class="head">
        
            <div class="current-version"><?php _e("Your Theme's Current Version:",'cloudfw'); ?> <span><?php echo CLOUD_THEMEVERSION; ?></span></div>
            <div class="icon signal"></div>  <h1><?php _e("Last Updates And News",'cloudfw'); ?></h1>       
            <div class="clear"></div> 
        </div>
        
       <div id="lastupdates_news">
            
            	<div class="loading"></div>
            
            </div>
            
                 
            <?php echo
			'<script type="text/javascript">
							jQuery(document).ready(function() {
										
								
										jQuery.ajax({
										  url: "'.TMP_ADMIN.'/ajax/lastupdates.php",
										  data: {nonce: "'. wp_create_nonce('cloudfw').'"},
										  success: function(data) {
											jQuery("#lastupdates_news").html(data);
										  }
										});
										
										
															
															
							
							});
							
							</script>
			
			';?>
            
            <div class="module">
            
            
            <div style="float:right;"><a class="small-button small-grey documentation" href="http://docs.cloudfw.net/positive/"><span><?php _e('Online Documentation','cloudfw'); ?></span></a> <a class="small-button small-grey" href="http://support.cloudfw.net/"><span><?php _e('Support Center','cloudfw'); ?></span></a></div>
            
            </div>
 
			

			<div class="clear"></div>

       
    </div>

</div>              
<!--/CONTAINER-->
 
 

<?php endif; // Updates And News?>


<!--/ END OF DASHBOARD -->