2020-04-07 13:03:04 +00:00
|
|
|
<?php
|
2020-08-13 14:53:39 +00:00
|
|
|
/**
|
|
|
|
* The Secondary Nav module.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
*
|
|
|
|
* @package GP Premium
|
|
|
|
*/
|
2020-04-07 13:03:04 +00:00
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2020-08-13 14:53:39 +00:00
|
|
|
exit; // No direct access, please.
|
2020-04-07 13:03:04 +00:00
|
|
|
}
|
|
|
|
|
2020-08-13 14:53:39 +00:00
|
|
|
// Define the version.
|
2020-04-07 13:03:04 +00:00
|
|
|
if ( ! defined( 'GENERATE_SECONDARY_NAV_VERSION' ) ) {
|
|
|
|
define( 'GENERATE_SECONDARY_NAV_VERSION', GP_PREMIUM_VERSION );
|
|
|
|
}
|
|
|
|
|
2020-08-13 14:53:39 +00:00
|
|
|
// Include functions identical between standalone addon and GP Premium.
|
2020-04-07 13:03:04 +00:00
|
|
|
require plugin_dir_path( __FILE__ ) . 'functions/functions.php';
|
2021-12-20 13:41:59 +00:00
|
|
|
|
|
|
|
// Include secondary navigation color fields.
|
|
|
|
require plugin_dir_path( __FILE__ ) . 'fields/secondary-navigation.php';
|