function get_live_bill() { $url = pagelines_check_credentials('vchat'); $iframe = $url ? sprintf('<iframe class="live_chat_iframe" src="%s"></iframe>', $url) : false; $rand = ob_start(); ?> <div class="admin_billboard"> <div class="admin_billboard_pad fix"> <h3 class="admin_header_main"> <?php _e('PageLines Live Chat (Beta)', 'pagelines'); ?> </h3> <div class='admin_billboard_text'> <?php _e('A moderated live community chat room for discussing technical issues. (Plus Only)', 'pagelines'); ?> </div> <?php if (pagelines_check_credentials('plus')) { printf('<div class="plus_chat_header">%s</div>', $this->pagelines_livechat_rules()); } ?> </div> </div> <div class="live_chat_wrap fix"> <?php if ($iframe) { echo $iframe; } else { ?> <div class="live_chat_up_bill"> <h3><?php _e('Live Chat Requires an active PageLines Plus account', 'pagelines'); ?> </h3> <?php if (!pagelines_check_credentials()) { printf('<a class="button" href="%s">Login</a>', admin_url(PL_ACCOUNT_URL)); } else { if (!VPLUS) { printf('<a class="button" href="%s">%s</a>', pl_get_plus_link(), __('Upgrade to PageLines Plus', 'pagelines')); } } ?> </div> <?php } ?> </div> <?php $bill = ob_get_clean(); return apply_filters('pagelines_welcome_billboard', $bill); }
function special_buttons($args, $story) { if (!isset($args['format']) || $args['format'] != 'plus-extensions') { return; } if (pagelines_check_credentials() && !pagelines_check_credentials('plus')) { printf('<a href="%s" class="extend_button">%s →</a>', pl_get_plus_link(), __('Get PageLines Plus', 'pagelines')); } if (!pagelines_check_credentials()) { printf('<a href="%s" class="extend_button discrete">%s →</a>', admin_url(PL_ACCOUNT_URL), __('Have Plus? Login', 'pagelines')); } if (pagelines_check_credentials('plus')) { echo $this->get_upgrade_button($story, 'install_rss'); } }