I have an option in my theme settings that is made by option tree that is border type. now I want to say if that wasn't empty, set css for my div.
my id of border type in option tree is header-1-border-top. when I use :
<?php print_r(ot_get_option( 'header-1-border-top' )); ?>
in my php file it shows me this:
Array ( [width] => 2 [unit] => px [style] => solid [color] => #8224e3 )
and this is where I want to set my style :
<style type="text/css">
.filmview-header-1 {
<?php if (ot_get_option( 'header-1-border-top' ) !== ''){ ?>
border-top: /*what put here?*/;
<?php } ?>
}
</style>
I don't know what should I put where I wrote /*what put here?*/ to everything work well.
ot_get_option( 'header-1-border-top')['width'] . ot_get_option( 'header-1-border-top')['unit'] . " " . ot_get_option( 'header-1-border-top')['style'] . " " . ot_get_option( 'header-1-border-top')['color']