FEATURE Introducing the get_archive_page inforlmations utilities functions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8b5c8af4fb
commit
a292bafa3d
|
|
@ -26,3 +26,29 @@ function test()
|
|||
|
||||
return $tags;
|
||||
}
|
||||
|
||||
|
||||
function get_archive_page_icon_html($post_type)
|
||||
{
|
||||
switch ($post_type) {
|
||||
case 'analyses-etudes':
|
||||
return '<img class="page_icon" src="' . get_template_directory_uri() . '/resources/img/icons/icon-analyses-etudes.svg" alt="Analyses et études" />';
|
||||
case 'revues':
|
||||
return '<img class="page_icon" src="' . get_stylesheet_directory_uri() . '/resources/img/icons/revues.svg" alt="Revues" />';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function get_archive_page_subtitle_html($post_type)
|
||||
{
|
||||
switch ($post_type) {
|
||||
case 'analyses-etudes':
|
||||
return '<span class="page_subtitle">Accédez à nos recherches et publications thématiques.</span>';
|
||||
case 'revues':
|
||||
return '<span class="page_subtitle">Accédez à nos revues et publications</span> ';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user