classes
7 months ago
class-wrio-subscribe-widget.php
7 months ago
index.php
3 years ago
sidebar-widgets.php
7 months ago
sidebar-widgets.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Sidebar widgets |
| 4 | * |
| 5 | * @version 1.0 |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Return support widget markup |
| 10 | * |
| 11 | * @return string |
| 12 | */ |
| 13 | function wrio_get_sidebar_support_widget() { |
| 14 | $free_support_url = 'https://wordpress.org/support/plugin/robin-image-optimizer/'; |
| 15 | $support_url = tsdk_utmify( tsdk_translate_link( 'https://themeisle.com/contact/' ), 'bug-security-ticket' ); |
| 16 | |
| 17 | ob_start(); |
| 18 | ?> |
| 19 | <div id="wbcr-clr-support-widget" class="wbcr-factory-sidebar-widget"> |
| 20 | <p><strong><?php _e( 'Having Issues?', 'robin-image-optimizer' ); ?></strong></p> |
| 21 | <div class="wbcr-clr-support-widget-body"> |
| 22 | <p> |
| 23 | <?php _e( 'Need help? Create a support ticket and we\'ll assist you.', 'robin-image-optimizer' ); ?> |
| 24 | </p> |
| 25 | <ul> |
| 26 | <li><span class="dashicons dashicons-sos"></span> |
| 27 | <a href="<?php echo esc_url( $free_support_url ); ?>" target="_blank" rel="noopener"> |
| 28 | <?php esc_html_e( 'Get free support', 'robin-image-optimizer' ); ?> |
| 29 | </a> |
| 30 | </li> |
| 31 | <li style="margin-top: 15px;background: #fff4f1;padding: 10px;color: #a58074;"> |
| 32 | <span class="dashicons dashicons-warning"></span> |
| 33 | <?php |
| 34 | echo wp_kses_post( |
| 35 | sprintf( |
| 36 | // translators: %1$s is opening <a> tag, %2$s is closing </a> tag |
| 37 | __( 'Found a bug or security issue? %1$sCreate a ticket%2$s for a faster response.', 'robin-image-optimizer' ), |
| 38 | '<a href="' . esc_url( $support_url ) . '" target="_blank" rel="noopener">', |
| 39 | '</a>' |
| 40 | ) |
| 41 | ); |
| 42 | ?> |
| 43 | </li> |
| 44 | </ul> |
| 45 | </div> |
| 46 | </div> |
| 47 | <?php |
| 48 | |
| 49 | $output = ob_get_contents(); |
| 50 | |
| 51 | ob_end_clean(); |
| 52 | |
| 53 | return $output; |
| 54 | } |
| 55 |