<?php
/**
 * Social Profiles Tab
 * ===================
 *
 * @since 4.8.2
 */
if( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly

global $avia_config, $avia_pages, $avia_elements;

$desc  = __( 'You can enter links to your social profiles here. Afterwards you can choose where to display them by activating them in the respective area', 'avia_framework' );
$desc .= ' ( ' . __( 'e.g:', 'avia_framework' ) . " <a href='#goto_layout'>" . __( 'General Layout', 'avia_framework' ) . "</a>, <a href='#goto_header'>" . __( 'Header', 'avia_framework' ) . "</a>, <a href='#goto_footer'>" . __( 'Footer', 'avia_framework' ) . '</a> )';
$icon_info = '<br /><strong class="av-text-notice">' . __( 'We recommend that you use SVG icons on new sites and switch to the SVG icons on existing sites because the default icon font might get deprecated in a future version.', 'avia_framework' ) . '</strong>';

$avia_elements[] = array(
			'slug'			=> 'social',
			'name'			=> __( 'Your Social Profiles', 'avia_framework' ),
			'desc'			=> $desc . $icon_info,
			'id'			=> 'socialdescription',
			'type'			=> 'heading',
			'std'			=> '',
			'nodescription'	=> true
		);

$avia_elements[] = array(
			'slug'			=> 'social',
			'id' 			=> 'social_icons',
			'type' 			=> 'group',
			'linktext' 		=> '+',
			'deletetext' 	=> '×',
			'blank' 		=> true,
			'nodescription' => true,
			'std'			=> array(
									array( 'social_icon' => 'twitter', 'social_icon_link' => 'https://twitter.com/kriesi' ),
									array( 'social_icon' => 'dribbble', 'social_icon_link' => 'https://dribbble.com/kriesi' ),
								),
			'subelements' 	=> array(

									array(
										'slug'		=> 'social',
										'name'		=> __( 'Social Icon', 'avia_framework' ),
										'desc'		=> '',
										'id'		=> 'social_icon',
										'type'		=> 'select',
										'std'		=> 'twitter',
										'class'		=> 'av_2columns av_col_1',
										'subtype'	=> $avia_config['social_icon_array']
									),

									array(
										'slug'		=> 'social',
										'name'		=> __( 'Social Icon URL:', 'avia_framework' ),
										'desc'		=> '',
										'id'		=> 'social_icon_link',
										'type'		=> 'text',
										'std'		=> '',
										'class'		=> 'av_2columns av_col_2' ),
									)
								);


