accountSetup.php
1 year ago
adminView.php
11 months ago
appConfig.php
7 months ago
feedbackForm.php
1 year ago
integrations.php
1 year ago
powerBI.php
7 months ago
powerBIsettings.php
7 months ago
support_form.php
1 year ago
support_form.php
68 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Handles powerBI supportForm View |
| 4 | * |
| 5 | * @package embed-power-bi-reports\View |
| 6 | */ |
| 7 | |
| 8 | namespace MoEmbedPowerBI\View; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Class to handle the power bi tab functionalities. |
| 16 | */ |
| 17 | class support_form { |
| 18 | /** |
| 19 | * Holds the instance of SupportForm class. |
| 20 | * |
| 21 | * @var SupportForm |
| 22 | */ |
| 23 | private static $instance; |
| 24 | |
| 25 | /** |
| 26 | * Object instance(SupportForm) getter method. |
| 27 | * |
| 28 | * @return SupportForm |
| 29 | */ |
| 30 | public static function get_view() { |
| 31 | if ( ! isset( self::$instance ) ) { |
| 32 | $class = __CLASS__; |
| 33 | self::$instance = new $class(); |
| 34 | } |
| 35 | return self::$instance; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Function to display support form. |
| 40 | * |
| 41 | * @return void |
| 42 | */ |
| 43 | public function mo_epbr_display_support_form() { |
| 44 | $support_header_image_url = esc_url( plugin_dir_url( __FILE__ ) . '../images/support-header2.jpg' ); |
| 45 | ?> |
| 46 | <div> |
| 47 | <form method="post" action=""> |
| 48 | <input type="hidden" name="option" value="mo_epbr_contact_us_query_option" /> |
| 49 | <div class="support_container" id="contact-us"> |
| 50 | <div class="support_header" style="background-image: url('<?php echo esc_attr( $support_header_image_url ); ?>'); "> |
| 51 | </div> |
| 52 | <?php wp_nonce_field( 'mo_epbr_contact_us_query_option' ); ?> |
| 53 | <div style="display:flex;justify-content:flex-start;align-items:center;width:90%;margin-top:8px;font-size:14px;font-weight:500;">Email:</div> |
| 54 | <input style="width:91%;border:none;margin-top:4px;background-color:#fff" type="email" required name="mo_epbr_contact_us_email" value="<?php echo ( get_option( 'mo_epbr_admin_email' ) === '' ) ? esc_attr( get_option( 'admin_email' ) ) : esc_attr( get_option( 'mo_epbr_admin_email' ) ); ?>" placeholder="Email"> |
| 55 | <div style="display:flex;justify-content:flex-start;align-items:center;width:90%;margin-top:8px;font-size:14px;font-weight:500;">Contact No.:</div> |
| 56 | <input id="contact_us_phone" class="support__telphone" type="tel" style="border:none;margin:5px 22px;background-color:#fff;" pattern="[\+]?[0-9]{1,4}[\s]?([0-9]{4,12})*" name="mo_epbr_contact_us_phone" value="<?php echo esc_attr( get_option( 'mo_epbr_admin_phone' ) ); ?>" placeholder="Enter your phone"> |
| 57 | <div style="display:flex;justify-content:flex-start;align-items:center;width:90%;margin-top:5px;font-size:14px;font-weight:500;">How can we help you?</div> |
| 58 | <textarea id="textarea-contact-us" style="padding:10px 10px;width:91%;border:none;margin-top:5px;background-color:#fff" onkeypress="mo_epbr_valid_query(this)" onkeyup="mo_epbr_valid_query(this)" onblur="mo_epbr_valid_query(this)" required name="mo_epbr_contact_us_query" rows="3" style="resize: vertical;" placeholder="You will get reply via email"></textarea> |
| 59 | <div style="text-align:center;"> |
| 60 | <input type="submit" name="submit" style=" width:120px;margin:8px;" class="button button-primary button-large"/> |
| 61 | </div> |
| 62 | </div> |
| 63 | </form> |
| 64 | </div> |
| 65 | <?php |
| 66 | } |
| 67 | } |
| 68 |