HEX
Server: Apache/2
System: Linux server-27-254-144-72.da.direct 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: pokaorgani (1114)
PHP: 8.1.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pokaorgani/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/tabs.class.php
<?php

/**
 * Class SiteOrigin_Widget_Field_Tabs
 */
class SiteOrigin_Widget_Field_Tabs extends SiteOrigin_Widget_Field_Base {
	/**
	 * The list of options which may be selected.
	 *
	 * @access protected
	 * @var array
	 */
	protected $tabs;

	protected function render_field( $value, $instance ) {
		if ( empty( $this->tabs ) ) {
			return;
		}
		?>
		<ul class="siteorigin-widget-tabs" <?php if ( count( $this->tabs ) == 1 ) echo 'style="display: none;"'; ?>>
			<?php
			foreach( $this->tabs as $id => $tab ) {
				?><li data-id="<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $tab ); ?></li><?php
			}
			?>
		</ul>
		<?php
	}

	protected function sanitize_field_input( $value, $instance ) {
		return;
	}

	function enqueue_scripts() {
		wp_enqueue_script( 'so-tabs-field', plugin_dir_url( __FILE__ ) . 'js/tabs-field' . SOW_BUNDLE_JS_SUFFIX . '.js', array( 'jquery' ), SOW_BUNDLE_VERSION );
	}

}