upgrade
3 days ago
widgets
3 days ago
components-admin.php
3 days ago
field-option.php
3 days ago
form-settings.php
3 days ago
form.php
3 days ago
help.php
3 days ago
postbox-header.php
3 days ago
settings-reset.php
3 days ago
settings-settings.php
3 days ago
settings-tools.php
3 days ago
settings.php
3 days ago
setup-add.php
3 days ago
setup-edit-field-fluid.php
3 days ago
setup-edit-field.php
3 days ago
setup-edit.php
3 days ago
shortcode.php
3 days ago
view.php
3 days ago
help.php
132 lines
| 1 | <?php |
| 2 | // Don't load directly. |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | die( '-1' ); |
| 5 | } |
| 6 | ?> |
| 7 | <div class="wrap pods-admin pods-admin--flex"> |
| 8 | <div class="pods-admin__content-container"> |
| 9 | <div id="icon-pods" class="icon32"><br /></div> |
| 10 | <h2><?php _e( 'Pods Help', 'pods' ); ?></h2> |
| 11 | <img src="<?php echo esc_url( PODS_URL ); ?>ui/images/pods-logo-notext-rgb-transparent.png" class="pods-leaf-watermark-right" /> |
| 12 | |
| 13 | <h3><?php _e( 'Pods Support' , 'pods'); ?></h3> |
| 14 | |
| 15 | <p><?php _e( 'There are many resources available to help you learn to use Pods on our site, <a href="https://pods.io/" target="_blank" rel="noopener noreferrer">Pods.io</a>:', 'pods'); ?></p> |
| 16 | <ul class="ul-disc"> |
| 17 | <li><?php _e('To learn more about using Pods, see our <a href="https://pods.io/docs/" target="_blank" rel="noopener noreferrer">documentation</a> and subscribe to our <a href="https://www.youtube.com/user/podsframework/" target="_blank" rel="noopener noreferrer">YouTube Channel</a>', 'pods'); ?>. |
| 18 | |
| 19 | <li><?php _e( 'To get help with a specific issue, you can ask in our <a href="https://wordpress.org/support/plugin/pods" target="_blank" rel="noopener noreferrer">support forums</a>, or you can join <a href="https://pods.io/chat/" target="_blank" rel="noopener noreferrer">our Slack chat</a>', 'pods'); ?>. |
| 20 | |
| 21 | <li><?php _e('To report <strong>bugs or request features</strong>, go to our <a href="https://github.com/pods-framework/pods/issues?sort=updated&direction=desc&state=open" target="_blank" rel="noopener noreferrer">GitHub</a>.', 'pods' ); ?></li> |
| 22 | |
| 23 | <li><?php _e( "Pods is open source, so if you want to get into the code and submit your own fixes or features, go at it, we'd love to have you contribute on our project! With GitHub, it's really easy to contribute back, so why not give it a try?", 'pods'); ?></li> |
| 24 | </ul> |
| 25 | |
| 26 | <hr /> |
| 27 | |
| 28 | <?php |
| 29 | include_once( ABSPATH . WPINC . '/feed.php' ); |
| 30 | |
| 31 | $feed = fetch_feed( 'https://wordpress.org/support/plugin/pods/feed/' ); |
| 32 | |
| 33 | if ( !is_wp_error( $feed ) ) { |
| 34 | $max_items = $feed->get_item_quantity( 10 ); |
| 35 | $rss_items = $feed->get_items( 0, $max_items ); |
| 36 | |
| 37 | if ( 0 < $max_items ) { |
| 38 | ?> |
| 39 | <h3><?php _e( 'Latest Forum Posts at <a href="https://wordpress.org/support/plugin/pods" target="_blank" rel="noopener noreferrer">wordpress.org</a>', 'pods'); ?></h3> |
| 40 | |
| 41 | <ul class="ul-disc"> |
| 42 | <?php |
| 43 | foreach ( $rss_items as $item ) { |
| 44 | $authors = $item->get_authors(); |
| 45 | |
| 46 | $author_text = ''; |
| 47 | |
| 48 | foreach ( $authors as $author ) { |
| 49 | $author_text = '<br /> by '; |
| 50 | |
| 51 | if ( !empty( $author->link ) ) |
| 52 | $author_text .= '<a href="' . $author->link . '" target="_blank" rel="noopener noreferrer">'; |
| 53 | |
| 54 | $author_text .= $author->name; |
| 55 | |
| 56 | if ( !empty( $author->link ) ) |
| 57 | $author_text .= '</a>'; |
| 58 | } |
| 59 | ?> |
| 60 | <li> |
| 61 | <a href="<?php echo esc_url( $item->get_permalink() ); ?>"><?php echo html_entity_decode( esc_html( $item->get_title() ) ); ?></a> |
| 62 | <?php echo $author_text; ?> |
| 63 | <br /> |
| 64 | on <?php echo $item->get_date( 'm/d/Y' ); ?> |
| 65 | </li> |
| 66 | <?php |
| 67 | } |
| 68 | ?> |
| 69 | </ul> |
| 70 | |
| 71 | <hr /> |
| 72 | <?php |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | $feed = fetch_feed( 'https://github.com/pods-framework/pods/commits/2.x.atom' ); |
| 77 | |
| 78 | if ( !is_wp_error( $feed ) ) { |
| 79 | // Silence warnings due to a bug in SimplePie's date parser with PHP 7.1+ |
| 80 | // See: https://github.com/pods-framework/pods/issues/4363 |
| 81 | $max_items = @$feed->get_item_quantity( 10 ); |
| 82 | $rss_items = $feed->get_items( 0, $max_items ); |
| 83 | |
| 84 | if ( 0 < $max_items ) { |
| 85 | ?> |
| 86 | <h3><?php _e( 'Latest Activity on <a href="http://github.com/pods-framework/pods" target="_blank" rel="noopener noreferrer">GitHub</a>', 'pods' ); ?></h3> |
| 87 | |
| 88 | <ul class="ul-disc"> |
| 89 | <?php |
| 90 | foreach ( $rss_items as $item ) { |
| 91 | $authors = $item->get_authors(); |
| 92 | |
| 93 | $author_text = ''; |
| 94 | |
| 95 | foreach ( $authors as $author ) { |
| 96 | $author_text = '<br /> by '; |
| 97 | |
| 98 | if ( !empty( $author->link ) ) |
| 99 | $author_text .= '<a href="' . $author->link . '" target="_blank" rel="noopener noreferrer">'; |
| 100 | |
| 101 | $author_text .= $author->name; |
| 102 | |
| 103 | if ( !empty( $author->link ) ) |
| 104 | $author_text .= '</a>'; |
| 105 | } |
| 106 | ?> |
| 107 | <li> |
| 108 | <a href="<?php echo esc_url( $item->get_permalink() ); ?>">Commit</a>: <?php echo esc_html( $item->get_title() ); ?> |
| 109 | <?php echo $author_text; ?> |
| 110 | <br /> |
| 111 | on <?php echo $item->get_date( 'm/d/Y' ); ?> |
| 112 | </li> |
| 113 | <?php |
| 114 | } |
| 115 | ?> |
| 116 | </ul> |
| 117 | <?php |
| 118 | } |
| 119 | } |
| 120 | ?> |
| 121 | </div> |
| 122 | |
| 123 | <?php |
| 124 | /** |
| 125 | * Allow additional output after the container area of the Pods help screen. |
| 126 | * |
| 127 | * @since 2.7.17 |
| 128 | */ |
| 129 | do_action( 'pods_admin_after_help' ); |
| 130 | ?> |
| 131 | </div> |
| 132 |