phcpresspro 54.0.0 → 55.0.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: 50a5bb9061c86fdeaa9c115c16421122002108ca654da8feb0edcd8c7e9d3896
4
- data.tar.gz: c44590a9428694ec1dc3b7081b6063cfa63ce48da6bb5f83bb4f15a264c7967a
3
+ metadata.gz: 8cd8e072457423314b34da933026549663dd3e8c2fcbf12e1af33e5f0e9b4d0d
4
+ data.tar.gz: fd829f20c6abf4c3d89be741e20164b98376ed4852952a4b557f64d4cdd1adcf
5
5
  SHA512:
6
- metadata.gz: 10cddddff43fc21e89ebaab1ab06ea9bc542c84bf88c46cc768fc36227a788c112e230207e8047aba6c29cc1fe1086be97272d5028d6b1e1123fb752ec4778b2
7
- data.tar.gz: 22600f723dc2955d81bfb3283fb008a759156a7092e2940b55430d8d41b8bcb97a4816bfb27016e84388087e1b6c76c8d1ab24fe781541f28f494868a5e75cd2
6
+ metadata.gz: 3aee58a191384659a4e5c530dc6f480ea4f7c3571d0615f787047f9a5b5749e4fbe36b69b744a39b51070ab3d009addfe056d05f66b5ca0fd0f0838bfa7e717f
7
+ data.tar.gz: 9ce36795b8c1aee09b957322da906c85c8298ac498ef01c09489d8126e17223a864ce116414aef91a136814fb839ec1cdbb69bff03ee63e8fa49229f92a8c371
@@ -1,2 +1,2 @@
1
- // Add PHCAdmin2 Javascript
2
- //= require phc_admins_main_two
1
+ // Add PHCAdmin5 JavaScripts
2
+ //= require phc_admins_main_five
@@ -1,2 +1,2 @@
1
- // Add PHCAdmin2 Styles
2
- @import "phc_admins_style_two";
1
+ // Add PHCAdmin5 Styles
2
+ @import "phc_admins_style_five";
@@ -3,10 +3,11 @@ require_dependency "phcpresspro/application_controller"
3
3
  module Phcpresspro
4
4
  class Article::PostsController < ApplicationController
5
5
 
6
- # Security & Action Filters
6
+ # Security, Layouts & Action Filters
7
7
  before_action :authenticate_user!
8
8
  before_action :set_paper_trail_whodunnit
9
9
  before_action :set_article_post, only: [:show, :edit, :update, :destroy]
10
+ layout "phcpresspro/application"
10
11
 
11
12
  # Article Index
12
13
  def index
@@ -2,62 +2,82 @@
2
2
  <html>
3
3
  <head>
4
4
 
5
- <!-- Meta Info -->
6
- <%= render 'layouts/components/frontend/seo/seo_main' %>
7
- <!-- Font -->
8
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
9
-
10
- <!-- Requried StyleSheets -->
11
- <%= stylesheet_link_tag "application", media: "all", 'data-turbolinks-track': 'reload' %>
12
- <!-- Requried JavaScripts -->
13
- <%= javascript_include_tag "application", 'data-turbolinks-track': 'reload' %>
14
- <!-- Security -->
15
- <%= csrf_meta_tags %>
5
+ <% phc_seo_title "PHCPress(Pro) CMS" %>
6
+ <% phc_seo_description "Conent Management System by phcnetworks" %>
7
+
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+ <title><%= yield(:phc_seo_title) %></title>
10
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
11
+
12
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
13
+ <link rel="canonical" href="http://phcmembers.com">
14
+
15
+ <!-- Font -->
16
+ <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
17
+
18
+ <!-- Requried Style Sheets -->
19
+ <%= stylesheet_link_tag "backend", media: "all", 'data-turbolinks-track': 'reload' %>
20
+
21
+ <!-- Security -->
22
+ <%= csrf_meta_tags %>
16
23
 
17
24
  </head>
18
- <body class="smoothscroll enable-animation">
19
-
20
- <!-- Start Top Slideout Above Navigation Bar -->
21
- <div id="slidetop">
22
- <%= render 'layouts/components/frontend/header/slideout' %>
23
- </div>
24
- <!-- End Top Slideout Above Navigation Bar -->
25
-
26
- <!-- Start Main Wrapper -->
27
- <div id="wrapper">
28
-
29
- <!-- Start Main Navigation -->
30
- <div id="header" class="navbar-toggleable-md sticky dark header-md transparent b-0 clearfix">
31
- <%= render 'layouts/components/frontend/navigation/navigation' %>
32
- </div>
33
- <!-- End Main Navigation -->
34
-
35
-
36
- <%= yield %>
37
-
38
- <!-- Start Footer Wrapper -->
39
- <footer id="footer">
40
- <div class="container">
41
- <!-- Start Footer Main Information -->
42
- <div class="row">
43
- <%= render 'layouts/components/frontend/footer/footer' %>
44
- </div>
45
- <!-- End Footer Main Information -->
46
- </div>
47
- <!-- Start Footer Copyright Information -->
48
- <div class="copyright">
49
- <%= render 'layouts/components/frontend/footer/footer_copyright' %>
50
- </div>
51
- <!-- End Footer Copyright Information -->
52
- </footer>
53
- <!-- End Footer Wrapper -->
54
-
55
- </div>
56
- <!-- End Main Wrapper -->
57
-
58
- <!-- Scroll to Top -->
59
- <a href="#" id="toTop"></a>
60
- <!-- Scroll to Top -->
25
+ <body>
26
+
27
+ <!-- Page Container -->
28
+ <div id="page-container" class="page-container fade page-sidebar-fixed page-header-fixed">
29
+ <!-- Page Header -->
30
+ <div id="header" class="header navbar-default">
31
+ <%= render 'layouts/phcpresspro/components/backend/navigation/top_menu' %>
32
+ </div>
33
+ <!-- Page Header -->
34
+
35
+ <!-- Page Sidebar -->
36
+ <div id="sidebar" class="sidebar">
37
+ <%= render 'layouts/phcpresspro/components/backend/sidebars/side_menu' %>
38
+ </div>
39
+ <div class="sidebar-bg"></div>
40
+ <!-- Page Sidebar -->
41
+
42
+ <!-- Page Content -->
43
+ <div id="content" class="content">
44
+ <%= yield %>
45
+ </div>
46
+ <!-- Page Content -->
47
+
48
+ <!-- Footer Content -->
49
+ <div id="footer" class="footer">
50
+ <%= render 'layouts/phcpresspro/components/backend/footer/footer' %>
51
+ </div>
52
+ <!-- Footer Content -->
53
+
54
+ <!-- Scroll to Top -->
55
+ <a href="javascript:;" class="btn btn-icon btn-circle btn-success btn-scroll-to-top fade" data-click="scroll-top">
56
+ <i class="fa fa-angle-up"></i>
57
+ </a>
58
+ <!-- Scroll to Top -->
59
+
60
+ </div>
61
+ <!-- Page Container -->
62
+
63
+ <!-- Requried JavaScripts -->
64
+ <%= javascript_include_tag "backend", 'data-turbolinks-track': 'reload' %>
65
+ <script src="https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"></script>
66
+
67
+ <!-- WTF Slowing Down my Site. Nothing Nice to Say. Keep Bad Comments to Myself -->
68
+ <!--[if lt IE 9]>
69
+ <script src="https://frmwrks.phcnetworks.net/coloradmin/version-latest/admin/template/assets/crossbrowserjs/html5shiv.js"></script>
70
+ <script src="https://frmwrks.phcnetworks.net/coloradmin/version-latest/admin/template/assets/crossbrowserjs/respond.min.js"></script>
71
+ <script src="https://frmwrks.phcnetworks.net/coloradmin/version-latest/admin/template/assets/crossbrowserjs/excanvas.min.js"></script>
72
+ <![endif]-->
73
+ <!-- WTF Slowing Down my Site. Nothing Nice to Say. Keep Bad Comments to Myself -->
74
+
75
+ <script>
76
+ $(document).ready(function() {
77
+ App.init();
78
+ });
79
+ </script>
80
+ <!-- Requried JavaScripts -->
61
81
 
62
82
  </body>
63
83
  </html>
@@ -1,8 +1 @@
1
- <div class="pull-right">
2
- <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>
3
- PHCPress by PHCNetworks
4
- <% end %>
5
- </div>
6
- <div>
7
- &copy; 2012-<%= Time.now.year %> - v<%= Gem.loaded_specs["phcpresspro"].version.to_s %> - RELEASED - <%= Date.today.month %>-<%= Date.today.year %>
8
- </div>
1
+ <span class="float-left">&copy; 2012-<%= Time.now.year %> - <strong>PHC</strong>Press(Pro) Engine v<%= Gem.loaded_specs["phcpresspro"].version.to_s %></span> <span class="float-right">Developed with <i class="fas fa-heart hanna_hearts"></i> by <strong>PHC</strong>Networks</span>
@@ -0,0 +1,143 @@
1
+ <!-- Topbar - Navigation -->
2
+ <!-- Topbar - Navigation Header -->
3
+ <div class="navbar-header">
4
+ <%= link_to phcaccountspro.welcome_status_page_path, class: "navbar-brand" do %>
5
+ <!--<span class="navbar-logo"></span>-->
6
+ <strong>PHC</strong>Press(Pro)
7
+ <% end %>
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>
12
+ </button>
13
+ </div>
14
+ <!-- Topbar - Navigation Header -->
15
+
16
+ <!-- Topbar - Navigation Main -->
17
+ <% if current_user %>
18
+ <ul class="navbar-nav navbar-right">
19
+
20
+ <!-- Topbar - Navigation Main - Search
21
+ <li>
22
+ <form class="navbar-form">
23
+ <div class="form-group">
24
+ <input type="text" class="form-control" placeholder="Enter keyword" />
25
+ <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
26
+ </div>
27
+ </form>
28
+ </li>
29
+ Topbar - Navigation Main - Search -->
30
+
31
+ <!-- Topbar - Navigation Main - Notifications Menu
32
+ <li class="dropdown">
33
+ <a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
34
+ <i class="fa fa-bell"></i>
35
+ <span class="label">5</span>
36
+ </a>
37
+ <ul class="dropdown-menu media-list dropdown-menu-right">
38
+ <li class="dropdown-header">NOTIFICATIONS (5)</li>
39
+ <li class="media">
40
+ <a href="javascript:;">
41
+ <div class="media-left">
42
+ <i class="fa fa-bug media-object bg-silver-darker"></i>
43
+ </div>
44
+ <div class="media-body">
45
+ <h6 class="media-heading">
46
+ Server Error Reports
47
+ <i class="fa fa-exclamation-circle text-danger"></i>
48
+ </h6>
49
+ <div class="text-muted f-s-11">3 minutes ago</div>
50
+ </div>
51
+ </a>
52
+ </li>
53
+ ...
54
+ <li class="dropdown-footer text-center">
55
+ <a href="javascript:;">View more</a>
56
+ </li>
57
+ </ul>
58
+ </li>
59
+ Topbar - Navigation Main - Notifications Menu -->
60
+
61
+ <!-- Topbar - Navigation Main - User Menu -->
62
+ <li class="dropdown navbar-user">
63
+ <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
64
+ <%= image_tag current_user.gravatar_url %>
65
+ <span class="d-none d-md-inline"><%= current_user.firstname + ' ' + current_user.lastname %></span> <b class="caret"></b>
66
+ </a>
67
+ <div class="dropdown-menu dropdown-menu-right">
68
+ <%= link_to phcaccountspro.edit_user_registration_path, class: "dropdown-item" do %>
69
+ <i class="fas fa-cogs"></i> Account Settings
70
+ <% end %>
71
+ <%= link_to phcaccountspro.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
72
+ <i class="fas fa-sign-out-alt"></i> Logout
73
+ <% end %>
74
+ </div>
75
+ </li>
76
+ <!-- Topbar - Navigation Main - User Menu -->
77
+
78
+ </ul>
79
+ <% end %>
80
+ <% if current_admin %>
81
+ <ul class="navbar-nav navbar-right">
82
+
83
+ <!-- Topbar - Navigation Main - Search
84
+ <li>
85
+ <form class="navbar-form">
86
+ <div class="form-group">
87
+ <input type="text" class="form-control" placeholder="Enter keyword" />
88
+ <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
89
+ </div>
90
+ </form>
91
+ </li>
92
+ Topbar - Navigation Main - Search -->
93
+
94
+ <!-- Topbar - Navigation Main - Notifications Menu
95
+ <li class="dropdown">
96
+ <a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
97
+ <i class="fa fa-bell"></i>
98
+ <span class="label">5</span>
99
+ </a>
100
+ <ul class="dropdown-menu media-list dropdown-menu-right">
101
+ <li class="dropdown-header">NOTIFICATIONS (5)</li>
102
+ <li class="media">
103
+ <a href="javascript:;">
104
+ <div class="media-left">
105
+ <i class="fa fa-bug media-object bg-silver-darker"></i>
106
+ </div>
107
+ <div class="media-body">
108
+ <h6 class="media-heading">
109
+ Server Error Reports
110
+ <i class="fa fa-exclamation-circle text-danger"></i>
111
+ </h6>
112
+ <div class="text-muted f-s-11">3 minutes ago</div>
113
+ </div>
114
+ </a>
115
+ </li>
116
+ ...
117
+ <li class="dropdown-footer text-center">
118
+ <a href="javascript:;">View more</a>
119
+ </li>
120
+ </ul>
121
+ </li>
122
+ Topbar - Navigation Main - Notifications Menu -->
123
+
124
+ <!-- Topbar - Navigation Main - User Menu -->
125
+ <li class="dropdown navbar-user">
126
+ <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
127
+ <%= image_tag current_admin.gravatar_url %>
128
+ <span class="d-none d-md-inline"><%= current_admin.firstname + ' ' + current_admin.lastname %></span> <b class="caret"></b>
129
+ </a>
130
+ <div class="dropdown-menu dropdown-menu-right">
131
+ <%= link_to phcaccountspro.edit_admin_registration_path, class: "dropdown-item" do %>
132
+ <i class="fas fa-cogs"></i> Account Settings
133
+ <% end %>
134
+ <%= link_to phcaccountspro.destroy_admin_session_path, method: :delete, class: "dropdown-item" do %>
135
+ <i class="fas fa-sign-out-alt"></i> Logout
136
+ <% end %>
137
+ </div>
138
+ </li>
139
+ <!-- Topbar - Navigation Main - User Menu -->
140
+
141
+ </ul>
142
+ <% end %>
143
+ <!-- Topbar - Navigation Main -->
@@ -0,0 +1,132 @@
1
+ <!-- Sidebar -->
2
+ <div data-scrollbar="true" data-height="100%">
3
+ <% if current_user %>
4
+ <!-- Sidebar - User Profile Menu -->
5
+ <ul class="nav">
6
+ <li class="nav-profile">
7
+ <a href="javascript:;" data-toggle="nav-profile">
8
+ <div class="cover with-shadow"></div>
9
+ <div class="image">
10
+ <%= image_tag current_user.gravatar_url %>
11
+ </div>
12
+ <div class="info">
13
+ <b class="caret pull-right"></b>
14
+ <%= current_user.firstname + ' ' + current_user.lastname %>
15
+ <small><%= current_user.username %></small>
16
+ </div>
17
+ </a>
18
+ </li>
19
+ <li>
20
+ <ul class="nav nav-profile">
21
+ <li>
22
+ <%= link_to phcaccountspro.edit_user_registration_path do %>
23
+ <i class="fas fa-cogs"></i> Account Settings
24
+ <% end %>
25
+ </li>
26
+ <li>
27
+ <%= link_to phcaccountspro.destroy_user_session_path do %>
28
+ <i class="fas fa-sign-out-alt"></i> Logout
29
+ <% end %>
30
+ </li>
31
+ </ul>
32
+ </li>
33
+ </ul>
34
+ <!-- Sidebar - User Profile Menu -->
35
+ <!-- Sidebar - Sidebar Navigation -->
36
+ <ul class="nav">
37
+
38
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
39
+ <li class="nav-header">CMS</li>
40
+ <li class="has-sub">
41
+ <a href="javascript:;">
42
+ <b class="caret"></b>
43
+ <i class="fas fa-newspaper"></i>
44
+ <span>Article Posts</span>
45
+ </a>
46
+ <ul class="sub-menu">
47
+ <li><%= link_to('Article Index', phcpresspro.article_posts_path) %></li>
48
+ <li><%= link_to('New Aritcle', phcpresspro.new_article_post_path) %></li>
49
+ </ul>
50
+ </li>
51
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
52
+ <li class="nav-header">Accounts</li>
53
+ <li class="has-sub">
54
+ <a href="javascript:;">
55
+ <b class="caret"></b>
56
+ <i class="fas fa-user"></i>
57
+ <span>Accounts Dashboard</span>
58
+ </a>
59
+ <ul class="sub-menu">
60
+ <li><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
61
+ <li><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
62
+ </ul>
63
+ </li>
64
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
65
+ <!-- Sidebar - Sidebar Minifier -->
66
+ <li>
67
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
68
+ <i class="fa fa-angle-double-left"></i>
69
+ </a>
70
+ </li>
71
+ <!-- Sidebar - Sidebar Minifier -->
72
+ </ul>
73
+ <!-- Sidebar - Sidebar Navigation -->
74
+ <% end %>
75
+ <% if current_admin %>
76
+ <!-- Sidebar - User Profile Menu -->
77
+ <ul class="nav">
78
+ <li class="nav-profile">
79
+ <a href="javascript:;" data-toggle="nav-profile">
80
+ <div class="cover with-shadow"></div>
81
+ <div class="image">
82
+ <%= image_tag current_admin.gravatar_url %>
83
+ </div>
84
+ <div class="info">
85
+ <b class="caret pull-right"></b>
86
+ <%= current_admin.firstname + ' ' + current_admin.lastname %>
87
+ <small><%= current_admin.username %></small>
88
+ </div>
89
+ </a>
90
+ </li>
91
+ <li>
92
+ <ul class="nav nav-profile">
93
+ <li>
94
+ <%= link_to phcaccountspro.edit_admin_registration_path do %>
95
+ <i class="fas fa-cogs"></i> Account Settings
96
+ <% end %>
97
+ </li>
98
+ <li>
99
+ <%= link_to phcaccountspro.destroy_admin_session_path do %>
100
+ <i class="fas fa-sign-out-alt"></i> Logout
101
+ <% end %>
102
+ </li>
103
+ </ul>
104
+ </li>
105
+ </ul>
106
+ <!-- Sidebar - User Profile Menu -->
107
+ <!-- Sidebar - Sidebar Navigation -->
108
+ <ul class="nav">
109
+ <li class="nav-header">Accounts Menu</li>
110
+ <li class="has-sub">
111
+ <a href="javascript:;">
112
+ <b class="caret"></b>
113
+ <i class="fa fa-th-large"></i>
114
+ <span>Accounts Dashboard</span>
115
+ </a>
116
+ <ul class="sub-menu">
117
+ <li><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
118
+ <li><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
119
+ </ul>
120
+ </li>
121
+ <!-- Sidebar - Sidebar Minifier -->
122
+ <li>
123
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
124
+ <i class="fa fa-angle-double-left"></i>
125
+ </a>
126
+ </li>
127
+ <!-- Sidebar - Sidebar Minifier -->
128
+ </ul>
129
+ <!-- Sidebar - Sidebar Navigation -->
130
+ <% end %>
131
+ </div>
132
+ <!-- Sidebar -->
@@ -1,72 +1,60 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
-
5
- <!-- Meta Info (Page Specific) -->
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title><%= content_for?(:title) ? yield(:title) : "PHCNetworks - News & Developer Blog" %></title>
8
-
9
- <!-- Meta Info (All) -->
10
- <%= render 'layouts/components/frontend/seo/all_metainfo' %>
11
-
12
- <!-- Font -->
13
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
14
-
15
- <!-- Requried StyleSheets -->
16
- <%= stylesheet_link_tag "application", media: "all", 'data-turbolinks-track': 'reload' %>
17
-
18
- <!-- Requried JavaScripts -->
19
- <%= javascript_include_tag "application", 'data-turbolinks-track': 'reload' %>
20
-
21
- <!-- Security -->
22
- <%= csrf_meta_tags %>
23
-
24
- </head>
25
-
26
- <body class="enable-animation">
27
-
28
- <div id="slidetop">
29
- <%= render 'layouts/components/frontend/header/slideout' %>
30
- </div>
31
-
32
- <div id="wrapper">
33
-
34
- <div id="topBar">
35
- <%= render 'layouts/components/frontend/header/topbar' %>
36
- </div>
37
-
38
- <div id="header" class="sticky clearfix">
39
- <%= render 'layouts/components/frontend/navigation/navigation' %>
40
- </div>
41
-
42
- <%= yield %>
43
-
44
- <footer id="footer">
45
-
46
- <div class="container">
47
- <div class="row">
48
- <div class="col-md-3">
49
- <%= render 'layouts/components/frontend/footer/footer_address' %>
50
- </div>
51
- <div class="col-md-3">
52
- <%= render 'layouts/components/frontend/footer/footer_newspost' %>
53
- </div>
54
- <div class="col-md-3">
55
- <%= render 'layouts/components/frontend/footer/footer_quicklinks' %>
56
- </div>
57
- <div class="col-md-3">
58
- <%= render 'layouts/components/frontend/footer/footer_socialconnect' %>
59
- </div>
60
- </div>
61
- </div>
62
-
63
- <div class="copyright">
64
- <%= render 'layouts/components/frontend/footer/footer_copyright' %>
65
- </div>
66
-
67
- </footer>
68
-
69
- </div>
70
-
71
- </body>
3
+ <head>
4
+
5
+ <!-- Meta Info -->
6
+ <%= render 'layouts/components/frontend/seo/seo_main' %>
7
+
8
+ <!-- Font -->
9
+ <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
10
+ <!-- Requried StyleSheets -->
11
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
12
+
13
+ <!-- Requried JavaScripts -->
14
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
15
+
16
+ <!-- Security -->
17
+ <%= csrf_meta_tags %>
18
+ <%= csp_meta_tag %>
19
+
20
+ </head>
21
+ <body class="smoothscroll enable-animation">
22
+
23
+ <!-- Start Main Wrapper -->
24
+ <div id="wrapper">
25
+
26
+ <!-- Start Main Navigation -->
27
+ <div id="header" class="navbar-toggleable-md sticky header-md dark clearfix">
28
+
29
+ <%= render 'layouts/components/frontend/navigation/navigation' %>
30
+ </div>
31
+ <!-- End Main Navigation -->
32
+
33
+ <%= yield %>
34
+
35
+ <!-- Start Footer Wrapper -->
36
+ <footer id="footer">
37
+ <div class="container">
38
+ <!-- Start Footer Main Information -->
39
+ <div class="row">
40
+ <%= render 'layouts/components/frontend/footer/footer' %>
41
+ </div>
42
+ <!-- End Footer Main Information -->
43
+ </div>
44
+ <!-- Start Footer Copyright Information -->
45
+ <div class="copyright">
46
+ <%= render 'layouts/components/frontend/footer/footer_copyright' %>
47
+ </div>
48
+ <!-- End Footer Copyright Information -->
49
+ </footer>
50
+ <!-- End Footer Wrapper -->
51
+
52
+ </div>
53
+ <!-- End Main Wrapper -->
54
+
55
+ <!-- Scroll to Top -->
56
+ <a href="#" id="toTop"></a>
57
+ <!-- Scroll to Top -->
58
+
59
+ </body>
72
60
  </html>
@@ -1,76 +1,79 @@
1
1
  <%= form_for(@article_post, :html => {:multipart => true}) do |f| %>
2
- <div class="row">
2
+ <div class="row">
3
+ <div class="col-md-3">
3
4
 
4
- <div class="col-md-3">
5
- <div class="ibox float-e-margins">
6
-
7
- <div class="ibox-title">
8
- <h5>Publish Panel</h5>
5
+ <div class="panel panel-inverse">
6
+ <div class="panel-heading">
7
+ <h4 class="panel-title">Publish Panel</h4>
8
+ </div>
9
+ <div class="panel-body">
10
+ <div class="form-group">
11
+ <%= f.label :pststatus, "Post Status" %>
12
+ <%= f.select( :pststatus, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
9
13
  </div>
10
-
11
- <div class="ibox-content">
12
- <div class="form-group">
13
- <%= f.label :pststatus, "Post Status" %>
14
- <%= f.select( :pststatus, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
15
- </div>
16
- <div class="actions">
17
- <%= f.submit class: "btn btn-primary btn-sm" %>
18
- </div>
14
+ <div class="actions">
15
+ <%= f.submit class: "btn btn-primary waves-effect" %>
19
16
  </div>
20
17
  </div>
18
+ </div>
21
19
 
22
- <div class="ibox float-e-margins">
23
- <div class="ibox-title">
24
- <h5>Post Images</h5>
25
- </div>
26
- <div class="ibox-content">
27
- <div class="form-group">
28
- <%= f.label :pstimage, "Featured Image" %>
29
- <%= f.file_field :pstimage, class: "form-control" %>
30
- </div>
31
- <% if f.object.pstimage? %>
32
- <%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %>
33
- <%= f.label :remove_pstimage %>
34
- <%= f.check_box :remove_pstimage %>
35
- <% end %>
20
+ <div class="panel panel-inverse">
21
+ <div class="panel-heading">
22
+ <h4 class="panel-title">Post Images</h4>
23
+ </div>
24
+ <div class="panel-body">
25
+ <div class="form-group">
26
+ <%= f.label :pstimage, "Featured Image" %>
27
+ <%= f.file_field :pstimage, class: "form-control" %>
36
28
  </div>
29
+ <% if f.object.pstimage? %>
30
+ <%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %>
31
+ <%= f.label :remove_pstimage %>
32
+ <%= f.check_box :remove_pstimage %>
33
+ <% end %>
37
34
  </div>
35
+ </div>
38
36
 
39
- <div class="ibox float-e-margins">
40
- <div class="ibox-title">
41
- <h5>Post Categories</h5>
42
- </div>
43
- <div class="ibox-content">
44
- <div class="form-group">
45
- <%= f.collection_check_boxes :category_ids, Phcpresspro::Modules::Category.all, :id, :catname do |post_category| %>
46
- <%= post_category.check_box %>
47
- <%= post_category.label %></br>
48
- <% end %>
49
- </div>
50
- </div>
37
+ <div class="panel panel-inverse">
38
+ <div class="panel-heading">
39
+ <h4 class="panel-title">Post Categories</h4>
40
+ </div>
41
+ <div class="panel-body">
42
+ <%= f.collection_check_boxes :category_ids, Phcpresspro::Modules::Category.all, :id, :catname do |post_category| %>
43
+ <%= post_category.check_box %>
44
+ <%= post_category.label %></br>
45
+ <% end %>
51
46
  </div>
52
47
  </div>
53
- <div class="col-md-9 ">
54
- <div class="ibox float-e-margins">
55
48
 
56
- <div class="ibox-content">
49
+ </div>
50
+ <div class="col-md-9 ">
57
51
 
58
- <%= render 'phcnotifi/validations', :object => @article_post %>
52
+ <!-- PHCNotifi Render Validation -->
53
+ <%= render 'phcnotifi/validations', :object => @article_post %>
54
+ <!-- PHCNotifi Render Validation -->
59
55
 
60
- <div class="form-group">
61
- <%= f.label :psttext, "News Post Title" %>
62
- <%= f.text_field :psttitle, class: "form-control" %>
63
- </div>
64
- <div class="form-group">
65
- <%= f.label :psttext, "News Post Text" %>
66
- <%= f.text_area :psttext, :class => "tinymce form-control", :rows => 20, :cols => 60 %>
67
- </div>
68
- </div>
56
+ <div class="form-group">
57
+ <%= f.label :psttitle, "Article Title" %>
58
+ <%= f.text_field :psttitle, class: "form-control" %>
59
+ </div>
69
60
 
61
+ <div class="panel panel-inverse">
62
+ <div class="panel-heading">
63
+ <div class="panel-heading-btn">
64
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
65
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
66
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
67
+ </div>
68
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
69
+ </div>
70
+ <div class="panel-body panel-form">
71
+ <div class="form-group">
72
+ <%= f.text_area :psttext, :class => "ckeditor form-control", :id => "editor1", :rows => 20, :cols => 60 %>
73
+ </div>
70
74
  </div>
71
75
  </div>
72
76
 
73
77
  </div>
78
+ </div>
74
79
  <% end %>
75
-
76
- <%= tinymce %>
@@ -5,76 +5,44 @@
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
8
- <!-- Page Header -->
9
- <div class="row wrapper border-bottom white-bg page-heading">
10
- <div class="col-sm-8">
11
- <h2><%= yield(:phc_title) %></h2>
12
- <!-- Bread Crumb -->
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Bread Crumb -->
18
- </div>
19
- <div class="col-sm-4">
20
- <div class="title-action">
21
- <%= link_to phcpresspro.new_article_post_path, class: "btn btn-primary" do %>
22
- <i class="fa fa-plus"></i> Create a New Article
23
- <% end %>
8
+ <!-- Page Content -->
9
+ <div class="panel panel-inverse">
10
+ <div class="panel-heading">
11
+ <div class="panel-heading-btn">
12
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
13
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
14
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
24
15
  </div>
16
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
17
  </div>
26
- </div>
27
- <!-- Page Header -->
28
-
29
- <!-- Page Content -->
30
- <div class="wrapper wrapper-content animated fadeInRight">
31
- <div class="row">
32
- <div class="col-lg-12">
33
-
34
- <div class="ibox float-e-margins">
35
- <div class="ibox-title">
36
- <h5><%= yield(:phc_title_tagline) %></h5>
37
- <div class="ibox-tools">
38
- <a class="collapse-link">
39
- <i class="fa fa-chevron-up"></i>
40
- </a>
41
- <a class="close-link">
42
- <i class="fa fa-times"></i>
43
- </a>
44
- </div>
45
- </div>
46
- <div class="ibox-content">
47
-
48
- <div class="table-responsive">
49
- <table class="table table-striped table-bordered table-hover dataTables-example">
50
- <thead>
51
- <tr>
52
- <th>Post Headline</th>
53
- <th>Post Preview</th>
54
- <th>Post Status</th>
55
- <th></th>
56
- </tr>
57
- </thead>
58
- <tbody>
59
- <% @article_posts.each do |article_post| %>
60
- <tr>
61
- <td><%= article_post.psttitle %></td>
62
- <td><%= truncate(article_post.psttext, :length => 80, :escape => false) %></td>
63
- <td><%= article_post.pststatus.capitalize %></td>
64
- <td><div class="btn-group" role="group" aria-label="Blog Articles">
65
- <%= link_to 'Edit Post', edit_article_post_path(article_post), class: "btn btn-primary btn-xs" %>
66
- <%= link_to 'Trash Post', article_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
67
- </div></td>
68
- </tr>
69
- <% end %>
70
- </tbody>
71
- </table>
72
- </div>
73
-
74
- </div>
75
- </div>
76
-
18
+ <div class="panel-body">
19
+ <!-- Table - Article Index -->
20
+ <div class="table-responsive">
21
+ <table class="table table-striped table-bordered table-hover dataTables-example">
22
+ <thead>
23
+ <tr>
24
+ <th>Post Headline</th>
25
+ <th>Post Preview</th>
26
+ <th>Post Status</th>
27
+ <th></th>
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ <% @article_posts.each do |article_post| %>
32
+ <tr>
33
+ <td><%= article_post.psttitle %></td>
34
+ <td><%= truncate(article_post.psttext, :length => 80, :escape => false) %></td>
35
+ <td><%= article_post.pststatus.capitalize %></td>
36
+ <td><div class="btn-group" role="group" aria-label="Blog Articles">
37
+ <%= link_to 'Edit Post', edit_article_post_path(article_post), class: "btn btn-primary btn-xs" %>
38
+ <%= link_to 'Trash Post', article_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
39
+ </div></td>
40
+ </tr>
41
+ <% end %>
42
+ </tbody>
43
+ </table>
77
44
  </div>
45
+ <!-- Table - Article Index -->
78
46
  </div>
79
47
  </div>
80
48
  <!-- Page Content -->
@@ -5,27 +5,6 @@
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
8
- <!-- Page Header -->
9
- <div class="row wrapper border-bottom white-bg page-heading">
10
- <div class="col-sm-8">
11
- <h2><%= yield(:phc_title) %></h2>
12
- <!-- Bread Crumb -->
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Bread Crumb -->
18
- </div>
19
- <div class="col-sm-4">
20
- <div class="title-action">
21
- <%= link_to phcpresspro.article_posts_path, class: "btn btn-default" do %>
22
- <i class="fa fa fa-arrow-left"></i> Back to Article Index
23
- <% end %>
24
- </div>
25
- </div>
26
- </div>
27
- <!-- Page Header -->
28
-
29
8
  <!-- Page Content -->
30
9
  <div class="wrapper wrapper-content animated fadeInRight">
31
10
  <%= render 'form', article_post: @article_post %>
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "54.0.0"
2
+ VERSION = "55.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpresspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 54.0.0
4
+ version: 55.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -586,9 +586,8 @@ files:
586
586
  - app/models/phcpresspro/post_versions.rb
587
587
  - app/views/layouts/phcpresspro/application.html.erb
588
588
  - app/views/layouts/phcpresspro/components/backend/footer/_footer.html.erb
589
- - app/views/layouts/phcpresspro/components/backend/navigation/_top_bar.html.erb
590
- - app/views/layouts/phcpresspro/components/backend/sidebars/_left_sidebar.html.erb
591
- - app/views/layouts/phcpresspro/components/backend/sidebars/_right_sidebar.html.erb
589
+ - app/views/layouts/phcpresspro/components/backend/navigation/_top_menu.html.erb
590
+ - app/views/layouts/phcpresspro/components/backend/sidebars/_side_menu.html.erb
592
591
  - app/views/layouts/phcpresspro/components/frontend/footer/_footer.html.erb
593
592
  - app/views/layouts/phcpresspro/components/frontend/footer/_footer_copyright.html.erb
594
593
  - app/views/layouts/phcpresspro/components/frontend/header/_slideout.html.erb
@@ -1,10 +0,0 @@
1
- <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
2
- <div class="navbar-header">
3
- <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
4
- </div>
5
- <ul class="nav navbar-top-links navbar-right">
6
- <li class="nav-item">
7
-
8
- </li>
9
- </ul>
10
- </nav>
@@ -1,40 +0,0 @@
1
- <div class="sidebar-collapse">
2
- <ul class="nav metismenu" id="side-menu">
3
-
4
- <li class="nav-header">
5
- <div class="dropdown profile-element">
6
- <%= link_to '#', class: "dropdown-toggle", :data => { :toggle=> 'dropdown'} do %>
7
- <span class="clear">
8
- <span class="block m-t-xs">
9
- <strong class="font-bold"></strong>
10
- </span>
11
- <span class="text-muted text-xs block">User Options <b class="caret"></b>
12
- </span>
13
- </span>
14
- <% end %>
15
- <ul class="dropdown-menu animated fadeInRight m-t-xs">
16
- <li></li>
17
- </ul>
18
- </div>
19
- <div class="logo-element">
20
- PHC
21
- </div>
22
- </li>
23
-
24
- <% if defined?(phcpresspro) %>
25
- <li class="<%= is_active_controller('phcpresspro/article/posts') %> <%= is_active_controller('phcpresspro/modules/categories') %>">
26
- <%= link_to '#' do %>
27
- <i class="fa fa-newspaper-o"></i>
28
- <span class="nav-label">News Posts</span>
29
- <span class="fa arrow"></span>
30
- <% end %>
31
- <ul class="nav nav-second-level collapse">
32
- <li class="<%= is_active_controller('phcpresspro/article/posts') %>"><%= link_to "All Posts", phcpresspro.article_posts_path %></li>
33
- <li class="<%= is_active_controller('phcpresspro/article/posts#new') %>"><%= link_to "Add New", phcpresspro.new_article_post_path %></li>
34
- <li class="<%= is_active_controller('phcpresspro/modules/categories') %>"><%= link_to "Categories", phcpresspro.modules_categories_path %></li>
35
- </ul>
36
- </li>
37
- <% end %>
38
-
39
- </ul>
40
- </div>