/** * Display a HTML banner */ function banner($args = array()) { return pl_admin_banner($args); }
/** * Process ajax response. */ function ajax($response, $data) { $query = isset($data['queryVars']) ? $data['queryVars'] : array(); if ('pros' == $query['special']) { $banner = pl_admin_banner(array('header' => '3rd Party Developers', 'subhead' => sprintf('Supported 3rd Party Extensions. Coming Soon!'), 'content' => '<a href="http://www.pagelines.com/developer/apply" class="button button-primary">Apply Now</a>', 'src' => pl_framework_url('images') . '/thumb-badge.png', 'classes' => 'banner-cards')); $response['cards'] = array('html' => $banner); } else { $cards = PL_Platform()->oauth->request('store', $query); $response['cards'] = $this->refine_cards($cards); } return $response; }