HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
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,
Upload Files
File: //var/www/mussarq_bak/wp-content/themes/wpnull24/framework/config/elements/cta.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

$body_fontsize = us_get_option( 'body_fontsize', '16px' );
$btn_styles = us_get_btn_styles();

$misc = us_config( 'elements_misc' );
$design_options = us_config( 'elements_design_options' );

return array(
	'title' => __( 'ActionBox', 'us' ),
	'description' => __( 'Content box with call to action button', 'us' ),
	'icon' => 'icon-wpb-call-to-action',
	'params' => array_merge( array(

		// General
		'title' => array(
			'title' => us_translate( 'Title' ),
			'type' => 'text',
			'std' => 'This is ActionBox',
			'holder' => 'div',
		),
		'title_size' => array(
			'title' => __( 'Title Size', 'us' ),
			'description' => $misc['desc_font_size'],
			'type' => 'text',
			'std' => '',
			'cols' => 2,
			'show_if' => array( 'title', '!=', '' ),
		),
		'title_tag' => array(
			'title' => __( 'Title HTML tag', 'us' ),
			'type' => 'select',
			'options' => $misc['html_tag_values'],
			'std' => 'h2',
			'show_if' => array( 'title', '!=', '' ),
			'cols' => 2,
		),
		'content' => array(
			'title' => us_translate( 'Description' ),
			'type' => 'textarea',
			'std' => '',
			'holder' => 'div',
		),
		'color' => array(
			'title' => us_translate( 'Colors' ),
			'type' => 'select',
			'options' => array(
				'primary' => __( 'Primary bg & White text', 'us' ),
				'secondary' => __( 'Secondary bg & White text', 'us' ),
				'light' => __( 'Alternate bg & Content text', 'us' ),
				'custom' => us_translate( 'Custom' ),
			),
			'std' => 'primary',
		),
		'bg_color' => array(
			'title' => __( 'Background Color', 'us' ),
			'type' => 'color',
			'std' => '',
			'show_if' => array( 'color', '=', 'custom' ),
		),
		'text_color' => array(
			'title' => __( 'Text Color', 'us' ),
			'type' => 'color',
			'std' => '',
			'show_if' => array( 'color', '=', 'custom' ),
		),
		'controls' => array(
			'title' => __( 'Buttons Location', 'us' ),
			'type' => 'select',
			'options' => array(
				'right' => us_translate( 'Right' ),
				'bottom' => us_translate( 'Bottom' ),
			),
			'std' => 'right',
		),

		// Button 1
		'btn_label' => array(
			'title' => __( 'Button Label', 'us' ),
			'type' => 'text',
			'std' => __( 'Click Me', 'us' ),
			'group' => __( 'Button', 'us' ) . ' 1',
		),
		'btn_link' => array(
			'title' => us_translate( 'Link' ),
			'type' => 'link',
			'std' => '',
			'group' => __( 'Button', 'us' ) . ' 1',
		),
		'btn_style' => array(
			'title' => us_translate( 'Style' ),
			'description' => $misc['desc_btn_styles'],
			'type' => 'select',
			'options' => $btn_styles,
			'std' => '1',
			'group' => __( 'Button', 'us' ) . ' 1',
		),
		'btn_size' => array(
			'title' => us_translate( 'Size' ),
			'description' => $misc['desc_font_size'],
			'type' => 'text',
			'std' => $body_fontsize,
			'group' => __( 'Button', 'us' ) . ' 1',
		),
		'btn_icon' => array(
			'title' => __( 'Icon', 'us' ),
			'type' => 'icon',
			'std' => '',
			'group' => __( 'Button', 'us' ) . ' 1',
		),
		'btn_iconpos' => array(
			'title' => __( 'Icon Position', 'us' ),
			'type' => 'select',
			'options' => array(
				'left' => us_translate( 'Left' ),
				'right' => us_translate( 'Right' ),
			),
			'std' => 'left',
			'group' => __( 'Button', 'us' ) . ' 1',
		),

		// Button 2
		'second_button' => array(
			'type' => 'switch',
			'switch_text' => __( 'Display second button', 'us' ),
			'std' => FALSE,
			'group' => __( 'Button', 'us' ) . ' 2',
		),
		'btn2_label' => array(
			'title' => __( 'Button Label', 'us' ),
			'type' => 'text',
			'std' => __( 'Click Me', 'us' ),
			'show_if' => array( 'second_button', '!=', FALSE ),
			'group' => __( 'Button', 'us' ) . ' 2',
		),
		'btn2_link' => array(
			'title' => us_translate( 'Link' ),
			'type' => 'link',
			'std' => '',
			'show_if' => array( 'second_button', '!=', FALSE ),
			'group' => __( 'Button', 'us' ) . ' 2',
		),
		'btn2_style' => array(
			'title' => us_translate( 'Style' ),
			'description' => $misc['desc_btn_styles'],
			'type' => 'select',
			'options' => $btn_styles,
			'std' => '1',
			'show_if' => array( 'second_button', '!=', FALSE ),
			'group' => __( 'Button', 'us' ) . ' 2',
		),
		'btn2_size' => array(
			'title' => us_translate( 'Size' ),
			'description' => $misc['desc_font_size'],
			'type' => 'text',
			'std' => $body_fontsize,
			'show_if' => array( 'second_button', '!=', FALSE ),
			'group' => __( 'Button', 'us' ) . ' 2',
		),
		'btn2_icon' => array(
			'title' => __( 'Icon', 'us' ),
			'type' => 'icon',
			'std' => '',
			'show_if' => array( 'second_button', '!=', FALSE ),
			'group' => __( 'Button', 'us' ) . ' 2',
		),
		'btn2_iconpos' => array(
			'title' => __( 'Icon Position', 'us' ),
			'type' => 'select',
			'options' => array(
				'left' => us_translate( 'Left' ),
				'right' => us_translate( 'Right' ),
			),
			'std' => 'left',
			'show_if' => array( 'second_button', '!=', FALSE ),
			'group' => __( 'Button', 'us' ) . ' 2',
		),

	), $design_options ),
);