forked from seatonjiang/kratos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader-banner.php
23 lines (23 loc) · 1.01 KB
/
header-banner.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* The template for displaying the header
*
* @author Vtrois <[email protected]>
* @license GPL-3.0
*/
switch (kratos_option('background_mode')) {
case 'image':
if(kratos_option('background_image')){
echo '<div class="kratos-start kratos-hero-2"><div class="kratos-overlay"></div><div class="kratos-cover kratos-cover_2 text-center" style="background-image: url(' . kratos_option('background_image') . ');"><div class="desc desc2 animate-box"><h2>' . kratos_option('background_image_text1') . '</h2><span>' . kratos_option('background_image_text2') . '</span></div></div></div>';
}
break;
case 'color':
if( kratos_option('background_color') ){
echo '<div class="kratos-start kratos-hero-2 kratos-post-header"><div class="kratos-overlay kratos-post" style="background:' . kratos_option('background_color') . '"></div></div>';
}
break;
default:
echo '<div class="kratos-start kratos-hero-2 kratos-post-header"><div class="kratos-overlay kratos-post" style="background:#222831"></div></div>';
break;
}
?>