$before = '<small>' . get_option('bsa_pro_plugin_currency_symbol') . '</small> '; } else { $before = ''; } if (get_option('bsa_pro_plugin_symbol_position') != 'before') { $after = ' <small>' . get_option('bsa_pro_plugin_currency_symbol') . '</small>'; } else { $after = ''; } $model = new BSA_PRO_Model(); $countSpaces = $model->countSpaces(); $countAds = $model->countAds(); $countEarnings = $model->countEarnings(); $getPendingAds = $model->getPendingAds('admin_dashboard'); $getLastAds = $model->getLastAds(); $getAffiliateWithdrawals = $model->getAffiliateWithdrawals('pending', bsa_role()); $getSites = $model->getSites(bsa_role(), 'pending'); $getWithdrawals = $model->getWithdrawals('pending', bsa_role()); ?> <div style="float:right;"> <strong><a href="http://codecanyon.net/item/ads-pro-multipurpose-wordpress-ad-manager/10275010?ref=scripteo">ADS PRO</a></strong> - Version <?php echo get_option('bsa_pro_plugin_version'); ?> </div> <h2> <i class="dashicons dashicons-megaphone"></i> ADS PRO - Dashboard </h2> <div class="bsaDashboard"> <div class="bsaDashboard-stats"> <div class="bsaDashboard-stat"> <div class="bsaDashboard-inner greenBg">
<?php if (get_option('bsa_pro_plugin_symbol_position') == 'before') { $before = '<small>' . get_option('bsa_pro_plugin_currency_symbol') . '</small>'; } else { $before = ''; } if (get_option('bsa_pro_plugin_symbol_position') != 'before') { $after = '<small>' . get_option('bsa_pro_plugin_currency_symbol') . '</small>'; } else { $after = ''; } $model = new BSA_PRO_Model(); $getAffiliateWithdrawals = $model->getAffiliateWithdrawals(NULL, bsa_role()); $affiliateMinToWithdrawal = get_option('bsa_pro_plugin_' . 'ap_minimum_withdrawal') > 0 ? get_option('bsa_pro_plugin_' . 'ap_minimum_withdrawal') : 50; ?> <h2> <span class="dashicons dashicons-vault"></span> <?php echo bsa_get_trans('affiliate_program', 'affiliate'); ?> <?php if (bsa_role() == 'user') { ?> <p><span class="dashicons dashicon-14 dashicons-plus-alt"></span> <a class="bsaMakeWithdrawal" style="cursor: pointer"><?php echo bsa_get_trans('affiliate_program', 'make'); ?> </a></p> <?php } ?>