Back out of the foundation 6 stuff
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 8 Jul 2019 18:42:05 +0000 (14:42 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 8 Jul 2019 18:42:05 +0000 (14:42 -0400)
This is on a new branch.

models/admin/billing/accounts.php
views/admin/billing/accounts.html

index c2ab2e6..ca28d33 100644 (file)
@@ -135,8 +135,8 @@ class GlmMembersAdmin_billing_accounts extends GlmDataAccounts
         }
 
         // Enqueue GLMA Foundation
-        wp_enqueue_style( 'Foundation6', GLM_MEMBERS_BILLING_PLUGIN_URL . '/css/foundation.min.css' );
-        wp_enqueue_script( 'Foundation6', GLM_MEMBERS_BILLING_PLUGIN_URL . '/js/foundation.min.js' );
+        // wp_enqueue_style( 'Foundation6', GLM_MEMBERS_BILLING_PLUGIN_URL . '/css/foundation.min.css' );
+        // wp_enqueue_script( 'Foundation6', GLM_MEMBERS_BILLING_PLUGIN_URL . '/js/foundation.min.js' );
 
         // Do selected option
         switch ($option) {
index 39110f3..4c3df60 100644 (file)
@@ -1,10 +1,3 @@
-<style>
-ul.wp-submenu li, ul.wp-submenu li a, ul.wp-submenu,
-ul#adminmenu
-{
-    box-sizing: content-box !important;
-}
-</style>
 {include file='admin/billing/header.html'}
 
 <div id="exportAccountsButton" class="button button-secondary glm-admin-export-button">Accounts Export</div>
@@ -151,35 +144,9 @@ ul#adminmenu
             accountEmployee = false;
         }
 
-        $('.account-billing').on('click', function(e){
-            e.preventDefault();
-            var member = $(this).data('member');
-            console.log( 'member: ', member );
-            //$('#glmBillingInfo').foundation('open');
-            var $modal = $('#glmBillingInfo');
-            $.ajax( '{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=ajaxBillingInfo&option=account&member=8' )
-                .done(function(resp){
-                $modal.html(resp).foundation('open');
-            });
-            return false;
-        });
-
         $(document).foundation();
     });
 
 </script>
-{$ajaxUrl}
-<div
-    id="glmBillingInfo"
-    class="large reveal"
-    data-reveal
-    data-animation-in="spin-in"
-    data-overlay="false">
-    <h2>Billing Info</h2>
-    Billing form here!
-    <button class="close-button" data-close aria-label="Close" type="button">
-        <span aria-hidden="true">&times;</span>
-    </button>
-</div>
 
 {include file='admin/footer.html'}