CustomField.php
77 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | class AC_Admin_Help_CustomField extends AC_Admin_Help { |
| 8 | |
| 9 | public function get_title() { |
| 10 | return __( "Custom Field", 'codepress-admin-columns' ); |
| 11 | } |
| 12 | |
| 13 | public function get_content() { |
| 14 | ob_start(); |
| 15 | ?> |
| 16 | |
| 17 | <p> |
| 18 | <?php _e( "The custom field colum uses the custom fields from posts and users. There are 10 types which you can set.", 'codepress-admin-columns' ); ?> |
| 19 | </p> |
| 20 | <ul> |
| 21 | <li> |
| 22 | <strong><?php _e( "Default", 'codepress-admin-columns' ); ?></strong><br/> |
| 23 | <?php _e( "Value: Can be either a string or array. Arrays will be flattened and values are seperated by a ',' comma.", 'codepress-admin-columns' ); ?> |
| 24 | </li> |
| 25 | <li> |
| 26 | <strong><?php _e( "Checkmark", 'codepress-admin-columns' ); ?></strong><br/> |
| 27 | <?php _e( "Value: should be a 1 (one) or 0 (zero).", 'codepress-admin-columns' ); ?> |
| 28 | </li> |
| 29 | <li> |
| 30 | <strong><?php _e( "Color", 'codepress-admin-columns' ); ?></strong><br/> |
| 31 | <?php _e( "Value: hex value color, such as #808080.", 'codepress-admin-columns' ); ?> |
| 32 | </li> |
| 33 | <li> |
| 34 | <strong><?php _e( "Counter", 'codepress-admin-columns' ); ?></strong><br/> |
| 35 | <?php _e( "Value: Can be either a string or array. This will display a count of the number of times the meta key is used by the item.", 'codepress-admin-columns' ); ?> |
| 36 | </li> |
| 37 | <li> |
| 38 | <strong><?php _e( "Date", 'codepress-admin-columns' ); ?></strong><br/> |
| 39 | <?php printf( __( "Value: Can be unix time stamp or a date format as described in the <a href='%s'>Codex</a>. You can change the outputted date format at the <a href='%s'>general settings</a> page.", 'codepress-admin-columns' ), 'http://codex.wordpress.org/Formatting_Date_and_Time', admin_url( 'options-general.php' ) ); ?> |
| 40 | </li> |
| 41 | <li> |
| 42 | <strong><?php _e( "Excerpt", 'codepress-admin-columns' ); ?></strong><br/> |
| 43 | <?php _e( "Value: This will show the first 20 words of the Post content.", 'codepress-admin-columns' ); ?> |
| 44 | </li> |
| 45 | <li> |
| 46 | <strong><?php _e( "Image", 'codepress-admin-columns' ); ?></strong><br/> |
| 47 | <?php _e( "Value: should contain an image URL or Attachment IDs ( seperated by a ',' comma ).", 'codepress-admin-columns' ); ?> |
| 48 | </li> |
| 49 | <li> |
| 50 | <strong><?php _e( "Media Library", 'codepress-admin-columns' ); ?></strong><br/> |
| 51 | <?php _e( "Value: should contain Attachment IDs ( seperated by a ',' comma ).", 'codepress-admin-columns' ); ?> |
| 52 | </li> |
| 53 | <li> |
| 54 | <strong><?php _e( "Multiple Values", 'codepress-admin-columns' ); ?></strong><br/> |
| 55 | <?php _e( "Value: should be an array. This will flatten any ( multi dimensional ) array.", 'codepress-admin-columns' ); ?> |
| 56 | </li> |
| 57 | <li> |
| 58 | <strong><?php _e( "Numeric", 'codepress-admin-columns' ); ?></strong><br/> |
| 59 | <?php _e( "Value: Integers only.<br/>If you have the 'sorting addon' this will be used for sorting, so you can sort your posts on numeric (custom field) values.", 'codepress-admin-columns' ); ?> |
| 60 | </li> |
| 61 | <li> |
| 62 | <strong><?php _e( "Post Titles", 'codepress-admin-columns' ); ?></strong><br/> |
| 63 | <?php _e( "Value: can be one or more Post ID's (seperated by ',').", 'codepress-admin-columns' ); ?> |
| 64 | </li> |
| 65 | <li> |
| 66 | <strong><?php _e( "Usernames", 'codepress-admin-columns' ); ?></strong><br/> |
| 67 | <?php _e( "Value: can be one or more User ID's (seperated by ',').", 'codepress-admin-columns' ); ?> |
| 68 | </li> |
| 69 | </ul> |
| 70 | |
| 71 | <?php |
| 72 | |
| 73 | return ob_get_clean(); |
| 74 | } |
| 75 | |
| 76 | } |
| 77 |