Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Move whats new to credit screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhanirabin committed Jun 21, 2016
1 parent 25810de commit 782ad3c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
18 changes: 15 additions & 3 deletions wp-optimize-credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,29 @@
<div class="wpo_col wpo_span_1_of_3">
<div class="postbox">
<div class="inside">
<h3><?php _e('GitHub Development Log','wp-optimize'); ?></h3>
<h3>
<?php _e("What's New", 'wp-optimize'); ?></h3>

<?php
$news_items = wpo_readFeed('http://ruhanirabin.github.io/WP-Optimize/feed.xml', 3);

foreach ( $news_items as $item ) : ?>
<p>
<b> <a href="<?php echo $item->get_link(); ?>" title="<?php echo $item->get_title(); ?>" target="_blank"><?php echo $item->get_title(); ?></a> </b>
</p>
<?php endforeach; ?>

<h3><?php _e('GitHub - Develop Branch','wp-optimize'); ?></h3>
<?php // Get RSS Feed(s)
include_once( ABSPATH . WPINC . '/feed.php' );

// Get a SimplePie feed object from the specified feed source.
$rss = fetch_feed( 'https://github.com/ruhanirabin/wp-optimize/commits/master.atom' );
$rss = fetch_feed( 'https://github.com/ruhanirabin/wp-optimize/commits/develop.atom' );

if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly

// Figure out how many total items there are, but limit it to 5.
$maxitems = $rss->get_item_quantity( 8 );
$maxitems = $rss->get_item_quantity( 5 );

// Build an array of all the items, starting with element 0 (first element).
$rss_items = $rss->get_items( 0, $maxitems );
Expand Down
2 changes: 1 addition & 1 deletion wp-optimize-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function fCheck() {
var vCleanTransient = document.getElementById('clean-transient');

if ( vCleanTransient.checked )
return confirm('<?php _e('Transient options are automatically re-created by WordPress. Select this options if you have a large number of Transient.', 'wp-optimize'); ?>');
return confirm('<?php _e('Transient options are automatically re-created by WordPress. Select this option, if you have a large number of Transient.', 'wp-optimize'); ?>');

if ( vCleanPingbacks.checked )
return confirm('<?php _e('This will delete all pingbacks in the database. Are you sure?', 'wp-optimize'); ?>');
Expand Down
19 changes: 0 additions & 19 deletions wp-optimize-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,25 +287,6 @@
</div>
</div>

<div class="wpo_col wpo_span_1_of_3">
<div class="postbox">
<div class="inside">
<h3>
<?php _e("What's New", 'wp-optimize'); ?></h3>

<?php
$news_items = wpo_readFeed('http://ruhanirabin.github.io/WP-Optimize/feed.xml', 3);

foreach ( $news_items as $item ) : ?>
<p>
<b> <a href="<?php echo $item->get_link(); ?>" title="<?php echo $item->get_title(); ?>" target="_blank"><?php echo $item->get_title(); ?></a> </b>
</p>
<?php endforeach; ?>
</div>
</div>
</div>


<input type="hidden" name="action" value="save_redirect" />

</form>
Expand Down

0 comments on commit 782ad3c

Please sign in to comment.