phcdevworks_press 7.1.4 → 7.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55e617fb9f808ab3ce2240214167eaefb631cf555e106eb5365586cd7a423a98
4
- data.tar.gz: c481f97a1c6c76c66262c3a60c80cabb7d661c91b881ecbdbdc438f64aa09e73
3
+ metadata.gz: 26501db59a8475bbc5e55f97e4bc9cc6017ab3bb7e66d44699241201c0e53652
4
+ data.tar.gz: ff3b88d4ec2da3e443ceb8067cc2afc23b8ec346c19a3f09d2b98478288d9856
5
5
  SHA512:
6
- metadata.gz: a2ce7ebac905ba6795b2e0e0707c74c1d5d2fa2309f762e211af975a89840a6623024cc10425092e7eef93980d68c74f03b0394f7f780c52d8630d77b0766c28
7
- data.tar.gz: 6f1bd70c164e0350a08224ef338c145177de0387a248f124fa43011401ae024b95939fea3f869d0434e926c51ac2117834548cde225405780ec47e21549d8ac4
6
+ metadata.gz: 025ebcae717f624c856dd68c8dd2c804694626cd2118d7cf0eec1f83135b850024103b66033f97bd42d3f2f28e755a97a90bd147f3444cc6b5598d832f0d8fd4
7
+ data.tar.gz: 7fbfd13ab483761d7360bba7369956aa315963a8dbf72405ed53751528755deccb2665e61222c2572218efe07e2fb01408a8da4b29e89b5099707c30fee554d5
@@ -1,24 +1,29 @@
1
1
  require_dependency "phcdevworks_press/application_controller"
2
2
 
3
3
  module PhcdevworksPress
4
- class Blog::ArticlesController < ApplicationController
4
+ class Blog::ArticlesController < ApplicationController
5
5
 
6
- # Layout
7
- layout "phcdevworks_press/frontend"
6
+ # Filters
7
+ before_action :phc_blog_index_all
8
8
 
9
- # INDEX
10
- def index
11
- @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
12
- @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
13
- @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
14
- end
9
+ # Layout
10
+ layout "phcdevworks_press/frontend"
15
11
 
16
- # SHOW
17
- def show
18
- @phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
19
- @phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
20
- @phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
21
- end
12
+ # INDEX
13
+ def index
14
+ end
15
+
16
+ # SHOW
17
+ def show
18
+ @phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
19
+ end
22
20
 
23
- end
21
+ # Index All for Blog
22
+ def phc_blog_index_all
23
+ @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
24
+ @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
25
+ @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
26
+ end
27
+
28
+ end
24
29
  end
@@ -0,0 +1,29 @@
1
+ require_dependency "phcdevworks_press/application_controller"
2
+
3
+ module PhcdevworksPress
4
+ class Blog::ListsController < ApplicationController
5
+
6
+ # Filters
7
+ before_action :phc_blog_index_all
8
+
9
+ # Layout
10
+ layout "phcdevworks_press/frontend"
11
+
12
+ # INDEX
13
+ def index
14
+ end
15
+
16
+ # SHOW
17
+ def show
18
+ @phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
19
+ end
20
+
21
+ # Index All for Blog
22
+ def phc_blog_index_all
23
+ @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
24
+ @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
25
+ @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
26
+ end
27
+
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ require_dependency "phcdevworks_press/application_controller"
2
+
3
+ module PhcdevworksPress
4
+ class Blog::ReviewsController < ApplicationController
5
+
6
+ # Filters
7
+ before_action :phc_blog_index_all
8
+
9
+ # Layout
10
+ layout "phcdevworks_press/frontend"
11
+
12
+ # INDEX
13
+ def index
14
+ end
15
+
16
+ # SHOW
17
+ def show
18
+ @phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
19
+ end
20
+
21
+ # Index All for Blog
22
+ def phc_blog_index_all
23
+ @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
24
+ @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
25
+ @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
26
+ end
27
+
28
+ end
29
+ end
@@ -75,7 +75,7 @@ module PhcdevworksPress
75
75
 
76
76
  # Whitelist
77
77
  def list_post_params
78
- params.require(:list_post).permit(:list_post_title, :list_post_text, :list_post_status, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
78
+ params.require(:list_post).permit(:list_post_title, :list_post_text, :list_post_status, :list_post_image, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
79
79
  end
80
80
 
81
81
  end
@@ -75,7 +75,7 @@ module PhcdevworksPress
75
75
 
76
76
  # Whitelist
77
77
  def review_post_params
78
- params.require(:review_post).permit(:review_post_title, :review_post_text, :review_post_status, :review_post_rating, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
78
+ params.require(:review_post).permit(:review_post_title, :review_post_text, :review_post_status, :review_post_rating, :review_post_image, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
79
79
  end
80
80
 
81
81
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPress
2
- VERSION = "7.1.4"
2
+ VERSION = "7.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_press
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.4
4
+ version: 7.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2020-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -296,6 +296,8 @@ files:
296
296
  - app/controllers/phcdevworks_press/application_controller.rb
297
297
  - app/controllers/phcdevworks_press/article/posts_controller.rb
298
298
  - app/controllers/phcdevworks_press/blog/articles_controller.rb
299
+ - app/controllers/phcdevworks_press/blog/lists_controller.rb
300
+ - app/controllers/phcdevworks_press/blog/reviews_controller.rb
299
301
  - app/controllers/phcdevworks_press/list/items_controller.rb
300
302
  - app/controllers/phcdevworks_press/list/posts_controller.rb
301
303
  - app/controllers/phcdevworks_press/review/posts_controller.rb