Exemplo n.º 1
0
    $site_url = substr($site_url, $protocol_pos + 3);
}
$freemius_site_url = $fs->has_paid_plan() ? 'https://freemius.com/wordpress/' : 'https://freemius.com/wordpress/insights/';
?>
<div id="fs_connect" class="wrap<?php 
if (!$fs->enable_anonymous() || $is_pending_activation) {
    echo ' fs-anonymous-disabled';
}
?>
">
	<div class="fs-visual">
		<b class="fs-site-icon"><i class="dashicons dashicons-wordpress"></i></b>
		<i class="dashicons dashicons-plus fs-first"></i>
		<?php 
$vars = array('slug' => $slug);
fs_require_once_template('plugin-icon.php', $vars);
?>
		<i class="dashicons dashicons-plus fs-second"></i>
		<img class="fs-connect-logo" width="80" height="80" src="//img.freemius.com/connect-logo.png"/>
	</div>
	<div class="fs-content">
		<p><?php 
if ($is_pending_activation) {
    echo $fs->apply_filters('pending_activation_message', sprintf(__fs('thanks-x', $slug) . '<br>' . __fs('pending-activation-message', $slug), $first_name, '<b>' . $fs->get_plugin_name() . '</b>', '<b>' . $current_user->user_email . '</b>'));
} else {
    $filter = 'connect_message';
    $default_optin_message = 'connect-message';
    if ($fs->is_plugin_update()) {
        // If Freemius was added on a plugin update, set different
        // opt-in message.
        $default_optin_message = 'connect-message_on-update';
Exemplo n.º 2
0
 /**
  * Render contact-us page.
  *
  * @author Vova Feldman (@svovaf)
  * @since  1.0.3
  */
 function _contact_page_render()
 {
     $this->_logger->entrance();
     $vars = array('slug' => $this->_slug);
     fs_require_once_template('contact.php', $vars);
 }
 /**
  * Rendered sticky message dismiss JavaScript.
  *
  * @author Vova Feldman (@svovaf)
  * @since  1.0.7
  */
 static function _add_sticky_dismiss_javascript()
 {
     $params = array();
     fs_require_once_template('sticky-admin-notice-js.php', $params);
 }