HEX
Server: Apache/2.4.25
System: Linux ion14 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
User: (10087)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,system, exec, shell_exec, passthru, popen, proc_open
Upload Files
File: /home/www/web115/wordpress/wp-content/plugins/grve-osmosis-vc-extension/shortcodes/grve_divider.php
<?php
/**
 * Divider Shortcode
 */

if( !function_exists( 'grve_divider_shortcode' ) ) {

	function grve_divider_shortcode( $atts, $content ) {

		$output = $class_fullwidth = $style = $el_class = '';

		extract(
			shortcode_atts(
				array(
					'title' => '',
					'line_type' => 'space',
					'backtotop_title' => '',
					'padding_top' => '',
					'padding_bottom' => '',
					'margin_bottom' => '',
					'el_class' => '',
				),
				$atts
			)
		);

		$style .= grve_osmosis_vce_build_margin_bottom_style( $margin_bottom );
		$style .= grve_osmosis_vce_build_padding_top_style( $padding_top );
		$style .= grve_osmosis_vce_build_padding_bottom_style( $padding_bottom );

		$output .= '<div class="grve-element grve-hr grve-' . $line_type . '-divider' . $el_class.'" style="' . $style . '">';
		if ( !empty( $backtotop_title ) && 'top-line' == $line_type ) {
			$output .= '    <span class="grve-divider-backtotop">' . $backtotop_title. '</span>';
		}
		$output .= '</div>';

		return $output;
	}
	add_shortcode( 'grve_divider', 'grve_divider_shortcode' );

}

/**
 * Add shortcode to Page Builder
 */

if( !function_exists( 'grve_osmosis_vce_divider_shortcode_params' ) ) {
	function grve_osmosis_vce_divider_shortcode_params( $tag ) {
		return array(
			"name" => __( "Divider", "grve-osmosis-vc-extension" ),
			"description" => __( "Insert dividers, just spaces or different lines", "grve-osmosis-vc-extension" ),
			"base" => $tag,
			"class" => "",
			"icon"      => "icon-wpb-grve-divider",
			"category" => __( "Content", "js_composer" ),
			"params" => array(
				array(
					"type" => "dropdown",
					"heading" => __( "Line type", "grve-osmosis-vc-extension" ),
					"param_name" => "line_type",
					"value" => array(
						__( "Space", "grve-osmosis-vc-extension" ) => 'space',
						__( "Simple", "grve-osmosis-vc-extension" ) => 'line',
						__( "Double", "grve-osmosis-vc-extension" ) => 'double-line',
						__( "Dashed", "grve-osmosis-vc-extension" ) => 'dashed-line',
						__( "Back to Top", "grve-osmosis-vc-extension" ) => 'top-line',
					),
					"description" => '',
					"admin_label" => true,
				),
				array(
					"type" => "textfield",
					"heading" => __( "Back to Top Title", "grve-osmosis-vc-extension" ),
					"param_name" => "backtotop_title",
					"value" => "Back to top",
					"description" => __( "Set Back to top title.", "grve-osmosis-vc-extension" ),
					"dependency" => Array( 'element' => "line_type", 'value' => array( 'top-line' ) ),
				),
				array(
					"type" => "textfield",
					"heading" => __( "Top padding", "grve-osmosis-vc-extension" ),
					"param_name" => "padding_top",
					"description" => __( "You can use px, em, %, etc. or enter just number and it will use pixels.", "grve-osmosis-vc-extension" ),
				),
				array(
					"type" => "textfield",
					"heading" => __( "Bottom padding", "grve-osmosis-vc-extension" ),
					"param_name" => "padding_bottom",
					"description" => __( "You can use px, em, %, etc. or enter just number and it will use pixels.", "grve-osmosis-vc-extension" ),
				),
				grve_osmosis_vce_add_margin_bottom(),
				grve_osmosis_vce_add_el_class(),
			),
		);
	}
}

if( function_exists( 'vc_lean_map' ) ) {
	vc_lean_map( 'grve_divider', 'grve_osmosis_vce_divider_shortcode_params' );
} else if( function_exists( 'vc_map' ) ) {
	$attributes = grve_osmosis_vce_divider_shortcode_params( 'grve_divider' );
	vc_map( $attributes );
}

//Omit closing PHP tag to avoid accidental whitespace output errors.