|
1 <?php global $wptouch_settings; ?> |
|
2 <?php global $bnc_wptouch_version; ?> |
|
3 |
|
4 <div class="metabox-holder" id="wptouch-head"> |
|
5 <div class="postbox"> |
|
6 <div id="wptouch-head-colour"> |
|
7 <div id="wptouch-head-title"> |
|
8 <?php WPtouch(); ?> |
|
9 <img class="ajax-load" src="<?php echo compat_get_plugin_url('wptouch'); ?>/images/admin-ajax-loader.gif" alt="ajax"/> |
|
10 </div> |
|
11 <div id="wptouch-head-links"> |
|
12 <ul> |
|
13 <!-- <li><?php echo sprintf(__( "%sSupport Forums%s", "wptouch" ), '<a href="http://support.bravenewcode.com/forum/wptouch" target="_blank">','</a>'); ?> | </li> --> |
|
14 <li><?php echo sprintf(__( "%sWPtouch Homepage%s", "wptouch" ), '<a href="http://www.bravenewcode.com/wptouch" target="_blank">','</a>'); ?> | </li> |
|
15 <li><?php echo sprintf(__( "%sNewsletter%s", "wordtwit" ), '<a href="http://www.bravenewcode.com/newsletter" target="_blank">','</a>'); ?> | </li> |
|
16 <li><?php echo sprintf(__( "%sDonate%s", "wptouch" ), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40bravenewcode%2ecom&item_name=WPtouch%20Beer%20Fund&no_shipping=1&tax=0&currency_code=CAD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank">','</a>'); ?></li> |
|
17 </ul> |
|
18 </div> |
|
19 <div class="bnc-clearer"></div> |
|
20 </div> |
|
21 |
|
22 <div id="wptouch-news-support"> |
|
23 |
|
24 <div id="wptouch-news-wrap"> |
|
25 <h3><span class="rss-head"> </span><?php _e( "WPtouch Wire", "wptouch" ); ?></h3> |
|
26 <div id="wptouch-news-content" style="display:none"> |
|
27 <?php require_once (ABSPATH . WPINC . '/class-snoopy.php'); |
|
28 $snoop_dog = new Snoopy(); |
|
29 $snoop_dog->read_timeout = 3; |
|
30 $result = $snoop_dog->fetch( 'http://www.bravenewcode.com/custom/wptouch-news.php?type=wptouch&version=' . $bnc_wptouch_version ); |
|
31 if ( $result ) { |
|
32 echo $snoop_dog->results; |
|
33 } |
|
34 ?> |
|
35 </div> |
|
36 </div> |
|
37 |
|
38 <div id="wptouch-support-wrap"> |
|
39 <h3><span class="rss-head"> </span><?php _e( "Twitter Topics", "wptouch" ); ?></h3> |
|
40 <div id="wptouch-support-content" style="display:none"> |
|
41 <?php require_once (ABSPATH . WPINC . '/rss.php'); |
|
42 $rss = @fetch_rss('http://search.twitter.com/search.atom?q=wptouch'); |
|
43 if ( isset($rss->items) && 0 != count($rss->items) ) { ?> |
|
44 <ul> |
|
45 <?php $rss->items = array_slice($rss->items, 0, 5); foreach ($rss->items as $item ) { ?> |
|
46 <li><a target="_blank" class="orange-link" href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li> |
|
47 <?php } ?> |
|
48 </ul> |
|
49 <?php } ?> |
|
50 </div> |
|
51 </div> |
|
52 |
|
53 </div><!-- wptouch-news-support --> |
|
54 |
|
55 <div class="bnc-clearer"></div> |
|
56 </div><!-- postbox --> |
|
57 </div><!-- wptouch-head --> |