当前位置: 首页>>代码示例>>PHP>>正文


PHP FLBuilder::render_module_css方法代码示例

本文整理汇总了PHP中FLBuilder::render_module_css方法的典型用法代码示例。如果您正苦于以下问题:PHP FLBuilder::render_module_css方法的具体用法?PHP FLBuilder::render_module_css怎么用?PHP FLBuilder::render_module_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FLBuilder的用法示例。


在下文中一共展示了FLBuilder::render_module_css方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

px;
	-moz-border-radius: <?php 
echo $settings->btn_border_radius;
?>
px;
	-webkit-border-radius: <?php 
echo $settings->btn_border_radius;
?>
px;
}
.fl-subscribe-form-inline .fl-form-field input,
.fl-subscribe-form-inline .fl-form-field input[type=text] {
	height: <?php 
echo $settings->btn_padding * 2 + ($settings->btn_font_size + 4);
?>
px;
}
.fl-subscribe-form-inline a.fl-button {
	height: <?php 
echo $settings->btn_padding * 2 + ($settings->btn_font_size + 4);
?>
px;
	line-height: <?php 
echo $settings->btn_font_size;
?>
px !important;
}

<?php 
FLBuilder::render_module_css('button', $id, array('align' => '', 'bg_color' => $settings->btn_bg_color, 'bg_hover_color' => $settings->btn_bg_hover_color, 'bg_opacity' => $settings->btn_bg_opacity, 'border_radius' => $settings->btn_border_radius, 'border_size' => $settings->btn_border_size, 'font_size' => $settings->btn_font_size, 'icon' => $settings->btn_icon, 'icon_position' => $settings->btn_icon_position, 'link' => '#', 'link_target' => '_self', 'padding' => $settings->btn_padding, 'style' => $settings->btn_style, 'text' => $settings->btn_text, 'text_color' => $settings->btn_text_color, 'text_hover_color' => $settings->btn_text_hover_color, 'width' => 'full'));
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:30,代码来源:frontend.css.php

示例2: array

	<?php 
    if (empty($pricing_column->btn_bg_color)) {
        ?>
		background-color: #<?php 
        echo $pricing_column->column_background;
        ?>
 !important;
		border: 1px solid #<?php 
        echo $pricing_column->column_background;
        ?>
 !important;
	<?php 
    }
    ?>

	<?php 
    if (empty($pricing_column->btn_width)) {
        ?>
	 	display:block;
	 	margin: 0 30px 5px;
	<?php 
    }
    ?>
}

<?php 
    FLBuilder::render_module_css('button', $id . ' .fl-pricing-table-column-' . $i, array('align' => 'center', 'bg_color' => $pricing_column->btn_bg_color, 'bg_hover_color' => $pricing_column->btn_bg_hover_color, 'bg_opacity' => $pricing_column->btn_bg_opacity, 'border_radius' => $pricing_column->btn_border_radius, 'border_size' => $pricing_column->btn_border_size, 'font_size' => $pricing_column->btn_font_size, 'icon' => $pricing_column->btn_icon, 'icon_position' => $pricing_column->btn_icon_position, 'link' => $pricing_column->btn_url, 'link_target' => '_self', 'padding' => $pricing_column->btn_padding, 'style' => $pricing_column->btn_style, 'text_color' => $pricing_column->btn_text_color, 'text_hover_color' => $pricing_column->btn_text_hover_color, 'width' => $pricing_column->btn_width));
    ?>

<?php 
}
开发者ID:onedaylabs,项目名称:yote2016.com,代码行数:31,代码来源:frontend.css.php

示例3: array

            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-text, ';
            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-text * ';
            echo '{ color: #' . $slide->r_text_color . '; }';
        } else {
            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-title, ';
            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-text, ';
            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-text * ';
            echo '{ color: inherit; }';
        }
        // Responsive Text BG Color
        if (!empty($slide->r_text_bg_color)) {
            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-content ';
            echo '{ background-color: #' . $slide->r_text_bg_color . '; }';
        } else {
            echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-content ';
            echo '{ background-color: transparent; }';
        }
        // Responsive Text Shadow
        echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-title, ';
        echo '.fl-node-' . $id . ' .fl-slide-' . $i . ' .fl-slide-text ';
        echo '{ text-shadow: none; }';
        echo ' }';
    }
    // Button Styles
    if ($slide->cta_type == 'button') {
        if (!isset($slide->btn_style)) {
            $slide->btn_style = 'flat';
        }
        FLBuilder::render_module_css('button', $id . ' .fl-slide-' . $i, array('align' => '', 'bg_color' => $slide->btn_bg_color, 'bg_hover_color' => $slide->btn_bg_hover_color, 'bg_opacity' => isset($slide->btn_bg_opacity) ? $slide->btn_bg_opacity : 0, 'border_radius' => $slide->btn_border_radius, 'border_size' => isset($slide->btn_border_size) ? $slide->btn_border_size : 2, 'font_size' => $slide->btn_font_size, 'icon' => isset($slide->btn_icon) ? $slide->btn_icon : '', 'icon_position' => isset($slide->btn_icon_position) ? $slide->btn_icon_position : '', 'link' => $slide->link, 'link_target' => $slide->link_target, 'padding' => $slide->btn_padding, 'style' => isset($slide->btn_3d) && $slide->btn_3d ? 'gradient' : $slide->btn_style, 'text' => $slide->cta_text, 'text_color' => $slide->btn_text_color, 'text_hover_color' => $slide->btn_text_hover_color, 'width' => 'auto'));
    }
}
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:31,代码来源:frontend.css.php

示例4: rgba

    ?>
 .fl-module-content {
	background-color: #<?php 
    echo $settings->bg_color;
    ?>
;
	background-color: rgba(<?php 
    echo implode(',', FLBuilderColor::hex_to_rgb($settings->bg_color));
    ?>
, <?php 
    echo $settings->bg_opacity / 100;
    ?>
);
}
<?php 
}
if (is_numeric($settings->spacing)) {
    ?>
.fl-node-<?php 
    echo $id;
    ?>
 .fl-module-content { 
	padding: <?php 
    echo $settings->spacing;
    ?>
px;
}
<?php 
}
FLBuilder::render_module_css('button', $id, array('align' => '', 'bg_color' => $settings->btn_bg_color, 'bg_hover_color' => $settings->btn_bg_hover_color, 'bg_opacity' => $settings->btn_bg_opacity, 'border_radius' => $settings->btn_border_radius, 'border_size' => $settings->btn_border_size, 'font_size' => $settings->btn_font_size, 'icon' => $settings->btn_icon, 'icon_position' => $settings->btn_icon_position, 'link' => $settings->btn_link, 'link_target' => $settings->btn_link_target, 'padding' => $settings->btn_padding, 'style' => isset($settings->btn_3d) && $settings->btn_3d ? 'gradient' : $settings->btn_style, 'text' => $settings->btn_text, 'text_color' => $settings->btn_text_color, 'text_hover_color' => $settings->btn_text_hover_color, 'width' => $settings->layout == 'stacked' ? 'auto' : 'full'));
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:30,代码来源:frontend.css.php

示例5: array

<?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, 'text' => '', 'three_d' => $settings->three_d));
?>

/* Left */
.fl-node-<?php 
echo $id;
?>
 .fl-icon-group-left .fl-icon {
	margin-right: <?php 
echo $settings->spacing;
?>
px;
}

/* Center */
.fl-node-<?php 
echo $id;
?>
 .fl-icon-group-center .fl-icon {
	margin-left: <?php 
echo $settings->spacing;
?>
px;
	margin-right: <?php 
echo $settings->spacing;
?>
px;
}
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:30,代码来源:frontend.css.php


注:本文中的FLBuilder::render_module_css方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。