<?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 $CORE, $userdata;

$desc = "";

	switch(THEME_KEY){
	
		case "cm":
		case "sp": {		
			 $title = __("Create a display title for your product.","premiumpress"); 			   
		} break;
		
		case "es":
		case "da": {
		
			 $title = __("Create a display name for your profile.","premiumpress"); 
			   
		} break;
		 
		default: {
		
			 $title = __("Create a title for your ad.","premiumpress"); 
			 
		} break;
	
	}


$editID=0;

if(isset($_GET['eid']) && is_numeric($_GET['eid'])){
$editID = $_GET['eid'];
} 
 
?>
 
<?php
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
?>


<div class="form-group mt-4">
  <?php if(THEME_KEY == "ex"){ ?>
  <input type="hidden" name="form[post_title]" class="form-control" value="user profile <?php echo $CORE->USER("get_username", $userdata->ID); ?>" />
  <?php }else{ ?>
  <?php if(strlen($title) > 1){ ?> 
 

  <?php } ?>
  
 
<?php

$addTitle = "";
 

$themeoptions = array(

  "dt" => array( 	 
    "add_title" =>  __("eg. Frankys Burger Restaurant", "premiumpress"),
  ),
  "es" => array(  	 
    "add_title" =>  __("Sexy Jane", "premiumpress"),
  ),  
  "ld" => array( 	 
    "add_title" =>  __("eg. Save 10% at BestBuy.com", "premiumpress"),
  ),  
  "bo" => array(  	 
    "add_title" =>  __("eg. Save 10% at BestBuy.com", "premiumpress"), 
  ),
  "cp" => array(       
    "add_title" =>  __("eg. Save 10% at BestBuy.com", "premiumpress"),    
  ),  
  "ph" => array(  
    "add_title" =>  __("eg. Landscape photo of New York", "premiumpress"), 
  ),
  "at" => array(    
    "add_title" =>  __("eg. Used Sony TV", "premiumpress"), 
  ),  
  "dl" => array(
   "add_title" =>  __("eg. 2007 Ford Mustang", "premiumpress"),   
  ),  
  "sp" => array(
   "add_title" =>  __("eg. Microsoft Surface Laptop", "premiumpress"),      
  ),
  "ll" => array(
   "add_title" =>  __("Introduction to Data Science", "premiumpress"),   
  ),
  "so" => array( 
   "add_title" =>  __("eg. Windows Antivirus Software", "premiumpress"),       
  ), 
  "cm" => array(
    "add_title" =>  __("eg. Microsoft Surface Laptop", "premiumpress"),     
  ),  
  "ct" => array(
   "add_title" =>  __("eg. Used Microsoft Surface Laptop", "premiumpress"),   
  ),  
  "da" => array( 
   "add_title" =>  __("Jane Doe", "premiumpress"),    
  ), 
  "mj" => array(       
   "add_title" =>  __("e.g I will build you a WordPress website.", "premiumpress"),   
  ),
  
  "rt" => array( 
   "add_title" =>  __("eg. 4 Bedroom Detached House Near London", "premiumpress"),  
  ),
  
  "jb" => array(   
   "add_title" =>  __("eg. Full-time Staff Wanted Urgently", "premiumpress"),       
  ),	  
  "vt" => array(
    "add_title" =>  __("eg. Learn to cook steak in 5 minutes or less!", "premiumpress"),     
  ),	
  "pj" => array(
    "add_title" =>  __("eg. I need a new website building.", "premiumpress"),
  ),
  
   "cb" => array(    
   "add_title" =>  __("eg. I need a new website building.", "premiumpress"),    
  ),			
      
   );

  if(isset($themeoptions[THEME_KEY]["add_title"])){
    $addTitle = $themeoptions[THEME_KEY]["add_title"];
  }

   

?>
 

<label class=""><?php echo $title; ?> <span class="text-danger">*</span> </label>
   
   
  <input type="input" name="form[post_title]" id="form_post_title"  data-key="title" maxlength="<?php if(!is_numeric(_ppt(array('lst', 'titlemax' ))) || _ppt(array('lst', 'titlemax' )) < 2){ echo 150; }else{ echo _ppt(array('lst', 'titlemax' )); } ?>"
               
               placeholder="<?php echo $addTitle; ?>"
               
               
               class="form-control  big required-field" tabindex="1" value="<?php if(isset($_GET['eid'])){ echo $CORE->get_edit_data('post_title', $_GET['eid']); } ?>">
  <?php } ?>
  
</div>







<?php /*

    <div class="d-flex">
    
 
    <label class="custom-control custom-checkbox">
          <input type="checkbox" class="custom-control-input "  value="1" tabindex="20">
          <div class="custom-control-label input-lg mr-2 "> 
          
          <div class=" text-center ml-3 rounded-lg"><?php echo __("Highlight My Ad","premiumpress") ?> 
      
          
          </div> 
          
          
          </div>
 	</label>

    
      <div class="badge_tooltip text-center float-right ml-3" data-direction="top">
    <div class="badge_tooltip__initiator"> 
   <i class="fal fa fa-info-circle"></i></div>
    <div class="badge_tooltip__item">   Let people know you want to sell, rent or hire quickly. <hr /> 7 days -  $100  </div>
  </div>
    
    </div>
 
*/ ?>