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

$showUpgrades = 1;

if(_ppt(array('lst','addon_sponsored_enable')) != "1" && _ppt(array('lst','addon_featured_enable')) != "1" && _ppt(array('lst','addon_homepage_enable')) != "1" ){ $showUpgrades = 0;  }
 
	
 
?>

<nav ppt-nav><ul class="pl-0 small">
 
 
<a href="<?php echo _ppt(array('links','add')); ?>?eid=%postid%" class="text-dark">
<div class="d-flex">
	<div ppt-flex-middle><div ppt-icon-20 data-ppt-icon-size="20" class="mr-2 mt-n1"><?php echo $CORE_UI->icons_svg['pencil']; ?></div></div> 
	<div ppt-flex-middle><?php echo __("Edit Page","premiumpress"); ?></div> 
</div>

</a> 
</li>

<li class="hide-mobile">
<a href="javascript:void(0)" onclick="processStats(%postid%);" >
<div class="d-flex">
	<div ppt-flex-middle><div ppt-icon-20 data-ppt-icon-size="20" class="mr-2 mt-n1"><?php echo $CORE_UI->icons_svg['chart']; ?></div></div> 
	<div ppt-flex-middle><?php echo __("Statistics","premiumpress"); ?></div> 
</div> 
</a> 
</li>
<?php if($showUpgrades){ ?>
<li>
<a href="javascript:void(0)" onclick="processListingUpgrade(%postid%);" >
<div class="d-flex">
	<div ppt-flex-middle><div ppt-icon-20 data-ppt-icon-size="20" class="mr-2 mt-n1"><?php echo $CORE_UI->icons_svg['light-bulb']; ?></div></div> 
	<div ppt-flex-middle><?php echo __("Upgrades","premiumpress"); ?></div> 
</div> 
</a> 
</li>
<?php } ?>

<li class="hide-mobile">%status%</li>

</ul>
</nav>
 