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

if(isset($_GET['elementor_library']) || ( _ppt('claimlisting') == '1' && get_post_meta($post->ID, "claimed", true) == "" && user_can($post->post_author, 'administrator')  ) ){  ?>
<div class="widget" id="widget-claimlisting" data-title="<?php echo __("Claim Listing","premiumpress") ?>">
   <?php 
   
   // WIDGET OPTION
   // SHOW TITLE
   if(!isset($settings['showtitle']) || ( isset($settings['showtitle']) && $settings['showtitle'] != 0) ){ ?> <div class="widget-title">
<h6><i class="fa fa-briefcase float-right mt-1"></i>  <?php echo __("Is this your business?","premiumpress") ?></h6>
</div><?php } ?>
<p><?php echo __("Claim this business today to update and control company information","premiumpress") ?></p>
<a href="<?php if($userdata->ID){ ?>javascript:void(0);<?php }else{ echo wp_registration_url(); } ?>" class="btn btn-block btn-primary rounded-0 <?php if($userdata->ID){ ?>btn-ajax-claimme<?php } ?> font-weight-bold text-uppercase">
<?php echo __("Claim Business","premiumpress") ?>          
</a></div>              
<?php } ?> 