You are here

public static function Utilities::AddrfdButton in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 7

1 call to Utilities::AddrfdButton()
miniorange_oauth_client_license in ./miniorange_oauth_client_licensing.inc

File

includes/Utilities.php, line 80

Class

Utilities

Code

public static function AddrfdButton(&$form, &$form_state) {
  $form['markup_idp_attr_header_top_support_btn'] = array(
    '#markup' => '<div id="mosaml-feedback-form" class="mo_saml_table_layout_support_btn">',
  );
  $form['miniorange_saml_idp_support_side_button'] = array(
    '#type' => 'button',
    '#value' => t('Request for Demo'),
    '#attributes' => array(
      'style' => 'font-size: 15px;cursor: pointer;width: 170px;height: 35px;
                background: rgba(43, 141, 65, 0.93);color: #ffffff;border-radius: 3px;transform: rotate(90deg);text-shadow: none;
                position: relative;margin-left: -102px;top: 115px;',
    ),
  );
  $form['markup_idp_attr_header_top_support'] = array(
    '#markup' => '<div id="Support_Section" class="mo_saml_table_layout_support_1">',
  );
  $form['markup_2'] = array(
    '#markup' => '<b>Want to test any of the Premium module before purchasing?</b> <br>Just send us a request, We will setup a demo site for you on our cloud and provide you with the administrator credentials.
                So that you can test all the premium features as per your requirement.
        <br>',
  );
  $form['customer_email'] = array(
    '#type' => 'textfield',
    '#attributes' => array(
      'style' => 'width:100%',
      'placeholder' => 'Enter your Email',
    ),
  );
  $form['demo_plan'] = array(
    '#type' => 'select',
    '#title' => t('Demo Plan'),
    '#attributes' => array(
      'style' => 'width:100%;',
    ),
    '#options' => [
      'Drupal 7 OAuth Standard Module' => t('Drupal 7 OAuth Standard Module'),
      'Drupal 7 OAuth Premium Module' => t('Drupal 7 OAuth Premium Module'),
      'Drupal 7 OAuth Enterprise Module' => t('Drupal 7 OAuth Enterprise Module'),
      'Not Sure' => t('Not Sure'),
    ],
  );
  $form['description_doubt'] = array(
    '#type' => 'textarea',
    '#clos' => '10',
    '#rows' => '5',
    '#attributes' => array(
      'style' => 'width:100%',
      'placeholder' => 'Write your query here',
    ),
  );
  $form['markup_div'] = array(
    '#markup' => '<div>',
  );
  $form['miniorange_oauth_support_submit_click'] = array(
    '#type' => 'submit',
    '#value' => t('Submit Query'),
    '#submit' => array(
      'send_rfd_query',
    ),
    '#limit_validation_errors' => array(),
    '#attributes' => array(
      'style' => 'background: #337ab7;color: #ffffff;text-shadow: 0 -1px 1px #337ab7, 1px 0 1px #337ab7, 0 1px 1px #337ab7, -1px 0 1px #337ab7;box-shadow: 0 1px 0 #337ab7;border-color: #337ab7 #337ab7 #337ab7;display:block;float:left',
    ),
  );
  $form['markup_div_end'] = array(
    '#markup' => '</div>',
  );
  $form['miniorange_oauth_support_note'] = array(
    '#markup' => '<br><br><br><div>If you want custom features in the module, just drop an email to <a href="mailto:drupalsupport@xecurify.com">drupalsupport@xecurify.com</a></div>',
  );
  $form['miniorange_oauth_support_div_cust'] = array(
    '#markup' => '</div></div><div hidden id="mosaml-feedback-overlay">',
  );
}