You are here

public static function SendinblueManager::generateSidebar in SendinBlue 7

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

Generate sidebar.

Return value

string A html of sidebar.

2 calls to SendinblueManager::generateSidebar()
sendinblue_home_page in includes/sendinblue_home.admin.inc
Display Home page of module.
sendinblue_signup_form in includes/sendinblue_signup.admin.inc
Return a form for adding/editing a sendinblue signup form.

File

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

Class

SendinblueManager
Basic manager of module.

Code

public static function generateSidebar() {
  $print_html = '<div class="panel panel-default text-left box-border-box  small-content">';
  $print_html .= '<div class="panel-heading"><strong>' . t('About SendinBlue') . '</strong></div>';
  $print_html .= '<div class="panel-body"><p>';
  $print_html .= t('SendinBlue is an online software that allows you to send emails and SMS. Easily manage your Marketing campaigns, transactional emails and SMS.');
  $print_html .= '</p><ul class="sib-widget-menu"><li>';
  $print_html .= t('<a href="@sendinblue-about" target="_blank">> Who we are</a>', array(
    '@sendinblue-about' => 'https://www.sendinblue.com/about/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</li><li>';
  $print_html .= t('<a href="@sendinblue-price" target="_blank">> Pricing</a>', array(
    '@sendinblue-price' => 'https://www.sendinblue.com/pricing/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</li><li>';
  $print_html .= t('<a href="@sendinblue-feature" target="_blank">> Features</a>', array(
    '@sendinblue-feature' => 'https://www.sendinblue.com/features/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</li></ul></div></div>';
  $print_html .= '<div class="panel panel-default text-left box-border-box  small-content">';
  $print_html .= '<div class="panel-heading"><strong>' . t('Need Help ?') . '</strong></div>';
  $print_html .= '<div class="panel-body"><p>' . t('You have a question or need more information ?') . '</p><ul class="sib-widget-menu"><li>';
  $print_html .= t('<a href="@sendinblue-tutorial" target="_blank">> Tutorials</a>', array(
    '@sendinblue-tutorial' => 'https://resources.sendinblue.com/category/tutorials/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</li><li>';
  $print_html .= t('<a href="@sendinblue-faq" target="_blank">> FAQ</a>', array(
    '@sendinblue-faq' => 'https://resources.sendinblue.com/category/faq/?utm_source=drupal_plugin&utm_medium=plugin&utm_campaign=module_link',
  ));
  $print_html .= '</li></ul></div></div>';
  return $print_html;
}