Пример #1
0
?>
;
}



/* Custom Fonts
// ========================================================================== */

.h-landmark {
  font-weight: <?php 
echo $x_body_font_weight;
?>
;
  <?php 
if (x_is_font_italic($x_body_font_weight_and_style)) {
    ?>
    font-style: italic;
  <?php 
}
?>
}



/* Custom Fonts - Colors
// ========================================================================== */

/*
// Body.
*/
Пример #2
0
function x_get_font_weight($font_weight_and_style)
{
    $font_weight = x_is_font_italic($font_weight_and_style) ? str_replace('italic', '', $font_weight_and_style) : $font_weight_and_style;
    return $font_weight;
}
<?php 
if ($x_custom_fonts == '1') {
    ?>
  font-family: <?php 
    echo $x_headings_font_family;
    ?>
;
<?php 
}
?>
font-weight: <?php 
echo $x_headings_font_weight;
?>
;
<?php 
if (x_is_font_italic($x_headings_font_weight_and_style)) {
    ?>
  font-style: italic;
<?php 
}
if (x_get_option('x_headings_uppercase_enable', '') == 1) {
    ?>
  text-transform: uppercase;
<?php 
}
?>
}

<?php 
if ($x_custom_fonts == '1') {
    ?>
Пример #4
0
$x_navbar_font_family = x_get_option('x_navbar_font_family');
$x_navbar_font_size = x_get_option('x_navbar_font_size');
$x_navbar_font_weight_and_style = x_get_option('x_navbar_font_weight');
$x_navbar_link_color = x_get_option('x_navbar_link_color');
$x_navbar_link_color_hover = x_get_option('x_navbar_link_color_hover');
$x_navbar_letter_spacing = x_get_option('x_navbar_letter_spacing');
//
// 1. Check if fonts are italic.
// 2. Remove 'italic' from setting output if it exists to provide us with just
//    the weight to work with.
// 3. Get the font stack.
//
$x_body_font_is_italic = x_is_font_italic($x_body_font_weight_and_style);
$x_headings_font_is_italic = x_is_font_italic($x_headings_font_weight_and_style);
$x_logo_font_is_italic = x_is_font_italic($x_logo_font_weight_and_style);
$x_navbar_font_is_italic = x_is_font_italic($x_navbar_font_weight_and_style);
$x_body_font_weight = x_get_font_weight($x_body_font_weight_and_style);
$x_headings_font_weight = x_get_font_weight($x_headings_font_weight_and_style);
$x_logo_font_weight = x_get_font_weight($x_logo_font_weight_and_style);
$x_navbar_font_weight = x_get_font_weight($x_navbar_font_weight_and_style);
$x_body_font_stack = x_get_font_data($x_body_font_family, 'stack');
$x_headings_font_stack = x_get_font_data($x_headings_font_family, 'stack');
$x_logo_font_stack = x_get_font_data($x_logo_font_family, 'stack');
$x_navbar_font_stack = x_get_font_data($x_navbar_font_family, 'stack');
// Header
// =============================================================================
$x_navbar_positioning = x_get_navbar_positioning();
$x_logo_adjust_navbar_top = x_get_option('x_logo_adjust_navbar_top');
$x_logo_adjust_navbar_side = x_get_option('x_logo_adjust_navbar_side');
$x_logo_navigation_layout = x_get_option('x_logo_navigation_layout');
$x_logobar_adjust_spacing_top = x_get_option('x_logobar_adjust_spacing_top');