phcpresspro 70.1.0 → 70.2.0

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: d1167a233a14ffea6fc216b61d203b09800e8edd463b9da44a40dd6d9d5c05c5
4
- data.tar.gz: 2fad5cc81aa8593e50e1ac50c7004eb8d67734bae2b2feb3b955b27f4b6f67e4
3
+ metadata.gz: ac338d308508bd5d18e427d327b4f5b7727830744067c0aad2c679e65c90021e
4
+ data.tar.gz: 88f1e377f488b06b0f24e5a067aed7f7e69e229b28e3e5a499446a9d233fbdef
5
5
  SHA512:
6
- metadata.gz: 73c37442c4129048959a9dd994c72ded0ffb1195c86dd300f9afb7f491dc8ecef79e2f50df1d991256537f63551834dd9befb5a6b45cf353cfa9142bee6f1eb1
7
- data.tar.gz: 73cae04d7989901261b94b2556c17746a6d2e9902a7b5be94d37b3dea0849c00640aea66763412f3a91ecdc13e44931ba80ab52197702d005a6df4765b7e697a
6
+ metadata.gz: 284dcbd97f90c56611912ad9ef480a466d214b6e806941dc99297bd565d86b807083d4b226086c1474aa9d0143bf590776b266dfad29ddd6a3436f009d3cbd74
7
+ data.tar.gz: 266969f9e9c5a77b05a08cd7033a7ceef1abb323b77bed71aa88935a95ca1cc1eb0fc85250adf0e3038879754c9f10897520b70c1724378b1fc4591cce0b35a0
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015-2019 PHCNetco PHCDevworks BradPotts
1
+ Copyright 2012-2019 BradPotts - PHCNetco/PHCDevworks/PHCNetworks
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the website::pages controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,2 @@
1
+ object @phcpresspro_posts_index
2
+ attributes :id, :psttittle, :psttext, :pststatus, :pstimage
@@ -0,0 +1,2 @@
1
+ object @phcpresspro_posts_single
2
+ attributes :id, :psttittle, :psttext, :pststatus, :pstimage
@@ -0,0 +1,20 @@
1
+ require_dependency "phcpresspro/application_controller"
2
+
3
+ module Phcpresspro
4
+ class Website::PagesController < ApplicationController
5
+
6
+ # Security & Action Filters
7
+ before_action :set_website_page, only: [:show]
8
+
9
+ # Index for All Published Posts
10
+ def post_index
11
+ @phcpresspro_posts_index = Article::Post.where(pststatus: "published")
12
+ end
13
+
14
+ # Single Page for Published Post
15
+ def post_single
16
+ @phcpresspro_posts_single = Article::Post.friendly.find(params[:id])
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ module Phcpresspro
2
+ module Website::PagesHelper
3
+ end
4
+ end
@@ -0,0 +1,7 @@
1
+ module Phcpresspro
2
+ module Website
3
+ def self.table_name_prefix
4
+ 'phcpresspro_website_'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ module Phcpresspro
2
+ class Website::Page < ApplicationRecord
3
+ end
4
+ end
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
 
5
5
  <% phc_seo_title "PHCPress(Pro) CMS" %>
6
- <% phc_seo_description "Conent Management System by phcnetworks" %>
6
+ <% phc_seo_description "Content Management System by PHCDevworks" %>
7
7
 
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
9
  <title><%= yield(:phc_seo_title) %></title>
data/config/routes.rb CHANGED
@@ -9,6 +9,10 @@ Phcpresspro::Engine.routes.draw do
9
9
  resources :posts, class_name: 'Phcpresspro::Articles::Post'
10
10
  end
11
11
 
12
+ # Application FrontEnd
13
+ get 'blog/index', to: 'website/pages#post_index'
14
+ get 'blog/article', to: 'website/pages#post_single'
15
+
12
16
  # Application API
13
17
  namespace :api do
14
18
  namespace :v1 do
@@ -0,0 +1,8 @@
1
+ class CreatePhcpressproWebsitePages < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :phcpresspro_website_pages do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "70.1.0"
2
+ VERSION = "70.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpresspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 70.1.0
4
+ version: 70.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -428,14 +428,14 @@ dependencies:
428
428
  requirements:
429
429
  - - "~>"
430
430
  - !ruby/object:Gem::Version
431
- version: '58.1'
431
+ version: '58.2'
432
432
  type: :runtime
433
433
  prerelease: false
434
434
  version_requirements: !ruby/object:Gem::Requirement
435
435
  requirements:
436
436
  - - "~>"
437
437
  - !ruby/object:Gem::Version
438
- version: '58.1'
438
+ version: '58.2'
439
439
  - !ruby/object:Gem::Dependency
440
440
  name: sqlite3
441
441
  requirement: !ruby/object:Gem::Requirement
@@ -653,15 +653,21 @@ files:
653
653
  - app/assets/javascripts/phcpresspro/article/categories.js
654
654
  - app/assets/javascripts/phcpresspro/article/posts.js
655
655
  - app/assets/javascripts/phcpresspro/custom/custom.js
656
+ - app/assets/javascripts/phcpresspro/website/pages.coffee
656
657
  - app/assets/stylesheets/phcpresspro/application.scss
657
658
  - app/assets/stylesheets/phcpresspro/article/categories.scss
658
659
  - app/assets/stylesheets/phcpresspro/article/posts.scss
660
+ - app/assets/stylesheets/phcpresspro/website/pages.scss
661
+ - app/controllers/phcpresspro/api/v1/post_index.json.rabl
662
+ - app/controllers/phcpresspro/api/v1/post_single.json.rabl
659
663
  - app/controllers/phcpresspro/application_controller.rb
660
664
  - app/controllers/phcpresspro/article/categories_controller.rb
661
665
  - app/controllers/phcpresspro/article/posts_controller.rb
666
+ - app/controllers/phcpresspro/website/pages_controller.rb
662
667
  - app/helpers/phcpresspro/application_helper.rb
663
668
  - app/helpers/phcpresspro/article/categories_helper.rb
664
669
  - app/helpers/phcpresspro/article/posts_helper.rb
670
+ - app/helpers/phcpresspro/website/pages_helper.rb
665
671
  - app/jobs/phcpresspro/application_job.rb
666
672
  - app/mailers/phcpresspro/application_mailer.rb
667
673
  - app/models/phcpresspro/application_record.rb
@@ -670,6 +676,8 @@ files:
670
676
  - app/models/phcpresspro/article/post.rb
671
677
  - app/models/phcpresspro/category_versions.rb
672
678
  - app/models/phcpresspro/post_versions.rb
679
+ - app/models/phcpresspro/website.rb
680
+ - app/models/phcpresspro/website/page.rb
673
681
  - app/views/layouts/phcpresspro/application.html.erb
674
682
  - app/views/layouts/phcpresspro/components/backend/footer/_footer.html.erb
675
683
  - app/views/layouts/phcpresspro/components/backend/navigation/_top_menu.html.erb
@@ -684,6 +692,8 @@ files:
684
692
  - app/views/phcpresspro/article/posts/index.html.erb
685
693
  - app/views/phcpresspro/article/posts/new.html.erb
686
694
  - app/views/phcpresspro/article/posts/show.html.erb
695
+ - app/views/phcpresspro/website/pages/post_index.html.erb
696
+ - app/views/phcpresspro/website/pages/post_single.html.erb
687
697
  - config/routes.rb
688
698
  - db/migrate/20170509002355_create_phcpresspro_friendly_id_slugs.rb
689
699
  - db/migrate/20170517064030_create_phcpresspro_post_versions.rb
@@ -691,6 +701,7 @@ files:
691
701
  - db/migrate/20190315010932_create_phcpresspro_article_posts.rb
692
702
  - db/migrate/20190315040834_create_phcpresspro_article_categories.rb
693
703
  - db/migrate/20190315173237_create_join_table_categories_posts.rb
704
+ - db/migrate/20190317190053_create_phcpresspro_website_pages.rb
694
705
  - lib/phcpresspro.rb
695
706
  - lib/phcpresspro/engine.rb
696
707
  - lib/phcpresspro/version.rb