phcdevworks_accounts_stripe 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +8 -0
- data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +3 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +4 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +4 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +4 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/application.css +15 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +4 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +4 -0
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +4 -0
- data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +14 -0
- data/app/controllers/phcdevworks_accounts_stripe/admin/plans_controller.rb +11 -0
- data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +11 -0
- data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +10 -0
- data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +13 -0
- data/app/controllers/phcdevworks_accounts_stripe/user/plan_controller.rb +13 -0
- data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +13 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +4 -0
- data/app/jobs/phcdevworks_accounts_stripe/application_job.rb +4 -0
- data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +6 -0
- data/app/models/phcdevworks_accounts_stripe/application_record.rb +5 -0
- data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +66 -0
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +15 -0
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +40 -0
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +361 -0
- data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +67 -0
- data/app/views/phcdevworks_accounts_stripe/admin/plans/admin_plan_list.html.erb +73 -0
- data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +73 -0
- data/config/initializers/stripe.rb +8 -0
- data/config/routes.rb +7 -0
- data/lib/phcdevworks_accounts_stripe.rb +6 -0
- data/lib/phcdevworks_accounts_stripe/engine.rb +47 -0
- data/lib/phcdevworks_accounts_stripe/version.rb +3 -0
- data/lib/tasks/phcdevworks_accounts_stripe_tasks.rake +4 -0
- metadata +396 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7f12e594c041a36456acf3867cc40d7a300f729c1428adc1a79bcfcd95311804
|
4
|
+
data.tar.gz: 47442a896c70be0d4ee86db165972e56eaf4166c8d49eda7c3e4e3e9ff99157a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4ca0a15c41713be47b0d14a84ff6128847d1db905896dc6a7da11865f2f663486c74558b14fdce781868c7be8c8f8da68814760c3d03ef449aad9055118d574d
|
7
|
+
data.tar.gz: f928488ed371ec0f7e8daae0e99e75f8a1e8a37ef60ddc569196fc48759d16ac2ea6cea27ef42de21563120bf336825f9e4ad76d8c2270d9138cf74f4c6d4011
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2021 BradPotts
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# PhcdevworksAccountsStripe
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'phcdevworks_accounts_stripe'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install phcdevworks_accounts_stripe
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::CustomersController < ApplicationController
|
5
|
+
|
6
|
+
# Customers - List
|
7
|
+
def admin_customer_list
|
8
|
+
@admin_customer_list = Stripe::Customer.list({limit: 100})
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::PlansController < ApplicationController
|
5
|
+
|
6
|
+
def admin_plan_list
|
7
|
+
@admin_plan_list = Stripe::Plan.list({limit: 100})
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::SubscriptionsController < ApplicationController
|
5
|
+
|
6
|
+
def admin_subscription_list
|
7
|
+
@admin_subscription_list = Stripe::Subscription.list({limit: 100})
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
|
4
|
+
# Load Requried Helper Files
|
5
|
+
helper PhcdevworksActiveMenus::Engine.helpers
|
6
|
+
helper PhcdevworksNotifications::Engine.helpers
|
7
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class User::SubscriptionController < ApplicationController
|
5
|
+
|
6
|
+
def user_subscription_list
|
7
|
+
end
|
8
|
+
|
9
|
+
def user_subscription_remove
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Accounts" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
29
|
+
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
|
33
|
+
<!-- Page Container -->
|
34
|
+
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
+
|
36
|
+
<!-- Page Header -->
|
37
|
+
<div id="header" class="header navbar-default">
|
38
|
+
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/navigation/top_menu" %>
|
39
|
+
</div>
|
40
|
+
<!-- Page Header -->
|
41
|
+
|
42
|
+
<!-- Page Sidebar -->
|
43
|
+
<div id="sidebar" class="sidebar">
|
44
|
+
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/sidebars/side_menu" %>
|
45
|
+
</div>
|
46
|
+
<div class="sidebar-bg"></div>
|
47
|
+
<!-- Page Sidebar -->
|
48
|
+
|
49
|
+
<!-- Page Content -->
|
50
|
+
<div id="content" class="content">
|
51
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
+
<%= yield %>
|
53
|
+
</div>
|
54
|
+
<!-- Page Content -->
|
55
|
+
|
56
|
+
<!-- Footer Content -->
|
57
|
+
<div id="footer" class="footer mb-4">
|
58
|
+
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- Footer Content -->
|
61
|
+
|
62
|
+
</div>
|
63
|
+
<!-- Page Container -->
|
64
|
+
|
65
|
+
</body>
|
66
|
+
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- -PHC- Footer Content - Left -->
|
2
|
+
<span>
|
3
|
+
<!-- -PHC- Footer Content - Left - Time in Production -->
|
4
|
+
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
+
<span class="font-weight-bold">PHC</span>Devworks Accounts Stripe - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_stripe"].version.to_s %>
|
6
|
+
<!-- -PHC- Footer Content - Left - Time in Production -->
|
7
|
+
</span>
|
8
|
+
<!-- -PHC- Footer Content - Left -->
|
9
|
+
|
10
|
+
<!-- -PHC- Footer Content - Right -->
|
11
|
+
<span class="float-right">
|
12
|
+
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
13
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
|
14
|
+
</span>
|
15
|
+
<!-- -PHC- Footer Content - Right -->
|
data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
<!-- -PHC- Topbar - Navigation Header -->
|
2
|
+
<div class="navbar-header">
|
3
|
+
|
4
|
+
<%= link_to phcdevworks_accounts_stripe.admin_plans_index_path, class: "navbar-brand" do %>
|
5
|
+
<strong>PHCDevworks</strong>Accounts
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
9
|
+
<span class="icon-bar"></span>
|
10
|
+
<span class="icon-bar"></span>
|
11
|
+
<span class="icon-bar"></span>
|
12
|
+
</button>
|
13
|
+
|
14
|
+
</div>
|
15
|
+
<!-- -PHC- Topbar - Navigation Header -->
|
16
|
+
|
17
|
+
<!-- -PHC- Topbar - Navigation Main -->
|
18
|
+
<% if current_user %>
|
19
|
+
<ul class="navbar-nav navbar-right">
|
20
|
+
|
21
|
+
<!-- -PHC- Topbar - Navigation Main - User Menu -->
|
22
|
+
<li class="dropdown navbar-user">
|
23
|
+
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
24
|
+
<%= image_tag current_user.gravatar_url %>
|
25
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span> <b class="caret"></b>
|
26
|
+
</a>
|
27
|
+
<div class="dropdown-menu dropdown-menu-right">
|
28
|
+
<%= link_to phcdevworks_accounts.edit_user_registration_path, class: "dropdown-item" do %>
|
29
|
+
<i class="fad fa-cogs"></i> Account Settings
|
30
|
+
<% end %>
|
31
|
+
<%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
32
|
+
<i class="fad fa-sign-out-alt"></i> Logout
|
33
|
+
<% end %>
|
34
|
+
</div>
|
35
|
+
</li>
|
36
|
+
<!-- -PHC- Topbar - Navigation Main - User Menu -->
|
37
|
+
|
38
|
+
</ul>
|
39
|
+
<% end %>
|
40
|
+
<!-- -PHC- Topbar - Navigation Main -->
|
data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
<!-- -PHC- Sidebar for PHCDevworks Engines -->
|
2
|
+
<div data-scrollbar="true" data-height="100%">
|
3
|
+
|
4
|
+
<!-- -PHC- Sidebar - User Profile Menu -->
|
5
|
+
<ul class="nav">
|
6
|
+
<% if current_user %>
|
7
|
+
<li class="nav-profile">
|
8
|
+
<a href="javascript:;" data-toggle="nav-profile">
|
9
|
+
<div class="cover with-shadow"></div>
|
10
|
+
<div class="image">
|
11
|
+
<%= image_tag current_user.gravatar_url %>
|
12
|
+
</div>
|
13
|
+
<div class="info">
|
14
|
+
<b class="caret pull-right"></b>
|
15
|
+
<%= current_user.firstname + " " + current_user.lastname %>
|
16
|
+
<small><%= current_user.username %></small>
|
17
|
+
</div>
|
18
|
+
</a>
|
19
|
+
</li>
|
20
|
+
<li>
|
21
|
+
<ul class="nav nav-profile">
|
22
|
+
<li>
|
23
|
+
<%= link_to phcdevworks_accounts.edit_user_registration_path do %>
|
24
|
+
<i class="fad fa-cogs"></i> Account Settings
|
25
|
+
<% end %>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete do %>
|
29
|
+
<i class="fad fa-sign-out-alt"></i> Logout
|
30
|
+
<% end %>
|
31
|
+
</li>
|
32
|
+
</ul>
|
33
|
+
</li>
|
34
|
+
<% end %>
|
35
|
+
</ul>
|
36
|
+
<!-- -PHC- Sidebar - User Profile Menu -->
|
37
|
+
|
38
|
+
<!-- -PHC- Sidebar - Sidebar Navigation -->
|
39
|
+
<ul class="nav">
|
40
|
+
|
41
|
+
<% if defined?phcdevworks_press %>
|
42
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
43
|
+
<li class="nav-header">Articles & Blogging</li>
|
44
|
+
<li class="has-sub">
|
45
|
+
<a href="javascript:;">
|
46
|
+
<b class="caret"></b>
|
47
|
+
<i class="fad fa-newspaper"></i>
|
48
|
+
<span>Blog Articles</span>
|
49
|
+
</a>
|
50
|
+
<ul class="sub-menu">
|
51
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
|
52
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("Add a New Aritcle", phcdevworks_press.new_article_post_path) %></li>
|
53
|
+
</ul>
|
54
|
+
</li>
|
55
|
+
<li class="has-sub">
|
56
|
+
<a href="javascript:;">
|
57
|
+
<b class="caret"></b>
|
58
|
+
<i class="fad fa-star-half"></i>
|
59
|
+
<span>Review Articles</span>
|
60
|
+
</a>
|
61
|
+
<ul class="sub-menu">
|
62
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts") %>"><%= link_to("Reviews Index", phcdevworks_press.review_posts_path) %></li>
|
63
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts#new") %>"><%= link_to("Add a New Review", phcdevworks_press.new_review_post_path) %></li>
|
64
|
+
</ul>
|
65
|
+
</li>
|
66
|
+
<li class="has-sub">
|
67
|
+
<a href="javascript:;">
|
68
|
+
<b class="caret"></b>
|
69
|
+
<i class="fad fa-th-list"></i>
|
70
|
+
<span>List Articles</span>
|
71
|
+
</a>
|
72
|
+
<ul class="sub-menu">
|
73
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts") %>"><%= link_to("Lists Index", phcdevworks_press.list_posts_path) %></li>
|
74
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts#new") %>"><%= link_to("Add a New List", phcdevworks_press.new_list_post_path) %></li>
|
75
|
+
</ul>
|
76
|
+
</li>
|
77
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
78
|
+
<% end %>
|
79
|
+
|
80
|
+
<% if defined?phcdevworks_portfolio %>
|
81
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
|
82
|
+
<li class="nav-header">Portfolio</li>
|
83
|
+
<li class="has-sub">
|
84
|
+
<a href="javascript:;">
|
85
|
+
<b class="caret"></b>
|
86
|
+
<i class="fad fa-briefcase"></i>
|
87
|
+
<span>Project List</span>
|
88
|
+
</a>
|
89
|
+
<ul class="sub-menu">
|
90
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Index", phcdevworks_portfolio.project_posts_path) %></li>
|
91
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Project", phcdevworks_portfolio.new_project_post_path) %></li>
|
92
|
+
</ul>
|
93
|
+
</li>
|
94
|
+
<li class="has-sub">
|
95
|
+
<a href="javascript:;">
|
96
|
+
<b class="caret"></b>
|
97
|
+
<i class="fad fa-folders"></i>
|
98
|
+
<span>Project Types</span>
|
99
|
+
</a>
|
100
|
+
<ul class="sub-menu">
|
101
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Type", phcdevworks_portfolio.project_types_path) %></li>
|
102
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
|
103
|
+
</ul>
|
104
|
+
</li>
|
105
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
|
106
|
+
<% end %>
|
107
|
+
|
108
|
+
<% if defined?phcdevworks_tutorials %>
|
109
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
|
110
|
+
<li class="nav-header">Tutorial Posts</li>
|
111
|
+
<li class="has-sub">
|
112
|
+
<a href="javascript:;">
|
113
|
+
<b class="caret"></b>
|
114
|
+
<i class="fad fa-chalkboard-teacher"></i>
|
115
|
+
<span>Tutorial Posts</span>
|
116
|
+
</a>
|
117
|
+
<ul class="sub-menu">
|
118
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
|
119
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
|
120
|
+
</ul>
|
121
|
+
</li>
|
122
|
+
<li class="nav-header">Command Lists & Items</li>
|
123
|
+
<li class="has-sub">
|
124
|
+
<a href="javascript:;">
|
125
|
+
<b class="caret"></b>
|
126
|
+
<i class="fad fa-terminal"></i>
|
127
|
+
<span>Command Lists</span>
|
128
|
+
</a>
|
129
|
+
<ul class="sub-menu">
|
130
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>"><%= link_to "List Index", phcdevworks_tutorials.command_posts_path %></li>
|
131
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts#new") %>"><%= link_to "New List", phcdevworks_tutorials.new_command_post_path %></li>
|
132
|
+
</ul>
|
133
|
+
</li>
|
134
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
|
135
|
+
<% end %>
|
136
|
+
|
137
|
+
<% if defined?phcdevworks_members %>
|
138
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
139
|
+
<li class="nav-header">Membership Manager</li>
|
140
|
+
<li class="has-sub">
|
141
|
+
<a href="javascript:;">
|
142
|
+
<b class="caret"></b>
|
143
|
+
<i class="fad fa-users"></i>
|
144
|
+
<span>Member"s Data</span>
|
145
|
+
</a>
|
146
|
+
<ul class="sub-menu">
|
147
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>"><%= link_to("Profile Index", phcdevworks_members.member_profiles_path) %></li>
|
148
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles#new") %>"><%= link_to("New Member Profile", phcdevworks_members.new_member_profile_path) %></li>
|
149
|
+
</ul>
|
150
|
+
</li>
|
151
|
+
<li class="nav-header">Member"s Directory</li>
|
152
|
+
<li class="has-sub">
|
153
|
+
<a href="javascript:;">
|
154
|
+
<b class="caret"></b>
|
155
|
+
<i class="fad fa-list-alt"></i>
|
156
|
+
<span>Member"s Directory</span>
|
157
|
+
</a>
|
158
|
+
<ul class="sub-menu">
|
159
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
|
160
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
|
161
|
+
</ul>
|
162
|
+
</li>
|
163
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
164
|
+
<% end %>
|
165
|
+
|
166
|
+
<% if defined?phcdevworks_scripts %>
|
167
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
|
168
|
+
<li class="nav-header">Script CDN Listings</li>
|
169
|
+
<li class="has-sub">
|
170
|
+
<a href="javascript:;">
|
171
|
+
<b class="caret"></b>
|
172
|
+
<i class="fad fa-laptop-code"></i>
|
173
|
+
<span>Script Posts</span>
|
174
|
+
</a>
|
175
|
+
<ul class="sub-menu">
|
176
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/listings") %>"><%= link_to "All Script Listings", phcdevworks_scripts.script_listings_path %></li>
|
177
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/listings#new") %>"><%= link_to "Add a New Listing", phcdevworks_scripts.new_script_listing_path %></li>
|
178
|
+
</ul>
|
179
|
+
</li>
|
180
|
+
<li class="has-sub">
|
181
|
+
<a href="javascript:;">
|
182
|
+
<b class="caret"></b>
|
183
|
+
<i class="fad fa-sitemap"></i>
|
184
|
+
<span>Script Extras</span>
|
185
|
+
</a>
|
186
|
+
<ul class="sub-menu">
|
187
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/authors") %>"><%= link_to "Script Authors", phcdevworks_scripts.script_authors_path %></li>
|
188
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/extensions") %>"><%= link_to "Script Extensions", phcdevworks_scripts.script_extensions_path %></li>
|
189
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/versions") %>"><%= link_to "Script Versions", phcdevworks_scripts.script_versions_path %></li>
|
190
|
+
</ul>
|
191
|
+
</li>
|
192
|
+
<li class="nav-header">Code Snippets</li>
|
193
|
+
<li class="has-sub">
|
194
|
+
<a href="javascript:;">
|
195
|
+
<b class="caret"></b>
|
196
|
+
<i class="fad fa-code"></i>
|
197
|
+
<span>Code Snippets</span>
|
198
|
+
</a>
|
199
|
+
<ul class="sub-menu">
|
200
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/posts") %>"><%= link_to "Snippet Index", phcdevworks_scripts.snippet_posts_path %></li>
|
201
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/posts#new") %>"><%= link_to "New Snippet", phcdevworks_scripts.new_snippet_post_path %></li>
|
202
|
+
</ul>
|
203
|
+
</li>
|
204
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
|
205
|
+
<% end %>
|
206
|
+
|
207
|
+
<% if defined?phcdevworks_real_estate %>
|
208
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
209
|
+
<li class="nav-header">Property Listings</li>
|
210
|
+
<li class="has-sub">
|
211
|
+
<a href="javascript:;">
|
212
|
+
<b class="caret"></b>
|
213
|
+
<i class="fad fa-home-lg"></i>
|
214
|
+
<span>Property Listings</span>
|
215
|
+
</a>
|
216
|
+
<ul class="sub-menu">
|
217
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>"><%= link_to "Listing Index", phcdevworks_real_estate.property_listings_path %></li>
|
218
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings#new") %>"><%= link_to "New Listing", phcdevworks_real_estate.new_property_listing_path %></li>
|
219
|
+
</ul>
|
220
|
+
</li>
|
221
|
+
<li class="has-sub">
|
222
|
+
<a href="javascript:;">
|
223
|
+
<b class="caret"></b>
|
224
|
+
<i class="fad fa-list-alt"></i>
|
225
|
+
<span>Listing Features</span>
|
226
|
+
</a>
|
227
|
+
<ul class="sub-menu">
|
228
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>"><%= link_to "Features Index", phcdevworks_real_estate.property_features_path %></li>
|
229
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings#new") %>"><%= link_to "New Features", phcdevworks_real_estate.new_property_feature_path %></li>
|
230
|
+
</ul>
|
231
|
+
</li>
|
232
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
233
|
+
<% end %>
|
234
|
+
|
235
|
+
<% if defined?phcdevworks_core_modules %>
|
236
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
237
|
+
<li class="nav-header">Categories</li>
|
238
|
+
<li class="has-sub">
|
239
|
+
<a href="javascript:;">
|
240
|
+
<b class="caret"></b>
|
241
|
+
<i class="fad fa-sitemap"></i>
|
242
|
+
<span>Categories</span>
|
243
|
+
</a>
|
244
|
+
<ul class="sub-menu">
|
245
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
|
246
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
|
247
|
+
</ul>
|
248
|
+
</li>
|
249
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
250
|
+
<% end %>
|
251
|
+
|
252
|
+
<% if defined?phcdevworks_core_modules %>
|
253
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
254
|
+
<li class="nav-header">Marketing</li>
|
255
|
+
<li class="has-sub">
|
256
|
+
<a href="javascript:;">
|
257
|
+
<b class="caret"></b>
|
258
|
+
<i class="fad fa-link"></i>
|
259
|
+
<span>Affiliate Links</span>
|
260
|
+
</a>
|
261
|
+
<ul class="sub-menu">
|
262
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links") %>"><%= link_to("Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path) %></li>
|
263
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links#new") %>"><%= link_to("New Affiliate Link", phcdevworks_core_modules.new_affiliate_link_path) %></li>
|
264
|
+
</ul>
|
265
|
+
</li>
|
266
|
+
<li class="has-sub">
|
267
|
+
<a href="javascript:;">
|
268
|
+
<b class="caret"></b>
|
269
|
+
<i class="fad fa-analytics"></i>
|
270
|
+
<span>Search Optimization</span>
|
271
|
+
</a>
|
272
|
+
<ul class="sub-menu">
|
273
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
|
274
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations#new") %>"><%= link_to("Add SEO Data", phcdevworks_core_modules.new_marketing_optimization_path) %></li>
|
275
|
+
</ul>
|
276
|
+
</li>
|
277
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
278
|
+
<% end %>
|
279
|
+
|
280
|
+
<% if defined?phcdevworks_accounts_stripe && current_user && current_user.admin %>
|
281
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
282
|
+
<li class="nav-header">Stripe Admin</li>
|
283
|
+
<li class="has-sub">
|
284
|
+
<a href="javascript:;">
|
285
|
+
<b class="caret"></b>
|
286
|
+
<i class="fab fa-cc-stripe"></i>
|
287
|
+
<span>Subscriptions</span>
|
288
|
+
</a>
|
289
|
+
<ul class="sub-menu">
|
290
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscription Index", phcdevworks_accounts_stripe.admin_subscriptions_index_path) %></li>
|
291
|
+
</ul>
|
292
|
+
</li>
|
293
|
+
<li class="has-sub">
|
294
|
+
<a href="javascript:;">
|
295
|
+
<b class="caret"></b>
|
296
|
+
<i class="fad fa-money-check-alt"></i>
|
297
|
+
<span>Plans</span>
|
298
|
+
</a>
|
299
|
+
<ul class="sub-menu">
|
300
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/plans#admin_plan_list") %>"><%= link_to("Plan List", phcdevworks_accounts_stripe.admin_plans_index_path) %></li>
|
301
|
+
</ul>
|
302
|
+
</li>
|
303
|
+
<li class="has-sub">
|
304
|
+
<a href="javascript:;">
|
305
|
+
<b class="caret"></b>
|
306
|
+
<i class="fad fa-users"></i>
|
307
|
+
<span>Customers</span>
|
308
|
+
</a>
|
309
|
+
<ul class="sub-menu">
|
310
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers#admin_customer_list") %>"><%= link_to("Customer List", phcdevworks_accounts_stripe.admin_customers_index_path) %></li>
|
311
|
+
</ul>
|
312
|
+
</li>
|
313
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
314
|
+
<% end %>
|
315
|
+
|
316
|
+
<% if current_user && current_user.admin? %>
|
317
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
318
|
+
<li class="nav-header">User Administration</li>
|
319
|
+
<li class="has-sub">
|
320
|
+
<a href="javascript:;">
|
321
|
+
<b class="caret"></b>
|
322
|
+
<i class="fad fa-user"></i>
|
323
|
+
<span>Admin</span>
|
324
|
+
</a>
|
325
|
+
<ul class="sub-menu">
|
326
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
|
327
|
+
</ul>
|
328
|
+
</li>
|
329
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
330
|
+
<% end %>
|
331
|
+
|
332
|
+
<% if current_user %>
|
333
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
334
|
+
<li class="nav-header">Your Account</li>
|
335
|
+
<li class="has-sub">
|
336
|
+
<a href="javascript:;">
|
337
|
+
<b class="caret"></b>
|
338
|
+
<i class="fad fa-user"></i>
|
339
|
+
<span>Accounts Settings</span>
|
340
|
+
</a>
|
341
|
+
<ul class="sub-menu">
|
342
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/edit") %>"><%= link_to "Settings", phcdevworks_accounts.edit_user_registration_path %></li>
|
343
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/new") %>"><%= link_to "Logout", phcdevworks_accounts.destroy_user_session_path, method: :delete %></li>
|
344
|
+
</ul>
|
345
|
+
</li>
|
346
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
347
|
+
<% end %>
|
348
|
+
|
349
|
+
<!-- -PHC- Sidebar - Sidebar Minifier -->
|
350
|
+
<li>
|
351
|
+
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
|
352
|
+
<i class="fa fa-angle-double-left"></i>
|
353
|
+
</a>
|
354
|
+
</li>
|
355
|
+
<!-- -PHC- Sidebar - Sidebar Minifier -->
|
356
|
+
|
357
|
+
</ul>
|
358
|
+
<!-- -PHC- Sidebar - Sidebar Navigation -->
|
359
|
+
|
360
|
+
</div>
|
361
|
+
<!-- -PHC- Sidebar for PHCDevworks Engines -->
|