phcdevworks_press 8.3.1 → 8.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +33 -33
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_press_manifest.js +3 -3
- data/app/assets/stylesheets/phcdevworks_press/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/article/posts.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/blog/articles.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/list/items.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_press/list/posts.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_press/review/posts.scss +3 -3
- data/app/controllers/phcdevworks_press/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_press/article/posts_controller.rb +83 -83
- data/app/controllers/phcdevworks_press/blog/articles_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/blog/lists_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/list/items_controller.rb +89 -89
- data/app/controllers/phcdevworks_press/list/posts_controller.rb +82 -82
- data/app/controllers/phcdevworks_press/review/posts_controller.rb +82 -82
- data/app/helpers/phcdevworks_press/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/article/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/blog/articles_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/list/items_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/list/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/review/posts_helper.rb +4 -4
- data/app/jobs/phcdevworks_press/application_job.rb +4 -4
- data/app/mailers/phcdevworks_press/application_mailer.rb +6 -6
- data/app/models/phcdevworks_press/application_record.rb +5 -5
- data/app/models/phcdevworks_press/article/post.rb +34 -34
- data/app/models/phcdevworks_press/article.rb +7 -7
- data/app/models/phcdevworks_press/article_post_versions.rb +0 -0
- data/app/models/phcdevworks_press/list/item.rb +33 -33
- data/app/models/phcdevworks_press/list/post.rb +34 -34
- data/app/models/phcdevworks_press/list.rb +7 -7
- data/app/models/phcdevworks_press/list_item_versions.rb +0 -0
- data/app/models/phcdevworks_press/list_post_versions.rb +0 -0
- data/app/models/phcdevworks_press/review/post.rb +33 -33
- data/app/models/phcdevworks_press/review.rb +7 -7
- data/app/models/phcdevworks_press/review_post_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_press/application.html.erb +131 -131
- data/app/views/layouts/phcdevworks_press/components/backend/footer/_footer.html.erb +0 -0
- data/app/views/layouts/phcdevworks_press/components/backend/navigation/_top_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_press/components/backend/sidebars/_side_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_press/frontend.html.erb +5 -5
- data/app/views/phcdevworks_press/article/posts/_form.html.erb +105 -105
- data/app/views/phcdevworks_press/article/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/article/posts/index.html.erb +83 -83
- data/app/views/phcdevworks_press/article/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/blog/articles/index.html.erb +69 -69
- data/app/views/phcdevworks_press/blog/articles/show.html.erb +0 -0
- data/app/views/phcdevworks_press/list/items/_form.html.erb +37 -37
- data/app/views/phcdevworks_press/list/items/edit.html.erb +47 -47
- data/app/views/phcdevworks_press/list/items/index.html.erb +81 -81
- data/app/views/phcdevworks_press/list/items/new.html.erb +48 -48
- data/app/views/phcdevworks_press/list/items/show.html.erb +0 -0
- data/app/views/phcdevworks_press/list/posts/_form.html.erb +86 -86
- data/app/views/phcdevworks_press/list/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/list/posts/index.html.erb +84 -84
- data/app/views/phcdevworks_press/list/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/list/posts/show.html.erb +76 -76
- data/app/views/phcdevworks_press/review/posts/_form.html.erb +90 -90
- data/app/views/phcdevworks_press/review/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/review/posts/index.html.erb +83 -83
- data/app/views/phcdevworks_press/review/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/review/posts/show.html.erb +9 -9
- data/config/routes.rb +38 -38
- data/config/spring.rb +1 -1
- data/db/migrate/20170517064030_create_phcdevworks_press_article_post_versions.rb +0 -0
- data/db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb +19 -19
- data/db/migrate/20191024232406_create_phcdevworks_press_article_categories_posts.rb +10 -10
- data/db/migrate/20200708231335_create_phcdevworks_press_list_post_versions.rb +18 -18
- data/db/migrate/20200708231351_create_phcdevworks_press_review_post_versions.rb +18 -18
- data/db/migrate/20200712064624_create_phcdevworks_press_list_posts.rb +19 -19
- data/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +21 -21
- data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +22 -22
- data/db/migrate/20200712065808_create_phcdevworks_press_list_item_versions.rb +18 -18
- data/db/migrate/20200716224648_create_phcdevworks_press_review_categories_posts.rb +10 -10
- data/db/migrate/20200716224738_create_phcdevworks_press_list_categories_posts.rb +10 -10
- data/db/migrate/20210213025633_add_affiliatelink_to_article_posts.rb +5 -5
- data/lib/phcdevworks_press/engine.rb +47 -47
- data/lib/phcdevworks_press/version.rb +3 -3
- data/lib/phcdevworks_press.rb +6 -6
- data/lib/tasks/phcdevworks_press_tasks.rake +4 -4
- metadata +33 -33
@@ -1,34 +1,34 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
class Article::Post < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => "PhcdevworksPress::ArticlePostVersions"
|
9
|
-
|
10
|
-
# Image Upload
|
11
|
-
has_one_attached :article_post_image
|
12
|
-
|
13
|
-
# Relationships
|
14
|
-
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
-
has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_press_article_categories_posts", :dependent => :destroy
|
16
|
-
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
17
|
-
belongs_to :link, class_name: "PhcdevworksCoreModules::Affiliate::Link", optional: true
|
18
|
-
|
19
|
-
# Form Fields Validation
|
20
|
-
validates :article_post_title,
|
21
|
-
presence: true
|
22
|
-
|
23
|
-
validates :article_post_text,
|
24
|
-
presence: true
|
25
|
-
|
26
|
-
# Clean URL Define
|
27
|
-
friendly_id :list_post_imagearticle_post_nice_urls, use: [:slugged, :finders]
|
28
|
-
|
29
|
-
def list_post_imagearticle_post_nice_urls
|
30
|
-
[:article_post_title]
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
class Article::Post < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => "PhcdevworksPress::ArticlePostVersions"
|
9
|
+
|
10
|
+
# Image Upload
|
11
|
+
has_one_attached :article_post_image
|
12
|
+
|
13
|
+
# Relationships
|
14
|
+
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
+
has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_press_article_categories_posts", :dependent => :destroy
|
16
|
+
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
17
|
+
belongs_to :link, class_name: "PhcdevworksCoreModules::Affiliate::Link", optional: true
|
18
|
+
|
19
|
+
# Form Fields Validation
|
20
|
+
validates :article_post_title,
|
21
|
+
presence: true
|
22
|
+
|
23
|
+
validates :article_post_text,
|
24
|
+
presence: true
|
25
|
+
|
26
|
+
# Clean URL Define
|
27
|
+
friendly_id :list_post_imagearticle_post_nice_urls, use: [:slugged, :finders]
|
28
|
+
|
29
|
+
def list_post_imagearticle_post_nice_urls
|
30
|
+
[:article_post_title]
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
module Article
|
3
|
-
def self.table_name_prefix
|
4
|
-
"phcdevworks_press_article_"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
module Article
|
3
|
+
def self.table_name_prefix
|
4
|
+
"phcdevworks_press_article_"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
File without changes
|
@@ -1,33 +1,33 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
class List::Item < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => "PhcdevworksPress::ListItemVersions"
|
9
|
-
|
10
|
-
# Image Upload
|
11
|
-
has_one_attached :list_item_image
|
12
|
-
|
13
|
-
# Relationships
|
14
|
-
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
-
belongs_to :post, class_name: "PhcdevworksPress::List::Post"
|
16
|
-
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
17
|
-
|
18
|
-
# Form Fields Validation
|
19
|
-
validates :list_item_title,
|
20
|
-
presence: true
|
21
|
-
|
22
|
-
validates :list_item_text,
|
23
|
-
presence: true
|
24
|
-
|
25
|
-
# Clean URL Define
|
26
|
-
friendly_id :list_item_nice_urls, use: [:slugged, :finders]
|
27
|
-
|
28
|
-
def list_item_nice_urls
|
29
|
-
[:list_item_title]
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
class List::Item < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => "PhcdevworksPress::ListItemVersions"
|
9
|
+
|
10
|
+
# Image Upload
|
11
|
+
has_one_attached :list_item_image
|
12
|
+
|
13
|
+
# Relationships
|
14
|
+
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
+
belongs_to :post, class_name: "PhcdevworksPress::List::Post"
|
16
|
+
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
17
|
+
|
18
|
+
# Form Fields Validation
|
19
|
+
validates :list_item_title,
|
20
|
+
presence: true
|
21
|
+
|
22
|
+
validates :list_item_text,
|
23
|
+
presence: true
|
24
|
+
|
25
|
+
# Clean URL Define
|
26
|
+
friendly_id :list_item_nice_urls, use: [:slugged, :finders]
|
27
|
+
|
28
|
+
def list_item_nice_urls
|
29
|
+
[:list_item_title]
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -1,34 +1,34 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
class List::Post < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => "PhcdevworksPress::ListPostVersions"
|
9
|
-
|
10
|
-
# Image Upload
|
11
|
-
has_one_attached :list_post_image
|
12
|
-
|
13
|
-
# Relationships
|
14
|
-
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
-
has_many :items, class_name: "PhcdevworksPress::List::Item", :dependent => :destroy
|
16
|
-
has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_press_list_categories_posts", :dependent => :destroy
|
17
|
-
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
18
|
-
|
19
|
-
# Form Fields Validation
|
20
|
-
validates :list_post_title,
|
21
|
-
presence: true
|
22
|
-
|
23
|
-
validates :list_post_text,
|
24
|
-
presence: true
|
25
|
-
|
26
|
-
# Clean URL Define
|
27
|
-
friendly_id :list_post_nice_urls, use: [:slugged, :finders]
|
28
|
-
|
29
|
-
def list_post_nice_urls
|
30
|
-
[:list_post_title]
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
class List::Post < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => "PhcdevworksPress::ListPostVersions"
|
9
|
+
|
10
|
+
# Image Upload
|
11
|
+
has_one_attached :list_post_image
|
12
|
+
|
13
|
+
# Relationships
|
14
|
+
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
+
has_many :items, class_name: "PhcdevworksPress::List::Item", :dependent => :destroy
|
16
|
+
has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_press_list_categories_posts", :dependent => :destroy
|
17
|
+
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
18
|
+
|
19
|
+
# Form Fields Validation
|
20
|
+
validates :list_post_title,
|
21
|
+
presence: true
|
22
|
+
|
23
|
+
validates :list_post_text,
|
24
|
+
presence: true
|
25
|
+
|
26
|
+
# Clean URL Define
|
27
|
+
friendly_id :list_post_nice_urls, use: [:slugged, :finders]
|
28
|
+
|
29
|
+
def list_post_nice_urls
|
30
|
+
[:list_post_title]
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
module List
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_press_list_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
module List
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_press_list_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
File without changes
|
File without changes
|
@@ -1,33 +1,33 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
class Review::Post < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => "PhcdevworksPress::ReviewPostVersions"
|
9
|
-
|
10
|
-
# Image Upload
|
11
|
-
has_one_attached :review_post_image
|
12
|
-
|
13
|
-
# Relationships
|
14
|
-
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
-
has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_press_review_categories_posts", :dependent => :destroy
|
16
|
-
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
17
|
-
|
18
|
-
# Form Fields Validation
|
19
|
-
validates :review_post_title,
|
20
|
-
presence: true
|
21
|
-
|
22
|
-
validates :review_post_text,
|
23
|
-
presence: true
|
24
|
-
|
25
|
-
# Clean URL Define
|
26
|
-
friendly_id :article_review_nice_urls, use: [:slugged, :finders]
|
27
|
-
|
28
|
-
def article_review_nice_urls
|
29
|
-
[:review_post_text]
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
class Review::Post < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => "PhcdevworksPress::ReviewPostVersions"
|
9
|
+
|
10
|
+
# Image Upload
|
11
|
+
has_one_attached :review_post_image
|
12
|
+
|
13
|
+
# Relationships
|
14
|
+
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
15
|
+
has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_press_review_categories_posts", :dependent => :destroy
|
16
|
+
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
17
|
+
|
18
|
+
# Form Fields Validation
|
19
|
+
validates :review_post_title,
|
20
|
+
presence: true
|
21
|
+
|
22
|
+
validates :review_post_text,
|
23
|
+
presence: true
|
24
|
+
|
25
|
+
# Clean URL Define
|
26
|
+
friendly_id :article_review_nice_urls, use: [:slugged, :finders]
|
27
|
+
|
28
|
+
def article_review_nice_urls
|
29
|
+
[:review_post_text]
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksPress
|
2
|
-
module Review
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_press_review_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksPress
|
2
|
+
module Review
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_press_review_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
File without changes
|
@@ -1,131 +1,131 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
<!-- SEO System -->
|
6
|
-
<% phc_seo_title "PHCDevworks Press CMS" %>
|
7
|
-
<% phc_seo_description "Ruby on Rails 6 CMS Engine to Manage your Website's Articles, Categories and Associated Medias." %>
|
8
|
-
<!-- SEO System -->
|
9
|
-
|
10
|
-
<!-- SEO and Site Description -->
|
11
|
-
<meta charset="utf-8">
|
12
|
-
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
-
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
-
<!-- SEO and Site Description -->
|
16
|
-
|
17
|
-
<!-- Rails Security Tags -->
|
18
|
-
<%= csrf_meta_tags %>
|
19
|
-
<%= csp_meta_tag %>
|
20
|
-
<!-- Rails Security Tags -->
|
21
|
-
|
22
|
-
<!-- CSS Styles -->
|
23
|
-
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
-
<!-- CSS Styles -->
|
25
|
-
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
-
|
36
|
-
<!-- Page Header -->
|
37
|
-
<div id="header" class="header navbar-default">
|
38
|
-
<%= render "layouts/phcdevworks_press/components/backend/navigation/top_menu" %>
|
39
|
-
</div>
|
40
|
-
<!-- Page Header -->
|
41
|
-
|
42
|
-
<!-- Page Sidebar -->
|
43
|
-
<div id="sidebar" class="sidebar">
|
44
|
-
<%= render "layouts/phcdevworks_press/components/backend/sidebars/side_menu" %>
|
45
|
-
</div>
|
46
|
-
<div class="sidebar-bg"></div>
|
47
|
-
<!-- Page Sidebar -->
|
48
|
-
|
49
|
-
<!-- Page Content -->
|
50
|
-
<div id="content" class="content">
|
51
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
-
<%= yield %>
|
53
|
-
</div>
|
54
|
-
<!-- Page Content -->
|
55
|
-
|
56
|
-
<!-- Footer Content -->
|
57
|
-
<div id="footer" class="footer mb-4">
|
58
|
-
<%= render "layouts/phcdevworks_press/components/backend/footer/footer" %>
|
59
|
-
</div>
|
60
|
-
<!-- Footer Content -->
|
61
|
-
|
62
|
-
</div>
|
63
|
-
<!-- Page Container -->
|
64
|
-
|
65
|
-
<!-- JavaScript CKEditor -->
|
66
|
-
<script>ClassicEditor
|
67
|
-
.create( document.querySelector( '.editor' ), {
|
68
|
-
toolbar: {
|
69
|
-
items: [
|
70
|
-
'heading',
|
71
|
-
'|',
|
72
|
-
'fontBackgroundColor',
|
73
|
-
'fontColor',
|
74
|
-
'horizontalLine',
|
75
|
-
'fontSize',
|
76
|
-
'fontFamily',
|
77
|
-
'highlight',
|
78
|
-
'|',
|
79
|
-
'bold',
|
80
|
-
'underline',
|
81
|
-
'italic',
|
82
|
-
'strikethrough',
|
83
|
-
'link',
|
84
|
-
'removeFormat',
|
85
|
-
'|',
|
86
|
-
'alignment',
|
87
|
-
'indent',
|
88
|
-
'outdent',
|
89
|
-
'|',
|
90
|
-
'blockQuote',
|
91
|
-
'insertTable',
|
92
|
-
'undo',
|
93
|
-
'redo',
|
94
|
-
'|',
|
95
|
-
'subscript',
|
96
|
-
'superscript',
|
97
|
-
'|',
|
98
|
-
'codeBlock',
|
99
|
-
'code',
|
100
|
-
'|',
|
101
|
-
'MathType',
|
102
|
-
'ChemType',
|
103
|
-
'specialCharacters'
|
104
|
-
]
|
105
|
-
},
|
106
|
-
language: 'en',
|
107
|
-
table: {
|
108
|
-
contentToolbar: [
|
109
|
-
'tableColumn',
|
110
|
-
'tableRow',
|
111
|
-
'mergeTableCells',
|
112
|
-
'tableCellProperties',
|
113
|
-
'tableProperties'
|
114
|
-
]
|
115
|
-
},
|
116
|
-
licenseKey: '',
|
117
|
-
} )
|
118
|
-
.then( editor => {
|
119
|
-
window.editor = editor;
|
120
|
-
} )
|
121
|
-
.catch( error => {
|
122
|
-
console.error( 'Oops, something gone wrong!' );
|
123
|
-
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
-
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
-
console.error( error );
|
126
|
-
} );
|
127
|
-
</script>
|
128
|
-
<!-- JavaScript CKEditor -->
|
129
|
-
|
130
|
-
</body>
|
131
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Press CMS" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 6 CMS Engine to Manage your Website's Articles, Categories and Associated Medias." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
29
|
+
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
|
33
|
+
<!-- Page Container -->
|
34
|
+
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
+
|
36
|
+
<!-- Page Header -->
|
37
|
+
<div id="header" class="header navbar-default">
|
38
|
+
<%= render "layouts/phcdevworks_press/components/backend/navigation/top_menu" %>
|
39
|
+
</div>
|
40
|
+
<!-- Page Header -->
|
41
|
+
|
42
|
+
<!-- Page Sidebar -->
|
43
|
+
<div id="sidebar" class="sidebar">
|
44
|
+
<%= render "layouts/phcdevworks_press/components/backend/sidebars/side_menu" %>
|
45
|
+
</div>
|
46
|
+
<div class="sidebar-bg"></div>
|
47
|
+
<!-- Page Sidebar -->
|
48
|
+
|
49
|
+
<!-- Page Content -->
|
50
|
+
<div id="content" class="content">
|
51
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
+
<%= yield %>
|
53
|
+
</div>
|
54
|
+
<!-- Page Content -->
|
55
|
+
|
56
|
+
<!-- Footer Content -->
|
57
|
+
<div id="footer" class="footer mb-4">
|
58
|
+
<%= render "layouts/phcdevworks_press/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- Footer Content -->
|
61
|
+
|
62
|
+
</div>
|
63
|
+
<!-- Page Container -->
|
64
|
+
|
65
|
+
<!-- JavaScript CKEditor -->
|
66
|
+
<script>ClassicEditor
|
67
|
+
.create( document.querySelector( '.editor' ), {
|
68
|
+
toolbar: {
|
69
|
+
items: [
|
70
|
+
'heading',
|
71
|
+
'|',
|
72
|
+
'fontBackgroundColor',
|
73
|
+
'fontColor',
|
74
|
+
'horizontalLine',
|
75
|
+
'fontSize',
|
76
|
+
'fontFamily',
|
77
|
+
'highlight',
|
78
|
+
'|',
|
79
|
+
'bold',
|
80
|
+
'underline',
|
81
|
+
'italic',
|
82
|
+
'strikethrough',
|
83
|
+
'link',
|
84
|
+
'removeFormat',
|
85
|
+
'|',
|
86
|
+
'alignment',
|
87
|
+
'indent',
|
88
|
+
'outdent',
|
89
|
+
'|',
|
90
|
+
'blockQuote',
|
91
|
+
'insertTable',
|
92
|
+
'undo',
|
93
|
+
'redo',
|
94
|
+
'|',
|
95
|
+
'subscript',
|
96
|
+
'superscript',
|
97
|
+
'|',
|
98
|
+
'codeBlock',
|
99
|
+
'code',
|
100
|
+
'|',
|
101
|
+
'MathType',
|
102
|
+
'ChemType',
|
103
|
+
'specialCharacters'
|
104
|
+
]
|
105
|
+
},
|
106
|
+
language: 'en',
|
107
|
+
table: {
|
108
|
+
contentToolbar: [
|
109
|
+
'tableColumn',
|
110
|
+
'tableRow',
|
111
|
+
'mergeTableCells',
|
112
|
+
'tableCellProperties',
|
113
|
+
'tableProperties'
|
114
|
+
]
|
115
|
+
},
|
116
|
+
licenseKey: '',
|
117
|
+
} )
|
118
|
+
.then( editor => {
|
119
|
+
window.editor = editor;
|
120
|
+
} )
|
121
|
+
.catch( error => {
|
122
|
+
console.error( 'Oops, something gone wrong!' );
|
123
|
+
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
+
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
+
console.error( error );
|
126
|
+
} );
|
127
|
+
</script>
|
128
|
+
<!-- JavaScript CKEditor -->
|
129
|
+
|
130
|
+
</body>
|
131
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<!-- Page Content -->
|
2
|
-
<div id="content" class="content">
|
3
|
-
<%= yield %>
|
4
|
-
</div>
|
5
|
-
<!-- Page Content -->
|
1
|
+
<!-- Page Content -->
|
2
|
+
<div id="content" class="content">
|
3
|
+
<%= yield %>
|
4
|
+
</div>
|
5
|
+
<!-- Page Content -->
|