From: Laury GvR Date: Tue, 27 Sep 2016 19:31:19 +0000 (-0400) Subject: Using MEMBERS_ONLY_ID constant for convenience X-Git-Tag: v1.0.0^2~106 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f62b5a4f51124fe60c9214b75d7f441906c0e7d5;p=WP-Themes%2Fharborcountry.git Using MEMBERS_ONLY_ID constant for convenience Throughout the theme we use the a very verbose way to get the members only id: get_option(GLM_MEMBERS_PLUGIN_OPTION_MEMBERS_ ONLY_ID) -- this is meant to simplify that. --- diff --git a/functions.php b/functions.php index d50bb3c..f88f75d 100644 --- a/functions.php +++ b/functions.php @@ -2,6 +2,8 @@ require_once 'lib/menu-walker.php'; require_once 'lib/navigation.php'; +define( MEMBERS_ONLY_ID, get_option( GLM_MEMBERS_PLUGIN_OPTION_MEMBERS_ONLY_ID ) ); + $ancestorId = null; $includePages = array(); $frontPageId = get_option('page_on_front'); diff --git a/sections/header.php b/sections/header.php index b80948c..692a822 100644 --- a/sections/header.php +++ b/sections/header.php @@ -13,6 +13,7 @@
diff --git a/sections/interior-page.php b/sections/interior-page.php index 78a680b..d30e5fc 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -32,7 +32,7 @@
- +