-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from wikitongues/main
staging deploy career gallery link hot fix
- Loading branch information
Showing
5 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
wp-content/plugins/wt-gallery/includes/templates/gallery-careers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
<li class="gallery-item"> | ||
<?php | ||
$title = get_the_title(); | ||
$location = get_field('location'); | ||
<?php | ||
$url = get_permalink(); | ||
$title = get_the_title(); | ||
$location = get_field('location'); | ||
|
||
echo '<a href="">'; | ||
echo '<h3>' . $title . '</h3>'; | ||
echo '<p> — '.$location.'</p>'; | ||
echo '</a>'; | ||
?> | ||
echo '<a href=' . esc_url($url) . '>' . $title . ' — ' . $location . '</a>'; | ||
?> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions
42
wp-content/plugins/wt-gallery/includes/templates/gallery-languages.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<li class="gallery-item"> | ||
<?php | ||
$thumbnail_object = ''; | ||
$iso_code = get_the_title(); | ||
$iso_code_element = '<aside>'.esc_html($iso_code).'</aside>'; | ||
$video_query = get_videos_by_featured_language($iso_code); | ||
$url = home_url('/languages/' . $iso_code, 'relative'); | ||
<?php | ||
$url = get_permalink(); | ||
$thumbnail_object = ''; | ||
$iso_code = get_the_title(); | ||
$iso_code_element = '<aside>'.esc_html($iso_code).'</aside>'; | ||
$video_query = get_videos_by_featured_language($iso_code); | ||
|
||
if ($video_query->have_posts()) { | ||
while ($video_query->have_posts()) { | ||
$video_query->the_post(); | ||
$thumbnail = get_custom_image('videos'); | ||
$video_title = get_custom_title('videos'); | ||
$thumbnail_object .= '<div class="thumbnail" style="background-image:url('.esc_url($thumbnail).');" alt="' . get_the_title() . '"> <p>' . $video_title . '</p></div>'; | ||
} | ||
} else { | ||
$thumbnail_object .= '<div class="no-thumbnail"><p>No resources found to display – Yet.</p></div>'; | ||
} | ||
if ($video_query->have_posts()) { | ||
while ($video_query->have_posts()) { | ||
$video_query->the_post(); | ||
$thumbnail = get_custom_image('videos'); | ||
$video_title = get_custom_title('videos'); | ||
$thumbnail_object .= '<div class="thumbnail" style="background-image:url('.esc_url($thumbnail).');" alt="' . get_the_title() . '"> <p>' . $video_title . '</p></div>'; | ||
} | ||
} else { | ||
$thumbnail_object .= '<div class="no-thumbnail"><p>No resources found to display – Yet.</p></div>'; | ||
} | ||
|
||
echo '<a href="'.$url.'">'; | ||
echo '<div><h3>' . $title . '</h3>' . $iso_code_element . '</div>'; | ||
echo $thumbnail_object; | ||
echo '</a>'; | ||
?> | ||
echo '<a href="' . esc_url($url) . '">'; | ||
echo '<div><h3>' . $title . '</h3>' . $iso_code_element . '</div>'; | ||
echo $thumbnail_object; | ||
echo '</a>'; | ||
?> | ||
</li> |
28 changes: 14 additions & 14 deletions
28
wp-content/plugins/wt-gallery/includes/templates/gallery-resources.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<li class="gallery-item"> | ||
<?php | ||
$external_resources = get_field('external_resources'); | ||
$resource_link = get_field('resource_url'); | ||
$resource_title = get_field('resource_title') ? get_field('resource_title') : get_the_title(); | ||
$resource_description = get_field('resource_description'); | ||
$domain = getDomainFromUrl($resource_link); | ||
<?php | ||
$url = get_field('resource_url'); | ||
$title = get_field('resource_title') ? get_field('resource_title') : get_the_title(); | ||
$external_resources = get_field('external_resources'); | ||
$resource_description = get_field('resource_description'); | ||
$domain = getDomainFromUrl($url); | ||
|
||
echo '<a href="' . esc_url($resource_link) . '">'; | ||
echo '<h1>' . esc_html($resource_title) . '</h1>'; | ||
if ($resource_description) { | ||
echo '<p class="description">' . esc_html($resource_description) . '</p>'; | ||
} | ||
echo '<p class="domain">' . esc_html($domain) . '</p>'; | ||
echo '</a>'; | ||
?> | ||
echo '<a href="' . esc_url($url) . '">'; | ||
echo '<h1>' . esc_html($title) . '</h1>'; | ||
if ($resource_description) { | ||
echo '<p class="description">' . esc_html($resource_description) . '</p>'; | ||
} | ||
echo '<p class="domain">' . esc_html($domain) . '</p>'; | ||
echo '</a>'; | ||
?> | ||
</li> |
17 changes: 9 additions & 8 deletions
17
wp-content/plugins/wt-gallery/includes/templates/gallery-videos.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
<li class="gallery-item"> | ||
<?php | ||
<?php | ||
$url = get_permalink(); | ||
$thumbnail_url = get_custom_image('videos'); | ||
$thumbnail_object = ''; | ||
|
||
if ($thumbnail_url) { | ||
$thumbnail_object= '<div class="thumbnail" style="background-image:url('.esc_url($thumbnail_url).');" alt="' . get_the_title() . '"></div>'; | ||
$thumbnail_object= '<div class="thumbnail" style="background-image:url('.esc_url($thumbnail_url).');" alt="' . get_the_title() . '"></div>'; | ||
} else { | ||
$thumbnail_object= '<div class="no-thumbnail"><p>Thumbnail unavailable</p></div>'; | ||
$thumbnail_object= '<div class="no-thumbnail"><p>Thumbnail unavailable</p></div>'; | ||
} | ||
|
||
echo '<a href="'.esc_url(get_permalink()).'">'; | ||
echo $thumbnail_object; | ||
echo '<div><h3>' . $title . '</h3></div>'; | ||
echo '</a>'; | ||
?> | ||
echo '<a href="' . esc_url($url) . '">'; | ||
echo $thumbnail_object; | ||
echo '<div><h3>' . $title . '</h3></div>'; | ||
echo '</a>'; | ||
?> | ||
</li> |