You are here

public static function SendinblueManager::generateHomeLogout in SendinBlue 7.2

Same name and namespace in other branches
  1. 7 includes/sendinblue.manage.inc \SendinblueManager::generateHomeLogout()

Generate Home layout of Log out.

Return value

string A html of home page when log out.

1 call to SendinblueManager::generateHomeLogout()
sendinblue_home_page in includes/sendinblue_home.admin.inc
Display Home page of module.

File

includes/sendinblue.manage.inc, line 46
Manage class file.

Class

SendinblueManager
Basic manager of module.

Code

public static function generateHomeLogout() {
  $print_html = '<div id="main-content"><div class="panel panel-default row small-content">';
  $print_html .= '<div class="page-header">';
  $print_html .= t('<span style="color: #777777;">Step1&nbsp;|&nbsp;</span><strong>Create a SendinBlue Account</strong>');
  $print_html .= '</div><div class="panel-body"><div class="col-md-9 row">';
  $print_html .= '<p>' . t('By Creating a free SendinBlue account, you will have access to send a confirmation message.') . '</p>';
  $print_html .= '<ul class="sib-home-feature">';
  $print_html .= '<li>-&nbsp;&nbsp;' . t('Collect your contacts and upload your lists') . '</li>';
  $print_html .= '<li>-&nbsp;&nbsp;' . t('Use SendinBlue SMTP to send your transactional emails') . '</li>';
  $print_html .= '<li class="home-read-more-content">-&nbsp;&nbsp;' . t('Email marketing builders') . '</li>';
  $print_html .= '<li class="home-read-more-content">-&nbsp;&nbsp;' . t('Create and schedule your email marketing campaigns') . '</li>';
  $print_html .= '<li class="home-read-more-content">-&nbsp;&nbsp;' . t('See all of') . '&nbsp;';
  $print_html .= t('<a href="@sendinblue-feature" target="_blank">SendinBlue\'s features</a></li>', array(
    '@sendinblue-feature' => 'https://www.sendinblue.com/features/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</ul>' . t('<a href="@sendinblue-signup" target="_blank" style="margin-top: 10px;display: block;">>&nbsp;Create an account</a>', array(
    '@sendinblue-signup' => 'https://www.sendinblue.com/users/signup/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</div></div></div><div class="panel panel-default row small-content"><div class="page-header">';
  $print_html .= '<span style="color: #777777;">' . t('Step2') . '&nbsp;|&nbsp;</span>';
  $print_html .= '<strong>' . t('Activate your account with your API key') . '</strong></div>';
  $print_html .= '<div class="panel-body"><div class="col-md-9 row"><div id="success-alert" class="alert alert-success" role="alert" style="display: none;">';
  $print_html .= t('You successfully activate your account.');
  $print_html .= '</div>';
  $print_html .= '<div id="failure-alert" class="alert alert-danger" role="alert" style="display: none;">' . t('Please input correct information.') . '</div>';
  $print_html .= '<p>' . t('Once your have created your SendinBlue account, activate this plugin to send all your transactional emails by using SendinBlue SMTP to make sure all of your emails get to your contacts inbox.') . '<br />';
  $print_html .= t('To activate your plugin, enter your API key.') . '<br /></p><p>';
  $print_html .= t('<a href="@sendinblue-apikey" target="_blank">>&nbsp;Get your API key from your account</a>', array(
    '@sendinblue-apikey' => 'https://my.sendinblue.com/advanced/apikey/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</p><p><div class="col-md-7 row">';
  $form = drupal_get_form('sendinblue_login_form');
  $print_html .= drupal_render($form);
  $print_html .= '</div></p></div></div></div></div>';
  return $print_html;
}