phccodesnipperpro 4.4.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +28 -0
  4. data/Rakefile +4 -18
  5. data/app/assets/config/phccodesnipperpro_manifest.js +2 -2
  6. data/app/controllers/phccodesnipperpro/application_controller.rb +14 -15
  7. data/app/controllers/phccodesnipperpro/script/snippets_controller.rb +1 -1
  8. data/app/controllers/phccodesnipperpro/script/urls_controller.rb +1 -1
  9. data/app/models/phccodesnipperpro/script/snippet.rb +0 -3
  10. data/app/views/layouts/phccodesnipperpro/application.html.erb +73 -79
  11. data/app/views/layouts/phccodesnipperpro/components/backend/footer/_footer.html.erb +14 -8
  12. data/app/views/layouts/phccodesnipperpro/components/backend/navigation/_top_menu.html.erb +41 -37
  13. data/app/views/layouts/phccodesnipperpro/components/backend/sidebars/_side_menu.html.erb +921 -189
  14. data/app/views/phccodesnipperpro/script/snippets/_form.html.erb +15 -15
  15. data/app/views/phccodesnipperpro/script/snippets/edit.html.erb +21 -21
  16. data/app/views/phccodesnipperpro/script/snippets/index.html.erb +57 -57
  17. data/app/views/phccodesnipperpro/script/snippets/new.html.erb +19 -21
  18. data/app/views/phccodesnipperpro/script/snippets/show.html.erb +63 -58
  19. data/app/views/phccodesnipperpro/script/urls/_form.html.erb +12 -12
  20. data/app/views/phccodesnipperpro/script/urls/edit.html.erb +16 -16
  21. data/app/views/phccodesnipperpro/script/urls/index.html.erb +55 -55
  22. data/app/views/phccodesnipperpro/script/urls/new.html.erb +21 -21
  23. data/app/views/phccodesnipperpro/script/urls/show.html.erb +61 -57
  24. data/config/routes.rb +6 -9
  25. data/db/migrate/20190504104048_create_phccodesnipperpro_script_urls.rb +19 -0
  26. data/db/migrate/20190504104101_create_phccodesnipperpro_script_snippets.rb +19 -0
  27. data/lib/phccodesnipperpro/engine.rb +30 -56
  28. data/lib/phccodesnipperpro/version.rb +1 -1
  29. data/lib/phccodesnipperpro.rb +2 -0
  30. metadata +62 -390
  31. data/app/assets/javascripts/phccodesnipperpro/application.js +0 -2
  32. data/app/assets/stylesheets/phccodesnipperpro/application.scss +0 -2
  33. data/config/initializers/friendly_id.rb +0 -107
@@ -1,189 +1,921 @@
1
- <!-- Sidebar for PHCDevworks Engines -->
2
- <div data-scrollbar="true" data-height="100%">
3
-
4
- <!-- 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 phcaccountspro.edit_user_registration_path do %>
24
- <i class="fas fa-cogs"></i> Account Settings
25
- <% end %>
26
- </li>
27
- <li>
28
- <%= link_to phcaccountspro.destroy_user_session_path do %>
29
- <i class="fas fa-sign-out-alt"></i> Logout
30
- <% end %>
31
- </li>
32
- </ul>
33
- </li>
34
- <% end %>
35
- </ul>
36
- <!-- Sidebar - User Profile Menu -->
37
-
38
- <!-- Sidebar - Sidebar Navigation -->
39
- <ul class="nav">
40
-
41
- <% if defined?phccodesnipperpro %>
42
- <!-- Sidebar - Sidebar Navigation - PHCCodeSnipper -->
43
- <li class="nav-header">Code Snippets</li>
44
- <li class="has-sub">
45
- <a href="javascript:;">
46
- <b class="caret"></b>
47
- <i class="fas fa-newspaper"></i>
48
- <span>Code Snippets</span>
49
- </a>
50
- <ul class="sub-menu">
51
- <li class="<%= phc_menus_active_controller('phccodesnipperpro/script/posts') %>"><%= link_to 'Snippet Index', phccodesnipperpro.script_snippets_path %></li>
52
- <li class="<%= phc_menus_active_controller('phccodesnipperpro/script/posts#new') %>"><%= link_to 'New Snippet', phccodesnipperpro.new_script_snippet_path %></li>
53
- </ul>
54
- </li>
55
- <!-- Sidebar - Sidebar Navigation - PHCCodeSnipper -->
56
- <% end %>
57
-
58
- <% if defined?phcpresspro %>
59
- <!-- Sidebar - Sidebar Navigation - PHCPress -->
60
- <li class="nav-header">Article Management</li>
61
- <li class="has-sub">
62
- <a href="javascript:;">
63
- <b class="caret"></b>
64
- <i class="fas fa-newspaper"></i>
65
- <span>Article Posts</span>
66
- </a>
67
- <ul class="sub-menu">
68
- <li class="<%= phc_menus_active_controller('phcpresspro/article/posts') %>"><%= link_to('Article Index', phcpresspro.article_posts_path) %></li>
69
- <li class="<%= phc_menus_active_controller('phcpresspro/article/posts#new') %>"><%= link_to('New Aritcle', phcpresspro.new_article_post_path) %></li>
70
- </ul>
71
- </li>
72
- <li class="has-sub">
73
- <a href="javascript:;">
74
- <b class="caret"></b>
75
- <i class="fas fa-sitemap"></i>
76
- <span>Article Categories</span>
77
- </a>
78
- <ul class="sub-menu">
79
- <li class="<%= phc_menus_active_controller('phcpresspro/article/categories') %>"><%= link_to('Category Index', phcpresspro.article_categories_path) %></li>
80
- <li class="<%= phc_menus_active_controller('phcpresspro/article/categories#new') %>"><%= link_to('New Category', phcpresspro.new_article_category_path) %></li>
81
- </ul>
82
- </li>
83
- <!-- Sidebar - Sidebar Navigation - PHCPress -->
84
- <% end %>
85
-
86
- <% if defined?phcmemberspro %>
87
- <!-- Sidebar - Sidebar Navigation - PHCMembers -->
88
- <li class="nav-header">Membership Manager</li>
89
- <li class="has-sub">
90
- <a href="javascript:;">
91
- <b class="caret"></b>
92
- <i class="fas fa-users"></i>
93
- <span>Member's Data</span>
94
- </a>
95
- <ul class="sub-menu">
96
- <li class="<%= phc_menus_active_controller('phcmemberspro/member/profiles') %>"><%= link_to('Profile Index', phcmemberspro.member_profiles_path) %></li>
97
- <li class="<%= phc_menus_active_controller('phcmemberspro/member/profiles#new') %>"><%= link_to('New Member Profile', phcmemberspro.new_member_profile_path) %></li>
98
- </ul>
99
- </li>
100
- <li class="has-sub">
101
- <a href="javascript:;">
102
- <b class="caret"></b>
103
- <i class="fas fa-list-alt"></i>
104
- <span>Member's Directory</span>
105
- </a>
106
- <ul class="sub-menu">
107
- <li class="<%= phc_menus_active_controller('phcmemberspro/directory/categories') %>"><%= link_to('Directory Index', phcmemberspro.directory_categories_path) %></li>
108
- <li class="<%= phc_menus_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmemberspro.new_directory_category_path) %></li>
109
- </ul>
110
- </li>
111
- <!-- Sidebar - Sidebar Navigation - PHCMembers -->
112
- <% end %>
113
-
114
- <% if defined?phcscriptcdnpro %>
115
- <!-- Sidebar - Sidebar Navigation - PHCScriptCDN -->
116
- <li class="nav-header">Script Management</li>
117
- <li class="has-sub">
118
- <a href="javascript:;">
119
- <b class="caret"></b>
120
- <i class="fas fa-newspaper"></i>
121
- <span>Script Posts</span>
122
- </a>
123
- <ul class="sub-menu">
124
- <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
125
- <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
126
- </ul>
127
- </li>
128
- <li class="has-sub">
129
- <a href="javascript:;">
130
- <b class="caret"></b>
131
- <i class="fas fa-sitemap"></i>
132
- <span>Script Extras</span>
133
- </a>
134
- <ul class="sub-menu">
135
- <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
136
- <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
137
- <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
138
- <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
139
- </ul>
140
- </li>
141
- <!-- Sidebar - Sidebar Navigation - PHCScriptCDN -->
142
- <% end %>
143
-
144
- <% if current_user && current_user.admin? %>
145
- <!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
146
- <li class="nav-header">User Administration</li>
147
- <li class="has-sub">
148
- <a href="javascript:;">
149
- <b class="caret"></b>
150
- <i class="fas fa-user"></i>
151
- <span>Admin</span>
152
- </a>
153
- <ul class="sub-menu">
154
- <li class="<%= phc_menus_active_controller('phcaccountspro/admin/users') %>"><%= link_to 'User List', phcaccountspro.admin_users_path %></li>
155
- </ul>
156
- </li>
157
- <!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
158
- <% end %>
159
-
160
- <% if current_user %>
161
- <!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
162
- <li class="nav-header">Your Account</li>
163
- <li class="has-sub">
164
- <a href="javascript:;">
165
- <b class="caret"></b>
166
- <i class="fas fa-user"></i>
167
- <span>Accounts Settings</span>
168
- </a>
169
- <ul class="sub-menu">
170
- <li class="<%= phc_menus_active_controller('phcaccountspro/user/edit') %>"><%= link_to 'Settings', phcaccountspro.edit_user_registration_path %></li>
171
- <li class="<%= phc_menus_active_controller('phcaccountspro/user/new') %>"><%= link_to 'Logout', phcaccountspro.destroy_user_session_path, method: :delete %></li>
172
- </ul>
173
- </li>
174
- <!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
175
- <% end %>
176
-
177
- <!-- Sidebar - Sidebar Minifier -->
178
- <li>
179
- <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
180
- <i class="fa fa-angle-double-left"></i>
181
- </a>
182
- </li>
183
- <!-- Sidebar - Sidebar Minifier -->
184
-
185
- </ul>
186
- <!-- Sidebar - Sidebar Navigation -->
187
-
188
- </div>
189
- <!-- Sidebar for PHCDevworks Engines -->
1
+ <!-- -PHCDEV- Page Container - Sidebar -->
2
+ <div class="app-sidebar-content" data-scrollbar="true" data-height="100%">
3
+ <div class="menu">
4
+
5
+ <!-- -PHCDEV- Page Container - Sidebar - Profile -->
6
+ <div class="menu-profile">
7
+ <% if current_user %>
8
+ <a href="javascript:;" class="menu-profile-link" data-toggle="app-sidebar-profile" data-target="#appSidebarProfileMenu">
9
+ <div class="menu-profile-cover with-shadow"></div>
10
+ <div class="menu-profile-image">
11
+ <%= image_tag current_user.gravatar_url %>
12
+ </div>
13
+ <div class="menu-profile-info">
14
+ <div class="d-flex align-items-center">
15
+ <div class="flex-grow-1">
16
+ <%= current_user.firstname + " " + current_user.lastname %>
17
+ </div>
18
+ <div class="menu-caret ms-auto"></div>
19
+ </div>
20
+ <small><%= current_user.username %></small>
21
+ </div>
22
+ </a>
23
+ <% end %>
24
+ </div>
25
+ <!-- -PHCDEV- Page Container - Sidebar - Profile -->
26
+
27
+ <!-- -PHCDEV- Page Container - Sidebar - Profile - Menu -->
28
+ <div id="appSidebarProfileMenu" class="collapse">
29
+ <div class="menu-item pt-5px">
30
+ <%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "menu-link" do %>
31
+ <div class="menu-icon"><i class="fad fa-cogs"></i></div>
32
+ <div class="menu-text">Account Settings</div>
33
+ <% end %>
34
+ <%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "menu-link" do %>
35
+ <div class="menu-icon"><i class="fad fa-sign-out-alt"></i></div>
36
+ <div class="menu-text">Logout</div>
37
+ <% end %>
38
+ </div>
39
+ <div class="menu-divider m-0"></div>
40
+ </div>
41
+ <!-- -PHCDEV- Page Container - Sidebar - Profile - Menu -->
42
+
43
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Members -->
44
+ <% if defined?phcdevworks_members %>
45
+ <div class="menu-header">PHCDevworks Members</div>
46
+ <div class="menu-item has-sub">
47
+ <a href="javascript:;" class="menu-link">
48
+ <div class="menu-icon"><i class="material-icons">people</i></div>
49
+ <div class="menu-text">Membership Manager</div>
50
+ <div class="menu-caret"></div>
51
+ </a>
52
+ <div class="menu-submenu">
53
+ <div class="menu-item has-sub">
54
+ <a href="javascript:;" class="menu-link">
55
+ <div class="menu-text">Member's Data</div>
56
+ <div class="menu-caret"></div>
57
+ </a>
58
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>">
59
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/member/profiles", "Index") %>">
60
+ <%= link_to phcdevworks_members.member_profiles_path, class: "menu-link" do %>
61
+ <div class="menu-text">Member Index</div>
62
+ <% end %>
63
+ </div>
64
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/member/profiles", "New") %>">
65
+ <%= link_to phcdevworks_members.new_member_profile_path, class: "menu-link" do %>
66
+ <div class="menu-text">Add a New Member</div>
67
+ <% end %>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div class="menu-item has-sub">
72
+ <a href="javascript:;" class="menu-link">
73
+ <div class="menu-text">Member's Directory</div>
74
+ <div class="menu-caret"></div>
75
+ </a>
76
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>">
77
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/modules/categories", "Index") %>">
78
+ <%= link_to phcdevworks_members.directory_categories_path, class: "menu-link" do %>
79
+ <div class="menu-text">Category Index</div>
80
+ <% end %>
81
+ </div>
82
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/modules/categories", "New") %>">
83
+ <%= link_to phcdevworks_members.new_directory_category_path, class: "menu-link" do %>
84
+ <div class="menu-text">Add a New Category</div>
85
+ <% end %>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ <% end %>
92
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Members -->
93
+
94
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCMembers -->
95
+ <% if defined?phcmembers %>
96
+ <div class="menu-header">Members</div>
97
+ <div class="menu-item has-sub">
98
+ <a href="javascript:;" class="menu-link">
99
+ <div class="menu-icon"><i class="material-icons">groups</i></div>
100
+ <div class="menu-text">Members</div>
101
+ <div class="menu-caret"></div>
102
+ </a>
103
+ <div class="menu-submenu">
104
+ <div class="menu-item has-sub">
105
+ <a href="javascript:;" class="menu-link">
106
+ <div class="menu-text">Members List</div>
107
+ <div class="menu-caret"></div>
108
+ </a>
109
+ <div class="menu-submenu <%= phc_menu_active_controller("phcmembers/member/profiles") %>">
110
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/member/profiles", "Index") %>">
111
+ <%= link_to phcmembers.member_profiles_path, class: "menu-link" do %>
112
+ <div class="menu-text">All Members</div>
113
+ <% end %>
114
+ </div>
115
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/member/profiles", "New") %>">
116
+ <%= link_to phcmembers.new_member_profile_path, class: "menu-link" do %>
117
+ <div class="menu-text">Add a New Member</div>
118
+ <% end %>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ <div class="menu-item has-sub">
123
+ <a href="javascript:;" class="menu-link">
124
+ <div class="menu-text">Members Directory</div>
125
+ <div class="menu-caret"></div>
126
+ </a>
127
+ <div class="menu-submenu <%= phc_menu_active_controller("phcmembers/directory/categories") %>">
128
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/directory/categories", "Index") %>">
129
+ <%= link_to phcmembers.directory_categories_path, class: "menu-link" do %>
130
+ <div class="menu-text">All Categories</div>
131
+ <% end %>
132
+ </div>
133
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/directory/categories", "New") %>">
134
+ <%= link_to phcmembers.new_directory_category_path, class: "menu-link" do %>
135
+ <div class="menu-text">Add a New Category</div>
136
+ <% end %>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ </div>
142
+ <% end %>
143
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCMembers -->
144
+
145
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCMembers Pro -->
146
+ <% if defined?phcmemberspro %>
147
+ <div class="menu-header">Members</div>
148
+ <div class="menu-item has-sub">
149
+ <a href="javascript:;" class="menu-link">
150
+ <div class="menu-icon"><i class="material-icons">groups</i></div>
151
+ <div class="menu-text">Members</div>
152
+ <div class="menu-caret"></div>
153
+ </a>
154
+ <div class="menu-submenu">
155
+ <div class="menu-item has-sub">
156
+ <a href="javascript:;" class="menu-link">
157
+ <div class="menu-text">Members List</div>
158
+ <div class="menu-caret"></div>
159
+ </a>
160
+ <div class="menu-submenu <%= phc_menu_active_controller("phcmembers/member/profiles") %>">
161
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/member/profiles", "Index") %>">
162
+ <%= link_to phcmemberspro.member_profiles_path, class: "menu-link" do %>
163
+ <div class="menu-text">All Members</div>
164
+ <% end %>
165
+ </div>
166
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/member/profiles", "New") %>">
167
+ <%= link_to phcmemberspro.new_member_profile_path, class: "menu-link" do %>
168
+ <div class="menu-text">Add a New Member</div>
169
+ <% end %>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ <div class="menu-item has-sub">
174
+ <a href="javascript:;" class="menu-link">
175
+ <div class="menu-text">Members Directory</div>
176
+ <div class="menu-caret"></div>
177
+ </a>
178
+ <div class="menu-submenu <%= phc_menu_active_controller("phcmembers/directory/categories") %>">
179
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/directory/categories", "Index") %>">
180
+ <%= link_to phcmemberspro.directory_categories_path, class: "menu-link" do %>
181
+ <div class="menu-text">All Categories</div>
182
+ <% end %>
183
+ </div>
184
+ <div class="menu-item <%= phc_menu_active_action_controller("phcmembers/directory/categories", "New") %>">
185
+ <%= link_to phcmemberspro.new_directory_category_path, class: "menu-link" do %>
186
+ <div class="menu-text">Add a New Category</div>
187
+ <% end %>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ <% end %>
194
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCMembers Pro -->
195
+
196
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Press -->
197
+ <% if defined?phcdevworks_press %>
198
+ <div class="menu-header">PHCDevworks Press</div>
199
+ <div class="menu-item has-sub">
200
+ <a href="javascript:;" class="menu-link">
201
+ <div class="menu-icon"><i class="material-icons">newspaper</i></div>
202
+ <div class="menu-text">Blogging</div>
203
+ <div class="menu-caret"></div>
204
+ </a>
205
+ <div class="menu-submenu">
206
+ <div class="menu-item has-sub">
207
+ <a href="javascript:;" class="menu-link">
208
+ <div class="menu-text">Article Posts</div>
209
+ <div class="menu-caret"></div>
210
+ </a>
211
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_press/article/posts") %>">
212
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_press/article/posts", "Index") %>">
213
+ <%= link_to phcdevworks_press.article_posts_path, class: "menu-link" do %>
214
+ <div class="menu-text">All Articles</div>
215
+ <% end %>
216
+ </div>
217
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_press/article/posts", "New") %>">
218
+ <%= link_to phcdevworks_press.new_article_post_path, class: "menu-link" do %>
219
+ <div class="menu-text">Add a New Article</div>
220
+ <% end %>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ <% end %>
227
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Press -->
228
+
229
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCPress -->
230
+ <% if defined?phcpress %>
231
+ <div class="menu-header">CMS</div>
232
+ <div class="menu-item has-sub">
233
+ <a href="javascript:;" class="menu-link">
234
+ <div class="menu-icon"><i class="material-icons">newspaper</i></div>
235
+ <div class="menu-text">Blogging</div>
236
+ <div class="menu-caret"></div>
237
+ </a>
238
+ <div class="menu-submenu">
239
+ <div class="menu-item has-sub">
240
+ <a href="javascript:;" class="menu-link">
241
+ <div class="menu-text">Article Posts</div>
242
+ <div class="menu-caret"></div>
243
+ </a>
244
+ <div class="menu-submenu <%= phc_menu_active_controller("phcpress/article/posts") %>">
245
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/posts", "Index") %>">
246
+ <%= link_to phcpress.article_posts_path, class: "menu-link" do %>
247
+ <div class="menu-text">All Articles</div>
248
+ <% end %>
249
+ </div>
250
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/posts", "New") %>">
251
+ <%= link_to phcpress.new_article_post_path, class: "menu-link" do %>
252
+ <div class="menu-text">Add a New Article</div>
253
+ <% end %>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ <div class="menu-item has-sub">
258
+ <a href="javascript:;" class="menu-link">
259
+ <div class="menu-text">Article Categories</div>
260
+ <div class="menu-caret"></div>
261
+ </a>
262
+ <div class="menu-submenu <%= phc_menu_active_controller("phcpress/article/categories") %>">
263
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/categories", "Index") %>">
264
+ <%= link_to phcpress.article_categories_path, class: "menu-link" do %>
265
+ <div class="menu-text">All Categories</div>
266
+ <% end %>
267
+ </div>
268
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/categories", "New") %>">
269
+ <%= link_to phcpress.new_article_category_path, class: "menu-link" do %>
270
+ <div class="menu-text">Add a New Category</div>
271
+ <% end %>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ <% end %>
278
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCPress -->
279
+
280
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCPress Pro -->
281
+ <% if defined?phcpresspro %>
282
+ <div class="menu-header">CMS</div>
283
+ <div class="menu-item has-sub">
284
+ <a href="javascript:;" class="menu-link">
285
+ <div class="menu-icon"><i class="material-icons">newspaper</i></div>
286
+ <div class="menu-text">Blogging</div>
287
+ <div class="menu-caret"></div>
288
+ </a>
289
+ <div class="menu-submenu">
290
+ <div class="menu-item has-sub">
291
+ <a href="javascript:;" class="menu-link">
292
+ <div class="menu-text">Article Posts</div>
293
+ <div class="menu-caret"></div>
294
+ </a>
295
+ <div class="menu-submenu <%= phc_menu_active_controller("phcpress/article/posts") %>">
296
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/posts", "Index") %>">
297
+ <%= link_to phcpresspro.article_posts_path, class: "menu-link" do %>
298
+ <div class="menu-text">All Articles</div>
299
+ <% end %>
300
+ </div>
301
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/posts", "New") %>">
302
+ <%= link_to phcpresspro.new_article_post_path, class: "menu-link" do %>
303
+ <div class="menu-text">Add a New Article</div>
304
+ <% end %>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ <div class="menu-item has-sub">
309
+ <a href="javascript:;" class="menu-link">
310
+ <div class="menu-text">Article Categories</div>
311
+ <div class="menu-caret"></div>
312
+ </a>
313
+ <div class="menu-submenu <%= phc_menu_active_controller("phcpress/article/categories") %>">
314
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/categories", "Index") %>">
315
+ <%= link_to phcpresspro.article_categories_path, class: "menu-link" do %>
316
+ <div class="menu-text">All Categories</div>
317
+ <% end %>
318
+ </div>
319
+ <div class="menu-item <%= phc_menu_active_action_controller("phcpress/article/categories", "New") %>">
320
+ <%= link_to phcpresspro.new_article_category_path, class: "menu-link" do %>
321
+ <div class="menu-text">Add a New Category</div>
322
+ <% end %>
323
+ </div>
324
+ </div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ <% end %>
329
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCPress Pro -->
330
+
331
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Portfolio -->
332
+ <% if defined?phcdevworks_portfolio %>
333
+ <div class="menu-header">PHCPortfolio</div>
334
+ <div class="menu-item has-sub">
335
+ <a href="javascript:;" class="menu-link">
336
+ <div class="menu-icon"><i class="material-icons">business_center</i></div>
337
+ <div class="menu-text">Portfolio & Projects</div>
338
+ <div class="menu-caret"></div>
339
+ </a>
340
+ <div class="menu-submenu">
341
+ <div class="menu-item has-sub">
342
+ <a href="javascript:;" class="menu-link">
343
+ <div class="menu-text">Project Portfolio</div>
344
+ <div class="menu-caret"></div>
345
+ </a>
346
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>">
347
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/posts", "Index") %>">
348
+ <%= link_to phcdevworks_portfolio.project_posts_path, class: "menu-link" do %>
349
+ <div class="menu-text">Project Index</div>
350
+ <% end %>
351
+ </div>
352
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/posts", "New") %>">
353
+ <%= link_to phcdevworks_portfolio.new_project_post_path, class: "menu-link" do %>
354
+ <div class="menu-text">Add a New Project</div>
355
+ <% end %>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ <div class="menu-item has-sub">
360
+ <a href="javascript:;" class="menu-link">
361
+ <div class="menu-text">Project Types</div>
362
+ <div class="menu-caret"></div>
363
+ </a>
364
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_portfolio/project/types") %>">
365
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/types", "Index") %>">
366
+ <%= link_to phcdevworks_portfolio.project_types_path, class: "menu-link" do %>
367
+ <div class="menu-text">Project Types</div>
368
+ <% end %>
369
+ </div>
370
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/types", "New") %>">
371
+ <%= link_to phcdevworks_portfolio.new_project_type_path, class: "menu-link" do %>
372
+ <div class="menu-text">Add a New Project Type</div>
373
+ <% end %>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ </div>
378
+ </div>
379
+ <% end %>
380
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Portfolio -->
381
+
382
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks RealEstate -->
383
+ <% if defined?phcdevworks_real_estate %>
384
+ <div class="menu-header">PHCRealEstate</div>
385
+ <div class="menu-item has-sub">
386
+ <a href="javascript:;" class="menu-link">
387
+ <div class="menu-icon"><i class="material-icons">holiday_village</i></div>
388
+ <div class="menu-text">Property Listings</div>
389
+ <div class="menu-caret"></div>
390
+ </a>
391
+ <div class="menu-submenu">
392
+ <div class="menu-item has-sub">
393
+ <a href="javascript:;" class="menu-link">
394
+ <div class="menu-text">Property Listings</div>
395
+ <div class="menu-caret"></div>
396
+ </a>
397
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>">
398
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/listings", "Index") %>">
399
+ <%= link_to phcdevworks_real_estate.property_listings_path, class: "menu-link" do %>
400
+ <div class="menu-text">Property Listings</div>
401
+ <% end %>
402
+ </div>
403
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/listings", "New") %>">
404
+ <%= link_to phcdevworks_real_estate.new_property_listing_path, class: "menu-link" do %>
405
+ <div class="menu-text">Add a New Listing</div>
406
+ <% end %>
407
+ </div>
408
+ </div>
409
+ </div>
410
+ <div class="menu-item has-sub">
411
+ <a href="javascript:;" class="menu-link">
412
+ <div class="menu-text">Project Types</div>
413
+ <div class="menu-caret"></div>
414
+ </a>
415
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_real_estate/property/features") %>">
416
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/features", "Index") %>">
417
+ <%= link_to phcdevworks_real_estate.property_features_path, class: "menu-link" do %>
418
+ <div class="menu-text">Property Features List</div>
419
+ <% end %>
420
+ </div>
421
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/features", "New") %>">
422
+ <%= link_to phcdevworks_real_estate.new_property_feature_path, class: "menu-link" do %>
423
+ <div class="menu-text">Add a New Property Feature</div>
424
+ <% end %>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ <% end %>
431
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks RealEstate -->
432
+
433
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Scripts -->
434
+ <% if defined?phcdevworks_scripts %>
435
+ <div class="menu-header">PHCScripts</div>
436
+ <div class="menu-item has-sub">
437
+ <a href="javascript:;" class="menu-link">
438
+ <div class="menu-icon"><i class="material-icons">code</i></div>
439
+ <div class="menu-text">Script CDN Listing</div>
440
+ <div class="menu-caret"></div>
441
+ </a>
442
+ <div class="menu-submenu">
443
+ <div class="menu-item has-sub">
444
+ <a href="javascript:;" class="menu-link">
445
+ <div class="menu-text">Script Listing</div>
446
+ <div class="menu-caret"></div>
447
+ </a>
448
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/script/listings") %>">
449
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/listings", "Index") %>">
450
+ <%= link_to phcdevworks_scripts.script_listings_path, class: "menu-link" do %>
451
+ <div class="menu-text">Script Listings</div>
452
+ <% end %>
453
+ </div>
454
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/listings", "New") %>">
455
+ <%= link_to phcdevworks_scripts.new_script_listing_path, class: "menu-link" do %>
456
+ <div class="menu-text">Add a New Listing</div>
457
+ <% end %>
458
+ </div>
459
+ </div>
460
+ </div>
461
+ <div class="menu-item has-sub">
462
+ <a href="javascript:;" class="menu-link">
463
+ <div class="menu-text">Script Listing Extras</div>
464
+ <div class="menu-caret"></div>
465
+ </a>
466
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/script/authors") %>">
467
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/authors", "Index") %>">
468
+ <%= link_to phcdevworks_scripts.script_authors_path, class: "menu-link" do %>
469
+ <div class="menu-text">Script Authors</div>
470
+ <% end %>
471
+ </div>
472
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/extensions", "Index") %>">
473
+ <%= link_to phcdevworks_scripts.script_extensions_path, class: "menu-link" do %>
474
+ <div class="menu-text">Script Extensions</div>
475
+ <% end %>
476
+ </div>
477
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/versions", "Index") %>">
478
+ <%= link_to phcdevworks_scripts.script_versions_path, class: "menu-link" do %>
479
+ <div class="menu-text">Script Versions</div>
480
+ <% end %>
481
+ </div>
482
+ </div>
483
+ </div>
484
+ <div class="menu-item has-sub">
485
+ <a href="javascript:;" class="menu-link">
486
+ <div class="menu-text">Code Snippets</div>
487
+ <div class="menu-caret"></div>
488
+ </a>
489
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/snippet/posts") %>">
490
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/snippet/posts", "Index") %>">
491
+ <%= link_to phcdevworks_scripts.snippet_posts_path, class: "menu-link" do %>
492
+ <div class="menu-text">Code Snippets</div>
493
+ <% end %>
494
+ </div>
495
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/snippet/posts", "New") %>">
496
+ <%= link_to phcdevworks_scripts.new_snippet_post_path, class: "menu-link" do %>
497
+ <div class="menu-text">Add a New Code Snippet</div>
498
+ <% end %>
499
+ </div>
500
+ </div>
501
+ </div>
502
+ </div>
503
+ </div>
504
+ <% end %>
505
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Scripts -->
506
+
507
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Script CDN -->
508
+ <% if defined?phcscriptcdn %>
509
+ <div class="menu-header">Script CDN</div>
510
+ <div class="menu-item has-sub">
511
+ <a href="javascript:;" class="menu-link">
512
+ <div class="menu-icon"><i class="material-icons">code</i></div>
513
+ <div class="menu-text">Script CDN Listing</div>
514
+ <div class="menu-caret"></div>
515
+ </a>
516
+ <div class="menu-submenu">
517
+ <div class="menu-item has-sub">
518
+ <a href="javascript:;" class="menu-link">
519
+ <div class="menu-text">Script Listing</div>
520
+ <div class="menu-caret"></div>
521
+ </a>
522
+ <div class="menu-submenu <%= phc_menu_active_controller("phcscriptcdn/script/listings") %>">
523
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdn/script/listings", "Index") %>">
524
+ <%= link_to phcscriptcdn.script_listings_path, class: "menu-link" do %>
525
+ <div class="menu-text">Script Listings</div>
526
+ <% end %>
527
+ </div>
528
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdn/script/listings", "New") %>">
529
+ <%= link_to phcscriptcdn.new_script_listing_path, class: "menu-link" do %>
530
+ <div class="menu-text">Add a New Listing</div>
531
+ <% end %>
532
+ </div>
533
+ </div>
534
+ </div>
535
+ <div class="menu-item has-sub">
536
+ <a href="javascript:;" class="menu-link">
537
+ <div class="menu-text">Script Listing Extras</div>
538
+ <div class="menu-caret"></div>
539
+ </a>
540
+ <div class="menu-submenu <%= phc_menu_active_controller("phcscriptcdn/script/authors") %>">
541
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdn/script/authors", "Index") %>">
542
+ <%= link_to phcscriptcdn.script_authors_path, class: "menu-link" do %>
543
+ <div class="menu-text">Script Authors</div>
544
+ <% end %>
545
+ </div>
546
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdn/script/extensions", "Index") %>">
547
+ <%= link_to phcscriptcdn.script_extensions_path, class: "menu-link" do %>
548
+ <div class="menu-text">Script Extensions</div>
549
+ <% end %>
550
+ </div>
551
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdn/script/licences", "Index") %>">
552
+ <%= link_to phcscriptcdn.script_licences_path, class: "menu-link" do %>
553
+ <div class="menu-text">Script Licences</div>
554
+ <% end %>
555
+ </div>
556
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdn/script/versions", "Index") %>">
557
+ <%= link_to phcscriptcdn.script_versions_path, class: "menu-link" do %>
558
+ <div class="menu-text">Script Versions</div>
559
+ <% end %>
560
+ </div>
561
+ </div>
562
+ </div>
563
+ </div>
564
+ </div>
565
+ <% end %>
566
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Script CDN -->
567
+
568
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Script CDN Pro -->
569
+ <% if defined?phcscriptcdnpro %>
570
+ <div class="menu-header">Script CDN</div>
571
+ <div class="menu-item has-sub">
572
+ <a href="javascript:;" class="menu-link">
573
+ <div class="menu-icon"><i class="material-icons">code</i></div>
574
+ <div class="menu-text">Script CDN Listing</div>
575
+ <div class="menu-caret"></div>
576
+ </a>
577
+ <div class="menu-submenu">
578
+ <div class="menu-item has-sub">
579
+ <a href="javascript:;" class="menu-link">
580
+ <div class="menu-text">Script Listing</div>
581
+ <div class="menu-caret"></div>
582
+ </a>
583
+ <div class="menu-submenu <%= phc_menu_active_controller("phcscriptcdnpro/script/listings") %>">
584
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdnpro/script/listings", "Index") %>">
585
+ <%= link_to phcscriptcdnpro.script_listings_path, class: "menu-link" do %>
586
+ <div class="menu-text">Script Listings</div>
587
+ <% end %>
588
+ </div>
589
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdnpro/script/listings", "New") %>">
590
+ <%= link_to phcscriptcdnpro.new_script_listing_path, class: "menu-link" do %>
591
+ <div class="menu-text">Add a New Listing</div>
592
+ <% end %>
593
+ </div>
594
+ </div>
595
+ </div>
596
+ <div class="menu-item has-sub">
597
+ <a href="javascript:;" class="menu-link">
598
+ <div class="menu-text">Script Listing Extras</div>
599
+ <div class="menu-caret"></div>
600
+ </a>
601
+ <div class="menu-submenu <%= phc_menu_active_controller("phcscriptcdnpro/script/authors") %>">
602
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdnpro/script/authors", "Index") %>">
603
+ <%= link_to phcscriptcdnpro.script_authors_path, class: "menu-link" do %>
604
+ <div class="menu-text">Script Authors</div>
605
+ <% end %>
606
+ </div>
607
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdnpro/script/extensions", "Index") %>">
608
+ <%= link_to phcscriptcdnpro.script_extensions_path, class: "menu-link" do %>
609
+ <div class="menu-text">Script Extensions</div>
610
+ <% end %>
611
+ </div>
612
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdnpro/script/licences", "Index") %>">
613
+ <%= link_to phcscriptcdnpro.script_licences_path, class: "menu-link" do %>
614
+ <div class="menu-text">Script Licences</div>
615
+ <% end %>
616
+ </div>
617
+ <div class="menu-item <%= phc_menu_active_action_controller("phcscriptcdnpro/script/versions", "Index") %>">
618
+ <%= link_to phcscriptcdnpro.script_versions_path, class: "menu-link" do %>
619
+ <div class="menu-text">Script Versions</div>
620
+ <% end %>
621
+ </div>
622
+ </div>
623
+ </div>
624
+ </div>
625
+ </div>
626
+ <% end %>
627
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Script CDN Pro -->
628
+
629
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Code Snipper -->
630
+ <% if defined?phccodesnipper %>
631
+ <div class="menu-header">Code Snippets</div>
632
+ <div class="menu-item has-sub">
633
+ <a href="javascript:;" class="menu-link">
634
+ <div class="menu-icon"><i class="material-icons">code</i></div>
635
+ <div class="menu-text">Snippets</div>
636
+ <div class="menu-caret"></div>
637
+ </a>
638
+ <div class="menu-submenu">
639
+ <div class="menu-item has-sub">
640
+ <a href="javascript:;" class="menu-link">
641
+ <div class="menu-text">Scripts Snippets</div>
642
+ <div class="menu-caret"></div>
643
+ </a>
644
+ <div class="menu-submenu <%= phc_menu_active_controller("phccodesnipper/script/snippets") %>">
645
+ <div class="menu-item <%= phc_menu_active_action_controller("phccodesnipper/script/snippets", "Index") %>">
646
+ <%= link_to phccodesnipper.script_snippets_path, class: "menu-link" do %>
647
+ <div class="menu-text">All Script Snippets</div>
648
+ <% end %>
649
+ </div>
650
+ <div class="menu-item <%= phc_menu_active_action_controller("phccodesnipper/script/snippets", "New") %>">
651
+ <%= link_to phccodesnipper.new_script_snippet_path, class: "menu-link" do %>
652
+ <div class="menu-text">Add a New Snippets</div>
653
+ <% end %>
654
+ </div>
655
+ </div>
656
+ </div>
657
+ </div>
658
+ </div>
659
+ <% end %>
660
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Code Snipper -->
661
+
662
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Code Snipper Pro -->
663
+ <% if defined?phccodesnipperpro %>
664
+ <div class="menu-header">Code Snippets</div>
665
+ <div class="menu-item has-sub">
666
+ <a href="javascript:;" class="menu-link">
667
+ <div class="menu-icon"><i class="material-icons">code</i></div>
668
+ <div class="menu-text">Snippets</div>
669
+ <div class="menu-caret"></div>
670
+ </a>
671
+ <div class="menu-submenu">
672
+ <div class="menu-item has-sub">
673
+ <a href="javascript:;" class="menu-link">
674
+ <div class="menu-text">Scripts Snippets</div>
675
+ <div class="menu-caret"></div>
676
+ </a>
677
+ <div class="menu-submenu <%= phc_menu_active_controller("phccodesnipperpro/script/snippets") %>">
678
+ <div class="menu-item <%= phc_menu_active_action_controller("phccodesnipperpro/script/snippets", "Index") %>">
679
+ <%= link_to phccodesnipperpro.script_snippets_path, class: "menu-link" do %>
680
+ <div class="menu-text">All Script Snippets</div>
681
+ <% end %>
682
+ </div>
683
+ <div class="menu-item <%= phc_menu_active_action_controller("phccodesnipperpro/script/snippets", "New") %>">
684
+ <%= link_to phccodesnipperpro.new_script_snippet_path, class: "menu-link" do %>
685
+ <div class="menu-text">Add a New Snippets</div>
686
+ <% end %>
687
+ </div>
688
+ </div>
689
+ </div>
690
+ </div>
691
+ </div>
692
+ <% end %>
693
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHC Code Snipper Pro -->
694
+
695
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Tutorials -->
696
+ <% if defined?phcdevworks_tutorials %>
697
+ <div class="menu-header">PHCTutorials</div>
698
+ <div class="menu-item has-sub">
699
+ <a href="javascript:;" class="menu-link">
700
+ <div class="menu-icon"><i class="material-icons">school</i></div>
701
+ <div class="menu-text">Tutorials</div>
702
+ <div class="menu-caret"></div>
703
+ </a>
704
+ <div class="menu-submenu">
705
+ <div class="menu-item has-sub">
706
+ <a href="javascript:;" class="menu-link">
707
+ <div class="menu-text">Tutorials</div>
708
+ <div class="menu-caret"></div>
709
+ </a>
710
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>">
711
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/tutorials/posts", "Index") %>">
712
+ <%= link_to phcdevworks_tutorials.tutorial_posts_path, class: "menu-link" do %>
713
+ <div class="menu-text">Tutorial Index</div>
714
+ <% end %>
715
+ </div>
716
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/tutorials/posts", "New") %>">
717
+ <%= link_to phcdevworks_tutorials.new_tutorial_post_path, class: "menu-link" do %>
718
+ <div class="menu-text">Add a New Tutorial</div>
719
+ <% end %>
720
+ </div>
721
+ </div>
722
+ </div>
723
+ <div class="menu-item has-sub">
724
+ <a href="javascript:;" class="menu-link">
725
+ <div class="menu-text">Command Lists</div>
726
+ <div class="menu-caret"></div>
727
+ </a>
728
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>">
729
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/command/posts", "Index") %>">
730
+ <%= link_to phcdevworks_tutorials.command_posts_path, class: "menu-link" do %>
731
+ <div class="menu-text">Command List Index</div>
732
+ <% end %>
733
+ </div>
734
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/command/posts", "New") %>">
735
+ <%= link_to phcdevworks_tutorials.new_command_post_path, class: "menu-link" do %>
736
+ <div class="menu-text">Add a New Command List</div>
737
+ <% end %>
738
+ </div>
739
+ </div>
740
+ </div>
741
+ </div>
742
+ </div>
743
+ <% end %>
744
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Tutorials -->
745
+
746
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks CoreModules -->
747
+ <% if defined?phcdevworks_core_modules %>
748
+ <div class="menu-header">Categories</div>
749
+ <div class="menu-item has-sub">
750
+ <a href="javascript:;" class="menu-link">
751
+ <div class="menu-icon"><i class="material-icons">view_list</i></div>
752
+ <div class="menu-text">Categories</div>
753
+ <div class="menu-caret"></div>
754
+ </a>
755
+ <div class="menu-submenu">
756
+ <div class="menu-item has-sub">
757
+ <a href="javascript:;" class="menu-link">
758
+ <div class="menu-text">Categories</div>
759
+ <div class="menu-caret"></div>
760
+ </a>
761
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>">
762
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/post/categories", "Index") %>">
763
+ <%= link_to phcdevworks_core_modules.post_categories_path, class: "menu-link" do %>
764
+ <div class="menu-text">Category Index</div>
765
+ <% end %>
766
+ </div>
767
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/post/categories", "New") %>">
768
+ <%= link_to phcdevworks_core_modules.new_post_category_path, class: "menu-link" do %>
769
+ <div class="menu-text">Add a New Category</div>
770
+ <% end %>
771
+ </div>
772
+ </div>
773
+ </div>
774
+ </div>
775
+ </div>
776
+ <div class="menu-header">Marketing</div>
777
+ <div class="menu-item has-sub">
778
+ <a href="javascript:;" class="menu-link">
779
+ <div class="menu-icon"><i class="material-icons">query_stats</i></div>
780
+ <div class="menu-text">Search Optimization</div>
781
+ <div class="menu-caret"></div>
782
+ </a>
783
+ <div class="menu-submenu">
784
+ <div class="menu-item has-sub">
785
+ <a href="javascript:;" class="menu-link">
786
+ <div class="menu-text">SEO Data</div>
787
+ <div class="menu-caret"></div>
788
+ </a>
789
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>">
790
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/marketing/optimizations", "Index") %>">
791
+ <%= link_to phcdevworks_core_modules.marketing_optimizations_path, class: "menu-link" do %>
792
+ <div class="menu-text">SEO Data Index</div>
793
+ <% end %>
794
+ </div>
795
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/marketing/optimizations", "New") %>">
796
+ <%= link_to phcdevworks_core_modules.new_marketing_optimization_path, class: "menu-link" do %>
797
+ <div class="menu-text">Add New SEO Data</div>
798
+ <% end %>
799
+ </div>
800
+ </div>
801
+ </div>
802
+ </div>
803
+ </div>
804
+ <div class="menu-item has-sub">
805
+ <a href="javascript:;" class="menu-link">
806
+ <div class="menu-icon"><i class="material-icons">link</i></div>
807
+ <div class="menu-text">Affiliate Linking</div>
808
+ <div class="menu-caret"></div>
809
+ </a>
810
+ <div class="menu-submenu">
811
+ <div class="menu-item has-sub">
812
+ <a href="javascript:;" class="menu-link">
813
+ <div class="menu-text">Affiliate Links</div>
814
+ <div class="menu-caret"></div>
815
+ </a>
816
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links") %>">
817
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/affiliate/links", "Index") %>">
818
+ <%= link_to phcdevworks_core_modules.affiliate_links_path, class: "menu-link" do %>
819
+ <div class="menu-text">Affiliate Link Index</div>
820
+ <% end %>
821
+ </div>
822
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/affiliate/links", "New") %>">
823
+ <%= link_to phcdevworks_core_modules.new_affiliate_link_path, class: "menu-link" do %>
824
+ <div class="menu-text">Add a New Affiliate Link</div>
825
+ <% end %>
826
+ </div>
827
+ </div>
828
+ </div>
829
+ </div>
830
+ </div>
831
+ <% end %>
832
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks CoreModules -->
833
+
834
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Accounts -->
835
+
836
+ <% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
837
+ <div class="menu-header">Subscription Administration</div>
838
+ <div class="menu-item has-sub">
839
+ <a href="javascript:;" class="menu-link">
840
+ <div class="menu-icon"><i class="material-icons">payments</i></div>
841
+ <div class="menu-text">Stripe</div>
842
+ <div class="menu-caret"></div>
843
+ </a>
844
+ <div class="menu-submenu">
845
+ <div class="menu-item has-sub">
846
+ <a href="javascript:;" class="menu-link">
847
+ <div class="menu-text">Accounting</div>
848
+ <div class="menu-caret"></div>
849
+ </a>
850
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions") %>">
851
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/subscriptions", "admin_subscription_list") %>">
852
+ <%= link_to phcdevworks_accounts_stripe.admin_invoices_path, class: "menu-link" do %>
853
+ <div class="menu-text">Invoices</div>
854
+ <% end %>
855
+ </div>
856
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/subscriptions", "admin_subscription_list") %>">
857
+ <%= link_to phcdevworks_accounts_stripe.admin_subscriptions_path, class: "menu-link" do %>
858
+ <div class="menu-text">Subscriptions</div>
859
+ <% end %>
860
+ </div>
861
+ </div>
862
+ </div>
863
+ <div class="menu-item has-sub">
864
+ <a href="javascript:;" class="menu-link">
865
+ <div class="menu-text">Services & Products</div>
866
+ <div class="menu-caret"></div>
867
+ </a>
868
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products") %>">
869
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/products", "admin_products_list") %>">
870
+ <%= link_to phcdevworks_accounts_stripe.admin_products_path, class: "menu-link" do %>
871
+ <div class="menu-text">Product List</div>
872
+ <% end %>
873
+ </div>
874
+ </div>
875
+ </div>
876
+ <div class="menu-item has-sub">
877
+ <a href="javascript:;" class="menu-link">
878
+ <div class="menu-text">Subscribers</div>
879
+ <div class="menu-caret"></div>
880
+ </a>
881
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers") %>">
882
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/customers", "admin_customer_list") %>">
883
+ <%= link_to phcdevworks_accounts_stripe.admin_customers_path, class: "menu-link" do %>
884
+ <div class="menu-text">Subscriber List</div>
885
+ <% end %>
886
+ </div>
887
+ </div>
888
+ </div>
889
+ </div>
890
+ </div>
891
+ <% end %>
892
+ <% if current_user and current_user.admin? %>
893
+ <div class="menu-header">Login Administration</div>
894
+ <div class="menu-item has-sub">
895
+ <a href="javascript:;" class="menu-link">
896
+ <div class="menu-icon"><i class="material-icons">admin_panel_settings</i></div>
897
+ <div class="menu-text">Auth Administration</div>
898
+ <div class="menu-caret"></div>
899
+ </a>
900
+ <div class="menu-submenu">
901
+ <div class="menu-item has-sub">
902
+ <a href="javascript:;" class="menu-link">
903
+ <div class="menu-text">Users</div>
904
+ <div class="menu-caret"></div>
905
+ </a>
906
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_devise/admin/users") %>">
907
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_devise/admin/users", "admin_subscription_list") %>">
908
+ <%= link_to phcdevworks_accounts_devise.admin_users_all_path, class: "menu-link" do %>
909
+ <div class="menu-text">User List</div>
910
+ <% end %>
911
+ </div>
912
+ </div>
913
+ </div>
914
+ </div>
915
+ </div>
916
+ <% end %>
917
+ <!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Accounts -->
918
+
919
+ </div>
920
+ </div>
921
+ <!-- -PHCDEV- Page Container - Sidebar -->