Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/themify-builder/modules/module-divider.php
Ðазад
<?php defined('ABSPATH') || exit; /** * Module Name: Divider * Description: Display Divider */ class TB_Divider_Module extends Themify_Builder_Component_Module { public function __construct() { parent::__construct('divider'); } public function get_name() { return __('Divider', 'themify'); } public function get_icon() { return 'line-dashed'; } public function get_assets() { return array( 'css' => 1 ); } public function get_options() { return array( array( 'id' => 'mod_title_divider', 'type' => 'title' ), array( 'id' => 'style_divider', 'type' => 'layout', 'mode' => 'sprite', 'label' => __('Divider Style', 'themify'), 'options' => array( array('img' => 'solid', 'value' => 'solid', 'label' => 'solid'), array('img' => 'dotted', 'value' => 'dotted', 'label' => 'dotted'), array('img' => 'dashed', 'value' => 'dashed', 'label' => 'dashed'), array('img' => 'double', 'value' => 'double', 'label' => 'double') ) ), array( 'id' => 'stroke_w_divider', 'type' => 'range', 'label' => __('Thickness', 'themify'), 'class' => 'xsmall', 'units' => array( 'px' => array( 'max' => 5000 ) ) ), array( 'id' => 'color_divider', 'type' => 'color', 'label' => 'c' ), array( 'id' => 'top_margin_divider', 'type' => 'range', 'label' => __('Top Margin', 'themify'), 'class' => 'xsmall', 'units' => array( 'px' => array( 'min' => -2500, 'max' => 3500 ) ) ), array( 'id' => 'bottom_margin_divider', 'type' => 'range', 'label' => __('Bottom Margin', 'themify'), 'class' => 'xsmall', 'units' => array( 'px' => array( 'min' => -2500, 'max' => 3500 ) ) ), array( 'id' => 'divider_type', 'type' => 'radio', 'label' => __('Divider Width', 'themify'), 'options' => array( array('value' => 'fullwidth', 'name' => 'fw'), array('value' => 'custom', 'name' => 'cus') ), 'option_js' => true ), array( 'id' => 'divider_width', 'type' => 'range', 'label' => 'w', 'class' => 'xsmall', 'wrap_class' => 'tb_group_element_custom', 'units' => array( 'px' => array( 'max' => 5000 ) ) ), array( 'id' => 'divider_align', 'type' => 'icon_radio', 'label' =>'align', 'aligment2' => true, 'wrap_class' => 'tb_group_element_custom' ), array('type' => 'custom_css_id', 'custom_css' => 'css_divider'), ); } public function get_styling() { return array( 'type' => 'tabs', 'options' => array( 'm_t' => array( 'options' => $this->module_title_custom_style() ) ) ); } public function get_live_default() { return array( 'stroke_w_divider' => 1, 'color_divider' => '000', 'divider_width' => 150 ); } protected function _visual_template() { $module_args = self::get_module_args('mod_title_divider'); ?> <# let style = '', align = 'custom' == data.divider_type && data.divider_align ? 'divider-' + data.divider_align : ''; if ( data.stroke_w_divider ){ style += 'border-width:'+ data.stroke_w_divider +'px; '; } if ( data.color_divider ){ style += 'border-color:' + api.Helper.toRGBA(data.color_divider) + '; '; } if ( data.top_margin_divider ){ style += 'margin-top:' + data.top_margin_divider + 'px; '; } if ( data.bottom_margin_divider ){ style += 'margin-bottom:'+ data.bottom_margin_divider +'px; '; } if ( 'custom' == data.divider_type && data.divider_width > 0 ){ style += 'width:'+ data.divider_width +'px; '; } #> <div class="module module-<?php echo $this->slug; ?> divider-{{ (data.divider_type || 'fullwidth') }} {{ (data.style_divider || 'solid') }} {{ align }} {{ data.css_divider }} tf_mw" style="{{ style }}"> <# if ( data.mod_title_divider ) { #> <?php echo $module_args['before_title']; ?>{{{ data.mod_title_divider }}}<?php echo $module_args['after_title']; ?> <# } #> </div> <?php } } new TB_Divider_Module();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка