. * */ namespace PublishPress\WordPressBanners; use Exception; if (! defined('PP_WP_BANNERS_VERSION')) { define('PP_WP_BANNERS_VERSION', '1.3.1'); } if (! class_exists('\\PublishPress\\WordPressBanners\\BannersMain')) { class BannersMain { /** * HTML output banner inviting to install another PublishPress plugin or advertise a feature * * @param string $heading Custom heading; disabled if blank * @param string $title Custom title; disabled if blank * @param array $content Content to display. e.g. Feature list or a single paragraph * @param string $link Link to apply to button and image * @param string $link_title Link title * @param string $image A filename from assets/images/ folder; disabled if blank * @param string $link_class Link class. e.g. 'button button-secondary' * * @return void */ public function pp_display_banner( $heading = '', $title = '', $contents = array(), $link = '', $link_title = '', $image = '', $link_class = 'button pp-button-yellow' ) { if (! empty($heading)) { ?>

1) { ?>