Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage #1236

Merged
merged 326 commits into from
Jun 4, 2024
Merged

Stage #1236

Changes from 1 commit
Commits
Show all changes
326 commits
Select commit Hold shift + click to select a range
c3550c7
width
tronsymphony Mar 29, 2024
d5ac9ed
Merge branch 'develop' into dev/link-tiles
tronsymphony Mar 29, 2024
94f3ff8
Merge pull request #1120 from equalizedigital/dev/link-tiles
tronsymphony Mar 29, 2024
93a7521
header
tronsymphony Mar 29, 2024
6f12b8a
Merge pull request #1121 from equalizedigital/dev/link-tiles
tronsymphony Mar 29, 2024
7caddf8
video
tronsymphony Mar 29, 2024
df67239
Merge branch 'develop' into dev/Video-Hero
tronsymphony Mar 29, 2024
2512436
Merge pull request #1122 from equalizedigital/dev/Video-Hero
tronsymphony Mar 29, 2024
ff6f493
theme.json
tronsymphony Mar 29, 2024
3486f38
Merge pull request #1123 from equalizedigital/dev/theme.json
tronsymphony Mar 29, 2024
4e48d8d
update name
tronsymphony Apr 1, 2024
7316e83
enque
tronsymphony Apr 1, 2024
dd1c4df
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 1, 2024
aae9889
Merge pull request #1124 from equalizedigital/dev/video-carousel
tronsymphony Apr 1, 2024
78bf1ef
update list
tronsymphony Apr 1, 2024
26eac63
Merge branch 'develop' into dev/link-tiles
tronsymphony Apr 1, 2024
4c12b14
Merge pull request #1125 from equalizedigital/dev/link-tiles
tronsymphony Apr 1, 2024
a2c4714
author image
tronsymphony Apr 1, 2024
c9077bc
Merge pull request #1126 from equalizedigital/dev/physician-page
tronsymphony Apr 1, 2024
89946c4
remove # link animation speed
tronsymphony Apr 1, 2024
6651e3b
Merge pull request #1127 from equalizedigital/dev/physician-page
tronsymphony Apr 1, 2024
657755f
scroll to
tronsymphony Apr 1, 2024
b77df55
Merge pull request #1128 from equalizedigital/dev/physician-page
tronsymphony Apr 1, 2024
b5dee2e
video
tronsymphony Apr 1, 2024
359767b
Merge branch 'develop' into dev/Video-Hero
tronsymphony Apr 1, 2024
9c42aa4
Merge pull request #1129 from equalizedigital/dev/Video-Hero
tronsymphony Apr 1, 2024
db269a4
responsinve
tronsymphony Apr 1, 2024
3a2beba
Merge pull request #1130 from equalizedigital/dev/Video-Hero
tronsymphony Apr 1, 2024
1aa34e1
carousekl
tronsymphony Apr 1, 2024
01326f5
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 1, 2024
603a912
Merge pull request #1131 from equalizedigital/dev/video-carousel
tronsymphony Apr 1, 2024
18cf464
pricing block
tronsymphony Apr 3, 2024
36b6749
carousel
tronsymphony Apr 3, 2024
9bb5cc2
Merge pull request #1132 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
9386a58
video hero
tronsymphony Apr 3, 2024
90efcdd
Merge branch 'develop' into dev/Video-Hero
tronsymphony Apr 3, 2024
65232ca
Merge pull request #1133 from equalizedigital/dev/Video-Hero
tronsymphony Apr 3, 2024
b4f297b
Create single-slp_profession.php
tronsymphony Apr 3, 2024
952fef9
author info
tronsymphony Apr 3, 2024
c4794f2
Merge pull request #1134 from equalizedigital/dev/professions
tronsymphony Apr 3, 2024
bae7cec
menu
tronsymphony Apr 3, 2024
88f6a3c
Merge pull request #1135 from equalizedigital/dev/menu
tronsymphony Apr 3, 2024
e16e2df
cta
tronsymphony Apr 3, 2024
9bd2331
Merge pull request #1136 from equalizedigital/dev/menu
tronsymphony Apr 3, 2024
119f013
physican page
tronsymphony Apr 3, 2024
64a362d
Merge pull request #1137 from equalizedigital/dev/professions
tronsymphony Apr 3, 2024
783afac
modal margin
tronsymphony Apr 3, 2024
a089d05
Merge branch 'develop' into dev/professions
tronsymphony Apr 3, 2024
b313f5d
Merge pull request #1138 from equalizedigital/dev/professions
tronsymphony Apr 3, 2024
70cbe45
carousel number
tronsymphony Apr 3, 2024
ec928e0
Merge pull request #1139 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
7be212a
label
tronsymphony Apr 3, 2024
e910501
Merge pull request #1140 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
19d9f98
width
tronsymphony Apr 3, 2024
eb16e05
Merge pull request #1141 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
41f8aec
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 3, 2024
2dfb480
PRICING
tronsymphony Apr 4, 2024
64c7c29
Merge pull request #1142 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
9f1ec4c
slp
tronsymphony Apr 4, 2024
b059fb4
Merge pull request #1143 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
4ab5317
pricing
tronsymphony Apr 4, 2024
82325b9
Merge pull request #1144 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
8d19c2e
pressed
tronsymphony Apr 4, 2024
fba5345
Merge pull request #1145 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
98a2dfb
pricing block
tronsymphony Apr 4, 2024
2a13e1c
Merge pull request #1146 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
c614c59
title override
tronsymphony Apr 4, 2024
a557a76
Merge pull request #1147 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
5f25062
carousel
tronsymphony Apr 4, 2024
6fe2bcc
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 4, 2024
ef4e797
Merge pull request #1148 from equalizedigital/dev/video-carousel
tronsymphony Apr 4, 2024
ab74402
pricing
tronsymphony Apr 4, 2024
ccae4e7
Merge pull request #1149 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
5b8e085
border
tronsymphony Apr 4, 2024
ab6a793
Merge pull request #1150 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
9773fee
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 4, 2024
66f3eac
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 4, 2024
dcb434d
Merge pull request #1151 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
ecd71b6
carousel
tronsymphony Apr 4, 2024
d91c801
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 5, 2024
a1c216e
Merge pull request #1152 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
421859c
slides
tronsymphony Apr 5, 2024
2b8b8a8
Merge pull request #1153 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
763542e
carousel
tronsymphony Apr 5, 2024
cf97d99
Merge pull request #1154 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
8b868f4
load
tronsymphony Apr 5, 2024
fe43fba
Merge pull request #1155 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
1f510c6
swiper
tronsymphony Apr 5, 2024
966c1a6
Merge pull request #1156 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
0266c09
spacing
tronsymphony Apr 5, 2024
f00f3aa
#625089CC
tronsymphony Apr 5, 2024
9ec9cd9
Merge pull request #1157 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
73d81de
10px
tronsymphony Apr 5, 2024
086f3f6
Merge pull request #1158 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
59f59b5
pricing
tronsymphony Apr 5, 2024
2445151
Merge pull request #1159 from equalizedigital/dev/pricing-block
tronsymphony Apr 5, 2024
ed3824f
team block fix
tronsymphony Apr 5, 2024
2684ffc
Merge pull request #1160 from equalizedigital/dev/team-block-fix
tronsymphony Apr 5, 2024
9135db4
greater than
tronsymphony Apr 5, 2024
234f546
Merge pull request #1161 from equalizedigital/dev/team-block-fix
tronsymphony Apr 5, 2024
dfd815b
carousel disable click
tronsymphony Apr 5, 2024
74d38f1
Merge pull request #1162 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
8c8d317
carousel
tronsymphony Apr 8, 2024
69b4e55
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 8, 2024
4ac5124
Merge pull request #1164 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
4387d1b
container-focused-class
tronsymphony Apr 8, 2024
6d3f032
Merge pull request #1165 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
5328a59
nav
tronsymphony Apr 8, 2024
9f4b337
Merge pull request #1166 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
98b0878
profession
tronsymphony Apr 8, 2024
41aaf41
Merge pull request #1167 from equalizedigital/dev/professions
tronsymphony Apr 8, 2024
994c2e1
check
tronsymphony Apr 8, 2024
47dd014
Merge pull request #1168 from equalizedigital/dev/professions
tronsymphony Apr 8, 2024
15a17df
div
tronsymphony Apr 8, 2024
aad1416
Merge pull request #1169 from equalizedigital/dev/professions
tronsymphony Apr 8, 2024
cc94eb3
carousel
tronsymphony Apr 8, 2024
3eb7708
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 8, 2024
85bf176
Merge pull request #1171 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
fe9ff63
speed
tronsymphony Apr 8, 2024
cf284e8
Merge pull request #1172 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
646af05
screen reader
tronsymphony Apr 8, 2024
9ce943d
spacing
tronsymphony Apr 8, 2024
b7c4825
Merge pull request #1173 from equalizedigital/dev/pricing-block
tronsymphony Apr 8, 2024
a1699ec
test
tronsymphony Apr 8, 2024
8866474
Merge pull request #1174 from equalizedigital/dev/pricing-block
tronsymphony Apr 8, 2024
dc4f2a9
spacing
tronsymphony Apr 8, 2024
9784f65
Merge pull request #1175 from equalizedigital/dev/pricing-block
tronsymphony Apr 8, 2024
688649e
Merge branch 'master' into develop
tronsymphony Apr 9, 2024
9802bc6
merge master to dev
tronsymphony Apr 9, 2024
eac49e0
Update author.php
tronsymphony Apr 11, 2024
17bc797
Merge pull request #1177 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
0e81cbe
author
tronsymphony Apr 11, 2024
5a85b8c
Merge pull request #1178 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
af46c1b
author
tronsymphony Apr 11, 2024
e9dbb78
Merge pull request #1179 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
14fa75d
author page
tronsymphony Apr 11, 2024
66ec064
Merge pull request #1180 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
3d3420f
image quality
tronsymphony Apr 15, 2024
5a2984f
Merge pull request #1181 from equalizedigital/dev/profession
tronsymphony Apr 15, 2024
b7298e8
imgae size
tronsymphony Apr 15, 2024
bc34025
Merge pull request #1182 from equalizedigital/dev/profession
tronsymphony Apr 15, 2024
f0a06f3
responsive
tronsymphony Apr 15, 2024
e2cfbde
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 15, 2024
1328e3a
Merge pull request #1183 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
af631ad
minw
tronsymphony Apr 15, 2024
aaf20d8
Merge pull request #1184 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
cb685cf
cc
tronsymphony Apr 15, 2024
137d84a
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 15, 2024
a3f8fd7
Merge pull request #1185 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
263b178
pipe
tronsymphony Apr 15, 2024
135df71
Merge pull request #1186 from equalizedigital/dev/testimonial
tronsymphony Apr 15, 2024
8198d41
error
tronsymphony Apr 15, 2024
64b4618
Merge pull request #1187 from equalizedigital/dev/testimonial
tronsymphony Apr 15, 2024
4076fb8
li
tronsymphony Apr 15, 2024
0d1db7b
Merge pull request #1188 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
c68c637
author line
tronsymphony Apr 15, 2024
b556f7e
Merge pull request #1189 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
d6788a8
escape
tronsymphony Apr 15, 2024
86f4f3d
Merge pull request #1190 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
0f0efc5
auto p
tronsymphony Apr 15, 2024
97ededf
Merge pull request #1191 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
d167ad9
clean p tag
tronsymphony Apr 15, 2024
5215984
Merge pull request #1192 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
1d098a8
pricing
tronsymphony Apr 15, 2024
85c556b
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 15, 2024
2719c6c
Merge pull request #1193 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
8492ffa
carousel cc
tronsymphony Apr 16, 2024
fa79c67
Merge pull request #1194 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
26e2655
focus
tronsymphony Apr 16, 2024
6cd8d45
width
tronsymphony Apr 16, 2024
2f9f29c
Merge pull request #1195 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
b98dec7
tabbing
tronsymphony Apr 16, 2024
0ddadb6
Merge pull request #1196 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
fac6d23
focus fix
tronsymphony Apr 16, 2024
ad1d28a
Merge pull request #1197 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
d2c43fd
tagname
tronsymphony Apr 16, 2024
2d6710c
Merge pull request #1198 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
33d1e89
btn
tronsymphony Apr 16, 2024
2c28298
Merge pull request #1199 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
3fff24c
test
tronsymphony Apr 16, 2024
92b58d9
Merge pull request #1200 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
430ec77
cache
tronsymphony Apr 16, 2024
71ee0ed
Merge pull request #1201 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
d3d34d3
alt
tronsymphony Apr 16, 2024
e12feb5
Merge pull request #1202 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
a9869f9
fixes - automatic PHPCS issues with phpcbf
SteveJonesDev Apr 16, 2024
f11ce9e
Merge pull request #1203 from equalizedigital/SteveJonesDev/auto-lint…
SteveJonesDev Apr 16, 2024
87ce39c
updated - wpforms font sizes
SteveJonesDev May 2, 2024
42c14c3
Merge pull request #1232 from equalizedigital/SteveJonesDev/issue1215
SteveJonesDev May 2, 2024
4923ea3
updated - build
SteveJonesDev May 2, 2024
5e8f838
updated - font weight
SteveJonesDev May 2, 2024
665a652
uncached codekit
SteveJonesDev May 2, 2024
8e0d926
Merge branch 'develop' into SteveJonesDev/issue1215
SteveJonesDev May 2, 2024
4461aa1
updated - font weight to be important
SteveJonesDev May 2, 2024
d274650
updated - pricing calculator link and button display to inline-block …
SteveJonesDev May 2, 2024
af569ac
fixed - check for sub menu name before output
SteveJonesDev May 2, 2024
e6ee5a9
added - dashicons enque #1208
SteveJonesDev May 2, 2024
6f50a1c
fixed - pricing calculator button capitalization, fixes #1207
SteveJonesDev May 2, 2024
2e22f5b
removed - site title logo background image #1219
SteveJonesDev May 2, 2024
158f3bd
removed - testimonial slider review button fallback #1220
SteveJonesDev May 2, 2024
17f698e
remvoed - video carousel controlsList attribute equal to nodownload #…
SteveJonesDev May 3, 2024
18f20fc
added - fullscreen video javascript styles #1229
SteveJonesDev May 3, 2024
31bb656
updated - video fullscreen js styles #1229
SteveJonesDev May 3, 2024
17ffd37
updated - video fullscreen js to check for standard fullscreen event …
SteveJonesDev May 3, 2024
85f06ea
updated - build
SteveJonesDev May 3, 2024
c9ae7b3
updated - fullscreen change handler with debug #1229
SteveJonesDev May 3, 2024
46cfacc
updated - fullscreen video change debug #1229
SteveJonesDev May 3, 2024
b60e9e7
updated - fullscreen change handler with video selector
SteveJonesDev May 3, 2024
3dbda92
removed - fullscreen change listeners #1229
SteveJonesDev May 3, 2024
0fe912e
update - video carousel to contain object fit #1229
SteveJonesDev May 3, 2024
120160f
updated - inline-logo-heading img #1209
SteveJonesDev May 7, 2024
386ced2
updated - build
SteveJonesDev May 7, 2024
f6be285
updated - inline-logo-heading img size
SteveJonesDev May 7, 2024
10f720b
added - video block debug
SteveJonesDev May 7, 2024
544da58
added - video debug
SteveJonesDev May 7, 2024
1b15b2f
commented out all video pauses
SteveJonesDev May 7, 2024
d70e122
added video pauses back
SteveJonesDev May 7, 2024
53e7e67
moved - swiper enqueue
SteveJonesDev May 7, 2024
22fa688
updated - spacing
SteveJonesDev May 7, 2024
904b1bc
updated - video carousel to scope only to child video elements #1212
SteveJonesDev May 7, 2024
580be93
fixed - WPCS errors and warnings
SteveJonesDev May 7, 2024
4ad8448
fixed - WPCS errors and warnings
SteveJonesDev May 8, 2024
328a443
updated - workflow
SteveJonesDev May 8, 2024
5477eef
updated - workflows
SteveJonesDev May 8, 2024
8e7c8b9
updated - lint js workflow
SteveJonesDev May 8, 2024
30076e5
fixed - primary navigation output
SteveJonesDev May 8, 2024
8ad6df0
updated - video carousel next and prev button styles
SteveJonesDev May 9, 2024
6ace0b7
updated - styles to be compressed
SteveJonesDev May 14, 2024
47bd6c7
added - alt attribute to hero image
SteveJonesDev May 14, 2024
2e2f2eb
added - missing alt attribute and aria-hidden attribute to resource l…
SteveJonesDev May 22, 2024
120ae06
added - aria-label to tabs scroll button
SteveJonesDev May 22, 2024
520413e
fixed - phpcs
SteveJonesDev May 22, 2024
da40871
Merge pull request #1234 from equalizedigital/SteveJonesDev/a11y-fixes
SteveJonesDev May 22, 2024
51fc6e1
Merge pull request #1235 from equalizedigital/develop
SteveJonesDev May 22, 2024
d020663
added - missing alt and aria-hidden
SteveJonesDev May 22, 2024
0e2db52
Merge branch 'develop' into stage
SteveJonesDev May 22, 2024
7dd7dff
added - a11y fixes
SteveJonesDev May 23, 2024
83e920f
Merge branch 'develop' into stage
SteveJonesDev May 23, 2024
88bccdd
fixed - resouce liinks tab panel output if type_of_button is set to link
SteveJonesDev May 23, 2024
46cd316
Merge branch 'develop' into stage
SteveJonesDev May 23, 2024
37ae07c
fixed - link text escaping function
SteveJonesDev May 23, 2024
4da4797
Merge branch 'develop' into stage
SteveJonesDev May 23, 2024
46a01f7
updated - escaping functions
SteveJonesDev May 24, 2024
06a667b
fixed - buyline escape function
SteveJonesDev May 30, 2024
bd63031
added - post single hero and modified date changes from the live server
SteveJonesDev Jun 3, 2024
735512c
updated - the advertising discloure section with change from live server
SteveJonesDev Jun 3, 2024
2e5aa9a
updated -single post sections order based on changes made on the live…
SteveJonesDev Jun 3, 2024
f62df2c
removed - rouge code that existed on live server
SteveJonesDev Jun 3, 2024
5cf66d8
removed - else br tag
SteveJonesDev Jun 3, 2024
33e3cd7
fixed - wpcs
SteveJonesDev Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed - WPCS errors and warnings
  • Loading branch information
SteveJonesDev committed May 8, 2024
commit 4ad844826daf4de1d22a872f3b5fab110121fa4c
66 changes: 35 additions & 31 deletions archive.php
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ function eqd_archive_body_class( $classes ) {
function eqd_archive_header() {

$title = false;
$subtitle = false;
$subtitle = false; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving for future use.
$description = false;

if ( is_author() ) {
@@ -93,7 +93,7 @@ function eqd_archive_recommended_post() {

<?php
if ( is_tax() ) {
echo 'Recommended Resources for ' . $term->name;
echo 'Recommended Resources for ' . esc_html( $term->name );
} else {
echo 'Featured articles';
}
@@ -105,13 +105,13 @@ function eqd_archive_recommended_post() {
$args = array(
'post__in' => $post_recommened,
'post_type' => 'post',
'orderby' => 'post__in', // This will preserve the order of IDs as you provided
'posts_per_page' => -1, // Get all posts matching the criteria
'orderby' => 'post__in', // phpcs:ignore WordPress.VIP.PostsPerPage.posts_per_page_posts_per_page -- This will preserve the order of IDs as you provided.
'posts_per_page' => -1, // Get all posts matching the criteria.
);

$the_query = new WP_Query( $args );

// The Loop
// The Loop.
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
@@ -120,7 +120,7 @@ function eqd_archive_recommended_post() {
<figure>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail(); // This will output the featured image with default settings
the_post_thumbnail(); // This will output the featured image with default settings.
}
?>
<?php
@@ -135,7 +135,7 @@ function eqd_archive_recommended_post() {
?>
</figure>
<div class="date">
<?php echo get_the_date(); // This will output the date the post was published ?>
<?php echo get_the_date(); // This will output the date the post was published. ?>
</div>
<h3 class="title"><?php echo wp_kses_post( get_the_title() ); ?></h3>
<div class="author">
@@ -151,10 +151,9 @@ function eqd_archive_recommended_post() {

<?php
}
/* Restore original Post Data */
wp_reset_postdata();
} else {
// No posts found
// No posts found.
echo 'No posts found';
}
?>
@@ -166,36 +165,41 @@ function eqd_archive_recommended_post() {
}
add_action( 'tha_content_before_container', 'eqd_archive_recommended_post' );

/**
* Archive Recommended CTA.
*
* @return void
*/
function eqd_archive_recommended_cta() {
$term = get_queried_object();
$cta = get_field( 'cta', $term );

if ( $cta ) :
if ( ! is_paged() ) :
?>
<section class="archive_cta">
<div class="archive_cta_container">
<?php if ( ! empty( $cta['image'] ) ) : ?>
<div class="archive_cta_container_figure">
<img src="<?php echo wp_kses_post( $cta['image']['url'] ); ?>" alt="<?php echo wp_kses_post( $cta['title'] ); ?>">
</div>
<?php endif; ?>
<?php if ( ! empty( $cta['title'] ) ) : ?>
<div class="archive_cta_container_copy">
<h2 class="title"><?php echo wp_kses_post( $cta['title'] ); ?></h2>
<div class="copy">
<?php echo wp_kses_post( $cta['copy'] ); ?>
</div>
<div class="form">
<?php echo do_shortcode( $cta['form_code'] ); ?>
</div>
</div>
<?php endif; ?>
</div>
</section>
<section class="archive_cta">
<div class="archive_cta_container">
<?php if ( ! empty( $cta['image'] ) ) : ?>
<div class="archive_cta_container_figure">
<img src="<?php echo wp_kses_post( $cta['image']['url'] ); ?>" alt="<?php echo wp_kses_post( $cta['title'] ); ?>">
</div>
<?php endif; ?>
<?php if ( ! empty( $cta['title'] ) ) : ?>
<div class="archive_cta_container_copy">
<h2 class="title"><?php echo wp_kses_post( $cta['title'] ); ?></h2>
<div class="copy">
<?php echo wp_kses_post( $cta['copy'] ); ?>
</div>
<div class="form">
<?php echo do_shortcode( $cta['form_code'] ); ?>
</div>
</div>
<?php endif; ?>
</div>
</section>
<?php
endif;
endif;
endif;
endif;
}
add_action( 'tha_content_before_container', 'eqd_archive_recommended_cta' );

35 changes: 29 additions & 6 deletions comments.php
Original file line number Diff line number Diff line change
@@ -17,11 +17,23 @@
return;
}

/**
* Has children.
*
* @param int $comment_id The comment ID.
* @return boolean
*/
function has_children( $comment_id ) {
$children = get_comments( array( 'parent' => $comment_id ) );
return ! empty( $children );
}

/**
* Add class to comment with children.
*
* @param array $classes The comment classes.
* @return array
*/
function add_class_to_comment_with_children( $classes ) {
global $comment;
if ( has_children( $comment->comment_ID ) ) {
@@ -32,7 +44,15 @@ function add_class_to_comment_with_children( $classes ) {
add_filter( 'comment_class', 'add_class_to_comment_with_children' );

if ( ! function_exists( 'comments_callback' ) ) :


/**
* Comments callback.
*
* @param string $comment The comment.
* @param array $args The arguments.
* @param int $depth The depth.
* @return void
*/
function comments_callback( $comment, $args, $depth ) {
?>

@@ -41,19 +61,22 @@ function comments_callback( $comment, $args, $depth ) {
<div class="comment-container">
<div class="comment-author">
<div class="comment-authorimg">
<img src="<?php echo get_avatar_url( $comment->user_id, 32 ); ?>" alt="">
<img src="<?php echo esc_url( get_avatar_url( $comment->user_id, 32 ) ); ?>" alt="">
</div>
<div class="author-info">
<strong><?php echo get_comment_author(); ?></strong>
<strong><?php echo esc_html( get_comment_author() ); ?></strong>
<span class="date align-right">
<?php printf( esc_html__( '%1$s at %2$s', '5balloons_theme' ), get_comment_date(), get_comment_time( 'g:i A' ) ); ?>
<?php
/* translators: 1: comment date, 2: comment time */
printf( esc_html__( '%1$s at %2$s', 'eqd' ), esc_html( get_comment_date() ), esc_html( get_comment_time( 'g:i A' ) ) );
?>
</span>
</div>
</div>

<div class="comment-block">
<?php if ( $comment->comment_approved === '0' ) : ?>
<em><?php esc_html_e( 'Your comment is awaiting moderation.', '5balloons_theme' ); ?></em>
<?php if ( '0' === $comment->comment_approved ) : ?>
<em><?php esc_html_e( 'Your comment is awaiting moderation.', 'eqd' ); ?></em>
<?php endif; ?>

<span class="comment-by">
53 changes: 33 additions & 20 deletions functions.php
Original file line number Diff line number Diff line change
@@ -313,17 +313,16 @@ function eqd_template_hierarchy( $template ) {
*
* @return array The modified query arguments.
*/
function npp_custom_acf_post_object_query( $args, $field, $post_id ) {
function eqd_custom_acf_post_object_query( $args, $field, $post_id ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed, VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- ACF hook.
// Check if the field being queried is named 'recommended_posts'.
if ( $field['name'] === 'recommended_posts' ) {
if ( 'recommended_posts' === $field['name'] ) {
// Modify the query to search for post titles only.
$args['post_type'] = 'post';
// $args['s'] = ''; // Clear any previous search query.
$args['post_type'] = 'post';
$args['search_columns'] = array( 'post_title' );
}
return $args;
}
add_filter( 'acf/fields/post_object/query', 'npp_custom_acf_post_object_query', 10, 3 );
add_filter( 'acf/fields/post_object/query', 'eqd_custom_acf_post_object_query', 10, 3 );

/**
* Filters the query arguments for the 'recommendedfeatured_posts' ACF Post Object field.
@@ -336,7 +335,7 @@ function npp_custom_acf_post_object_query( $args, $field, $post_id ) {
*
* @return array Modified query arguments.
*/
function npp_filter_post_object_query( $args, $field, $post_id ) {
function eqd_filter_post_object_query( $args, $field, $post_id ) {
// Check if this is the specific field we want to modify.
if ( 'recommendedfeatured_posts' === $field['name'] ) {

@@ -347,7 +346,7 @@ function npp_filter_post_object_query( $args, $field, $post_id ) {

// Check if term belongs to the specified taxonomies.
if ( $term instanceof WP_Term && in_array( $term->taxonomy, array( 'category', 'post_tag', 'slp_occupation' ), true ) ) {
$args['tax_query'] = array(
$args['tax_query'] = array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query -- This is a necessary query.
array(
'taxonomy' => $term->taxonomy,
'field' => 'term_id',
@@ -361,30 +360,44 @@ function npp_filter_post_object_query( $args, $field, $post_id ) {

return $args;
}
add_filter( 'acf/fields/post_object/query', 'npp_filter_post_object_query', 10, 3 );
add_filter( 'acf/fields/post_object/query', 'eqd_filter_post_object_query', 10, 3 );

function modify_post_object_query( $args, $field, $post_id ) {
// Check if the parent block is 'acf/recommended-posts-block'
if ( isset( $field['parent'] ) && $field['parent'] === 'block_acf/recommended-posts-block' ) {
// If there's a search term, modify the query to search by title only
/**
* Modify the query for the 'recommended_posts' field to search by title only.
*
* @param array $args The original query arguments.
* @param array $field Information about the ACF field.
* @param int $post_id The ID of the current post being edited, if applicable.
* @return array
*/
function eqd_modify_post_object_query( $args, $field, $post_id ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed, VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
// Check if the parent block is 'acf/recommended-posts-block'.
if ( isset( $field['parent'] ) && 'block_acf/recommended-posts-block' === $field['parent'] ) {
// If there's a search term, modify the query to search by title only.
if ( isset( $args['s'] ) ) {
// Set search term to a variable
// Set search term to a variable.
$search_term = $args['s'];

// Modify the query
unset( $args['s'] ); // Remove default search
$args['post_title_like'] = $search_term; // Add title search
// Modify the query.
unset( $args['s'] ); // Remove default search.
$args['post_title_like'] = $search_term; // Add title search.
}
}

// Return the modified arguments
return $args;
}
add_filter( 'acf/fields/post_object/query', 'modify_post_object_query', 10, 3 );
add_filter( 'acf/fields/post_object/query', 'eqd_modify_post_object_query', 10, 3 );

/**
* This function modifies the query for the 'recommended_posts' field to search by title only.
*
* @param string $where The original WHERE clause.
* @param object $wp_query The WP_Query object.
* @return string
*/
function title_like_posts_where( $where, $wp_query ) {
global $wpdb;
if ( $post_title_like = $wp_query->get( 'post_title_like' ) ) {
$post_title_like = $wp_query->get( 'post_title_like' );
if ( $post_title_like ) {
$where .= ' AND ' . $wpdb->posts . '.post_title LIKE \'' . esc_sql( $wpdb->esc_like( $post_title_like ) ) . '%\'';
}
return $where;
33 changes: 16 additions & 17 deletions header.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

/**
* Site Header
* Site Header.
*
* @package Equalize Digital Base Theme
* @author Equalize Digital
* @since 1.0.0
* @license GPL-2.0+
**/

?>

<!DOCTYPE html>
@@ -23,7 +23,7 @@
</head>

<?php
$featured_press_classes = is_post_type_archive( 'eqd-featured-press' ) ? 'press-archive-page' : '';
$featured_press_classes = is_post_type_archive( 'eqd-featured-press' ) ? 'press-archive-page' : ''; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving for future use.
$body_classes = implode( ' ', get_body_class() );

if ( is_post_type_archive( 'eqd-featured-press' ) ) {
@@ -56,9 +56,9 @@
$logo = wp_get_attachment_image_src( $custom_logo_id, 'full' );

if ( has_custom_logo() ) {
$site_logo = esc_url( $logo[0] ); // This is your logo's URL
$site_logo = esc_url( $logo[0] );
} else {
$site_logo = esc_url( get_stylesheet_directory_uri() ) . '/images/default-logo.png'; // Path to default logo
$site_logo = esc_url( get_stylesheet_directory_uri() ) . '/images/default-logo.png';
}

?>
@@ -91,29 +91,28 @@
</div>
<?php
} else {
// Check if 'slug' is set in the URL parameters
if ( isset( $_GET['landing_page'] ) ) {
$page_slug = $_GET['landing_page'];
// Check if 'slug' is set in the URL parameters.
if ( isset( $_GET['landing_page'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Used to get the landing page slug.
$page_slug = sanitize_text_field( $_GET['landing_page'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Used to get the landing page slug.

// Query for the page by slug
$args = array(
// Query for the page by slug.
$args = array(
'post_type' => 'slp_landing',
'post_status' => 'publish',
'numberposts' => 1,
'meta_query' => array(
'meta_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Meta query is needed.
array(
'key' => 'landing_page_url_text',
'value' => $page_slug,
'compare' => '=',
),
),
);
$page = get_posts( $args );

// If the page exists, redirect or load the page
if ( $page ) {
$page_id = $page[0]->ID;
$landing_page = get_posts( $args );

// If the page exists, redirect or load the page.
if ( $landing_page ) {
$page_id = $landing_page[0]->ID;
$parameter_page = $page_id;
}
}
@@ -126,7 +125,7 @@
?>

<section class="landing-page-navigation">
<a href="<?php the_field( 'booking_link', $parameter_page ); ?>" class="btn">Get Help</a>
<a href="<?php echo esc_url( get_field( 'booking_link', $parameter_page ) ); ?>" class="btn">Get Help</a>
</section>
<?php endif; ?>

Loading
Loading