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(); $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">
} else { return null; } } $model = new BSA_PRO_Model(); $get_spaces = $model->getSpaces('both'); $first_space = $get_spaces[0]['id']; if (isset($_GET['space_id']) && $_GET['space_id'] != NULL && $_GET['space_id'] != '') { $space_id = $_GET['space_id']; } elseif ($get_spaces != NULL) { $space_id = $first_space; } else { $space_id = 0; } $getActiveAds = $model->getActiveAds($space_id, bsa_space($space_id, 'max_items'), 'admin'); $getPendingAds = $model->getPendingAds('pending_ads', $space_id); $getNotPaidAds = $model->getNotPaidAds($space_id); $getBlockedAds = $model->getBlockedAds($space_id); $getArchiveAds = $model->getArchiveAds($space_id); ?> <div class="bsaSortableNotice" style="display:none"> Changes has been saved. </div> <h2> <span class="dashicons dashicons-welcome-widgets-menus"></span> Manage Ad Spaces and Ads </h2> <?php if (isset($_GET['space_id']) && bsa_space($_GET['space_id'], 'id') != NULL || !isset($_GET['space_id'])) {