@@ -42,27 +42,32 @@ public function initialize()
4242
4343 public function addPluginActionLinks ($ links , $ file )
4444 {
45- $ validPlugins = [];
46- $ validPlugins [] = basename (PUBLISHPRESS_FUTURE_BASE_PATH ) . '/post-expirator.php ' ;
45+ $ this_plugin = basename (PUBLISHPRESS_FUTURE_BASE_PATH ) . '/post-expirator.php ' ;
4746
48- if (defined ('PUBLISHPRESS_FUTURE_PRO_BASE_PATH ' )) {
49- $ validPlugins [] = basename (PUBLISHPRESS_FUTURE_PRO_BASE_PATH ) . '/publishpress-future-pro.php ' ;
50- }
47+ if ($ file === $ this_plugin ) {
48+ $ upgrade_link = ['<a href="https://publishpress.com/links/future-sidebar"
49+ target="_blank" style="font-weight: bold;">
50+ ' . __ ('Upgrade to Pro ' , 'post-expirator ' ) . '
51+ </a> ' ];
5152
52- if (in_array ($ file , $ validPlugins )) {
53- $ links [] = '<a href=" ' . admin_url ('edit.php?post_type=ppfuture_workflow ' ) . '"> ' . __ ('Action Workflows ' , 'post-expirator ' ) . '</a> ' ;
54- $ links [] = '<a href=" ' . admin_url ('admin.php?page=publishpress-future-settings ' ) . '"> ' . __ ('Settings ' , 'post-expirator ' ) . '</a> ' ;
53+ $ links = array_merge ($ upgrade_link , $ links );
5554 }
5655
5756 return $ links ;
5857 }
5958
6059 public function addPluginRowMetaLinks ($ links , $ file )
6160 {
62- $ this_plugin = basename (PUBLISHPRESS_FUTURE_BASE_PATH ) . '/post-expirator.php ' ;
61+ $ validPlugins = [];
62+ $ validPlugins [] = basename (PUBLISHPRESS_FUTURE_BASE_PATH ) . '/post-expirator.php ' ;
6363
64- if ($ file === $ this_plugin ) {
65- $ links [] = '<a class="pp-version-notice-upgrade-menu-item" href="https://publishpress.com/links/future-sidebar" target="_blank"> ' . __ ('Upgrade to Pro ' , 'post-expirator ' ) . '</a> ' ;
64+ if (defined ('PUBLISHPRESS_FUTURE_PRO_BASE_PATH ' )) {
65+ $ validPlugins [] = basename (PUBLISHPRESS_FUTURE_PRO_BASE_PATH ) . '/publishpress-future-pro.php ' ;
66+ }
67+
68+ if (in_array ($ file , $ validPlugins )) {
69+ $ links [] = '<a href=" ' . admin_url ('edit.php?post_type=ppfuture_workflow ' ) . '"> ' . __ ('Action Workflows ' , 'post-expirator ' ) . '</a> ' ;
70+ $ links [] = '<a href=" ' . admin_url ('admin.php?page=publishpress-future-settings ' ) . '"> ' . __ ('Settings ' , 'post-expirator ' ) . '</a> ' ;
6671 }
6772
6873 return $ links ;
0 commit comments