<?php
/* 
* Theme: PREMIUMPRESS CORE FRAMEWORK FILE
* Url: www.premiumpress.com
* Author: Mark Fail
*
* THIS FILE WILL BE UPDATED WITH EVERY UPDATE
* IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
*
* http://codex.wordpress.org/Child_Themes
*/
if (!defined('THEME_VERSION')) {	header('HTTP/1.0 403 Forbidden'); exit; }
 
 
global $settings, $CORE_ADMIN, $CORE;


  $settings = array(
  
  "title" => __("User Favorites","premiumpress"), 
  
  "desc" => __("Here you can modify the user favorites system.","premiumpress"),  
   
  "back" => "overview",

  
  );    
  
  _ppt_template('framework/admin/_form-wrap-top' ); 
  
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
 
  
 $g = array(


		 "favs" => array(
		 
			 "name" => __("Favorites System","premiumpress"), 
			 "desc" => __("Here you can turn on/off the entire user favorites system.","premiumpress"), 
			 "type" => "yesno", 
			 "d" => 1,
			  "col8" => true 
		 ),	
		  
		 
		 "likes" => array(
		 
			 "name" => __("User Likes System","premiumpress"), 
			 "desc" => __("Here you can turn on/off the entire user likes system.","premiumpress"), 
			 "type" => "yesno", 
			 "d" => 1,
			  "col8" => true 
		 ),	
		 
		 
		  "likesredirect" => array(
		 
			 "name" => __("Disable Redirect","premiumpress"), 
			 "desc" => __("Here you can turn on/off the redirect to new profile after like is selected.","premiumpress"), 
			 "type" => "yesno", 
			 "d" => 1,
			  "col8" => true 
		 ),	 
		 
  
);

if(THEME_KEY != "da"){
unset($g['likesredirect']);
}
  
  
?>
   
<div class="card card-admin">
  <div class="card-body">
	
<?php 
  
  foreach ($g as $fieldkey => $fielddata){ 
    
    $h = $CORE_ADMIN->LoadCongifField($fielddata, $fieldkey, "user");
    if(is_string($h) && strlen($h) > 0){
      echo str_replace("border-bottom","",$h); 
    }
  }; 
  
  ?>

  
      <div class="p-4 bg-light text-center mt-4">
      <button type="submit" data-ppt-btn class="btn-primary"><?php echo __("Save Settings","premiumpress"); ?></button>
    </div>
    
  </div>
</div>
<!-- end admin card --> 

 
  <?php _ppt_template('framework/admin/_form-wrap-bottom' ); ?>