HEX
Server: LiteSpeed
System:
User: ()
PHP: 7.3.33
Disabled: ln,cat,popen,pclose,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,system,dl,passthru,exec,shell_exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,mysql_list_dbs,get_current_user,getmyuid,pconnect,link,symlink,pcntl_exec,ini_alter,pfsockopen,leak,apache_child_terminate,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,stream_select,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual,ini_get_all,php_passthru,posix_uname,php_uname,highlight_file,define_syslog_variables,ftp_exec,inject_code,eval
Upload Files
File: /var/www/vhosts/miroglu.net/subdomains/serhatburke/wp-content/themes/toppic/includes/vc-func.php
<?php

/*-----------------------------------------------------------------------------------*/
/* List of post types for which Visual Composer should be available by default
/*-----------------------------------------------------------------------------------*/

$list = array(
    'page',
	'gallery',
	'portfolio'
);

//vc_editor_set_post_types( $list );


/* --- Removing shortcodes --- */

vc_remove_element("vc_widget_sidebar");

$attributes_vc_gallery = array(
			'type' => 'dropdown',
			'heading' => __( 'On click', 'toppic' ),
			'param_name' => 'onclick',
			'value' => array(
				__( 'Open lightbox', 'toppic' ) => 'link_image',
				__( 'Do nothing', 'toppic' ) => 'link_no',
				__( 'Open custom link', 'toppic' ) => 'custom_link'
			),
			'description' => __( 'Define action for onclick event if needed.', 'toppic' )
		);
vc_add_param( 'vc_gallery', $attributes_vc_gallery, 1 );



$attributes_vc_images_carousel = array(
			'type' => 'dropdown',
			'heading' => __( 'On click', 'toppic' ),
			'param_name' => 'onclick',
			'value' => array(
				__( 'Open lightbox', 'toppic' ) => 'link_image',
				__( 'Do nothing', 'toppic' ) => 'link_no',
				__( 'Open custom link', 'toppic' ) => 'custom_link'
			),
			'description' => __( 'What to do when slide is clicked?', 'toppic' )
		);

vc_add_param( 'vc_images_carousel', $attributes_vc_images_carousel, 1 );


/* --- Button shortcode--- */

vc_map( array(
	'name' => __( 'Button', 'toppic' ),
	'base' => 'kk_button',
	'icon' => 'icon-wpb-ui-button',
	'category' => __( 'Content', 'toppic' ),
	'params' => array(
			array(
				'type' => 'textfield',
				'heading' => __( 'Text', 'toppic' ),
				'save_always' => true,
				'param_name' => 'title',
				'value' => __( 'Text on the button', 'toppic' ),
			),
			array(
			'type' => 'vc_link',
			'heading' => __( 'URL (Link)', 'toppic' ),
			'param_name' => 'link',
			'description' => __( 'Add link to button.', 'toppic' ),
			// compatible with btn2 and converted from href{btn1}
			),	
			array(
			'type' => 'dropdown',
			'heading' => __( 'Size', 'toppic' ),
			'param_name' => 'size',
			'description' => __( 'Select button display size.', 'toppic' ),
			// compatible with btn2, default md, but need to be converted from btn1 to btn2
			'std' => 'kk-me',
			'value' => array(
				__( 'Large', 'toppic' ) => 'kk-lg',
				__( 'Medium', 'toppic' ) => 'kk-me',
				__( 'Small', 'toppic' ) => 'kk-sm',
				),
			),			
		),
));


?>