function be_themes_set_backgrounds($section) { global $be_themes_data; $background_color = ''; $background_image = ''; $background_repeat = ''; $background_attachment = ''; $background_position = ''; if (isset($be_themes_data[$section]['color'])) { $background_color = $be_themes_data[$section]['color']; } if (isset($be_themes_data[$section]['recur'])) { $background_repeat = $be_themes_data[$section]['recur']; } if (isset($be_themes_data[$section]['attach'])) { $background_attachment = $be_themes_data[$section]['attach']; } if (isset($be_themes_data[$section]['position'])) { $background_position = $be_themes_data[$section]['position']; } if (isset($be_themes_data[$section]['none'])) { echo 'background: none;'; } elseif (isset($be_themes_data[$section]['custom'])) { if (!empty($be_themes_data[$section]['bgpattern'])) { $background_image = $be_themes_data[$section]['bgpattern']; echo 'background: ' . $background_color . ' url(' . $background_image . ') ' . $background_repeat . ' ' . $background_attachment . ' ' . $background_position . ';'; } else { if (!empty($background_color)) { be_themes_background_colors($be_themes_data[$section]['color'], $be_themes_data[$section]['opacity']); } } } elseif ($be_themes_data[$section]['background'] != "None") { if (isset($be_themes_data[$section]['background'])) { $background_image = 'url(' . get_template_directory_uri() . '/css/patterns/' . $be_themes_data[$section]['background'] . '.png)'; } echo 'background: ' . $background_color . ' ' . $background_image . ' ' . $background_repeat . ' ' . $background_attachment . ' ' . $background_position . ';'; } else { be_themes_background_colors($be_themes_data[$section]['color'], $be_themes_data[$section]['opacity']); } }
?> ; } .gallery-info-box-wrap .arrow_prev .font-icon, .gallery-info-box-wrap .arrow_next .font-icon { color: <?php echo $be_themes_data['slider_nav_color']; ?> ; } .arrow-block .arrow_prev:hover, .arrow-block .arrow_next:hover { <?php be_themes_background_colors($be_themes_data['slider_nav_hover_bg']['color'], $be_themes_data['slider_nav_hover_bg']['alpha']); ?> } .arrow-border .arrow_prev:hover, .arrow-border .arrow_next:hover { border: 1px solid <?php echo $be_themes_data['slider_nav_hover_bg']['color']; ?> ; } .gallery-info-box-wrap .arrow_prev:hover .font-icon, .gallery-info-box-wrap .arrow_next:hover .font-icon { color: <?php echo $be_themes_data['slider_nav_hover_color'];
function be_themes_set_backgrounds($section) { global $be_themes_data; $background_color = ''; $background_image = ''; $background_repeat = ''; $background_attachment = ''; $background_position = ''; if (isset($be_themes_data[$section]['background-color'])) { $background_color = $be_themes_data[$section]['background-color']; } if (isset($be_themes_data[$section]['background-repeat'])) { $background_repeat = $be_themes_data[$section]['background-repeat']; } if (isset($be_themes_data[$section]['background-attachment'])) { $background_attachment = $be_themes_data[$section]['background-attachment']; } if (isset($be_themes_data[$section]['background-position'])) { $background_position = $be_themes_data[$section]['background-position']; } if ('transparent' == $background_color) { echo 'background: none;'; } elseif (!empty($be_themes_data[$section]['background-image'])) { $background_image = $be_themes_data[$section]['background-image']; echo 'background: ' . $background_color . ' url(' . $background_image . ') ' . $background_repeat . ' ' . $background_attachment . ' ' . $background_position . ';'; } else { if (!empty($background_color)) { be_themes_background_colors($be_themes_data[$section]['background-color'], 1); //$be_themes_data[$section]['opacity'] ); } } }