phcpress 6.6.1 → 6.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/config/phcpress_manifest.js +1 -1
- data/app/assets/javascripts/phcpress/application.js +1 -1
- data/app/assets/stylesheets/phcpress/application.scss +1 -1
- data/app/controllers/phcpress/api/v1/categories_controller.rb +1 -1
- data/app/controllers/phcpress/api/v1/posts_controller.rb +1 -1
- data/app/controllers/phcpress/application_controller.rb +1 -1
- data/app/controllers/phcpress/frontend/articles_controller.rb +1 -1
- data/app/helpers/phcpress/application_helper.rb +8 -8
- data/app/jobs/phcpress/application_job.rb +1 -2
- data/app/mailers/phcpress/application_mailer.rb +1 -3
- data/app/models/phcpress/api/v1/category.rb +1 -2
- data/app/models/phcpress/api/v1/post.rb +0 -1
- data/app/models/phcpress/application_record.rb +4 -6
- data/app/models/phcpress/articles.rb +6 -8
- data/app/models/phcpress/articles/post.rb +20 -8
- data/app/models/phcpress/frontend.rb +2 -4
- data/app/models/phcpress/frontend/article.rb +1 -2
- data/app/models/phcpress/modules.rb +6 -8
- data/app/models/phcpress/modules/category.rb +11 -6
- data/app/models/phcpress/modules/connection.rb +8 -8
- data/app/views/layouts/components/backend/footer/_footer.html.erb +2 -2
- data/app/views/layouts/components/backend/navigation/_navigation.html.erb +1 -1
- data/app/views/layouts/components/backend/topbar/_topbar.html.erb +1 -1
- data/app/views/layouts/phcpress/frontend.html.erb +1 -1
- data/app/views/phcpress/api/v1/categories/index.json.rabl +1 -1
- data/app/views/phcpress/api/v1/posts/index.json.rabl +1 -1
- data/app/views/phcpress/articles/posts/_form.html.erb +2 -2
- data/app/views/phcpress/articles/posts/edit.html.erb +9 -9
- data/app/views/phcpress/articles/posts/index.html.erb +33 -30
- data/app/views/phcpress/articles/posts/new.html.erb +9 -9
- data/app/views/phcpress/articles/posts/show.html.erb +32 -41
- data/app/views/phcpress/modules/categories/_form.html.erb +4 -1
- data/app/views/phcpress/modules/categories/edit.html.erb +7 -7
- data/app/views/phcpress/modules/categories/index.html.erb +30 -28
- data/app/views/phcpress/modules/categories/new.html.erb +7 -7
- data/app/views/phcpress/modules/categories/show.html.erb +26 -9
- data/app/views/phcpress/modules/connections/_form.html.erb +3 -0
- data/app/views/phcpress/modules/connections/edit.html.erb +8 -8
- data/app/views/phcpress/modules/connections/index.html.erb +36 -31
- data/app/views/phcpress/modules/connections/new.html.erb +9 -9
- data/app/views/phcpress/modules/connections/show.html.erb +47 -11
- data/lib/phcpress/engine.rb +7 -0
- data/lib/phcpress/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be0ff5d3a1fe7942dae29fdd40c49e3c04207c92
|
4
|
+
data.tar.gz: bc21c651e831df1c2c4c5b306a4eaab17aadd65e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d0c72c407df2a526bb47e7e74f18a386110efbf509af4fa6dbc13ac28f7fe8f3a9912f811e130373e49f6aff7279dcdffff744d16ddaf1f0f8aa69abca363d2
|
7
|
+
data.tar.gz: 58f50a8d9c717151cd800565555c6ded63285768b733fa4abdedbe7e9617e08c1246643bbe5da9b18c093a456318db6631f57d3a9cfb94b5e1c0da45d8bdf9d4
|
data/README.md
CHANGED
@@ -43,4 +43,4 @@ PHCPress default Carrierwave settings can be overwritten.
|
|
43
43
|
|
44
44
|
- [How to Override PHCPress Uploader](https://github.com/PHCNetworks/phc-press/wiki/Image-Uploader---Override)
|
45
45
|
- [How to Override Cloudinary Uploader](https://github.com/PHCNetworks/phc-press/wiki/Image-Uploader-(Cloudinary))
|
46
|
-
- [Critical Security Updates](https://github.com/PHCNetworks/phc-press/wiki/Critical-Security-Updates)
|
46
|
+
- [Critical Security Updates](https://github.com/PHCNetworks/phc-press/wiki/Critical-Security-Updates)
|
@@ -1,2 +1,2 @@
|
|
1
1
|
//= link_directory ../javascripts/phcpress .js
|
2
|
-
//= link_directory ../stylesheets/phcpress .scss
|
2
|
+
//= link_directory ../stylesheets/phcpress .scss
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// Load PHCAdmin3 Javascript
|
2
|
-
//= require phc_admins_main_three
|
2
|
+
//= require phc_admins_main_three
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// Load PHCAdmin3 Styles
|
2
|
-
@import "phc_admins_style_three";
|
2
|
+
@import "phc_admins_style_three";
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module Phcpress
|
2
2
|
module ApplicationHelper
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
# Add Active to Menu
|
5
|
+
def is_active_controller(controller_name)
|
6
|
+
params[:controller] == controller_name ? "active open selected" : nil
|
7
|
+
end
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
def is_active_action(action_name)
|
10
|
+
params[:action] == action_name ? "active" : nil
|
11
|
+
end
|
12
12
|
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
@@ -1,12 +1,24 @@
|
|
1
1
|
module Phcpress
|
2
|
-
|
2
|
+
class Articles::Post < ApplicationRecord
|
3
|
+
|
4
|
+
# For Image Uploads
|
5
|
+
mount_uploader :pstimage, Phcpresspro::PstimageUploader
|
6
|
+
|
7
|
+
# Relationships
|
8
|
+
has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
|
9
|
+
has_many :categories, class_name: 'Phcpress::Modules::Category', :through => :connections
|
10
|
+
|
11
|
+
# Validation for Form Fields
|
12
|
+
validates :psttitle,
|
13
|
+
presence: true,
|
14
|
+
length: { minimum: 3 }
|
3
15
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# Relationships
|
8
|
-
has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
|
9
|
-
has_many :categories, class_name: 'Phcpress::Modules::Category', :through => :connections
|
16
|
+
validates :psttext,
|
17
|
+
presence: true,
|
18
|
+
length: { minimum: 3 }
|
10
19
|
|
11
|
-
|
20
|
+
validates :pststatus,
|
21
|
+
presence: true
|
22
|
+
|
23
|
+
end
|
12
24
|
end
|
@@ -1,9 +1,14 @@
|
|
1
1
|
module Phcpress
|
2
|
-
|
2
|
+
class Modules::Category < ApplicationRecord
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
# Relationships
|
5
|
+
has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
|
6
|
+
has_many :posts, class_name: 'Phcpress::Modules::Category', :through => :connections
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
# Validation for Form Fields
|
9
|
+
validates :catname,
|
10
|
+
presence: true,
|
11
|
+
length: { minimum: 3 }
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Phcpress
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
2
|
+
class Modules::Connection < ApplicationRecord
|
3
|
+
|
4
|
+
# Relationships
|
5
|
+
belongs_to :post, class_name: 'Phcpress::Articles::Post'
|
6
|
+
belongs_to :category, class_name: 'Phcpress::Modules::Category'
|
7
|
+
|
8
|
+
end
|
9
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="pull-right hidden-xs">
|
2
|
-
<b>Version</b> 6.
|
2
|
+
<b>Version</b> 6.6.1 - MAR-04-<%= Date.today.year %>
|
3
3
|
</div>
|
4
|
-
<strong>© 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
|
4
|
+
<strong>© 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
object @modules_categories
|
2
|
-
attributes :id, :catname
|
2
|
+
attributes :id, :catname
|
@@ -1,2 +1,2 @@
|
|
1
1
|
object @articles_posts
|
2
|
-
attributes :id, :psttitle, :psttext, :pststatus, :pstimage
|
2
|
+
attributes :id, :psttitle, :psttext, :pststatus, :pstimage
|
@@ -62,8 +62,8 @@
|
|
62
62
|
</div>
|
63
63
|
<div class="panel-body">
|
64
64
|
<div class="form-group">
|
65
|
-
<%= f.label :
|
66
|
-
<%= f.
|
65
|
+
<%= f.label :psttext, "News Post Text" %>
|
66
|
+
<%= f.text_area :psttext, :class => "tinymce form-control", :rows => 15, :cols => 60 %>
|
67
67
|
</div>
|
68
68
|
<div class="form-group">
|
69
69
|
<%= f.text_area :psttext, class: "post_edit_box form-control" %>
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "Update Article
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Update Article" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
@@ -21,17 +21,17 @@
|
|
21
21
|
<section class="content">
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-12">
|
24
|
-
|
25
24
|
<div class="box">
|
26
25
|
<div class="box-header with-border">
|
27
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
27
|
</div>
|
29
28
|
<div class="box-body">
|
29
|
+
|
30
30
|
<%= render 'form', articles_post: @articles_post %>
|
31
|
+
|
31
32
|
</div>
|
32
33
|
</div>
|
33
|
-
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
</section>
|
37
|
-
<!-- Main Content -->
|
37
|
+
<!-- Main Content -->
|
@@ -1,18 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
2
|
+
<% phc_title "Article Manager" %>
|
3
3
|
<% phc_title_tagline "Article Index" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
13
15
|
</ol>
|
14
16
|
<!-- Page Title and BreadCrumb -->
|
15
|
-
|
16
17
|
</section>
|
17
18
|
<!-- Page Title Bar -->
|
18
19
|
|
@@ -20,41 +21,43 @@
|
|
20
21
|
<section class="content">
|
21
22
|
<div class="row">
|
22
23
|
<div class="col-lg-12">
|
23
|
-
|
24
24
|
<div class="box">
|
25
25
|
<div class="box-header with-border">
|
26
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
27
|
</div>
|
28
28
|
<div class="box-body">
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<th>Text Preview</th>
|
34
|
-
<th>Article Status</th>
|
35
|
-
<th></th>
|
36
|
-
</tr>
|
37
|
-
</thead>
|
38
|
-
<tbody>
|
39
|
-
<% @articles_posts.each do |articles_post| %>
|
29
|
+
|
30
|
+
<div class="table-responsive">
|
31
|
+
<table class="table table-bordered table-striped table-hover">
|
32
|
+
<thead>
|
40
33
|
<tr>
|
41
|
-
<
|
42
|
-
<
|
43
|
-
<
|
44
|
-
<
|
45
|
-
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
|
46
|
-
<%= link_to 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
47
|
-
</div></td>
|
34
|
+
<th>Title</th>
|
35
|
+
<th>Text Preview</th>
|
36
|
+
<th>Article Status</th>
|
37
|
+
<th></th>
|
48
38
|
</tr>
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
39
|
+
</thead>
|
40
|
+
<tbody>
|
41
|
+
<% @articles_posts.each do |articles_post| %>
|
42
|
+
<tr>
|
43
|
+
<td><%= articles_post.psttitle %></td>
|
44
|
+
<td><%= truncate(articles_post.psttext, :length => 80) %></td>
|
45
|
+
<td><%= articles_post.pststatus %></td>
|
46
|
+
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
47
|
+
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
|
48
|
+
<%= link_to 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
49
|
+
</div></td>
|
50
|
+
</tr>
|
51
|
+
<% end %>
|
52
|
+
</tbody>
|
53
|
+
</table>
|
54
|
+
</div>
|
55
|
+
<div class="box-footer clearfix">
|
56
|
+
<%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %>
|
57
|
+
</div>
|
58
|
+
|
55
59
|
</div>
|
56
60
|
</div>
|
57
|
-
|
58
61
|
</div>
|
59
62
|
</div>
|
60
63
|
</section>
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Create a New Article" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
@@ -21,17 +21,17 @@
|
|
21
21
|
<section class="content">
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-12">
|
24
|
-
|
25
24
|
<div class="box">
|
26
25
|
<div class="box-header with-border">
|
27
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
27
|
</div>
|
29
28
|
<div class="box-body">
|
29
|
+
|
30
30
|
<%= render 'form', articles_post: @articles_post %>
|
31
|
+
|
31
32
|
</div>
|
32
33
|
</div>
|
33
|
-
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
</section>
|
37
|
-
<!-- Main Content -->
|
37
|
+
<!-- Main Content -->
|
@@ -1,48 +1,39 @@
|
|
1
|
-
<!-- Title
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "Article
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</h3>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Article Details" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
23
19
|
|
24
20
|
<!-- Main Content -->
|
25
|
-
<
|
26
|
-
<div class="
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<div class="caption">
|
32
|
-
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
33
27
|
</div>
|
34
|
-
<div class="
|
35
|
-
</div>
|
36
|
-
</div>
|
28
|
+
<div class="box-body">
|
37
29
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
30
|
+
<p id="notice"><%= notice %></p>
|
31
|
+
<%= link_to 'Edit', edit_articles_post_path(@articles_post) %> |
|
32
|
+
<%= link_to 'Back', articles_posts_path %>
|
33
|
+
|
34
|
+
</div>
|
42
35
|
</div>
|
43
|
-
|
44
36
|
</div>
|
45
|
-
|
46
37
|
</div>
|
47
|
-
</
|
48
|
-
<!-- Main Content -->
|
38
|
+
</section>
|
39
|
+
<!-- Main Content -->
|
@@ -3,6 +3,9 @@
|
|
3
3
|
|
4
4
|
<%= form_for(@modules_category) do |f| %>
|
5
5
|
|
6
|
+
<!-- PHC-Notifi Render Validation -->
|
7
|
+
<%= render 'phcnotifi/validations', :object => @modules_category %>
|
8
|
+
|
6
9
|
<div class="form-group">
|
7
10
|
<label><%= f.label :catname, "Category Name" %></label>
|
8
11
|
<%= f.text_field :catname, class: "form-control" %>
|
@@ -15,4 +18,4 @@
|
|
15
18
|
<% end %>
|
16
19
|
|
17
20
|
</div>
|
18
|
-
</div>
|
21
|
+
</div>
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "Update Category
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
+
<% phc_title_tagline "Update Category Data" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
@@ -21,12 +21,12 @@
|
|
21
21
|
<section class="content">
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-12">
|
24
|
-
|
25
24
|
<div class="box">
|
26
25
|
<div class="box-header with-border">
|
27
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
27
|
</div>
|
29
28
|
<div class="box-body">
|
29
|
+
|
30
30
|
<%= render 'form', modules_category: @modules_category %>
|
31
31
|
</div>
|
32
32
|
</div>
|
@@ -1,18 +1,18 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
+
<% phc_title_tagline "Category Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
4
5
|
<!-- Title System -->
|
5
6
|
|
6
7
|
<!-- Page Title Bar -->
|
7
8
|
<section class="content-header">
|
8
|
-
|
9
9
|
<!-- Page Title and BreadCrumb -->
|
10
10
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
11
|
<ol class="breadcrumb">
|
12
|
-
<li
|
12
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
13
14
|
</ol>
|
14
15
|
<!-- Page Title and BreadCrumb -->
|
15
|
-
|
16
16
|
</section>
|
17
17
|
<!-- Page Title Bar -->
|
18
18
|
|
@@ -20,39 +20,41 @@
|
|
20
20
|
<section class="content">
|
21
21
|
<div class="row">
|
22
22
|
<div class="col-lg-12">
|
23
|
-
|
24
23
|
<div class="box">
|
25
24
|
<div class="box-header with-border">
|
26
25
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
26
|
</div>
|
28
27
|
<div class="box-body">
|
29
|
-
<table class="table table-bordered table-striped table-hover">
|
30
|
-
<thead>
|
31
|
-
<tr>
|
32
|
-
<th>Category Name</th>
|
33
|
-
<th></th>
|
34
|
-
</tr>
|
35
|
-
</thead>
|
36
28
|
|
37
|
-
|
38
|
-
|
29
|
+
<div class="table-responsive">
|
30
|
+
<table class="table table-bordered table-striped table-hover">
|
31
|
+
<thead>
|
39
32
|
<tr>
|
40
|
-
<
|
41
|
-
<
|
42
|
-
<%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
|
43
|
-
<%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
44
|
-
</div>
|
45
|
-
</td>
|
33
|
+
<th>Category Name</th>
|
34
|
+
<th></th>
|
46
35
|
</tr>
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
36
|
+
</thead>
|
37
|
+
|
38
|
+
<tbody>
|
39
|
+
<% @modules_categories.each do |modules_category| %>
|
40
|
+
<tr>
|
41
|
+
<td><%= modules_category.catname %></td>
|
42
|
+
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
43
|
+
<%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
|
44
|
+
<%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
45
|
+
</div>
|
46
|
+
</td>
|
47
|
+
</tr>
|
48
|
+
<% end %>
|
49
|
+
</tbody>
|
50
|
+
</table>
|
51
|
+
</div>
|
52
|
+
<div class="box-footer clearfix">
|
53
|
+
<%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
|
54
|
+
</div>
|
55
|
+
|
53
56
|
</div>
|
54
57
|
</div>
|
55
|
-
|
56
58
|
</div>
|
57
59
|
</div>
|
58
60
|
</section>
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Category" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
@@ -21,16 +21,16 @@
|
|
21
21
|
<section class="content">
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-12">
|
24
|
-
|
25
24
|
<div class="box">
|
26
25
|
<div class="box-header with-border">
|
27
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
27
|
</div>
|
29
28
|
<div class="box-body">
|
29
|
+
|
30
30
|
<%= render 'form', modules_category: @modules_category %>
|
31
|
+
|
31
32
|
</div>
|
32
33
|
</div>
|
33
|
-
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
</section>
|
@@ -1,23 +1,40 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
+
<% phc_title_tagline "Category Details" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
20
|
-
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
21
29
|
|
22
|
-
|
23
|
-
|
30
|
+
<p id="notice"><%= notice %></p>
|
31
|
+
|
32
|
+
<%= link_to 'Edit', edit_modules_category_path(@modules_category) %> |
|
33
|
+
<%= link_to 'Back', modules_categories_path %>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</section>
|
40
|
+
<!-- Main Content -->
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "Update
|
2
|
+
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
+
<% phc_title_tagline "Update Category Connections" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
@@ -21,16 +21,16 @@
|
|
21
21
|
<section class="content">
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-12">
|
24
|
-
|
25
24
|
<div class="box">
|
26
25
|
<div class="box-header with-border">
|
27
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
27
|
</div>
|
29
28
|
<div class="box-body">
|
29
|
+
|
30
30
|
<%= render 'form', modules_connection: @modules_connection %>
|
31
|
+
|
31
32
|
</div>
|
32
33
|
</div>
|
33
|
-
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
</section>
|
@@ -1,18 +1,18 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Connections
|
3
|
-
<% phc_title_tagline "
|
2
|
+
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
+
<% phc_title_tagline "Connections Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
4
5
|
<!-- Title System -->
|
5
6
|
|
6
7
|
<!-- Page Title Bar -->
|
7
8
|
<section class="content-header">
|
8
|
-
|
9
9
|
<!-- Page Title and BreadCrumb -->
|
10
10
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
11
|
<ol class="breadcrumb">
|
12
|
-
<li
|
12
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
13
14
|
</ol>
|
14
15
|
<!-- Page Title and BreadCrumb -->
|
15
|
-
|
16
16
|
</section>
|
17
17
|
<!-- Page Title Bar -->
|
18
18
|
|
@@ -20,37 +20,42 @@
|
|
20
20
|
<section class="content">
|
21
21
|
<div class="row">
|
22
22
|
<div class="col-lg-12">
|
23
|
-
|
24
23
|
<div class="box">
|
25
24
|
<div class="box-header with-border">
|
26
25
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
26
|
</div>
|
28
27
|
<div class="box-body">
|
29
|
-
<table class="table table-bordered table-striped table-hover">
|
30
|
-
<thead>
|
31
|
-
<tr>
|
32
|
-
<th>Category</th>
|
33
|
-
<th>Posts</th>
|
34
|
-
<th colspan="3"></th>
|
35
|
-
</tr>
|
36
|
-
</thead>
|
37
|
-
|
38
|
-
<tbody>
|
39
|
-
<% @modules_connections.each do |modules_connection| %>
|
40
|
-
<tr>
|
41
|
-
<td><%= modules_connection.category.catname %></td>
|
42
|
-
<td><%= modules_connection.post.psttitle %></td>
|
43
|
-
<td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
|
44
|
-
<td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
|
45
|
-
<td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
46
|
-
</tr>
|
47
|
-
<% end %>
|
48
|
-
</tbody>
|
49
|
-
</table>
|
50
|
-
|
51
|
-
<%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
|
52
28
|
|
29
|
+
<div class="table-responsive">
|
30
|
+
<table class="table table-bordered table-striped table-hover">
|
31
|
+
<thead>
|
32
|
+
<tr>
|
33
|
+
<th>Category</th>
|
34
|
+
<th>Posts</th>
|
35
|
+
<th colspan="3"></th>
|
36
|
+
</tr>
|
37
|
+
</thead>
|
38
|
+
|
39
|
+
<tbody>
|
40
|
+
<% @modules_connections.each do |modules_connection| %>
|
41
|
+
<tr>
|
42
|
+
<td><%= modules_connection.category.catname %></td>
|
43
|
+
<td><%= modules_connection.post.psttitle %></td>
|
44
|
+
<td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
|
45
|
+
<td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
|
46
|
+
<td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
47
|
+
</tr>
|
48
|
+
<% end %>
|
49
|
+
</tbody>
|
50
|
+
</table>
|
51
|
+
</div>
|
52
|
+
<div class="box-footer clearfix">
|
53
|
+
<%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
</div>
|
57
|
+
</div>
|
53
58
|
</div>
|
54
|
-
|
55
59
|
</div>
|
56
|
-
</
|
60
|
+
</section>
|
61
|
+
<!-- Main Content -->
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "
|
3
|
-
<% phc_title_tagline "Create a New Connection" %>
|
2
|
+
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
+
<% phc_title_tagline "Create a New Plugin Connection" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
4
6
|
<!-- Title System -->
|
5
7
|
|
6
8
|
<!-- Page Title Bar -->
|
7
9
|
<section class="content-header">
|
8
|
-
|
9
10
|
<!-- Page Title and BreadCrumb -->
|
10
11
|
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
12
|
<ol class="breadcrumb">
|
12
|
-
<li><%=
|
13
|
-
<li class="active"><%= yield(:
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
15
|
</ol>
|
15
16
|
<!-- Page Title and BreadCrumb -->
|
16
|
-
|
17
17
|
</section>
|
18
18
|
<!-- Page Title Bar -->
|
19
19
|
|
@@ -21,17 +21,17 @@
|
|
21
21
|
<section class="content">
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-12">
|
24
|
-
|
25
24
|
<div class="box">
|
26
25
|
<div class="box-header with-border">
|
27
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
27
|
</div>
|
29
28
|
<div class="box-body">
|
29
|
+
|
30
30
|
<%= render 'form', modules_connection: @modules_connection %>
|
31
|
+
|
31
32
|
</div>
|
32
33
|
</div>
|
33
|
-
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
</section>
|
37
|
-
<!-- Main Content -->
|
37
|
+
<!-- Main Content -->
|
@@ -1,14 +1,50 @@
|
|
1
|
-
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
+
<% phc_title_tagline "Create a New Plugin Connection" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
2
7
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
7
19
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
12
29
|
|
13
|
-
|
14
|
-
|
30
|
+
<p id="notice"><%= notice %></p>
|
31
|
+
|
32
|
+
<p>
|
33
|
+
<strong>Post:</strong>
|
34
|
+
<%= @modules_connection.post_id %>
|
35
|
+
</p>
|
36
|
+
|
37
|
+
<p>
|
38
|
+
<strong>Category:</strong>
|
39
|
+
<%= @modules_connection.category_id %>
|
40
|
+
</p>
|
41
|
+
|
42
|
+
<%= link_to 'Edit', edit_modules_connection_path(@modules_connection) %> |
|
43
|
+
<%= link_to 'Back', modules_connections_path %>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</section>
|
50
|
+
<!-- Main Content -->
|
data/lib/phcpress/engine.rb
CHANGED
@@ -26,6 +26,13 @@ module Phcpress
|
|
26
26
|
require 'multi_json'
|
27
27
|
require 'responders'
|
28
28
|
|
29
|
+
# WYSIWYG Editor Dependencies
|
30
|
+
require 'tinymce-rails'
|
31
|
+
|
32
|
+
# Upload & Media Dependencies
|
33
|
+
require 'carrierwave'
|
34
|
+
require 'cloudinary'
|
35
|
+
|
29
36
|
# Isolate Namespace
|
30
37
|
isolate_namespace Phcpress
|
31
38
|
|
data/lib/phcpress/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Phcpress
|
2
|
-
VERSION = "6.6.
|
3
|
-
end
|
2
|
+
VERSION = "6.6.3"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.6.
|
4
|
+
version: 6.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|