Option tree list item usages

To create option tree list item metabox

array(
'label'       => 'Team Social',
'id'          => 'team_links',
'type'        => 'list-item',
'section'     => 'social_icons_setting',
'settings'    => array(
    array(
        'id'        => 'social_icon_name',
        'label'     => 'Social Icon Name',
        'type'      => 'text'
    ),
    array(
        'id'        => 'social_link_url',
        'label'     => 'Social Network link',
        'type'      => 'text'
    )
)          
)

Usages

<?php 
    $team_links= get_post_meta($post->ID, 'team_links', true); 
?>
<?php foreach( $team_links as $team_link ) {
    echo '<a tearget="_blank" href="'.$team_link['social_link_url'].'"><i class="fa fa-'.$team_link['social_icon_name'].'"></i></a>';
} ?>

Option tree demo theme option

<?php

add_action( 'admin_init', 'my_theme_custom_theme_options', 1 );


function my_theme_custom_theme_options() {

  $saved_settings = get_option( 'option_tree_settings', array() );
  

  $custom_settings = array(
    'contextual_help' => array(
      'content'       => array( 
        array(
          'id'        => 'general_help',
          'title'     => 'General',
          'content'   => '<p>Help content goes here!</p>'
        )
      ),
      'sidebar'       => '<p>Sidebar content goes here!</p>'
    ),
    'sections'        => array(
      array(
        'title'       => 'General',
        'id'          => 'general_default'
      )
    ),
    'settings'        => array(
      array(
        'label'       => 'News page Banner',
        'id'          => 'news_page_banner',
        'type'        => 'upload',
        'section'     => 'general_default'
      )
    )
  );
  

  $custom_settings = apply_filters( 'option_tree_settings_args', $custom_settings );
  

  if ( $saved_settings !== $custom_settings ) {
    update_option( 'option_tree_settings', $custom_settings ); 
  }
  
}

Register option tree metabox

function my_theme_custom_meta_boxes() {

$post_meta_box = array(
'id'          => 'post_meta_box',
'title'       => 'Metabox',
'pages'       => array( 'post' ),
'context'     => 'normal',
'priority'    => 'high',
'fields'      => array(
  array(
    'label'       => 'Title',
    'id'          => 'title',
    'type'        => 'text'
  )
)
);
ot_register_meta_box( $post_meta_box );