Skip to content

Commit

Permalink
Show Twitter and Facebook links on Pro Updater and Stats/Charts pages
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Jul 6, 2016
1 parent 5842c83 commit 6bf5dac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/includes/classes/MenuPageProUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ public function __construct()
echo ' <a href="'.esc_attr('http://cometcache.com/blog/').'" target="_blank"><i class="si si-rss-square"></i> '.__('Blog', SLUG_TD).'</a>'."\n";
echo ' </div>'."\n";

echo ' <div class="plugin-menu-page-mailing-list-links">'."\n";
if (!IS_PRO) { // We show these above in the Pro version
echo ' <div class="plugin-menu-page-mailing-list-links">'."\n";
echo ' <a href="'.esc_attr('http://cometcache.com/r/comet-cache-subscribe/').'" target="_blank"><i class="si si-envelope"></i> '.__('Newsletter', SLUG_TD).'</a>'."\n";
echo ' <a href="'.esc_attr('http://cometcache.com/r/comet-cache-beta-testers-list/').'" target="_blank"><i class="si si-envelope"></i> '.__('Beta Testers', SLUG_TD).'</a>'."\n";
echo ' </div>'."\n";
}
echo ' <a href="'.esc_attr('https://twitter.com/cometcache/').'" target="_blank"><i class="si si-twitter"></i> '.__('Twitter', SLUG_TD).'</a>'."\n";
echo ' <a href="'.esc_attr('https://www.facebook.com/cometcache/').'" target="_blank"><i class="si si-facebook"></i> '.__('Facebook', SLUG_TD).'</a>'."\n";
echo ' </div>'."\n";

if (IS_PRO) {
echo '<div class="plugin-menu-page-version">'."\n";
Expand Down
6 changes: 4 additions & 2 deletions src/includes/classes/MenuPageStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ public function __construct()
echo ' <a href="'.esc_attr('http://cometcache.com/blog/').'" target="_blank"><i class="si si-rss-square"></i> '.__('Blog', SLUG_TD).'</a>'."\n";
echo ' </div>'."\n";

echo ' <div class="plugin-menu-page-mailing-list-links">'."\n";
if (!IS_PRO) { // We show these above in the Pro version
echo ' <div class="plugin-menu-page-mailing-list-links">'."\n";
echo ' <a href="'.esc_attr('http://cometcache.com/r/comet-cache-subscribe/').'" target="_blank"><i class="si si-envelope"></i> '.__('Newsletter', SLUG_TD).'</a>'."\n";
echo ' <a href="'.esc_attr('http://cometcache.com/r/comet-cache-beta-testers-list/').'" target="_blank"><i class="si si-envelope"></i> '.__('Beta Testers', SLUG_TD).'</a>'."\n";
echo ' </div>'."\n";
}
echo ' <a href="'.esc_attr('https://twitter.com/cometcache/').'" target="_blank"><i class="si si-twitter"></i> '.__('Twitter', SLUG_TD).'</a>'."\n";
echo ' <a href="'.esc_attr('https://www.facebook.com/cometcache/').'" target="_blank"><i class="si si-facebook"></i> '.__('Facebook', SLUG_TD).'</a>'."\n";
echo ' </div>'."\n";

if (IS_PRO) {
echo '<div class="plugin-menu-page-version">'."\n";
Expand Down

0 comments on commit 6bf5dac

Please sign in to comment.