/** * Registers the Email Locker item. * * @since 1.0.0 */ function opanda_register_social_locker($items) { global $sociallocker; $title = __('Social Locker', 'sociallocker'); $items['social-locker'] = array('name' => 'social-locker', 'type' => 'free', 'title' => $title, 'help' => opanda_get_help_url('sociallocker'), 'description' => __('<p>Asks users to "pay with a like" or share to unlock content.</p><p>Perfect way to get more followers, attract social traffic and improve some social metrics.</p>', 'sociallocker'), 'shortcode' => 'sociallocker', 'plugin' => $sociallocker); return $items; }
/** * Registers the Sign-In Locker item. * * @since 1.0.0 */ function opanda_register_signin_locker($items) { $plugin = null; if (BizPanda::hasPlugin('optinpanda')) { global $optinpanda; $plugin = $optinpanda; } else { global $sociallocker; $plugin = $sociallocker; } global $optinpanda; $items['signin-locker'] = array('name' => 'signin-locker', 'type' => 'premium', 'title' => __('Sign-In Locker', 'signinlocker'), 'help' => opanda_get_help_url('what-is-signin-locker'), 'description' => __('<p>Locks the content until the user signs in through social networks.</p><p>You can set up various social actions to be performed to sign in (e.g. subscribe, follow, share).</p>', 'signinlocker'), 'shortcode' => 'signinlocker', 'plugin' => $plugin); return $items; }
public function no_items() { echo __('No leads found. ', 'bizpanda'); $view = isset($_GET['opanda_status']) ? $_GET['opanda_status'] : 'all'; if ('all' !== $view) { return; } if (BizPanda::isSinglePlugin()) { if (BizPanda::hasPlugin('optinpanda')) { printf('To start generating leads, create <a href="%s"><strong>Email Locker</strong></a> or <a href="%s"><strong>Sign-In Locker</strong></a> and lock with them some content on your website.', opanda_get_help_url('what-is-email-locker'), opanda_get_help_url('what-is-signin-locker')); } else { printf('To start generating leads, create <a href="%s"><strong>Sign-In Locker</strong></a> and lock with it some content on your website.', opanda_get_help_url('what-is-signin-locker')); } } else { printf('To start generating leads, create <a href="%s"><strong>Email Locker</strong></a> or <a href="%s"><strong>Sign-In Locker</strong></a> and lock with them some content on your website.', opanda_get_help_url('what-is-email-locker'), opanda_get_help_url('what-is-signin-locker')); } }
if (BizPanda::hasPlugin('sociallocker')) { ?> <p> <?php printf(__('Sign-In Locker works the same way as the <a href="%s">Social Locker</a> but instead of liking/sharing it asks the user to sign in through social networks. Concurrently it can perform some social actions.', 'signinlocker'), opanda_get_help_url('what-is-social-locker')); ?> </p> <?php } elseif (BizPanda::hasPlugin('optinpanda')) { ?> <p> <?php printf(__('Sign-In Locker works the same way as the <a href="%s">Email Locker</a> but instead of entering an email it asks the user to sign in through social networks. Concurrently it can perform some social actions.', 'signinlocker'), opanda_get_help_url('what-is-email-locker')); ?> </p> <?php } ?> <p><strong><?php _e('What can you do with the Sign-In Locker', 'signinlocker'); ?> </strong></p> <p> <?php _e('When the user signs in, the social network grants access to the user\'s contact data and allow additionally perform the following actions:', 'signinlocker');
public function indexAction() { if (!class_exists('WP_List_Table')) { require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; } require_once OPANDA_BIZPANDA_DIR . '/admin/includes/classes/class.leads.table.php'; $table = new OPanda_LeadsListTable(array('screen' => 'bizpanda-leads')); $table->prepare_items(); ?> <div class="wrap factory-fontawesome-320" id="opanda-leads-page"> <h2> <?php _e('Leads', 'bizpanda'); ?> <a href="<?php $this->actionUrl('export'); ?> " class="add-new-h2"><?php _e('export', 'bizpanda'); ?> </a> </h2> <?php if (BizPanda::isSinglePlugin()) { ?> <?php if (BizPanda::hasPlugin('optinpanda')) { ?> <p style="margin-top: 0px;"> <?php _e('This page shows contacts of visitors who opted-in or signed-in on your website through Email or Sign-In Lockers.', 'bizpanda'); ?> </p> <?php } else { ?> <p style="margin-top: 0px;"><?php printf(__('This page shows contacts of visitors who signed-in on your website through the <a href="%s">Sign-In Locker</a>.', 'bizpanda'), opanda_get_help_url('what-is-signin-locker')); ?> </p> <?php } ?> <?php } else { ?> <p style="margin-top: 0px;"> <?php _e('This page shows contacts of visitors who opted-in or signed-in on your website through Email or Sign-In Lockers.', 'bizpanda'); ?> </p> <?php } ?> <?php $table->search_box(__('Search Leads', 'mymail'), 's'); $table->views(); ?> <form method="post" action=""> <?php echo $table->display(); ?> </form> </div> <?php OPanda_Leads::updateCount(); }