| Server IP : 69.39.225.240 / Your IP : 216.73.216.138 Web Server : Apache System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : reademotions ( 1074) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/reademotions/www/wp-content/plugins/bb-plugin/modules/icon-group/includes/ |
Upload File : |
<?php
FLBuilder::render_module_css('icon', $id, array(
'align' => '',
'bg_color' => $settings->bg_color,
'bg_hover_color' => $settings->bg_hover_color,
'color' => $settings->color,
'hover_color' => $settings->hover_color,
'icon' => '',
'link' => '',
'link_target' => '',
'size' => $settings->size,
'size_unit' => $settings->size_unit,
'size_large' => $settings->size_large,
'size_large_unit' => $settings->size_large_unit,
'size_medium' => $settings->size_medium,
'size_medium_unit' => $settings->size_medium_unit,
'size_responsive' => $settings->size_responsive,
'size_responsive_unit' => $settings->size_responsive_unit,
'text' => '',
'three_d' => $settings->three_d,
));
// Alignment
FLBuilderCSS::responsive_rule( array(
'settings' => $settings,
'setting_name' => 'align',
'selector' => ".fl-node-$id .fl-icon-group",
'prop' => 'text-align',
) );
// Spacing
FLBuilderCSS::responsive_rule( array(
'settings' => $settings,
'setting_name' => 'spacing',
'selector' => ".fl-node-$id .fl-icon + .fl-icon",
'prop' => 'margin-left',
) );
foreach ( $settings->icons as $i => $icon ) :
$index = $i + 1;
if ( ! empty( $icon->bg_color ) ) {
foreach ( array( '', 'large', 'medium', 'responsive' ) as $device ) {
$key = empty( $device ) ? 'size' : "size_{$device}";
$unit_key = "{$key}_unit";
if ( isset( $settings->{ $key } ) && ! empty( $settings->{ $key } ) ) {
FLBuilderCSS::rule( array(
'media' => $device,
'selector' => ".fl-node-$id .fl-module-content .fl-icon:nth-child($index) i",
'props' => array(
'line-height' => array(
'value' => $settings->{ $key } * 1.75,
'unit' => $settings->{ $unit_key },
),
'height' => array(
'value' => $settings->{ $key } * 1.75,
'unit' => $settings->{ $unit_key },
),
'width' => array(
'value' => $settings->{ $key } * 1.75,
'unit' => $settings->{ $unit_key },
),
),
) );
}
}
}
?>
<?php if ( isset( $icon->color ) && ! empty( $icon->color ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i,
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i:before {
color: <?php echo FLBuilderColor::hex_or_rgb( $icon->color ); ?>;
}
<?php endif; ?>
<?php if ( isset( $icon->bg_color ) && ! empty( $icon->bg_color ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i {
background: <?php echo FLBuilderColor::hex_or_rgb( $icon->bg_color ); ?>;
border-radius: 100%;
-moz-border-radius: 100%;
-webkit-border-radius: 100%;
text-align: center;
}
<?php endif; ?>
<?php if ( isset( $icon->hover_color ) && ! empty( $icon->hover_color ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i:hover,
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i:hover:before,
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) a:hover i,
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) a:hover i:before {
color: <?php echo FLBuilderColor::hex_or_rgb( $icon->hover_color ); ?>;
}
<?php endif; ?>
<?php if ( isset( $icon->bg_hover_color ) && ! empty( $icon->bg_hover_color ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i:hover,
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) a:hover i {
background: <?php echo FLBuilderColor::hex_or_rgb( $icon->bg_hover_color ); ?>;
}
<?php endif; ?>
<?php if ( $icon->duo_color1 && false !== strpos( $icon->icon, 'fad fa' ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i:before {
color: <?php echo FLBuilderColor::hex_or_rgb( $icon->duo_color1 ); ?>;
}
<?php endif; ?>
<?php if ( $icon->duo_color2 && false !== strpos( $icon->icon, 'fad fa' ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-module-content .fl-icon:nth-child(<?php echo $index; ?>) i:after {
color: <?php echo FLBuilderColor::hex_or_rgb( $icon->duo_color2 ); ?>;
opacity: 1;
}
<?php endif; ?>
<?php endforeach; ?>