PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.9.2
Pods – Custom Content Types and Fields v3.3.9.2
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / ui / admin / help-addons-row.php
pods / ui / admin Last commit date
callouts 1 week ago upgrade 1 week ago widgets 1 week ago components-admin.php 1 week ago help-addons-row.php 1 week ago help-addons.php 1 week ago help.php 1 week ago postbox-header.php 1 week ago settings-reset.php 1 week ago settings-settings.php 1 week ago settings-tools.php 1 week ago settings.php 1 week ago setup-add.php 1 week ago setup-edit.php 1 week ago shortcode.php 1 week ago view.php 1 week ago
help-addons-row.php
76 lines
1 <?php
2
3 // Don't load directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 die( '-1' );
6 }
7
8 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
9
10 /**
11 * @var array $addon
12 */
13
14 $first_link = null;
15
16 foreach ( $addon['links'] as $link ) {
17 if ( __( 'Download', 'pods' ) === $link['label'] ) {
18 continue;
19 }
20
21 $first_link = $link['url'];
22 break;
23 }
24
25 $first_host = pods_host_from_url( $first_link );
26 ?>
27
28 <tr>
29 <td>
30 <?php
31 // translators: %s is the domain host.
32 $link_text = sprintf( __( 'View Plugin on %s', 'pods' ), $first_host );
33 ?>
34 <a href="<?php echo esc_url( $first_link ); ?>" target="_blank" rel="noopener noreferrer"
35 title="<?php echo esc_attr( $link_text ); ?>">
36 <img width="50" height="50" src="<?php echo esc_url( $addon['icon'] ); ?>"
37 class="attachment-thumbnail size-thumbnail" alt="<?php echo esc_attr( $addon['label'] ); ?>"
38 loading="lazy" />
39 </a>
40 </td>
41 <td>
42 <?php
43 // translators: %s is the domain host.
44 $link_text = sprintf( __( 'View Plugin on %s', 'pods' ), $first_host );
45 ?>
46 <a href="<?php echo esc_url( $first_link ); ?>" target="_blank" rel="noopener noreferrer"
47 title="<?php echo esc_attr( $link_text ); ?>">
48 <?php echo esc_html( $addon['label'] ); ?>
49 </a>
50
51 <?php if ( ! empty( $addon['description'] ) ) : ?>
52 <p><?php echo esc_html( $addon['description'] ); ?></p>
53 <?php endif; ?>
54 </td>
55 <td>
56 <?php
57 $addon_links = [];
58
59 foreach ( $addon['links'] as $link ) {
60 if ( empty( $link['title'] ) ) {
61 $link['title'] = $link['label'];
62 }
63
64 $addon_links[] = sprintf(
65 '<a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">%3$s</a>',
66 esc_url( $link['url'] ),
67 esc_attr( $link['title'] ),
68 esc_html( $link['label'] )
69 );
70 }
71
72 echo wp_kses_post( implode( ' | ', $addon_links ) );
73 ?>
74 </td>
75 </tr>
76