You are here

public static function Utilities::advertiseNetworkSecurity in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

3 calls to Utilities::advertiseNetworkSecurity()
miniorange_saml_custom_certficate in ./miniorange_saml_custom_certficate.inc
miniorange_saml_login_options in ./miniorange_saml_login_options.inc
miniorange_saml_mapping in ./miniorange_saml_mapping.inc

File

includes/Utilities.php, line 248

Class

Utilities
This file is part of miniOrange SAML plugin.

Code

public static function advertiseNetworkSecurity(&$form, &$form_state, $module_type = 'Network Security') {
  global $base_url;
  $form['miniorange_idp_guide_link3'] = array(
    '#markup' => '<div class="mo_saml_table_layout mo_saml_container_2">
                        ',
  );
  $mo_image = 'security.jpg';
  $mo_module = 'Web Security module';
  $mo_description = 'Building a website is a time-consuming process that requires tremendous efforts. For smooth
                    functioning and protection from any sort of web attack appropriate security is essential and we
                     ensure to provide the best website security solutions available in the market.
                    We provide you enterprise-level security, protecting your Drupal site from hackers and malware.';
  $mo_knowMoreButton = 'https://plugins.miniorange.com/drupal-web-security-pro';
  $mo_downloadModule = 'https://www.drupal.org/project/security_login_secure';
  if ($module_type == 'SCIM') {
    $mo_image = 'user-sync.png';
    $mo_module = 'User Provisioning (SCIM)';
    $mo_description = 'miniOrange provides a ready to use solution for Drupal User Provisioning using SCIM (System for Cross-domain Identity Management) standard.
            This solution ensures that you can sync add, update, delete, and deactivate user operations with Drupal user list using the SCIM User Provisioner module.';
    $mo_downloadModule = 'https://plugins.miniorange.com/drupal-scim-user-provisioning';
    $mo_knowMoreButton = 'https://plugins.miniorange.com/drupal-scim-user-provisioning';
  }
  $form['mo_idp_net_adv'] = array(
    '#markup' => '<form name="f1">
        <table id="idp_support" class="idp-table" style="border: none;">
        <h4 style="text-align: center;">Looking for a Drupal ' . $mo_module . ' ?</h4>
            <tr>
                <th class="" style="border: none; padding-bottom: 4%; background-color: white; text-align: center;"><img
                            src="' . $base_url . '/' . drupal_get_path("module", "miniorange_saml") . '/includes/images/' . $mo_image . '"
                            alt="miniOrange icon" height=150px width=44%>
		<br>
                        <img src="' . $base_url . '/' . drupal_get_path("module", "miniorange_saml") . '/includes/images/miniorange_i.png"
                             alt="miniOrange icon" height=50px width=50px style="float: left; margin-left: 24px; margin-right: -76px;"><h3 style="margin-top: 16px;">&nbsp;&nbsp;&nbsp;Drupal ' . $mo_module . '</h3>
                </th>
            </tr>

            <tr style="border-right: hidden;">
                <td style="text-align: center">
                    ' . $mo_description . '
                </td>
            </tr>
            <tr style="border-right: hidden;">
                <td style="padding-left: 11%"><br>
                    <a href="' . $mo_downloadModule . '" target="_blank"
                       class="mo_saml_btn mo_saml_btn-primary" style="padding: 4px 10px;">Download Plugin</a>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
                            href="' . $mo_knowMoreButton . '" class="mo_saml_btn mo_saml_btn-success"
                            style="padding: 4px 10px;" target="_blank">Know More</a>
                </td>
            </tr>
        </table>
    </form>',
  );
  return $form;
}