phcdevworks_titleseo 3.2.0 → 3.3.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 +20 -20
- data/README.md +93 -93
- data/Rakefile +8 -32
- data/app/helpers/phcdevworks_titleseo/application_helper.rb +87 -87
- data/app/views/phcdevworks_titleseo/_template_2_breadcrumbs.html.erb +2 -2
- data/app/views/phcdevworks_titleseo/_template_3_breadcrumbs.html.erb +3 -3
- data/app/views/phcdevworks_titleseo/_template_seo.html.erb +2 -2
- data/lib/phcdevworks_titleseo/engine.rb +12 -12
- data/lib/phcdevworks_titleseo/version.rb +3 -3
- data/lib/phcdevworks_titleseo.rb +6 -5
- data/lib/tasks/phcdevworks_titleseo_tasks.rake +4 -4
- metadata +14 -18
- data/app/assets/config/phcdevworks_titleseo_manifest.js +0 -3
- data/app/assets/javascripts/phcdevworks_titleseo/application.js +0 -0
- data/app/assets/stylesheets/phcdevworks_titleseo/application.css +0 -15
- data/app/controllers/phcdevworks_titleseo/application_controller.rb +0 -5
- data/app/jobs/phcdevworks_titleseo/application_job.rb +0 -4
- data/app/mailers/phcdevworks_titleseo/application_mailer.rb +0 -6
- data/app/models/phcdevworks_titleseo/application_record.rb +0 -5
- data/app/views/layouts/phcdevworks_titleseo/application.html.erb +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c1effc7a12efc0b5c6d9a13a536827a43b08a49ad10b6001cc98e8fe61b0b9a
|
|
4
|
+
data.tar.gz: 56a0e28905c0fd4eaf81d63072aefe05c25e16bf27f62210db49d82de911da9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26a3813fa4309ba95c31b69fae45aa0b181e1e329b9960a15edab07d88d401fac30f1a17dae51899b6b6b31f87b5460558701f363a6a00eab1b563ee87d2b5c2
|
|
7
|
+
data.tar.gz: 4a1bd0900ed49c9185804a3ca7524a16e296df088799046eb49a4698d11530b9601e0751098228af000684a9f83c9bab073329432738434531b1f85baf18132c
|
data/MIT-LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
Copyright
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Copyright 2021 BradPotts
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
### PHCDevworks Title/SEO for Rails6 (Page SEO, Titles & Title Tags)
|
|
2
|
-
|
|
3
|
-
PHCDevworks Title/SEO Rails6 engine with helpers for page headings, taglines, SEO, Social Media and title tags.
|
|
4
|
-
|
|
5
|
-
* A dynamic way to add different page headings, taglines, SEO and title tags to your layout file.
|
|
6
|
-
* Standardize a template for your serach engine marketing and optimization efforts.
|
|
7
|
-
* Setup in seconds with only one line of code in the application_controller file.
|
|
8
|
-
* Save time and keep your rails projects manageable, multiple views tidy and secure.
|
|
9
|
-
|
|
10
|
-
#### Step 1 - Add PHCDevworks-TitleSEO to your gemfile
|
|
11
|
-
|
|
12
|
-
gem 'phcdevworks_titleseo'
|
|
13
|
-
bundle install
|
|
14
|
-
|
|
15
|
-
#### Step 2 - Load Helpers in the Application's Controller
|
|
16
|
-
Add the line of code below into your app/controllers/application_controller.rb (application's controller file).
|
|
17
|
-
|
|
18
|
-
helper PhcdevworksTitleseo::Engine.helpers
|
|
19
|
-
|
|
20
|
-
#### Step 3 - Provide values for Titles & Subtitles
|
|
21
|
-
|
|
22
|
-
**Page Titles** - At the top of the page, view add the hidden lines of code below.
|
|
23
|
-
|
|
24
|
-
<% phc_title "Example Title" %>
|
|
25
|
-
<% phc_title_tagline "Example Tagline" %>
|
|
26
|
-
|
|
27
|
-
**Page SEO Normail Meta Tags** - At the top of your layout view file add the hidden lines of code below.
|
|
28
|
-
|
|
29
|
-
<% phc_seo_title "Example SEO Page Title" %>
|
|
30
|
-
<% phc_seo_description "Example SEO Page Description" %>
|
|
31
|
-
|
|
32
|
-
**Page SEO Open Graph/Facebook Meta Tags** - At the top of your layout view file add the hidden lines of code below.
|
|
33
|
-
|
|
34
|
-
<% phc_seo_open_graph_type "" %>
|
|
35
|
-
<% phc_seo_open_graph_url "" %>
|
|
36
|
-
<% phc_seo_open_graph_title "" %>
|
|
37
|
-
<% phc_seo_open_graph_description "" %>
|
|
38
|
-
<% phc_seo_open_graph_image "" %>
|
|
39
|
-
|
|
40
|
-
**Page SEO Twitter Meta Tags** - At the top of your layout view file add the hidden lines of code below.
|
|
41
|
-
|
|
42
|
-
<% phc_seo_twitter_type "" %>
|
|
43
|
-
<% phc_seo_twitter_url "" %>
|
|
44
|
-
<% phc_seo_twitter_title "" %>
|
|
45
|
-
<% phc_seo_twitter_description "" %>
|
|
46
|
-
<% phc_seo_twitter_image "" %>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
**Page BreadCrumbs** - At the top of the page, view add the hidden lines of code below.
|
|
50
|
-
|
|
51
|
-
<% phc_breadcrumb_one "Example News" %>
|
|
52
|
-
<% phc_breadcrumb_two "Article" %>
|
|
53
|
-
<% phc_breadcrumb_three "Index" %>
|
|
54
|
-
|
|
55
|
-
#### Add Titles to a Page
|
|
56
|
-
Add the code below in your views whenever page titles are required (can be used unlimited number of times).
|
|
57
|
-
|
|
58
|
-
<%= yield(:phc_title) %>
|
|
59
|
-
|
|
60
|
-
#### Add Subtitles/Title Tags to your Pagefile
|
|
61
|
-
Add the code below to your views whenever page subtitles are required (can also be used an unlimited number of times).
|
|
62
|
-
|
|
63
|
-
<%= yield(:phc_title_tagline) %>
|
|
64
|
-
|
|
65
|
-
#### Add SEO Tags to your Layout file
|
|
66
|
-
|
|
67
|
-
<title><%= yield(:phc_seo_title) %></title>
|
|
68
|
-
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
|
69
|
-
|
|
70
|
-
#### Add Open Graph and Facebook Social Media Tags to your Layout file
|
|
71
|
-
|
|
72
|
-
<meta property="og:type" content="<%= yield(:phc_seo_open_graph_type) %>">
|
|
73
|
-
<meta property="og:url" content="<%= yield(:phc_seo_open_graph_url) %>">
|
|
74
|
-
<meta property="og:title" content="<%= yield(:phc_seo_open_graph_title) %>">
|
|
75
|
-
<meta property="og:description" content="<%= yield(phc_seo_open_graph_description) %>">
|
|
76
|
-
<meta property="og:image" content="<%= yield(:phc_seo_open_graph_image) %>">
|
|
77
|
-
|
|
78
|
-
#### Add Twitter Media Tags to your Layout file
|
|
79
|
-
|
|
80
|
-
<meta property="twitter:card" content="<%= yield(:phc_seo_twitter_type) %>">
|
|
81
|
-
<meta property="twitter:url" content="<%= yield(:phc_seo_twitter_url) %>">
|
|
82
|
-
<meta property="twitter:title" content="<%= yield(:phc_seo_twitter_title) %>">
|
|
83
|
-
<meta property="twitter:description" content="<%= yield(:phc_seo_twitter_description) %>">
|
|
84
|
-
<meta property="twitter:image" content="<%= yield(:phc_seo_twitter_image) %>">
|
|
85
|
-
|
|
86
|
-
#### Add static BreadCrumbs to your Pagefile
|
|
87
|
-
|
|
88
|
-
<ol class="breadcrumb">
|
|
89
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
|
90
|
-
<li><%= yield(:phc_breadcrumb_two) %></li>
|
|
91
|
-
<li class="active"><%= yield(:phc_breadcrumb_three) %></li>
|
|
92
|
-
</ol>
|
|
93
|
-
|
|
1
|
+
### PHCDevworks Title/SEO for Rails6 (Page SEO, Titles & Title Tags) [](https://badge.fury.io/rb/phcdevworks_titleseo)
|
|
2
|
+
|
|
3
|
+
PHCDevworks Title/SEO Rails6 engine with helpers for page headings, taglines, SEO, Social Media and title tags.
|
|
4
|
+
|
|
5
|
+
* A dynamic way to add different page headings, taglines, SEO and title tags to your layout file.
|
|
6
|
+
* Standardize a template for your serach engine marketing and optimization efforts.
|
|
7
|
+
* Setup in seconds with only one line of code in the application_controller file.
|
|
8
|
+
* Save time and keep your rails projects manageable, multiple views tidy and secure.
|
|
9
|
+
|
|
10
|
+
#### Step 1 - Add PHCDevworks-TitleSEO to your gemfile
|
|
11
|
+
|
|
12
|
+
gem 'phcdevworks_titleseo'
|
|
13
|
+
bundle install
|
|
14
|
+
|
|
15
|
+
#### Step 2 - Load Helpers in the Application's Controller
|
|
16
|
+
Add the line of code below into your app/controllers/application_controller.rb (application's controller file).
|
|
17
|
+
|
|
18
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
|
19
|
+
|
|
20
|
+
#### Step 3 - Provide values for Titles & Subtitles
|
|
21
|
+
|
|
22
|
+
**Page Titles** - At the top of the page, view add the hidden lines of code below.
|
|
23
|
+
|
|
24
|
+
<% phc_title "Example Title" %>
|
|
25
|
+
<% phc_title_tagline "Example Tagline" %>
|
|
26
|
+
|
|
27
|
+
**Page SEO Normail Meta Tags** - At the top of your layout view file add the hidden lines of code below.
|
|
28
|
+
|
|
29
|
+
<% phc_seo_title "Example SEO Page Title" %>
|
|
30
|
+
<% phc_seo_description "Example SEO Page Description" %>
|
|
31
|
+
|
|
32
|
+
**Page SEO Open Graph/Facebook Meta Tags** - At the top of your layout view file add the hidden lines of code below.
|
|
33
|
+
|
|
34
|
+
<% phc_seo_open_graph_type "" %>
|
|
35
|
+
<% phc_seo_open_graph_url "" %>
|
|
36
|
+
<% phc_seo_open_graph_title "" %>
|
|
37
|
+
<% phc_seo_open_graph_description "" %>
|
|
38
|
+
<% phc_seo_open_graph_image "" %>
|
|
39
|
+
|
|
40
|
+
**Page SEO Twitter Meta Tags** - At the top of your layout view file add the hidden lines of code below.
|
|
41
|
+
|
|
42
|
+
<% phc_seo_twitter_type "" %>
|
|
43
|
+
<% phc_seo_twitter_url "" %>
|
|
44
|
+
<% phc_seo_twitter_title "" %>
|
|
45
|
+
<% phc_seo_twitter_description "" %>
|
|
46
|
+
<% phc_seo_twitter_image "" %>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
**Page BreadCrumbs** - At the top of the page, view add the hidden lines of code below.
|
|
50
|
+
|
|
51
|
+
<% phc_breadcrumb_one "Example News" %>
|
|
52
|
+
<% phc_breadcrumb_two "Article" %>
|
|
53
|
+
<% phc_breadcrumb_three "Index" %>
|
|
54
|
+
|
|
55
|
+
#### Add Titles to a Page
|
|
56
|
+
Add the code below in your views whenever page titles are required (can be used unlimited number of times).
|
|
57
|
+
|
|
58
|
+
<%= yield(:phc_title) %>
|
|
59
|
+
|
|
60
|
+
#### Add Subtitles/Title Tags to your Pagefile
|
|
61
|
+
Add the code below to your views whenever page subtitles are required (can also be used an unlimited number of times).
|
|
62
|
+
|
|
63
|
+
<%= yield(:phc_title_tagline) %>
|
|
64
|
+
|
|
65
|
+
#### Add SEO Tags to your Layout file
|
|
66
|
+
|
|
67
|
+
<title><%= yield(:phc_seo_title) %></title>
|
|
68
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
|
69
|
+
|
|
70
|
+
#### Add Open Graph and Facebook Social Media Tags to your Layout file
|
|
71
|
+
|
|
72
|
+
<meta property="og:type" content="<%= yield(:phc_seo_open_graph_type) %>">
|
|
73
|
+
<meta property="og:url" content="<%= yield(:phc_seo_open_graph_url) %>">
|
|
74
|
+
<meta property="og:title" content="<%= yield(:phc_seo_open_graph_title) %>">
|
|
75
|
+
<meta property="og:description" content="<%= yield(phc_seo_open_graph_description) %>">
|
|
76
|
+
<meta property="og:image" content="<%= yield(:phc_seo_open_graph_image) %>">
|
|
77
|
+
|
|
78
|
+
#### Add Twitter Media Tags to your Layout file
|
|
79
|
+
|
|
80
|
+
<meta property="twitter:card" content="<%= yield(:phc_seo_twitter_type) %>">
|
|
81
|
+
<meta property="twitter:url" content="<%= yield(:phc_seo_twitter_url) %>">
|
|
82
|
+
<meta property="twitter:title" content="<%= yield(:phc_seo_twitter_title) %>">
|
|
83
|
+
<meta property="twitter:description" content="<%= yield(:phc_seo_twitter_description) %>">
|
|
84
|
+
<meta property="twitter:image" content="<%= yield(:phc_seo_twitter_image) %>">
|
|
85
|
+
|
|
86
|
+
#### Add static BreadCrumbs to your Pagefile
|
|
87
|
+
|
|
88
|
+
<ol class="breadcrumb">
|
|
89
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
|
90
|
+
<li><%= yield(:phc_breadcrumb_two) %></li>
|
|
91
|
+
<li class="active"><%= yield(:phc_breadcrumb_three) %></li>
|
|
92
|
+
</ol>
|
|
93
|
+
|
data/Rakefile
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
11
|
-
rdoc.title = 'PhcdevworksTitleseo'
|
|
12
|
-
rdoc.options << '--line-numbers'
|
|
13
|
-
rdoc.rdoc_files.include('README.md')
|
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
APP_RAKEFILE = File.expand_path("test/test_app/Rakefile", __dir__)
|
|
18
|
-
load 'rails/tasks/engine.rake'
|
|
19
|
-
|
|
20
|
-
load 'rails/tasks/statistics.rake'
|
|
21
|
-
|
|
22
|
-
require 'bundler/gem_tasks'
|
|
23
|
-
|
|
24
|
-
require 'rake/testtask'
|
|
25
|
-
|
|
26
|
-
Rake::TestTask.new(:test) do |t|
|
|
27
|
-
t.libs << 'test'
|
|
28
|
-
t.pattern = 'test/**/*_test.rb'
|
|
29
|
-
t.verbose = false
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
task default: :test
|
|
1
|
+
require "bundler/setup"
|
|
2
|
+
|
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
|
4
|
+
load "rails/tasks/engine.rake"
|
|
5
|
+
|
|
6
|
+
load "rails/tasks/statistics.rake"
|
|
7
|
+
|
|
8
|
+
require "bundler/gem_tasks"
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
module PhcdevworksTitleseo
|
|
2
|
-
module ApplicationHelper
|
|
3
|
-
|
|
4
|
-
# Helpers for Page SEO Meta Tags
|
|
5
|
-
def phc_seo_title(phc_page_title)
|
|
6
|
-
content_for :phc_seo_title, phc_page_title.to_s
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def phc_seo_description(phc_page_description)
|
|
10
|
-
content_for :phc_seo_description, phc_page_description.to_s
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
# Helpers Open Graph and Facebook Meta Tags
|
|
14
|
-
def phc_seo_open_graph_type(phc_page_seo_open_graph_type)
|
|
15
|
-
content_for :phc_seo_open_graph_type, phc_page_seo_open_graph_type.to_s
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def phc_seo_open_graph_url(phc_page_seo_open_graph_url)
|
|
19
|
-
content_for :phc_seo_open_graph_url, phc_page_seo_open_graph_url.to_s
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def phc_seo_open_graph_title(phc_page_seo_open_graph_title)
|
|
23
|
-
content_for :phc_seo_open_graph_title, phc_page_seo_open_graph_title.to_s
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def phc_seo_open_graph_description(phc_page_seo_open_graph_description)
|
|
27
|
-
content_for :phc_seo_open_graph_description, phc_page_seo_open_graph_description.to_s
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def phc_seo_open_graph_image(phc_page_seo_open_graph_image)
|
|
31
|
-
content_for :phc_seo_open_graph_image, phc_page_seo_open_graph_image.to_s
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Helper Twitter Meta Tags
|
|
35
|
-
def phc_seo_twitter_type(phc_page_seo_twitter_type)
|
|
36
|
-
content_for :phc_seo_twitter_type, phc_page_seo_twitter_type.to_s
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def phc_seo_twitter_url(phc_page_seo_twitter_url)
|
|
40
|
-
content_for :phc_seo_twitter_url, phc_page_seo_twitter_url.to_s
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def phc_seo_twitter_title(phc_page_seo_twitter_title)
|
|
44
|
-
content_for :phc_seo_twitter_title, phc_page_seo_twitter_title.to_s
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def phc_seo_twitter_description(phc_page_seo_twitter_description)
|
|
48
|
-
content_for :phc_seo_twitter_description, phc_page_seo_twitter_description.to_s
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
def phc_seo_twitter_image(phc_page_seo_twitter_image)
|
|
52
|
-
content_for :phc_seo_twitter_image, phc_page_seo_twitter_image.to_s
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Helpers for Page Title & Sub Title
|
|
56
|
-
def phc_title(phc_page_title)
|
|
57
|
-
content_for :phc_title, phc_page_title.to_s
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def phc_title_tagline(phc_page_title_tagline)
|
|
61
|
-
content_for :phc_title_tagline, phc_page_title_tagline.to_s
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
# Helpers for BreadCrumbs
|
|
65
|
-
def phc_breadcrumb_one(phc_page_breadcrumb_one)
|
|
66
|
-
content_for :phc_breadcrumb_one, phc_page_breadcrumb_one.to_s
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
def phc_breadcrumb_two(phc_page_breadcrumb_two)
|
|
70
|
-
content_for :phc_breadcrumb_two, phc_page_breadcrumb_two.to_s
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def phc_breadcrumb_three(phc_page_breadcrumb_three)
|
|
74
|
-
content_for :phc_breadcrumb_three, phc_page_breadcrumb_three.to_s
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# Helpers for Buttons
|
|
78
|
-
def phc_button_one(phc_page_button_one)
|
|
79
|
-
content_for :phc_button_one, phc_page_button_one.to_s
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
def phc_button_two(phc_page_button_two)
|
|
83
|
-
content_for :phc_button_two, phc_page_button_two.to_s
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
end
|
|
87
|
-
end
|
|
1
|
+
module PhcdevworksTitleseo
|
|
2
|
+
module ApplicationHelper
|
|
3
|
+
|
|
4
|
+
# Helpers for Page SEO Meta Tags
|
|
5
|
+
def phc_seo_title(phc_page_title)
|
|
6
|
+
content_for :phc_seo_title, phc_page_title.to_s
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def phc_seo_description(phc_page_description)
|
|
10
|
+
content_for :phc_seo_description, phc_page_description.to_s
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Helpers Open Graph and Facebook Meta Tags
|
|
14
|
+
def phc_seo_open_graph_type(phc_page_seo_open_graph_type)
|
|
15
|
+
content_for :phc_seo_open_graph_type, phc_page_seo_open_graph_type.to_s
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def phc_seo_open_graph_url(phc_page_seo_open_graph_url)
|
|
19
|
+
content_for :phc_seo_open_graph_url, phc_page_seo_open_graph_url.to_s
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def phc_seo_open_graph_title(phc_page_seo_open_graph_title)
|
|
23
|
+
content_for :phc_seo_open_graph_title, phc_page_seo_open_graph_title.to_s
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def phc_seo_open_graph_description(phc_page_seo_open_graph_description)
|
|
27
|
+
content_for :phc_seo_open_graph_description, phc_page_seo_open_graph_description.to_s
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def phc_seo_open_graph_image(phc_page_seo_open_graph_image)
|
|
31
|
+
content_for :phc_seo_open_graph_image, phc_page_seo_open_graph_image.to_s
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Helper Twitter Meta Tags
|
|
35
|
+
def phc_seo_twitter_type(phc_page_seo_twitter_type)
|
|
36
|
+
content_for :phc_seo_twitter_type, phc_page_seo_twitter_type.to_s
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def phc_seo_twitter_url(phc_page_seo_twitter_url)
|
|
40
|
+
content_for :phc_seo_twitter_url, phc_page_seo_twitter_url.to_s
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def phc_seo_twitter_title(phc_page_seo_twitter_title)
|
|
44
|
+
content_for :phc_seo_twitter_title, phc_page_seo_twitter_title.to_s
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def phc_seo_twitter_description(phc_page_seo_twitter_description)
|
|
48
|
+
content_for :phc_seo_twitter_description, phc_page_seo_twitter_description.to_s
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def phc_seo_twitter_image(phc_page_seo_twitter_image)
|
|
52
|
+
content_for :phc_seo_twitter_image, phc_page_seo_twitter_image.to_s
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Helpers for Page Title & Sub Title
|
|
56
|
+
def phc_title(phc_page_title)
|
|
57
|
+
content_for :phc_title, phc_page_title.to_s
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def phc_title_tagline(phc_page_title_tagline)
|
|
61
|
+
content_for :phc_title_tagline, phc_page_title_tagline.to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Helpers for BreadCrumbs
|
|
65
|
+
def phc_breadcrumb_one(phc_page_breadcrumb_one)
|
|
66
|
+
content_for :phc_breadcrumb_one, phc_page_breadcrumb_one.to_s
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def phc_breadcrumb_two(phc_page_breadcrumb_two)
|
|
70
|
+
content_for :phc_breadcrumb_two, phc_page_breadcrumb_two.to_s
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def phc_breadcrumb_three(phc_page_breadcrumb_three)
|
|
74
|
+
content_for :phc_breadcrumb_three, phc_page_breadcrumb_three.to_s
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Helpers for Buttons
|
|
78
|
+
def phc_button_one(phc_page_button_one)
|
|
79
|
+
content_for :phc_button_one, phc_page_button_one.to_s
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def phc_button_two(phc_page_button_two)
|
|
83
|
+
content_for :phc_button_two, phc_page_button_two.to_s
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
|
2
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
|
1
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
|
2
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
|
2
|
-
<li><%= yield(:phc_breadcrumb_two) %></li>
|
|
3
|
-
<li class="active"><%= yield(:phc_breadcrumb_three) %></li>
|
|
1
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
|
2
|
+
<li><%= yield(:phc_breadcrumb_two) %></li>
|
|
3
|
+
<li class="active"><%= yield(:phc_breadcrumb_three) %></li>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<title><%= yield(:phc_seo_title) %></title>
|
|
2
|
-
<meta name="description" content=<%= yield(:phc_seo_description) %>"">
|
|
1
|
+
<title><%= yield(:phc_seo_title) %></title>
|
|
2
|
+
<meta name="description" content=<%= yield(:phc_seo_description) %>"">
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
module PhcdevworksTitleseo
|
|
2
|
-
class Engine < ::Rails::Engine
|
|
3
|
-
|
|
4
|
-
# Theme Dependencies
|
|
5
|
-
require "phcthemes_admin_panel_pack"
|
|
6
|
-
require "phcthemes_web_theme_pack"
|
|
7
|
-
|
|
8
|
-
# Plugin Namespace
|
|
9
|
-
isolate_namespace PhcdevworksTitleseo
|
|
10
|
-
|
|
11
|
-
end
|
|
12
|
-
end
|
|
1
|
+
module PhcdevworksTitleseo
|
|
2
|
+
class Engine < ::Rails::Engine
|
|
3
|
+
|
|
4
|
+
# Theme Dependencies
|
|
5
|
+
require "phcthemes_admin_panel_pack"
|
|
6
|
+
require "phcthemes_web_theme_pack"
|
|
7
|
+
|
|
8
|
+
# Plugin Namespace
|
|
9
|
+
isolate_namespace PhcdevworksTitleseo
|
|
10
|
+
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module PhcdevworksTitleseo
|
|
2
|
-
|
|
3
|
-
end
|
|
1
|
+
module PhcdevworksTitleseo
|
|
2
|
+
VERSION = '3.3.0'
|
|
3
|
+
end
|
data/lib/phcdevworks_titleseo.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
require "phcdevworks_titleseo/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
require "phcdevworks_titleseo/version"
|
|
2
|
+
require "phcdevworks_titleseo/engine"
|
|
3
|
+
|
|
4
|
+
module PhcdevworksTitleseo
|
|
5
|
+
# Your code goes here...
|
|
6
|
+
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# desc "Explaining what the task does"
|
|
2
|
-
# task :phcdevworks_titleseo do
|
|
3
|
-
# # Task goes here
|
|
4
|
-
# end
|
|
1
|
+
# desc "Explaining what the task does"
|
|
2
|
+
# task :phcdevworks_titleseo do
|
|
3
|
+
# # Task goes here
|
|
4
|
+
# end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phcdevworks_titleseo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PHCDevworks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -30,28 +30,28 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '4.1'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '4.1'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: phcthemes_web_theme_pack
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '4.1'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '4.1'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: sqlite3
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -69,7 +69,7 @@ dependencies:
|
|
|
69
69
|
description: Rails view helpers making page headings, taglines, seo and title tags
|
|
70
70
|
easier to manage and standardize view coding process.
|
|
71
71
|
email:
|
|
72
|
-
-
|
|
72
|
+
- imfo@phcdevworks.com
|
|
73
73
|
executables: []
|
|
74
74
|
extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
|
@@ -77,15 +77,7 @@ files:
|
|
|
77
77
|
- MIT-LICENSE
|
|
78
78
|
- README.md
|
|
79
79
|
- Rakefile
|
|
80
|
-
- app/assets/config/phcdevworks_titleseo_manifest.js
|
|
81
|
-
- app/assets/javascripts/phcdevworks_titleseo/application.js
|
|
82
|
-
- app/assets/stylesheets/phcdevworks_titleseo/application.css
|
|
83
|
-
- app/controllers/phcdevworks_titleseo/application_controller.rb
|
|
84
80
|
- app/helpers/phcdevworks_titleseo/application_helper.rb
|
|
85
|
-
- app/jobs/phcdevworks_titleseo/application_job.rb
|
|
86
|
-
- app/mailers/phcdevworks_titleseo/application_mailer.rb
|
|
87
|
-
- app/models/phcdevworks_titleseo/application_record.rb
|
|
88
|
-
- app/views/layouts/phcdevworks_titleseo/application.html.erb
|
|
89
81
|
- app/views/phcdevworks_titleseo/_template_2_breadcrumbs.html.erb
|
|
90
82
|
- app/views/phcdevworks_titleseo/_template_3_breadcrumbs.html.erb
|
|
91
83
|
- app/views/phcdevworks_titleseo/_template_seo.html.erb
|
|
@@ -96,7 +88,11 @@ files:
|
|
|
96
88
|
homepage: https://phcdevworks.com/
|
|
97
89
|
licenses:
|
|
98
90
|
- MIT
|
|
99
|
-
metadata:
|
|
91
|
+
metadata:
|
|
92
|
+
allowed_push_host: https://rubygems.org/
|
|
93
|
+
homepage_uri: https://phcdevworks.com/
|
|
94
|
+
source_code_uri: https://github.com/phcdevworks/phcdevworks_notifications
|
|
95
|
+
changelog_uri: https://github.com/phcdevworks/phcdevworks_notifications/releases
|
|
100
96
|
post_install_message:
|
|
101
97
|
rdoc_options: []
|
|
102
98
|
require_paths:
|
|
@@ -112,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
108
|
- !ruby/object:Gem::Version
|
|
113
109
|
version: '0'
|
|
114
110
|
requirements: []
|
|
115
|
-
rubygems_version: 3.
|
|
111
|
+
rubygems_version: 3.2.22
|
|
116
112
|
signing_key:
|
|
117
113
|
specification_version: 4
|
|
118
|
-
summary: PHCDevworks - Helpers -
|
|
114
|
+
summary: PHCDevworks - Helpers - TitleSEO
|
|
119
115
|
test_files: []
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
11
|
-
* It is generally better to create a new file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
<title>PHCDevworks Title/Seo</title>
|
|
6
|
-
<%= csrf_meta_tags %>
|
|
7
|
-
<%= csp_meta_tag %>
|
|
8
|
-
|
|
9
|
-
<%= stylesheet_link_tag "phcdevworks_titleseo/application", media: "all" %>
|
|
10
|
-
<%= javascript_include_tag "phcdevworks_titleseo/application" %>
|
|
11
|
-
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
|
|
15
|
-
<%= yield %>
|
|
16
|
-
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|