PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
themes
/
bumbleb
/
inc
<?php $bumbleb_settings = bumbleb_global_settings(); $repeat = isset($bumbleb_settings['background_repeat']) && $bumbleb_settings['background_repeat'] ? $bumbleb_settings['background_repeat'] : "no-repeat"; $layout = isset($bumbleb_settings['layout']) && $bumbleb_settings['layout'] ? $bumbleb_settings['layout'] : ""; $bg_image_box = isset($bumbleb_settings['background_box_img']) ? $bumbleb_settings['background_box_img'] : ""; $background_color = isset($bumbleb_settings['background_color']) ? $bumbleb_settings['background_color'] : ""; function bumbleb_hex2rgb($hex) { $hex = str_replace("#", "", $hex); if(strlen($hex) == 3) { $r = hexdec(substr($hex,0,1).substr($hex,0,1)); $g = hexdec(substr($hex,1,1).substr($hex,1,1)); $b = hexdec(substr($hex,2,1).substr($hex,2,1)); } else { $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); } $rgb = array($r, $g, $b); return implode(",", $rgb); } ?> <?php if($background_color) : ?> body{ background-color: <?php echo esc_html($background_color); ?> ; } <?php endif; ?> <?php if( (isset($bg_image_box['url']) && $bg_image_box['url']) && ($layout == 'boxed' )) {?> body.box-layout{ <?php if( $layout == 'boxed' && $bg_image_box['url']) : ?> background-image: url("<?php echo esc_url( $bg_image_box['url'] ) ?>"); background-position: top center; background-attachment: fixed; background-size: cover; background-repeat: <?php echo esc_html( $repeat )?>; <?php endif; ?> } <?php } ?> <?php $background_img = isset($bumbleb_settings['background_img']) ? $bumbleb_settings['background_img'] : ""; if( ( isset($background_img['url']) && $background_img['url']) && ($layout != 'boxed' ) ) { ?> body{ background-image: url("<?php echo esc_html( $background_img['url'] ); ?>"); background-repeat: <?php echo esc_html( $repeat )?>; } <?php } ?>
[+]
admin
[-] woocommerce.php
[edit]
[-] loader.php
[edit]
[+]
..
[-] custom-css.php
[edit]
[+]
megamenu
[-] plugin-requirement.php
[edit]
[-] menus.php
[edit]
[-] template-tags.php
[edit]
[-] class-tgm-plugin-activation.php
[edit]
[-] function.php
[edit]