/var/www/html_us/wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/Button.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
use YayMail\Helper\Helper;
?>

<table
  width="<?php esc_attr_e$general_attrs['tableWidth'], 'woocommerce' ); ?>"
  cellspacing="0"
  cellpadding="0"
  border="0"
  align="center"
  style="display: table; <?php echo esc_attr'background-color: ' $attrs['backgroundColor'] ); ?><?php echo ! $isInColumns esc_attr'min-width:' $general_attrs['tableWidth'] . 'px' ) : esc_attr'width: 100%' ); ?>;"
  class="web-main-row"
  id="web<?php echo esc_attr$id ); ?>"
  >
  <tbody>
  <tr>
    <td
      id="web-<?php echo esc_attr$id ); ?>-button"
          class="web-button-full-width"
          style="<?php echo esc_attr'padding: ' $attrs['paddingTop'] . 'px ' $attrs['paddingRight'] . 'px ' $attrs['paddingBottom'] . 'px ' $attrs['paddingLeft'] . 'px;' ); ?>"
        >
          <table
            align="<?php echo esc_attr$attrs['align'] ); ?>"
            cellspacing="0"
            cellpadding="0"
            border="0"
            width="<?php echo esc_attr$attrs['widthButton'] ) . '%'?>"
          >
            <tbody>
              <tr>
                <td
                  style="margin: 10px; word-break: break-word;"
                  id="web-<?php echo esc_attr$id ); ?>button"
                  class="web-button-wrap">
                  <a href="<?php echo esc_attr$attrs['pathUrl'] ); ?>" class="yaymail-web-button" style='line-height: 21px;text-align: center; text-decoration: none; margin: 0px; display:block;<?php echo 'font-family: ' wp_kses_poststr_replace'"'''$attrs['family'] ) ); ?>;<?php echo esc_attr'background-color: ' Helper::yaymail_parse_color_to_hex($attrs['buttonBackgroundColor']) ); ?>;<?php echo esc_attr'font-size: ' $attrs['fontSize'] . 'px' ); ?>;<?php echo esc_attr'color: ' $attrs['textColor'] ); ?>;<?php echo esc_attr'font-weight: ' $attrs['weight'] ); ?>;<?php echo esc_attr'padding: ' $attrs['textPaddingTop'] . 'px ' $attrs['textPaddingRight'] . 'px ' $attrs['textPaddingBottom'] . 'px ' $attrs['textPaddingLeft'] . 'px;' ); ?><?php echo esc_attr'border-radius: ' $attrs['borderRadiusTop'] . 'px ' $attrs['borderRadiusRight'] . 'px ' $attrs['borderRadiusBottom'] . 'px ' $attrs['borderRadiusLeft'] . 'px;' ); ?>'><span style="text-align: center;vertical-align: middle;<?php echo esc_attr'line-height: ' $attrs['heightButton'] ) . 'px'?>;<?php echo esc_attr'color: ' $attrs['textColor'] ); ?>"><?php echo wp_kses_post$attrs['text'] ); ?></span></a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>