Plugin Directory

Changeset 1859158


Ignore:
Timestamp:
04/16/2018 02:46:44 PM (8 years ago)
Author:
octify
Message:

OceanWP Partnership

Location:
octify/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • octify/trunk/Octify.php

    r1859058 r1859158  
    567567            ), $svg );
    568568        }
     569
     570        if ( is_plugin_active( 'ocean-extra/ocean-extra.php' ) ) {
     571            add_submenu_page( 'octify', __( "Go Pro", octify()->domain ), __( "Go Pro", octify()->domain ), 'manage_options', 'octify-pro', array(
     572                &$this,
     573                'goPro'
     574            ) );
     575        }
     576
     577    }
     578
     579    public function goPro() {
     580        wp_redirect( 'https://octify.io/?ref=nicolaslecocq' );
     581        exit;
    569582    }
    570583
  • octify/trunk/View/dashboard2.php

    r1859060 r1859158  
    77                    <h2 class="title has-text-centered"><img
    88                                src="<?php echo octify()->plugin_url . 'assets/octify_title_welcome.png' ?>"></h2>
     9                    <?php
     10                    $home = "https://octify.io/";
     11                    if ( is_plugin_active( 'ocean-extra/ocean-extra.php' ) ) {
     12                        $home = "https://octify.io/?ref=nicolaslecocq";
     13                    }
     14                    ?>
    915                    <div class="octify-links-widget">
    1016                        <ul>
    1117                            <li>
    12                                 <a href="https://octify.io/"><?php _e( "Octify.io" ) ?></a>
     18                                <a href="<?php echo $home ?>"><?php _e( "Octify.io" ) ?></a>
    1319                            </li>
    1420                            <li>
     
    1622                            </li>
    1723                            <li>
    18                                 <a href="https://octify.io/#section08faq"><?php _e( "Help" ) ?></a>
     24                                <a href="<?php echo $home ?>#section08faq"><?php _e( "Help" ) ?></a>
    1925                            </li>
    2026                        </ul>
Note: See TracChangeset for help on using the changeset viewer.