Cleaned up adminHooks.php formatting.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Sep 2016 20:28:42 +0000 (16:28 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Sep 2016 20:28:42 +0000 (16:28 -0400)
Removed include/require parens.

models/admin/ajax/imageUpload.php
setup/adminHooks.php

index e0d36f9..55c76a7 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 // Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php';
 
 /*
  * This class performs the work of handling images passed to it via
index 0076fe7..488db8a 100644 (file)
@@ -46,6 +46,7 @@ add_filter('glm-member-db-admin-management-hooksHelp', function($content) {
 
 $menuName = "Members Only Menu";
 $menuSlug = "members-only-menu";
+
 // Does the menu exist already?
 register_nav_menu($menuSlug, $menuName);
 
@@ -85,7 +86,6 @@ if(!empty($locations))
     set_theme_mod('nav_menu_locations', $locations);
 }
 
-
 add_action( 'add_meta_boxes', function() {
     function custom_js_css() {
         wp_enqueue_script('your-meta-box', GLM_MEMBERS_PLUGIN_URL. '/js/shortcodeBuilder.js', array('jquery'), null, true);
@@ -101,28 +101,6 @@ add_action( 'add_meta_boxes', function() {
     );
 } );
 
-// This function below needs to be defined in the theme's functions.php
-//
-//if ( ! function_exists( 'glm_members_only_menu' ) && class_exists('GLM_Members_Only_Walker')) {
-//    function glm_members_only_menu() {
-//        wp_nav_menu(array(
-//            'container' => false,                           // remove nav container
-//            'container_class' => 'members-only-menu',                        // class of container
-//            'menu' => '',                                   // menu name
-//            'menu_class' => 'members-only-menu',                             // adding custom nav class
-//            'theme_location' => 'members-only-menu',             // where it's located in the theme
-//            'before' => '',                                 // before each link <a>
-//            'after' => '',                                  // after each link </a>
-//            'link_before' => '',                            // before each link text
-//            'link_after' => '',                             // after each link text
-//            'depth' => 2,                                   // limit the depth of the nav
-//            'fallback_cb' => false,                         // fallback function (see below)
-//            'walker' => new GLM_Members_Only_Walker()
-//        ));
-//    }
-//}
-
-
 // If not administrator, don't show or permit access to the main dashboard
 function glmRemoveDashboard () {
     global $current_user, $menu, $submenu;