phcpress 6.0.0 → 6.1.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
  SHA1:
3
- metadata.gz: ebf81d221c48c760c1c42cb63d339e9a6150b742
4
- data.tar.gz: 8a9b59c8950b863e75779ecacd4b2c6e658c0f50
3
+ metadata.gz: 8d2e76fbfbf4937ae8fa5edfe64d9a4375a8396f
4
+ data.tar.gz: 9d9c09dcbca93240a088391aec78341fbe7942d6
5
5
  SHA512:
6
- metadata.gz: 8658ed6d3b6a6876d98a8931ae286458bf120ae41c0996e1d94696463b37f69fee37e1bb45d8ffc20a070bf0d2167fc0c48603b15fa8fc7e84856ae940fd5f30
7
- data.tar.gz: 65d639834a553a1deeee9cba57507429648f33361424f01c3ba7447e9b42e1e94ba36d55da53e977e9dc966f500ea4b1187f20b0308ab4b3c1144b074b8c3dc8
6
+ metadata.gz: b9f766cae80e65ddefcdaa3c4b03dd8a92a6a3ce40ca6a04856a17bb81a7e25813bac707ed915e6fcdaed104ca2df236c1f1a6077264f11bb635693089297931
7
+ data.tar.gz: b75a8c02cd88def3df7edc92886a75d2b2df83db34763146634194569d03f782a29e1be094a45fc134b99267253790e1518b65108b9b85fe81c7f9a64a1bddf8
data/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  [![Dependency Status](https://gemnasium.com/badges/github.com/PHCNetworks/phc-press.svg)](https://gemnasium.com/github.com/PHCNetworks/phc-press)
4
4
  [![Gem Version](https://badge.fury.io/rb/phcpress.svg)](https://badge.fury.io/rb/phcpress)
5
5
 
6
- ### PHCPress(5) (Blog & News Post Engine) Documentation
7
- PHCPress is a basic open source news & blog engine.
6
+ ### PHCPress(6) (News/Blog Engine) Documentation
7
+ PHCPress is a basic open source news engine.
8
8
 
9
9
  - Website article posts with WYSIWYG editor.
10
10
  - Upload images locally or use cloud services.
@@ -12,7 +12,7 @@ PHCPress is a basic open source news & blog engine.
12
12
 
13
13
  #### Step 1 - Add PHCPress Engine to your gemfile
14
14
 
15
- gem 'phcpress', '~> 5.3', '>= 5.3.8'
15
+ gem 'phcpress', '~> 6.0'
16
16
  bundle install
17
17
 
18
18
  #### Step 2 - Copy over database migration files
@@ -1,4 +1,14 @@
1
1
  module Phcpress
2
2
  module ApplicationHelper
3
+
4
+ # Add Active to Menu
5
+ def is_active_controller(controller_name)
6
+ params[:controller] == controller_name ? "active open selected" : nil
7
+ end
8
+
9
+ def is_active_action(action_name)
10
+ params[:action] == action_name ? "active" : nil
11
+ end
12
+
3
13
  end
4
14
  end
@@ -0,0 +1,4 @@
1
+ <div class="pull-right hidden-xs">
2
+ <b>Version</b> 4.2.7 - OCT-27-<%= Date.today.year %>
3
+ </div>
4
+ <strong>&copy; 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
@@ -0,0 +1,48 @@
1
+ <section class="sidebar">
2
+ <ul class="sidebar-menu">
3
+ <li class="<%= is_active_controller('phcpress/articles/posts') %> treeview">
4
+ <%= link_to "#" do %>
5
+ <i class="fa fa-newspaper-o"></i> <span>Articles</span>
6
+ <span class="pull-right-container">
7
+ <i class="fa fa-angle-left pull-right"></i>
8
+ </span>
9
+ <% end %>
10
+ <ul class="treeview-menu">
11
+ <li class="">
12
+ <%= link_to articles_posts_path do %>
13
+ <i class="fa fa-circle-o"></i>
14
+ Article Index
15
+ <% end %>
16
+ </li>
17
+ <li class="">
18
+ <%= link_to new_articles_post_path do %>
19
+ <i class="fa fa-circle-o"></i>
20
+ New Article
21
+ <% end %>
22
+ </li>
23
+ </ul>
24
+ </li>
25
+ <li class="<%= is_active_controller('phcpress/modules/categories') %> treeview">
26
+ <%= link_to "#" do %>
27
+ <i class="fa fa-sitemap"></i> <span>Categories</span>
28
+ <span class="pull-right-container">
29
+ <i class="fa fa-angle-left pull-right"></i>
30
+ </span>
31
+ <% end %>
32
+ <ul class="treeview-menu">
33
+ <li class="">
34
+ <%= link_to modules_categories_path do %>
35
+ <i class="fa fa-circle-o"></i>
36
+ Category List
37
+ <% end %>
38
+ </li>
39
+ <li class="">
40
+ <%= link_to new_modules_category_path do %>
41
+ <i class="fa fa-circle-o"></i>
42
+ New Category
43
+ <% end %>
44
+ </li>
45
+ </ul>
46
+ </li>
47
+ </ul>
48
+ </section>
@@ -0,0 +1,5 @@
1
+ <!-- Mobile Toggle -->
2
+ <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
3
+ <span class="sr-only">Toggle navigation</span>
4
+ </a>
5
+ <!-- Mobile Toggle -->
@@ -27,21 +27,14 @@
27
27
 
28
28
  <!-- Top Navbar -->
29
29
  <nav class="navbar navbar-static-top">
30
-
31
- <!-- Mobile Toggle -->
32
- <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
33
- <span class="sr-only">Toggle navigation</span>
34
- </a>
35
- <!-- Mobile Toggle -->
36
-
30
+ <%= render 'layouts/components/backend/topbar/topbar' %>
37
31
  </nav>
38
32
  <!-- Top Navbar -->
39
33
 
40
34
  </header>
41
35
 
42
36
  <aside class="main-sidebar">
43
- <section class="sidebar">
44
- </section>
37
+ <%= render 'layouts/components/backend/navigation/navigation' %>
45
38
  </aside>
46
39
 
47
40
  <!-- Page Content -->
@@ -49,16 +42,13 @@
49
42
  <%= yield %>
50
43
  </div>
51
44
  <!-- Page Content -->
52
-
45
+
53
46
  </div>
54
47
  </div>
55
48
 
56
49
  <!-- Footer -->
57
50
  <footer class="main-footer">
58
- <div class="pull-right hidden-xs">
59
- <b>Version</b> 4.2.7 - OCT-27-<%= Date.today.year %>
60
- </div>
61
- <strong>&copy; 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
51
+ <%= render 'layouts/components/backend/footer/footer' %>
62
52
  </footer>
63
53
  <!-- Footer -->
64
54
 
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "6.0.0"
2
+ VERSION = "6.1.0"
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.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2016-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -542,7 +542,7 @@ dependencies:
542
542
  - - ">="
543
543
  - !ruby/object:Gem::Version
544
544
  version: 3.0.1
545
- description: PHCPress(5) is a basic open source news & blog engine.
545
+ description: PHCPress(6) is a basic open source simple news engine.
546
546
  email:
547
547
  - developers@phcnetworks.net
548
548
  executables: []
@@ -562,7 +562,6 @@ files:
562
562
  - app/controllers/phcpress/modules/categories_controller.rb
563
563
  - app/controllers/phcpress/modules/connections_controller.rb
564
564
  - app/helpers/phcpress/application_helper.rb
565
- - app/helpers/phcpress/modules/connections_helper.rb
566
565
  - app/jobs/phcpress/application_job.rb
567
566
  - app/mailers/phcpress/application_mailer.rb
568
567
  - app/models/phcpress/application_record.rb
@@ -572,6 +571,10 @@ files:
572
571
  - app/models/phcpress/modules/category.rb
573
572
  - app/models/phcpress/modules/connection.rb
574
573
  - app/uploaders/phcpress/pstimage_uploader.rb
574
+ - app/views/layouts/components/backend/footer/_footer.html.erb
575
+ - app/views/layouts/components/backend/navigation/_navigation.html.erb
576
+ - app/views/layouts/components/backend/topbar/_topbar.html.erb
577
+ - app/views/layouts/components/backend/topbar/_topbar_links.html.erb
575
578
  - app/views/layouts/phcpress/application.html.erb
576
579
  - app/views/phcpress/articles/posts/_form.html.erb
577
580
  - app/views/phcpress/articles/posts/edit.html.erb
@@ -1,4 +0,0 @@
1
- module Phcpress
2
- module Modules::ConnectionsHelper
3
- end
4
- end