-
Notifications
You must be signed in to change notification settings - Fork 6
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 #3 from visual-framework/feature/query-group-conte…
…nthub-profile Begin update of vf-header template, pull in short and long descrip
- Loading branch information
Showing
6 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
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,12 +1,20 @@ | ||
<div class="vf-masthead"> | ||
<div class="vf-masthead__inner"> | ||
<div class="vf-masthead" style="background-color: var(--vf-masthead__color--background, var(--vf-masthead__color--background-default)); color: var(--vf-masthead__color--foreground, var(--vf-masthead__color--foreround-default) );"> | ||
<div class="vf-masthead__title"> | ||
<div class="vf-masthead__title-inner"> | ||
<h1 class="vf-masthead__heading | text--heading--xl"> | ||
<h1 class="vf-masthead__heading"> | ||
<a class="vf-masthead__heading__link" href="<?php echo home_url(); ?>"><?php echo esc_html(get_bloginfo('name')); ?></a> | ||
<span class="vf-masthead__heading--additional"> | ||
<?php | ||
if ( class_exists('VF_Cache') ) { | ||
$uuid = vf__get_site_uuid(); | ||
$short_description = VF_Cache::get_post('https://dev.beta.embl.org/api/v1/pattern.html?filter-content-type=profiles&filter-uuid='.$uuid.'&pattern=node-strapline&source=contenthub'); | ||
// we don't want any of the contentHub `div`s. `span`s are OK though | ||
$short_description = str_replace(array('<div', '</div>'), array('<span', '</span>'), $short_description); | ||
print $short_description; | ||
} | ||
?> | ||
</span> | ||
</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!--/vf-masthead--> |