PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.14.2
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.14.2
7.8.14.2 7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / views / admin / image-markup.php
wordpress-popup / views / admin Last commit date
commons 2 days ago dashboard 2 days ago dialogs 2 days ago email-lists 2 days ago embedded 2 days ago global 2 days ago integrations 2 days ago integrations-page 2 days ago popup 2 days ago settings 2 days ago slidein 2 days ago sshare 2 days ago dashboard.php 2 days ago entries.php 2 days ago image-markup.php 2 days ago integrations.php 2 days ago settings.php 2 days ago tutorials.php 2 days ago upsell.php 2 days ago widget-analytics.php 2 days ago
image-markup.php
43 lines
1 <?php
2 /**
3 * Common image markup.
4 *
5 * @package Hustle
6 */
7
8 // If image is not set return empty string.
9 if ( empty( $path ) ) {
10 return '';
11 }
12 ?>
13 <img src="<?php echo esc_url( $path ); ?>"
14 title="<?php /* translators: Plugin name */ echo esc_attr( sprintf( __( '%s image', 'hustle' ), Opt_In_Utils::get_plugin_name() ) ); ?>"
15 alt="<?php /* translators: Plugin name */ echo esc_attr( sprintf( __( '%1$s image commonly %1$s-Man doing something fun', 'hustle' ), Opt_In_Utils::get_plugin_name() ) ); ?>"
16
17 <?php if ( ! empty( $retina_path ) ) { ?>
18 srcset="<?php echo esc_url( $path ) . ' 1x, ' . esc_url( $retina_path ) . ' 2x'; ?>"
19 <?php } ?>
20
21 <?php if ( ! empty( $class ) ) { ?>
22 class="<?php echo esc_attr( $class ); ?>"
23 <?php } ?>
24
25 <?php
26 // Add styles to image.
27 if ( ! empty( $width ) || ! empty( $height ) ) {
28 echo ' style="';
29
30 if ( ! empty( $width ) ) {
31 echo 'max-width: ' . esc_attr( 'auto' === $width ? 'auto' : intval( $width ) ) . 'px;';
32 }
33
34 if ( ! empty( $height ) ) {
35 echo 'max-height: ' . intval( $height ) . 'px;';
36 }
37
38 echo '"';
39 }
40 ?>
41
42 aria-hidden="true" />
43