芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Margin.php
"ultimate_margins", * "positions" => array( * "Top" => "top", * "Bottom" => "bottom", * "Left" => "left", * "Right" => "right" * ), * ), * * @package Ultimate_VC_Addons_Margin_Param. */ if ( ! class_exists( 'Ultimate_VC_Addons_Margin_Param' ) ) { /** * Class Ultimate_VC_Addons_Margin_Param * * @class Ultimate_VC_Addons_Margin_Param. */ class Ultimate_VC_Addons_Margin_Param { /** * Initiator __construct. */ public function __construct() { if ( defined( 'WPB_VC_VERSION' ) && version_compare( WPB_VC_VERSION, 4.8 ) >= 0 ) { if ( function_exists( 'vc_add_shortcode_param' ) ) { vc_add_shortcode_param( 'ultimate_margins', array( $this, 'ultimate_margins_param' ), UAVC_URL . 'admin/vc_extend/js/vc-headings-param.js' ); } } else { if ( function_exists( 'add_shortcode_param' ) ) { add_shortcode_param( 'ultimate_margins', array( $this, 'ultimate_margins_param' ), UAVC_URL . 'admin/vc_extend/js/vc-headings-param.js' ); } } } /** * Ultimate_margins_param. * * @param array $settings Settings. * @param string $value Value. */ public function ultimate_margins_param( $settings, $value ) { $dependency = ''; $positions = $settings['positions']; $html = '
'; foreach ( $positions as $key => $position ) { $html .= esc_attr( $key ) . '
'; } $html .= '
'; return $html; } } } if ( class_exists( 'Ultimate_VC_Addons_Margin_Param' ) ) { $ultimate_margin_param = new Ultimate_VC_Addons_Margin_Param(); }