File "Cf7_Template.php"
Full Path: /home/pumpbmko/public_html/wp-content/plugins/xs30byau/includes/lib/Cf7_Template.php
File size: 5.36 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Class Cf7_Template
*/
class Cf7_Template {
public static function settings_item_start($title) {
?>
<div class="cf7cstmzr-settings-item">
<h4 class="cf7cstmzr-settings-item-header"><?php echo $title; ?></h4>
<div class="cf7cstmzr-settings-item-body">
<div class="cf7cstmzr-settings-item-body-container">
<?php
}
public static function settings_item_end() {
?>
</div>
</div>
</div>
<?php
}
public static function setting_shadow($style_scheme, $element) {
?>
<label><?php _e('Shadow', 'cf7-styler') ?></label>
<div style="margin-bottom:10px;">
<div style="display: inline-block;vertical-align: top;margin-right: 10px;">
<label for="cf7cstmzr_<?php echo $element ?>_shadow_horizontal-length"><?php _e('Horizontal Length', 'cf7-styler') ?></label>
<input id="cf7cstmzr_<?php echo $element ?>_shadow_horizontal-length" name="cf7cstmzr_<?php echo $element ?>_shadow_horizontal-length" class="cf7cstmzr-number cf7cstmzr-form-control cf7cstmzr-text-field" min="-200" max="200" type="number" value="<?php echo $style_scheme[$element . '_border_shadow_horizontal_length']; ?>">
</div>
<div style="display: inline-block;vertical-align: top;margin-right: 10px;">
<label for="cf7cstmzr_<?php echo $element ?>_shadow_vertical-length"><?php _e('Vertical Length', 'cf7-styler') ?></label>
<input id="cf7cstmzr_<?php echo $element ?>_shadow_vertical-length" name="cf7cstmzr_<?php echo $element ?>_shadow_vertical-length" class="cf7cstmzr-number cf7cstmzr-form-control cf7cstmzr-text-field" min="-200" max="200" type="number" value="<?php echo $style_scheme[$element . '_border_shadow_vertical_length']; ?>">
</div>
</div>
<div style="margin-bottom:10px;">
<div style="display: inline-block;vertical-align: top;margin-right: 10px;">
<label for="cf7cstmzr_<?php echo $element ?>_shadow_blur-radius"><?php _e('Blur radius', 'cf7-styler') ?></label>
<input id="cf7cstmzr_<?php echo $element ?>_shadow_blur-radius" name="cf7cstmzr_<?php echo $element ?>_shadow_blur-radius" class="cf7cstmzr-number cf7cstmzr-form-control cf7cstmzr-text-field" min="0" type="number" value="<?php echo $style_scheme[$element . '_border_shadow_blur_radius']; ?>">
</div>
<div style="display: inline-block;vertical-align: top;margin-right: 10px;">
<label for="cf7cstmzr_<?php echo $element ?>_shadow_spread-radius"><?php _e('Spread radius', 'cf7-styler') ?></label>
<input id="cf7cstmzr_<?php echo $element ?>_shadow_spread-radius" name="cf7cstmzr_<?php echo $element ?>_shadow_spread-radius" class="cf7cstmzr-number cf7cstmzr-form-control cf7cstmzr-text-field" type="number" value="<?php echo $style_scheme[$element . '_border_shadow_spread_radius']; ?>">
</div>
</div>
<div style="margin-bottom:10px;">
<div style="display: inline-block;vertical-align: top;margin-right: 10px;">
<label for="cf7cstmzr_<?php echo $element ?>_shadow_color"><?php _e('Shadow Color', 'cf7-styler') ?></label>
<input id="cf7cstmzr_<?php echo $element ?>_shadow_color" name="cf7cstmzr_<?php echo $element ?>_shadow_color" class="cf7cstmzr-color-picker" type="text" value="<?php echo $style_scheme[$element . '_border_shadow_color']; ?>">
</div>
<div style="display: inline-block;vertical-align: top;margin-right: 10px;">
<label for="cf7cstmzr_<?php echo $element ?>_shadow_opacity"><?php _e('Opacity', 'cf7-styler') ?></label>
<input id="cf7cstmzr_<?php echo $element ?>_shadow_opacity" name="cf7cstmzr_<?php echo $element ?>_shadow_opacity" class="cf7cstmzr-number cf7cstmzr-form-control cf7cstmzr-text-field" min="0" max="1" step="0.1" type="number" value="<?php echo $style_scheme[$element . '_border_shadow_opacity']; ?>">
</div>
</div>
<label for="cf7cstmzr_<?php echo $element ?>_shadow_position"><?php _e('Shadow Position', 'cf7-styler') ?></label>
<select name="cf7cstmzr_<?php echo $element ?>_shadow_position" id="cf7cstmzr_<?php echo $element ?>_shadow_position" class="cf7cstmzr-form-control cf7cstmzr-dropdown-field" style="max-width:100px;">
<option value=""><?php _e('- select -', 'cf7-styler') ?></option>
<option value="outline"<?php echo $style_scheme[$element . '_border_shadow_position'] === 'outline' ? ' selected' : ''; ?>><?php _e('Outline', 'cf7-styler') ?></option>
<option value="inset"<?php echo $style_scheme[$element . '_border_shadow_position'] === 'inset' ? ' selected' : ''; ?>><?php _e('Inset', 'cf7-styler') ?></option>
</select>
<?php
}
public static function get_border_type() {
return array(
'inherit' => __('Inherit', 'cf7-styler'),
'solid' => __('Solid', 'cf7-styler'),
'dotted' => __('Dotted', 'cf7-styler'),
'dashed' => __('Dashed', 'cf7-styler'),
'double' => __('Double', 'cf7-styler'),
'groove' => __('Groove', 'cf7-styler'),
'ridge' => __('Ridge', 'cf7-styler'),
'inset' => __('Inset', 'cf7-styler'),
'outset' => __('Outset', 'cf7-styler'),
);
}
}