function bp_media_fetch_feeds() { if (isset($_GET['bp_media_get_feeds']) && $_GET['bp_media_get_feeds'] == '1') { bp_media_get_feeds(); die; } }
/** * Default BuddyPress Media Component admin sidebar with metabox styling * * @since BP Media 2.0 */ function bp_media_default_admin_sidebar() { ?> <div class="postbox" id="social"> <div title="<?php _e('Click to toggle', 'bp-media'); ?> " class="handlediv"><br /></div> <h3 class="hndle"><span><?php _e('Getting Social is Good', 'bp-media'); ?> </span></h3> <div class="inside" style="text-align:center;"> <a href="<?php printf('%s', 'http://www.facebook.com/rtCamp.solutions/'); ?> " target="_blank" title="<?php _e('Become a fan on Facebook', 'bp-media'); ?> " class="bp-media-facebook bp-media-social"><?php _e('Facebook', 'bp-media'); ?> </a> <a href="<?php printf('%s', 'https://twitter.com/rtcamp/'); ?> " target="_blank" title="<?php _e('Follow us on Twitter', 'bp-media'); ?> " class="bp-media-twitter bp-media-social"><?php _e('Twitter', 'bp-media'); ?> </a> <a href="<?php printf('%s', 'http://feeds.feedburner.com/rtcamp/'); ?> " target="_blank" title="<?php _e('Subscribe to our feeds', 'bp-media'); ?> " class="bp-media-rss bp-media-social"><?php _e('RSS Feed', 'bp-media'); ?> </a> </div> </div> <div class="postbox" id="donations"> <div title="<?php _e('Click to toggle', 'bp-media'); ?> " class="handlediv"><br /></div> <h3 class="hndle"><span><?php _e('Promote, Donate, Share', 'bp-media'); ?> ...</span></h3> <div class="inside"> <p><?php printf(__('Buy coffee/beer for team behind <a href="%s" title="BuddyPress Media Component">BuddyPress Media Component</a>.', 'bp-media'), 'http://rtcamp.com/buddypress-media/'); ?> </p> <div class="bp-media-paypal" style="text-align:center"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_donations" /> <input type="hidden" name="business" value="*****@*****.**" /> <input type="hidden" name="lc" value="US" /> <input type="hidden" name="item_name" value="BuddyPress Media Component" /> <input type="hidden" name="no_note" value="0" /> <input type="hidden" name="currency_code" value="USD" /> <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest" /> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" /> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> </form> </div> <div class="rt-social-share" style="text-align:center; width: 135px; margin: 2px auto"> <div class="rt-facebook" style="float:left; margin-right:5px;"> <a style=" text-align:center;" name="fb_share" type="box_count" share_url="http://rtcamp.com/buddypress-media/"></a> </div> <div class="rt-twitter" style=""> <a href="<?php printf('%s', 'http://twitter.com/share'); ?> " class="twitter-share-button" data-text="I ♥ #mediabp" data-url="http://rtcamp.com/buddypress-media/" data-count="vertical" data-via="mediabp"><?php _e('Tweet', 'bp-media'); ?> </a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </div> <div class="clear"></div> </div> </div> </div> <div class="postbox" id="support"> <div title="<?php _e('Click to toggle', 'bp-media'); ?> " class="handlediv"><br /></div> <h3 class="hndle"><span><?php _e('Free Support', 'bp-media'); ?> </span></h3> <div class="inside"><p><?php printf(__(' If you are facing any problems while using BuddyPress Media Component, or have good ideas for improvements, please discuss the same in our <a href="%s" target="_blank" title="Click here for BuddyPress Media Component Free Support">Support forums</a>', 'bp-media'), 'http://rtcamp.com/support/forum/buddypress-media/'); ?> .</p></div> </div> <div class="postbox" id="latest_news"> <div title="<?php _e('Click to toggle', 'bp-media'); ?> " class="handlediv"><br /></div> <h3 class="hndle"><span><?php _e('Latest News', 'bp-media'); ?> </span></h3> <div class="inside"><?php bp_media_get_feeds(); ?> </div> </div><?php }