PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.4
Pods – Custom Content Types and Fields v3.3.4
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 / widgets / view.php
pods / ui / admin / widgets Last commit date
field.php 2 years ago form.php 2 years ago list.php 2 years ago single.php 2 years ago view.php 2 years ago
view.php
59 lines
1 <?php
2 // Don't load directly.
3 if ( ! defined( 'ABSPATH' ) ) {
4 die( '-1' );
5 }
6 ?>
7 <style type="text/css">
8 ol.pods_form_widget_form {
9 list-style: none;
10 padding-left: 0;
11 margin-left: 0;
12 }
13
14 ol.pods_form_widget_form label {
15 display: block;
16 }
17 </style>
18
19 <ol class="pods_form_widget_form">
20 <li>
21 <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"> <?php _e( 'Title', 'pods' ); ?></label>
22
23 <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" value="<?php echo esc_attr( $title ); ?>" />
24 </li>
25
26 <li>
27 <label for="<?php echo esc_attr( $this->get_field_id( 'view' ) ); ?>"><?php _e( 'File to include', 'pods' ); ?></label>
28
29 <input class="widefat" type="text" name="<?php echo esc_attr( $this->get_field_name( 'view' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'view' ) ); ?>" value="<?php echo esc_attr( $view ); ?>" />
30 </li>
31
32 <li>
33 <label for="<?php echo esc_attr( $this->get_field_id( 'cache_mode' ) ); ?>"><?php _e( 'Cache Type', 'pods' ); ?></label>
34
35 <?php
36 $cache_modes = array(
37 'none' => __( 'Disable Caching', 'pods' ),
38 'cache' => __( 'Object Cache', 'pods' ),
39 'transient' => __( 'Transient', 'pods' ),
40 'site-transient' => __( 'Site Transient', 'pods' ),
41 );
42 ?>
43 <select id="<?php echo esc_attr( $this->get_field_id( 'cache_mode' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'cache_mode' ) ); ?>">
44 <?php foreach ( $cache_modes as $cache_mode_option => $cache_mode_label ) : ?>
45 <?php $selected = ( $cache_mode_option === $cache_mode ) ? 'selected' : ''; ?>
46 <option value="<?php echo esc_attr( $cache_mode_option ); ?>"<?php selected( $cache_mode_option, $cache_mode ); ?>>
47 <?php echo esc_html( $cache_mode_label ); ?>
48 </option>
49 <?php endforeach; ?>
50 </select>
51 </li>
52
53 <li>
54 <label for="<?php echo esc_attr( $this->get_field_id( 'expires' ) ); ?>"><?php _e( 'Cache Expiration (in seconds)', 'pods' ); ?></label>
55
56 <input class="widefat" type="text" name="<?php echo esc_attr( $this->get_field_name( 'expires' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'expires' ) ); ?>" value="<?php echo esc_attr( $expires ); ?>" />
57 </li>
58 </ol>
59