app/views/layouts/phcmemberspro/components/backend/sidebars/_side_menu.html.erb in phcmemberspro-74.1.0 vs app/views/layouts/phcmemberspro/components/backend/sidebars/_side_menu.html.erb in phcmemberspro-76.0.0
- old
+ new
@@ -1,10 +1,11 @@
-<!-- Sidebar -->
+<!-- Sidebar for Users and Admin -->
<div data-scrollbar="true" data-height="100%">
- <% if current_user %>
- <!-- Sidebar - User Profile Menu -->
- <ul class="nav">
+
+ <!-- Sidebar - User Profile Menu -->
+ <ul class="nav">
+ <% if current_user %>
<li class="nav-profile">
<a href="javascript:;" data-toggle="nav-profile">
<div class="cover with-shadow"></div>
<div class="image">
<%= image_tag current_user.gravatar_url %>
@@ -28,41 +29,14 @@
<i class="fas fa-sign-out-alt"></i> Logout
<% end %>
</li>
</ul>
</li>
- </ul>
- <!-- Sidebar - User Profile Menu -->
- <!-- Sidebar - Sidebar Navigation -->
- <ul class="nav">
- <li class="nav-header">Accounts</li>
- <li class="has-sub">
- <a href="javascript:;">
- <b class="caret"></b>
- <i class="fa fa-th-large"></i>
- <span>Accounts Dashboard</span>
- </a>
- <ul class="sub-menu">
- <li><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
- <li><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
- </ul>
- </li>
- <!-- Sidebar - Sidebar Minifier -->
- <li>
- <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
- <i class="fa fa-angle-double-left"></i>
- </a>
- </li>
- <!-- Sidebar - Sidebar Minifier -->
- </ul>
- <!-- Sidebar - Sidebar Navigation -->
- <% end %>
- <% if current_admin %>
- <!-- Sidebar - User Profile Menu -->
- <ul class="nav">
+ <% end %>
+ <% if current_admin %>
<li class="nav-profile">
- <a href="javascript:;" data-toggle="nav-profile">
+ <a href="javascript:;" data-toggle="nav-profile">
<div class="cover with-shadow"></div>
<div class="image">
<%= image_tag current_admin.gravatar_url %>
</div>
<div class="info">
@@ -84,33 +58,150 @@
<i class="fas fa-sign-out-alt"></i> Logout
<% end %>
</li>
</ul>
</li>
- </ul>
- <!-- Sidebar - User Profile Menu -->
- <!-- Sidebar - Sidebar Navigation -->
- <ul class="nav">
- <li class="nav-header">Accounts Menu</li>
+ <% end %>
+ </ul>
+ <!-- Sidebar - User Profile Menu -->
+ <!-- Sidebar - Sidebar Navigation -->
+ <ul class="nav">
+
+ <% if defined?phcpresspro %>
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
+ <li class="nav-header">Article Management</li>
<li class="has-sub">
<a href="javascript:;">
<b class="caret"></b>
- <i class="fa fa-th-large"></i>
+ <i class="fas fa-newspaper"></i>
+ <span>Article Posts</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcpresspro/article/posts') %>"><%= link_to('Article Index', phcpresspro.article_posts_path) %></li>
+ <li class="<%= is_active_controller('phcpresspro/article/posts#new') %>"><%= link_to('New Aritcle', phcpresspro.new_article_post_path) %></li>
+ </ul>
+ </li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-sitemap"></i>
+ <span>Article Categories</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcpresspro/article/categories') %>"><%= link_to('Category Index', phcpresspro.article_categories_path) %></li>
+ <li class="<%= is_active_controller('phcpresspro/article/categories#new') %>"><%= link_to('New Category', phcpresspro.new_article_category_path) %></li>
+ </ul>
+ </li>
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
+ <% end %>
+
+ <% if defined?phcmemberspro %>
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
+ <li class="nav-header">Membership Manager</li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-users"></i>
+ <span>Member's Data</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcmemberspro/member/profiles') %>"><%= link_to('Profile Index', phcmemberspro.member_profiles_path) %></li>
+ <li class="<%= is_active_controller('phcmemberspro/member/profiles#new') %>"><%= link_to('New Member Profile', phcmemberspro.new_member_profile_path) %></li>
+ </ul>
+ </li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-list-alt"></i>
+ <span>Member's Directory</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcmemberspro/directory/categories') %>"><%= link_to('Directory Index', phcmemberspro.directory_categories_path) %></li>
+ <li class="<%= is_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmemberspro.new_directory_category_path) %></li>
+ </ul>
+ </li>
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
+ <% end %>
+
+ <% if defined?phcscriptcdnpro %>
+ <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
+ <li class="nav-header">Script Management</li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-newspaper"></i>
+ <span>Script Posts</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
+ </ul>
+ </li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-sitemap"></i>
+ <span>Script Extras</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
+ </ul>
+ </li>
+ <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
+ <% end %>
+
+ <% if current_admin %>
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
+ <li class="nav-header">Admin Settings</li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-user"></i>
+ <span>Admin Dashboard</span>
+ </a>
+ <ul class="sub-menu">
+ <li class="<%= is_active_controller('phcaccountspro/user/edit') %>"><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
+ <li class="<%= is_active_controller('phcaccountspro/user/edit') %>"><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
+ </ul>
+ </li>
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
+ <!-- Sidebar - Sidebar Minifier -->
+ <li>
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
+ <i class="fa fa-angle-double-left"></i>
+ </a>
+ </li>
+ <!-- Sidebar - Sidebar Minifier -->
+ <% end %>
+
+ <% if current_user %>
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
+ <li class="nav-header">Account Settings</li>
+ <li class="has-sub">
+ <a href="javascript:;">
+ <b class="caret"></b>
+ <i class="fas fa-user"></i>
<span>Accounts Dashboard</span>
</a>
<ul class="sub-menu">
- <li><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
- <li><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
+ <li class="<%= is_active_controller('phcaccountspro/admin/edit') %>"><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
+ <li class="<%= is_active_controller('phcaccountspro/admin/new') %>"><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
</ul>
</li>
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
<!-- Sidebar - Sidebar Minifier -->
<li>
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
<i class="fa fa-angle-double-left"></i>
</a>
</li>
<!-- Sidebar - Sidebar Minifier -->
- </ul>
- <!-- Sidebar - Sidebar Navigation -->
- <% end %>
+ <% end %>
+
+ </ul>
+ <!-- Sidebar - Sidebar Navigation -->
+
</div>
-<!-- Sidebar -->
+<!-- Sidebar for Users and Admin -->