public static function Utilities::AddSupportButton in OAuth2 Login 8
Shows support block
4 calls to Utilities::AddSupportButton()
- MiniorangeConfigOAuthClient::buildForm in src/
Form/ MiniorangeConfigOAuthClient.php - Form constructor.
- MiniorangeMapping::buildForm in src/
Form/ MiniorangeMapping.php - Form constructor.
- MiniorangeOAuthClientCustomerSetup::buildForm in src/
Form/ MiniorangeOAuthClientCustomerSetup.php - Form constructor.
- Settings::buildForm in src/
Form/ Settings.php - Showing Settings form.
File
- src/
Utilities.php, line 34
Class
Namespace
Drupal\oauth2_loginCode
public static function AddSupportButton(array &$form, \Drupal\Core\Form\FormStateInterface $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('Support'),
'#attributes' => array(
'style' => 'font-size: 15px;cursor: pointer;text-align: center;width: 150px;height: 35px;
background: rgba(43, 141, 65, 0.93);color: #ffffff;border-radius: 3px;transform: rotate(90deg);text-shadow: none;
position: relative;margin-left: -92px;top: 107px;',
),
);
$form['markup_idp_attr_header_top_support'] = array(
'#markup' => '<div id="Support_Section" class="mo_saml_table_layout_support_1">',
);
$form['markup_support_1'] = array(
'#markup' => '<h3><b>Feature Request/Contact Us:</b></h3><div>Need any help? We can help you with configuring your OAuth Provider. Just send us a query and we will get back to you soon.<br /></div><br>',
);
$form['miniorange_oauth_client_email_address'] = array(
'#type' => 'textfield',
'#attributes' => array(
'placeholder' => 'Enter your Email',
),
);
$form['miniorange_oauth_client_phone_number'] = array(
'#type' => 'textfield',
'#attributes' => array(
'placeholder' => 'Enter your Phone Number',
),
);
$form['miniorange_oauth_client_support_query'] = array(
'#type' => 'textarea',
'#clos' => '10',
'#rows' => '5',
'#attributes' => array(
'placeholder' => 'Write your query here',
),
);
$form['markup_div'] = array(
'#markup' => '<div>',
);
$form['miniorange_oauth_client_support_submit'] = array(
'#type' => 'submit',
'#value' => t('Submit Query'),
'#submit' => array(
'::saved_support',
),
'#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['miniorange_oauth_client_redirect_demo'] = array(
'#type' => 'submit',
'#value' => t('Request for Demo'),
'#submit' => array(
'::rfd',
),
'#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:right;',
),
);
$form['markup_div_end'] = array(
'#markup' => '</div>',
);
$form['miniorange_oauth_client_support_note'] = array(
'#markup' => '<br><div><br/>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_client_div_end'] = array(
'#markup' => '</div></div><div hidden id="mosaml-feedback-overlay"></div>',
);
}