phcdevworks_core_modules 7.2.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +3 -0
- data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -3
- data/app/controllers/phcdevworks_core_modules/affiliate/links_controller.rb +81 -81
- data/app/controllers/phcdevworks_core_modules/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb +81 -81
- data/app/controllers/phcdevworks_core_modules/post/categories_controller.rb +81 -81
- data/app/helpers/phcdevworks_core_modules/affiliate/links_helper.rb +4 -4
- data/app/helpers/phcdevworks_core_modules/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_core_modules/marketing/optimizations_helper.rb +4 -4
- data/app/helpers/phcdevworks_core_modules/post/categories_helper.rb +4 -4
- data/app/jobs/phcdevworks_core_modules/application_job.rb +4 -4
- data/app/mailers/phcdevworks_core_modules/application_mailer.rb +6 -6
- data/app/models/phcdevworks_core_modules/affiliate/link.rb +35 -35
- data/app/models/phcdevworks_core_modules/affiliate.rb +7 -7
- data/app/models/phcdevworks_core_modules/application_record.rb +5 -5
- data/app/models/phcdevworks_core_modules/marketing/optimization.rb +54 -54
- data/app/models/phcdevworks_core_modules/marketing.rb +7 -7
- data/app/models/phcdevworks_core_modules/modules.rb +7 -7
- data/app/models/phcdevworks_core_modules/post/category.rb +43 -43
- data/app/models/phcdevworks_core_modules/post.rb +7 -7
- data/app/views/layouts/phcdevworks_core_modules/application.html.erb +34 -92
- data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_core_modules/affiliate/links/_form.html.erb +37 -27
- data/app/views/phcdevworks_core_modules/affiliate/links/edit.html.erb +39 -47
- data/app/views/phcdevworks_core_modules/affiliate/links/index.html.erb +78 -86
- data/app/views/phcdevworks_core_modules/affiliate/links/new.html.erb +39 -47
- data/app/views/phcdevworks_core_modules/affiliate/links/show.html.erb +24 -24
- data/app/views/phcdevworks_core_modules/marketing/optimizations/_form.html.erb +87 -89
- data/app/views/phcdevworks_core_modules/marketing/optimizations/edit.html.erb +39 -47
- data/app/views/phcdevworks_core_modules/marketing/optimizations/index.html.erb +80 -88
- data/app/views/phcdevworks_core_modules/marketing/optimizations/new.html.erb +39 -47
- data/app/views/phcdevworks_core_modules/marketing/optimizations/show.html.erb +54 -54
- data/app/views/phcdevworks_core_modules/post/categories/_form.html.erb +22 -22
- data/app/views/phcdevworks_core_modules/post/categories/edit.html.erb +39 -47
- data/app/views/phcdevworks_core_modules/post/categories/index.html.erb +72 -80
- data/app/views/phcdevworks_core_modules/post/categories/new.html.erb +39 -47
- data/app/views/phcdevworks_core_modules/post/categories/show.html.erb +9 -9
- data/config/routes.rb +18 -20
- data/db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb +1 -1
- data/db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb +26 -26
- data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +18 -18
- data/db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb +17 -17
- data/db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb +7 -7
- data/db/migrate/20210207051304_create_phcdevworks_core_modules_affiliate_link_versions.rb +18 -18
- data/db/migrate/20210208130113_create_phcdevworks_core_modules_affiliate_links.rb +18 -18
- data/lib/phcdevworks_core_modules/engine.rb +3 -45
- data/lib/phcdevworks_core_modules/version.rb +1 -1
- metadata +32 -82
- data/app/assets/javascripts/phcdevworks_core_modules/affiliate/links.coffee +0 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/affiliate/links.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_core_modules/marketing/optimizations.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/post/categories.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -65
- data/config/spring.rb +0 -2
@@ -1,35 +1,35 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
class Affiliate::Link < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Validations
|
8
|
-
validates :affiliate_link_name, presence: true
|
9
|
-
validates :affiliate_link_button_text, presence: false
|
10
|
-
validates :affiliate_link_url, presence: true
|
11
|
-
validates :affiliate_link_original_url, presence: false
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
# Paper Trail Initialize
|
16
|
-
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::AffiliateLinkVersions"}
|
17
|
-
|
18
|
-
# Relationships for Local
|
19
|
-
belongs_to :user, class_name: "
|
20
|
-
|
21
|
-
if defined?phcdevworks_press
|
22
|
-
has_many :posts, class_name: "PhcdevworksPress::Article::Post"
|
23
|
-
has_many :posts, class_name: "PhcdevworksPress::Review::Post"
|
24
|
-
has_many :posts, class_name: "PhcdevworksPress::List::Post"
|
25
|
-
end
|
26
|
-
|
27
|
-
# Clean URL Define
|
28
|
-
friendly_id :affiliate_link_nice_urls, use: [:slugged, :finders]
|
29
|
-
|
30
|
-
def affiliate_link_nice_urls
|
31
|
-
[:affiliate_link_name]
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
class Affiliate::Link < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Validations
|
8
|
+
validates :affiliate_link_name, presence: true
|
9
|
+
validates :affiliate_link_button_text, presence: false
|
10
|
+
validates :affiliate_link_url, presence: true
|
11
|
+
validates :affiliate_link_original_url, presence: false
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
# Paper Trail Initialize
|
16
|
+
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::AffiliateLinkVersions"}
|
17
|
+
|
18
|
+
# Relationships for Local
|
19
|
+
belongs_to :user, class_name: "PhcdevworksAccountsDevise::User"
|
20
|
+
|
21
|
+
if defined?phcdevworks_press
|
22
|
+
has_many :posts, class_name: "PhcdevworksPress::Article::Post"
|
23
|
+
has_many :posts, class_name: "PhcdevworksPress::Review::Post"
|
24
|
+
has_many :posts, class_name: "PhcdevworksPress::List::Post"
|
25
|
+
end
|
26
|
+
|
27
|
+
# Clean URL Define
|
28
|
+
friendly_id :affiliate_link_nice_urls, use: [:slugged, :finders]
|
29
|
+
|
30
|
+
def affiliate_link_nice_urls
|
31
|
+
[:affiliate_link_name]
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
module Affiliate
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_core_modules_affiliate_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
module Affiliate
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_core_modules_affiliate_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
class ApplicationRecord < ActiveRecord::Base
|
3
|
-
self.abstract_class = true
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
class ApplicationRecord < ActiveRecord::Base
|
3
|
+
self.abstract_class = true
|
4
|
+
end
|
5
|
+
end
|
@@ -1,54 +1,54 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
class Marketing::Optimization < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Image Upload
|
8
|
-
has_one_attached :marketing_optimization_twitter_image
|
9
|
-
has_one_attached :marketing_optimization_og_image
|
10
|
-
|
11
|
-
# Paper Trail Initialize
|
12
|
-
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::MarketingOptimizationVersions"}
|
13
|
-
|
14
|
-
# Relationships for Local
|
15
|
-
belongs_to :user, class_name: "
|
16
|
-
has_many :categories, class_name: "PhcdevworksCoreModules::Post::Category"
|
17
|
-
|
18
|
-
# Relationships for PHCDevworks Plugins
|
19
|
-
if defined?phcdevworks_members
|
20
|
-
has_many :listings, class_name: "PhcdevworksMembers::Member::Listing"
|
21
|
-
end
|
22
|
-
|
23
|
-
if defined?phcdevworks_scripts
|
24
|
-
has_many :listings, class_name: "PhcdevworksScripts::Script::Listing"
|
25
|
-
end
|
26
|
-
|
27
|
-
if defined?phcdevworks_press
|
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"
|
31
|
-
end
|
32
|
-
|
33
|
-
if defined?phcdevworks_portfolio
|
34
|
-
has_many :posts, class_name: "PhcdevworksPortfolio::Project::Post"
|
35
|
-
end
|
36
|
-
|
37
|
-
if defined?phcdevworks_tutorials
|
38
|
-
has_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post"
|
39
|
-
has_many :posts, class_name: "PhcdevworksTutorials::Command::Post"
|
40
|
-
end
|
41
|
-
|
42
|
-
# Form Fields Validation
|
43
|
-
validates :marketing_optimization_page_title,
|
44
|
-
presence: true
|
45
|
-
|
46
|
-
# Clean URL Define
|
47
|
-
friendly_id :marketing_optimization_nice_urls, use: [:slugged, :finders]
|
48
|
-
|
49
|
-
def marketing_optimization_nice_urls
|
50
|
-
[:marketing_optimization_page_title]
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
54
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
class Marketing::Optimization < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Image Upload
|
8
|
+
has_one_attached :marketing_optimization_twitter_image
|
9
|
+
has_one_attached :marketing_optimization_og_image
|
10
|
+
|
11
|
+
# Paper Trail Initialize
|
12
|
+
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::MarketingOptimizationVersions"}
|
13
|
+
|
14
|
+
# Relationships for Local
|
15
|
+
belongs_to :user, class_name: "PhcdevworksAccountsDevise::User"
|
16
|
+
has_many :categories, class_name: "PhcdevworksCoreModules::Post::Category"
|
17
|
+
|
18
|
+
# Relationships for PHCDevworks Plugins
|
19
|
+
if defined?phcdevworks_members
|
20
|
+
has_many :listings, class_name: "PhcdevworksMembers::Member::Listing"
|
21
|
+
end
|
22
|
+
|
23
|
+
if defined?phcdevworks_scripts
|
24
|
+
has_many :listings, class_name: "PhcdevworksScripts::Script::Listing"
|
25
|
+
end
|
26
|
+
|
27
|
+
if defined?phcdevworks_press
|
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"
|
31
|
+
end
|
32
|
+
|
33
|
+
if defined?phcdevworks_portfolio
|
34
|
+
has_many :posts, class_name: "PhcdevworksPortfolio::Project::Post"
|
35
|
+
end
|
36
|
+
|
37
|
+
if defined?phcdevworks_tutorials
|
38
|
+
has_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post"
|
39
|
+
has_many :posts, class_name: "PhcdevworksTutorials::Command::Post"
|
40
|
+
end
|
41
|
+
|
42
|
+
# Form Fields Validation
|
43
|
+
validates :marketing_optimization_page_title,
|
44
|
+
presence: true
|
45
|
+
|
46
|
+
# Clean URL Define
|
47
|
+
friendly_id :marketing_optimization_nice_urls, use: [:slugged, :finders]
|
48
|
+
|
49
|
+
def marketing_optimization_nice_urls
|
50
|
+
[:marketing_optimization_page_title]
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
module Marketing
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_core_modules_marketing_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
module Marketing
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_core_modules_marketing_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
module Modules
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_core_modules_modules_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
module Modules
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_core_modules_modules_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
@@ -1,43 +1,43 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
class Post::Category < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => "PhcdevworksCoreModules::PostCategoryVersions"
|
9
|
-
|
10
|
-
# Relationships for Local
|
11
|
-
belongs_to :user, class_name: "
|
12
|
-
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
13
|
-
|
14
|
-
# Relationships for PHCDevworks Plugins
|
15
|
-
if defined?phcdevworks_press
|
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
|
19
|
-
end
|
20
|
-
|
21
|
-
if defined?phcdevworks_portfolio
|
22
|
-
has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "phcdevworks_portfolio_project_categories_posts", :dependent => :destroy
|
23
|
-
end
|
24
|
-
|
25
|
-
if defined?phcdevworks_tutorials
|
26
|
-
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post", :join_table => "phcdevworks_tutorials_tutorial_categories_posts", :dependent => :destroy
|
27
|
-
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Command::Post", :join_table => "phcdevworks_tutorials_command_categories_posts", :dependent => :destroy
|
28
|
-
end
|
29
|
-
|
30
|
-
# Form Fields Validation
|
31
|
-
validates :post_category_name,
|
32
|
-
presence: true,
|
33
|
-
uniqueness: true
|
34
|
-
|
35
|
-
# Clean URL Define
|
36
|
-
friendly_id :post_category_nice_urls, use: [:slugged, :finders]
|
37
|
-
|
38
|
-
def post_category_nice_urls
|
39
|
-
[:post_category_name]
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
class Post::Category < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => "PhcdevworksCoreModules::PostCategoryVersions"
|
9
|
+
|
10
|
+
# Relationships for Local
|
11
|
+
belongs_to :user, class_name: "PhcdevworksAccountsDevise::User"
|
12
|
+
belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
|
13
|
+
|
14
|
+
# Relationships for PHCDevworks Plugins
|
15
|
+
if defined?phcdevworks_press
|
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
|
19
|
+
end
|
20
|
+
|
21
|
+
if defined?phcdevworks_portfolio
|
22
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "phcdevworks_portfolio_project_categories_posts", :dependent => :destroy
|
23
|
+
end
|
24
|
+
|
25
|
+
if defined?phcdevworks_tutorials
|
26
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post", :join_table => "phcdevworks_tutorials_tutorial_categories_posts", :dependent => :destroy
|
27
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Command::Post", :join_table => "phcdevworks_tutorials_command_categories_posts", :dependent => :destroy
|
28
|
+
end
|
29
|
+
|
30
|
+
# Form Fields Validation
|
31
|
+
validates :post_category_name,
|
32
|
+
presence: true,
|
33
|
+
uniqueness: true
|
34
|
+
|
35
|
+
# Clean URL Define
|
36
|
+
friendly_id :post_category_nice_urls, use: [:slugged, :finders]
|
37
|
+
|
38
|
+
def post_category_nice_urls
|
39
|
+
[:post_category_name]
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksCoreModules
|
2
|
-
module Post
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_core_modules_post_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksCoreModules
|
2
|
+
module Post
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_core_modules_post_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
<!-- SEO System -->
|
6
6
|
<% phc_seo_title "PHCDevworks Core Modules" %>
|
7
|
-
<% phc_seo_description "Ruby on Rails
|
7
|
+
<% phc_seo_description "Ruby on Rails 7 core plugin for PHCDevworks plugins with common modules to handle functions universally handle common functions." %>
|
8
8
|
<!-- SEO System -->
|
9
9
|
|
10
10
|
<!-- SEO and Site Description -->
|
11
11
|
<meta charset="utf-8">
|
12
12
|
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
14
14
|
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
15
|
<!-- SEO and Site Description -->
|
16
16
|
|
@@ -20,112 +20,54 @@
|
|
20
20
|
<!-- Rails Security Tags -->
|
21
21
|
|
22
22
|
<!-- CSS Styles -->
|
23
|
-
|
23
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
24
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
25
|
<!-- CSS Styles -->
|
25
26
|
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
27
|
</head>
|
31
28
|
<body>
|
32
29
|
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="
|
30
|
+
<!-- -PHCDev- Page Container -->
|
31
|
+
<div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
|
35
32
|
|
36
|
-
<!-- Page Header -->
|
37
|
-
<div id="header" class="header
|
33
|
+
<!-- -PHCDev- Page Container - Header -->
|
34
|
+
<div id="header" class="app-header">
|
38
35
|
<%= render "layouts/phcdevworks_core_modules/components/backend/navigation/top_menu" %>
|
39
36
|
</div>
|
40
|
-
<!-- Page Header -->
|
37
|
+
<!-- -PHCDev- Page Container - Header -->
|
41
38
|
|
42
|
-
<!-- Page Sidebar -->
|
43
|
-
<div id="sidebar" class="sidebar">
|
39
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
40
|
+
<div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
|
44
41
|
<%= render "layouts/phcdevworks_core_modules/components/backend/sidebars/side_menu" %>
|
45
42
|
</div>
|
46
|
-
<div class="sidebar-bg"></div>
|
47
|
-
|
43
|
+
<div class="app-sidebar-bg"></div>
|
44
|
+
<div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
|
45
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
48
46
|
|
49
|
-
<!-- Page Content -->
|
50
|
-
<div id="
|
51
|
-
|
52
|
-
|
47
|
+
<!-- -PHCDev- Page Container - Content -->
|
48
|
+
<div id="app" class="app app-content-full-height">
|
49
|
+
<div id="content" class="app-content d-flex flex-column p-0">
|
50
|
+
<!-- -PHCDev- Page Container - Main -->
|
51
|
+
<div class="app-content-padding flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDev- Page Container - Main -->
|
56
|
+
<!-- -PHCDev- Page Container - Footer -->
|
57
|
+
<div id="footer" class="app-footer m-0">
|
58
|
+
<%= render "layouts/phcdevworks_core_modules/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- -PHCDev- Page Container - Footer -->
|
61
|
+
</div>
|
53
62
|
</div>
|
54
|
-
<!-- Page Content -->
|
55
|
-
|
56
|
-
<!-- Footer Content -->
|
57
|
-
<div id="footer" class="footer mb-4">
|
58
|
-
<%= render "layouts/phcdevworks_core_modules/components/backend/footer/footer" %>
|
59
|
-
</div>
|
60
|
-
<!-- Footer Content -->
|
63
|
+
<!-- -PHCDev- Page Container - Content -->
|
61
64
|
|
62
65
|
</div>
|
63
|
-
<!-- Page Container -->
|
66
|
+
<!-- -PHCDev- Page Container -->
|
64
67
|
|
65
|
-
<!-- JavaScript
|
66
|
-
|
67
|
-
|
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 -->
|
68
|
+
<!-- JavaScript -->
|
69
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
70
|
+
<!-- JavaScript -->
|
129
71
|
|
130
72
|
</body>
|
131
73
|
</html>
|
@@ -1,16 +1,17 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
2
2
|
<span>
|
3
|
-
<!--
|
3
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
4
4
|
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
-
<span class="
|
6
|
-
|
7
|
-
<!-- Footer Content - Left - Time in Production -->
|
5
|
+
<span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span> Core Modules - Engine v<%= Gem.loaded_specs["phcdevworks_core_modules"].version.to_s %>
|
6
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
8
7
|
</span>
|
9
|
-
<!--
|
8
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
10
9
|
|
11
|
-
<!--
|
10
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
12
11
|
<span class="float-right">
|
12
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
13
13
|
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
14
|
-
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="
|
14
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span></u></a>
|
15
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
15
16
|
</span>
|
16
|
-
<!--
|
17
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb
CHANGED
@@ -1,40 +1,41 @@
|
|
1
|
-
<!-- -
|
1
|
+
<!-- -PHCDev- Topbar - Navigation Header -->
|
2
2
|
<div class="navbar-header">
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
9
|
-
<span class="icon-bar"></span>
|
10
|
-
<span class="icon-bar"></span>
|
11
|
-
<span class="icon-bar"></span>
|
4
|
+
<button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
|
5
|
+
<span class="icon-bar"></span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
12
8
|
</button>
|
13
9
|
|
10
|
+
<%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
|
11
|
+
<span class="phc_dev_strong_plugin_logo">PHC</span><span class="phc_dev_light_plugin_logo">Devworks</span>
|
12
|
+
<% end %>
|
13
|
+
|
14
14
|
</div>
|
15
|
-
<!-- -
|
15
|
+
<!-- -PHCDev- Topbar - Navigation Header -->
|
16
16
|
|
17
|
-
<!-- -
|
17
|
+
<!-- -PHCDev- Topbar - Navigation Main -->
|
18
18
|
<% if current_user %>
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
<li class="dropdown navbar-user">
|
23
|
-
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
19
|
+
<div class="navbar-nav">
|
20
|
+
<div class="navbar-item navbar-user dropdown">
|
21
|
+
<a href="#" class="navbar-link dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
|
24
22
|
<%= image_tag current_user.gravatar_url %>
|
25
|
-
<span
|
23
|
+
<span>
|
24
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span>
|
25
|
+
<b class="caret"></b>
|
26
|
+
</span>
|
26
27
|
</a>
|
27
|
-
<div class="dropdown-menu dropdown-menu-
|
28
|
-
<%= link_to
|
28
|
+
<div class="dropdown-menu dropdown-menu-end me-1">
|
29
|
+
<%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "dropdown-item" do %>
|
29
30
|
<i class="fad fa-cogs"></i> Account Settings
|
30
31
|
<% end %>
|
31
|
-
<%= link_to
|
32
|
+
<%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
32
33
|
<i class="fad fa-sign-out-alt"></i> Logout
|
33
34
|
<% end %>
|
34
35
|
</div>
|
35
|
-
</
|
36
|
-
|
37
|
-
|
38
|
-
</ul>
|
36
|
+
</div>
|
37
|
+
</div>
|
39
38
|
<% end %>
|
40
|
-
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- -PHCDev- Topbar - Navigation Main -->
|