phcdevworks_core_modules 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/phcdevworks_core_modules/marketing/optimization.rb +7 -1
- data/app/models/phcdevworks_core_modules/post/category.rb +8 -4
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +54 -32
- data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +1 -1
- data/lib/phcdevworks_core_modules.rb +1 -1
- data/lib/phcdevworks_core_modules/engine.rb +2 -2
- data/lib/phcdevworks_core_modules/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 669c18d778303bad1c9a1e17b29d80676438bafa1286c1479f0fc46d7bbbf26b
|
4
|
+
data.tar.gz: 9d0317715724b2166e7c0371df34131d2e36cf9693dfd771bd82db94049795dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5bd5768520afe08f0bb052f032d5e12ea4a922f71aa9b916d6aa5f3b7e80fc681d435fa7466f8598042fdc0b3dced0f2b42153e621ddd5198e5c52a03aa236
|
7
|
+
data.tar.gz: a1e59e4a6356c2941dc9fdf10d0b2ea264cd2403d6d14adcc11fe10a1b7110f9f418a8fb78647300c16890800b520eaf06c3db3641a1344f0af42e2b5bef0235
|
@@ -14,20 +14,26 @@ module PhcdevworksCoreModules
|
|
14
14
|
# Relationships for Local
|
15
15
|
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
16
16
|
has_many :categories, class_name: "PhcdevworksCoreModules::Post::Category"
|
17
|
-
|
17
|
+
|
18
18
|
# Relationships for PHCDevworks Plugins
|
19
19
|
if defined?phcdevworks_members
|
20
20
|
has_many :listings, class_name: "PhcdevworksMembers::Member::Listing"
|
21
21
|
end
|
22
|
+
|
22
23
|
if defined?phcdevworks_scripts
|
23
24
|
has_many :listings, class_name: "PhcdevworksScripts::Script::Listing"
|
24
25
|
end
|
26
|
+
|
25
27
|
if defined?phcdevworks_press
|
26
28
|
has_many :posts, class_name: "PhcdevworksPress::Article::Post"
|
29
|
+
has_many :posts, class_name: "PhcdevworksPress::Review::Post"
|
30
|
+
has_many :posts, class_name: "PhcdevworksPress::List::Post"
|
27
31
|
end
|
32
|
+
|
28
33
|
if defined?phcdevworks_portfolio
|
29
34
|
has_many :posts, class_name: "PhcdevworksPortfolio::Project::Post"
|
30
35
|
end
|
36
|
+
|
31
37
|
if defined?phcdevworks_tutorials
|
32
38
|
has_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post"
|
33
39
|
has_many :posts, class_name: "PhcdevworksTutorials::Command::Post"
|
@@ -13,11 +13,15 @@ module PhcdevworksCoreModules
|
|
13
13
|
|
14
14
|
# Relationships for PHCDevworks Plugins
|
15
15
|
if defined?phcdevworks_press
|
16
|
-
has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Article::Post", :join_table => "
|
16
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Article::Post", :join_table => "phcdevworks_press_article_categories_posts", :dependent => :destroy
|
17
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Review::Post", :join_table => "phcdevworks_press_review_categories_posts", :dependent => :destroy
|
18
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::List::Post", :join_table => "phcdevworks_press_list_categories_posts", :dependent => :destroy
|
17
19
|
end
|
20
|
+
|
18
21
|
if defined?phcdevworks_portfolio
|
19
|
-
has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "
|
22
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "phcdevworks_portfolio_project_categories_posts", :dependent => :destroy
|
20
23
|
end
|
24
|
+
|
21
25
|
if defined?phcdevworks_tutorials
|
22
26
|
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post", :join_table => "phcdevworks_tutorials_categories_posts", :dependent => :destroy
|
23
27
|
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Command::Post", :join_table => "phcdevworks_tutorials_categories_commands", :dependent => :destroy
|
@@ -25,8 +29,8 @@ module PhcdevworksCoreModules
|
|
25
29
|
|
26
30
|
# Form Fields Validation
|
27
31
|
validates :post_category_name,
|
28
|
-
|
29
|
-
|
32
|
+
presence: true,
|
33
|
+
uniqueness: true
|
30
34
|
|
31
35
|
# Clean URL Define
|
32
36
|
friendly_id :post_category_nice_urls, use: [:slugged, :finders]
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -45,18 +45,40 @@
|
|
45
45
|
<a href="javascript:;">
|
46
46
|
<b class="caret"></b>
|
47
47
|
<i class="fad fa-newspaper"></i>
|
48
|
-
<span>
|
48
|
+
<span>Blog Articles</span>
|
49
49
|
</a>
|
50
50
|
<ul class="sub-menu">
|
51
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("New Aritcle", phcdevworks_press.new_article_post_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>
|
53
75
|
</ul>
|
54
76
|
</li>
|
55
77
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
56
78
|
<% end %>
|
57
79
|
|
58
80
|
<% if defined?phcdevworks_portfolio %>
|
59
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
81
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
|
60
82
|
<li class="nav-header">Portfolio</li>
|
61
83
|
<li class="has-sub">
|
62
84
|
<a href="javascript:;">
|
@@ -80,7 +102,7 @@
|
|
80
102
|
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
|
81
103
|
</ul>
|
82
104
|
</li>
|
83
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
105
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
|
84
106
|
<% end %>
|
85
107
|
|
86
108
|
<% if defined?phcdevworks_tutorials %>
|
@@ -112,34 +134,6 @@
|
|
112
134
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
|
113
135
|
<% end %>
|
114
136
|
|
115
|
-
<% if defined?phcdevworks_core_modules %>
|
116
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
117
|
-
<li class="nav-header">Core Modules</li>
|
118
|
-
<li class="has-sub">
|
119
|
-
<a href="javascript:;">
|
120
|
-
<b class="caret"></b>
|
121
|
-
<i class="fad fa-sitemap"></i>
|
122
|
-
<span>Categories</span>
|
123
|
-
</a>
|
124
|
-
<ul class="sub-menu">
|
125
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
|
126
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
|
127
|
-
</ul>
|
128
|
-
</li>
|
129
|
-
<li class="has-sub">
|
130
|
-
<a href="javascript:;">
|
131
|
-
<b class="caret"></b>
|
132
|
-
<i class="fad fa-analytics"></i>
|
133
|
-
<span>Marketing</span>
|
134
|
-
</a>
|
135
|
-
<ul class="sub-menu">
|
136
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
|
137
|
-
<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>
|
138
|
-
</ul>
|
139
|
-
</li>
|
140
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
141
|
-
<% end %>
|
142
|
-
|
143
137
|
<% if defined?phcdevworks_members %>
|
144
138
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
145
139
|
<li class="nav-header">Membership Manager</li>
|
@@ -238,6 +232,34 @@
|
|
238
232
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
239
233
|
<% end %>
|
240
234
|
|
235
|
+
<% if defined?phcdevworks_core_modules %>
|
236
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
237
|
+
<li class="nav-header">Core Modules</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
|
+
<li class="has-sub">
|
250
|
+
<a href="javascript:;">
|
251
|
+
<b class="caret"></b>
|
252
|
+
<i class="fad fa-analytics"></i>
|
253
|
+
<span>Marketing</span>
|
254
|
+
</a>
|
255
|
+
<ul class="sub-menu">
|
256
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
|
257
|
+
<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>
|
258
|
+
</ul>
|
259
|
+
</li>
|
260
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
261
|
+
<% end %>
|
262
|
+
|
241
263
|
<% if current_user && current_user.admin? %>
|
242
264
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
243
265
|
<li class="nav-header">User Administration</li>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module PhcdevworksCoreModules
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
|
3
|
+
|
4
4
|
# Load Main Dependencies
|
5
5
|
require "jbuilder"
|
6
6
|
require "paper_trail"
|
@@ -28,7 +28,7 @@ module PhcdevworksCoreModules
|
|
28
28
|
|
29
29
|
# Load User Accounts
|
30
30
|
require "phcdevworks_accounts"
|
31
|
-
|
31
|
+
|
32
32
|
# Engine Namespace
|
33
33
|
isolate_namespace PhcdevworksCoreModules
|
34
34
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_core_modules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|