phcdevworks_titleseo 3.2.3 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +93 -93
- data/Rakefile +8 -8
- 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 -6
- data/lib/tasks/phcdevworks_titleseo_tasks.rake +4 -4
- metadata +7 -7
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 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.
|
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) [![Gem Version](https://badge.fury.io/rb/phcdevworks_titleseo.svg)](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,8 +1,8 @@
|
|
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
|
+
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
|
-
VERSION = '3.
|
3
|
-
end
|
1
|
+
module PhcdevworksTitleseo
|
2
|
+
VERSION = '3.3.0'
|
3
|
+
end
|
data/lib/phcdevworks_titleseo.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require "phcdevworks_titleseo/version"
|
2
|
-
require "phcdevworks_titleseo/engine"
|
3
|
-
|
4
|
-
module PhcdevworksTitleseo
|
5
|
-
# Your code goes here...
|
6
|
-
end
|
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: 2021-
|
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: '4.
|
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: '4.
|
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: '4.
|
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: '4.
|
54
|
+
version: '4.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.2.22
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: PHCDevworks - Helpers - TitleSEO
|