1
|
|
|
<div class="wrap pods-admin"> |
2
|
|
|
<div id="icon-pods" class="icon32"><br /></div> |
3
|
|
|
<h2><?php _e( 'Pods Help', 'pods' ); ?></h2> |
4
|
|
|
<img src="<?php echo esc_url( PODS_URL ); ?>ui/images/pods-logo-notext-rgb-transparent.png" class="pods-leaf-watermark-right" /> |
5
|
|
|
|
6
|
|
|
<h3><?php _e( 'Pods Support' , 'pods'); ?></h3> |
|
|
|
|
7
|
|
|
|
8
|
|
|
<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">Pods.io</a>:', 'pods'); ?></p> |
|
|
|
|
9
|
|
|
<ul class="ul-disc"> |
10
|
|
|
<li><?php _e('To learn more about using Pods, see the <a href="https://pods.io/docs/" target="_blank">documentation</a>, or our <a href="https://pods.io/tutorials/" target="_blank">tutorials section</a>', 'pods'); ?>. |
|
|
|
|
11
|
|
|
|
12
|
|
|
<li><?php _e( 'To get help with a specific issue, you can ask in our <a href="https://pods.io/forums/" target="_blank">support forums</a>, or in <a href="https://pods.io/forums/chat/" target="_blank">our chat</a>', 'pods'); ?>. |
|
|
|
|
13
|
|
|
|
14
|
|
|
<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">GitHub</a>.', 'pods' ); ?></li> |
|
|
|
|
15
|
|
|
|
16
|
|
|
<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> |
|
|
|
|
17
|
|
|
</ul> |
18
|
|
|
|
19
|
|
|
<hr /> |
20
|
|
|
|
21
|
|
|
<?php |
22
|
|
|
include_once( ABSPATH . WPINC . '/feed.php' ); |
23
|
|
|
|
24
|
|
|
$feed = fetch_feed( 'https://pods.io/forums/forum/pods-2-x/feed/' ); |
25
|
|
|
|
26
|
|
|
if ( !is_wp_error( $feed ) ) { |
27
|
|
|
$max_items = $feed->get_item_quantity( 10 ); |
28
|
|
|
$rss_items = $feed->get_items( 0, $max_items ); |
29
|
|
|
|
30
|
|
|
if ( 0 < $max_items ) { |
31
|
|
|
?> |
32
|
|
|
<h3><?php _e( 'Latest Forum Posts at <a href="https://pods.io/forums/forum/general-discussion/pods-2-x/" target="_blank">pods.io</a>', 'pods'); ?></h3> |
|
|
|
|
33
|
|
|
|
34
|
|
|
<ul class="ul-disc"> |
35
|
|
|
<?php |
36
|
|
|
foreach ( $rss_items as $item ) { |
37
|
|
|
$authors = $item->get_authors(); |
38
|
|
|
|
39
|
|
|
$author_text = ''; |
40
|
|
|
|
41
|
|
|
foreach ( $authors as $author ) { |
42
|
|
|
$author_text = '<br /> by '; |
43
|
|
|
|
44
|
|
|
if ( !empty( $author->link ) ) |
45
|
|
|
$author_text .= '<a href="' . $author->link . '" target="_blank">'; |
46
|
|
|
|
47
|
|
|
$author_text .= $author->name; |
48
|
|
|
|
49
|
|
|
if ( !empty( $author->link ) ) |
50
|
|
|
$author_text .= '</a>'; |
51
|
|
|
} |
52
|
|
|
?> |
53
|
|
|
<li> |
54
|
|
|
<a href="<?php echo esc_url( $item->get_permalink() ); ?>"><?php echo esc_html( $item->get_title() ); ?></a> |
55
|
|
|
<?php echo $author_text; ?> |
56
|
|
|
<br /> |
57
|
|
|
on <?php echo $item->get_date( 'm/d/Y' ); ?> |
58
|
|
|
</li> |
59
|
|
|
<?php |
60
|
|
|
} |
61
|
|
|
?> |
62
|
|
|
</ul> |
63
|
|
|
|
64
|
|
|
<hr /> |
65
|
|
|
<?php |
66
|
|
|
} |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
$feed = fetch_feed( 'https://github.com/pods-framework/pods/commits/2.x.atom' ); |
70
|
|
|
|
71
|
|
|
if ( !is_wp_error( $feed ) ) { |
72
|
|
|
$max_items = $feed->get_item_quantity( 10 ); |
73
|
|
|
$rss_items = $feed->get_items( 0, $max_items ); |
74
|
|
|
|
75
|
|
|
if ( 0 < $max_items ) { |
76
|
|
|
?> |
77
|
|
|
<h3><?php _e( 'Latest Activity on <a href="http://github.com/pods-framework/pods" target="_blank">GitHub</a>', 'pods' ); ?></h3> |
78
|
|
|
|
79
|
|
|
<ul class="ul-disc"> |
80
|
|
|
<?php |
81
|
|
|
foreach ( $rss_items as $item ) { |
82
|
|
|
$authors = $item->get_authors(); |
83
|
|
|
|
84
|
|
|
$author_text = ''; |
85
|
|
|
|
86
|
|
|
foreach ( $authors as $author ) { |
87
|
|
|
$author_text = '<br /> by '; |
88
|
|
|
|
89
|
|
|
if ( !empty( $author->link ) ) |
90
|
|
|
$author_text .= '<a href="' . $author->link . '" target="_blank">'; |
91
|
|
|
|
92
|
|
|
$author_text .= $author->name; |
93
|
|
|
|
94
|
|
|
if ( !empty( $author->link ) ) |
95
|
|
|
$author_text .= '</a>'; |
96
|
|
|
} |
97
|
|
|
?> |
98
|
|
|
<li> |
99
|
|
|
<a href="<?php echo esc_url( $item->get_permalink() ); ?>">Commit</a>: <?php echo esc_html( $item->get_title() ); ?> |
100
|
|
|
<?php echo $author_text; ?> |
101
|
|
|
<br /> |
102
|
|
|
on <?php echo $item->get_date( 'm/d/Y' ); ?> |
103
|
|
|
</li> |
104
|
|
|
<?php |
105
|
|
|
} |
106
|
|
|
?> |
107
|
|
|
</ul> |
108
|
|
|
<?php |
109
|
|
|
} |
110
|
|
|
} |
111
|
|
|
?> |
112
|
|
|
|
113
|
|
|
</div> |
114
|
|
|
|