PluginProbe
YayMail – WooCommerce Email Customizer / 3.2.2
YayMail – WooCommerce Email Customizer v3.2.2
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / includes / Templates / Elements / YayMail / Button.php

Button.php in YayMail – WooCommerce Email Customizer 3.2.2, at includes/Templates/Elements/YayMail/Button.php

55 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <table
2 width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>"
3 cellspacing="0"
4 cellpadding="0"
5 border="0"
6 align="center"
7 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%' ); ?>"
8 class="web-main-row"
9 id="web<?php echo esc_attr( $id ); ?>"
10 >
11 <tbody>
12 <tr>
13 <td
14 id="web-<?php echo esc_attr( $id ); ?>-button"
15 class="web-button-full-width"
16 style="<?php echo esc_attr( 'padding: ' . $attrs['paddingTop'] . 'px ' . $attrs['paddingRight'] . 'px ' . $attrs['paddingBottom'] . 'px ' . $attrs['paddingLeft'] . 'px;' ); ?>"
17 >
18 <table
19 align="<?php echo esc_attr( $attrs['align'] ); ?>"
20 cellspacing="0"
21 cellpadding="0"
22 border="0"
23 width="<?php echo esc_attr( $attrs['widthButton'] ) . '%'; ?>"
24 >
25 <tbody>
26 <tr>
27 <td
28 style="margin: 10px; word-break: break-word;"
29 id="web-<?php echo esc_attr( $id ); ?>button"
30 class="web-button-wrap"
31 >
32 <a
33 href="<?php echo esc_attr( $attrs['pathUrl'] ); ?>"
34 class="yaymail-web-button"
35 style='line-height: 21px;text-align: center; text-decoration: none; margin: 0px;
36 <?php echo 'font-family: ' . wp_kses_post( $attrs['family'] ); ?>;
37 <?php echo esc_attr( 'background-color: ' . $attrs['buttonBackgroundColor'] ); ?>;
38 <?php echo esc_attr( 'font-size: ' . $attrs['fontSize'] . 'px' ); ?>;
39 <?php echo esc_attr( 'color: ' . $attrs['textColor'] ); ?>;
40 <?php echo esc_attr( 'font-weight: ' . $attrs['weight'] ); ?>;
41 <?php echo esc_attr( 'padding: ' . $attrs['textPaddingTop'] . 'px ' . $attrs['textPaddingRight'] . 'px ' . $attrs['textPaddingBottom'] . 'px ' . $attrs['textPaddingLeft'] . 'px;' ); ?>
42 <?php echo esc_attr( 'border-radius: ' . $attrs['borderRadiusTop'] . 'px ' . $attrs['borderRadiusRight'] . 'px ' . $attrs['borderRadiusBottom'] . 'px ' . $attrs['borderRadiusLeft'] . 'px;' ); ?>
43 '
44 >
45 <span style="text-align: center;vertical-align: middle;<?php echo esc_attr( 'line-height: ' . $attrs['heightButton'] ) . 'px'; ?>"><?php echo wp_kses_post( $attrs['text'] ); ?></span>
46 </a>
47 </td>
48 </tr>
49 </tbody>
50 </table>
51 </td>
52 </tr>
53 </tbody>
54 </table>
55