<get_render_attribute_string( 'premium_person_name' ) ); ?>>
>
<get_render_attribute_string( 'premium_person_title' ) ); ?>>
>
get_render_attribute_string( 'premium_person_content' ) ); ?>>
parse_text_editor( $settings['premium_person_content'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
< class="premium-person-name">get_render_attribute_string( 'premium_person_name' ) ); ?>>>
get_social_icons();
endif;
?>
get_social_icons();
endif;
?>
get_repeater_setting_key( 'multiple_name', 'multiple_persons', $index );
$title_setting_key = $this->get_repeater_setting_key( 'multiple_title', 'multiple_persons', $index );
$desc_setting_key = $this->get_repeater_setting_key( 'multiple_description', 'multiple_persons', $index );
$this->add_inline_editing_attributes( $name_setting_key, 'advanced' );
$this->add_render_attribute( $name_setting_key, 'class', 'premium-person-name' );
$this->add_inline_editing_attributes( $title_setting_key, 'advanced' );
$this->add_render_attribute( $title_setting_key, 'class', 'premium-person-title' );
$this->add_inline_editing_attributes( $desc_setting_key, 'advanced' );
$this->add_render_attribute( $desc_setting_key, 'class', 'premium-person-content' );
?>
<get_render_attribute_string( $name_setting_key ) ); ?>>
>
<get_render_attribute_string( $title_setting_key ) ); ?>>
>
get_render_attribute_string( $desc_setting_key ) ); ?>>
parse_text_editor( $person['multiple_description'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
< class="premium-person-name">
get_render_attribute_string( $name_setting_key ) ); ?>>
>
get_social_icons( $person );
endif;
?>
get_social_icons( $person );
endif;
?>
<#
view.addInlineEditingAttributes( 'premium_person_name', 'advanced' );
view.addRenderAttribute( 'premium_person_name', 'class', 'premium-person-name' );
view.addInlineEditingAttributes( 'premium_person_title', 'advanced' );
view.addRenderAttribute( 'premium_person_title', 'class', 'premium-person-title' );
view.addInlineEditingAttributes( 'premium_person_content', 'advanced' );
view.addRenderAttribute( 'premium_person_content', 'class', 'premium-person-content' );
var nameHeading = elementor.helpers.validateHTMLTag( settings.premium_person_name_heading ),
titleHeading = elementor.helpers.validateHTMLTag( settings.premium_person_title_heading ),
imageEffect = 'premium-person-' + settings.premium_person_hover_image_effect + '-effect' ;
skin = settings.premium_person_style;
view.addRenderAttribute( 'persons_container', 'class', [ 'premium-persons-container', 'premium-person-' + skin ] );
view.addRenderAttribute('person_container', 'class', [ 'premium-person-container', imageEffect ] );
var imageHtml = '';
if ( settings.premium_person_image.url ) {
var image = {
id: settings.premium_person_image.id,
url: settings.premium_person_image.url,
size: settings.thumbnail_size,
dimension: settings.thumbnail_custom_dimension,
model: view.getEditModel()
};
var image_url = elementor.imagesManager.getImageUrl( image );
}
if ( settings.multiple ) {
var persons = settings.multiple_persons;
view.addRenderAttribute( 'persons_container', 'class', 'multiple-persons' );
view.addRenderAttribute( 'persons_container', 'data-persons-equal', settings.multiple_equal_height );
}
var carousel = 'yes' === settings.carousel ? true : false;
if( carousel ) {
view.addRenderAttribute('persons_container', {
'data-carousel': carousel,
});
}
function getSocialIcons( person = null ) {
var personSettings,
socialIcons;
if( null === person ) {
personSettings = settings;
socialIcons = {
facebook: settings.premium_person_facebook,
twitter: settings.premium_person_twitter,
linkedin: settings.premium_person_linkedin,
google: settings.premium_person_google,
youtube: settings.premium_person_youtube,
instagram: settings.premium_person_instagram,
skype: settings.premium_person_skype,
pinterest: settings.premium_person_pinterest,
dribbble: settings.premium_person_dribbble,
behance: settings.premium_person_behance,
whatsapp: settings.premium_person_whatsapp,
telegram: settings.premium_person_telegram,
mail: settings.premium_person_mail,
site: settings.premium_person_site,
number: settings.premium_person_number
};
} else {
personSettings = person;
socialIcons = {
facebook: person.multiple_facebook,
twitter: person.multiple_twitter,
linkedin: person.multiple_linkedin,
google: person.multiple_google,
youtube: person.multiple_youtube,
instagram: person.multiple_instagram,
skype: person.multiple_skype,
pinterest: person.multiple_pinterest,
dribbble: person.multiple_dribbble,
behance: person.multiple_behance,
whatsapp: person.multiple_whatsapp,
telegram: person.multiple_telegram,
mail: person.multiple_mail,
site: person.multiple_site,
number: person.multiple_number
};
}
#>
<# if( 'yes' !== settings.multiple ) { #>
<# if ( 'style2' === settings.premium_person_style && 'yes' === settings.premium_person_social_enable ) { #>
<# getSocialIcons(); #>
<# } #>
<# if( 'style3' !== skin && '' != settings.premium_person_name ) { #>
<{{{nameHeading}}} {{{ view.getRenderAttributeString('premium_person_name') }}}>
{{{ settings.premium_person_name }}}
{{{nameHeading}}}>
<# }
if( 'style3' === skin ) { #>
<# }
if( '' != settings.premium_person_title ) { #>
<{{{titleHeading}}} {{{ view.getRenderAttributeString('premium_person_title') }}}>
{{{ settings.premium_person_title }}}
{{{titleHeading}}}>
<# }
if( '' != settings.premium_person_content ) { #>
{{{ settings.premium_person_content }}}
<# }
if( 'style3' === skin ) { #>
<# }
if( 'style3' === skin ) { #>
<# if( '' != settings.premium_person_name ) { #>
<{{{nameHeading}}} {{{ view.getRenderAttributeString('premium_person_name') }}}>
{{{ settings.premium_person_name }}}
{{{nameHeading}}}>
<# }
if( 'yes' === settings.premium_person_social_enable ) {
getSocialIcons();
} #>
<# }
if ( 'style1' === settings.premium_person_style && 'yes' === settings.premium_person_social_enable ) {
getSocialIcons();
} #>
<# } else {
_.each( persons, function( person, index ) {
var nameSettingKey = view.getRepeaterSettingKey( 'multiple_name', 'multiple_persons', index ),
titleSettingKey = view.getRepeaterSettingKey( 'multiple_title', 'multiple_persons', index ),
descSettingKey = view.getRepeaterSettingKey( 'multiple_description', 'multiple_persons', index );
view.addInlineEditingAttributes( nameSettingKey, 'advanced' );
view.addRenderAttribute( nameSettingKey, 'class', 'premium-person-name' );
view.addInlineEditingAttributes( titleSettingKey, 'advanced' );
view.addRenderAttribute( titleSettingKey, 'class', 'premium-person-title' );
view.addInlineEditingAttributes( descSettingKey, 'advanced' );
view.addRenderAttribute( descSettingKey, 'class', 'premium-person-content' );
var personImageHtml = '';
if ( person.multiple_image.url ) {
var personImage = {
id: person.multiple_image.id,
url: person.multiple_image.url,
size: settings.thumbnail_size,
dimension: settings.thumbnail_custom_dimension,
model: view.getEditModel()
};
var personImageUrl = elementor.imagesManager.getImageUrl( personImage );
}
#>
<# if ( 'style2' === settings.premium_person_style && 'yes' === person.multiple_social_enable ) { #>
<# getSocialIcons( person ); #>
<# } #>
<# if( 'style3' !== skin && '' != person.multiple_name ) { #>
<{{{nameHeading}}} {{{ view.getRenderAttributeString( nameSettingKey ) }}}>
{{{ person.multiple_name }}}
{{{nameHeading}}}>
<# }
if( 'style3' === skin ) { #>
<# }
if( '' != person.multiple_title ) { #>
<{{{titleHeading}}} {{{ view.getRenderAttributeString( titleSettingKey ) }}}>
{{{ person.multiple_title }}}
{{{titleHeading}}}>
<# }
if( '' != person.multiple_description ) { #>
{{{ person.multiple_description }}}
<# }
if( 'style3' === skin ) { #>
<# }
if( 'style3' === skin ) { #>
<# if( '' != settings.premium_person_name ) { #>
<{{{nameHeading}}} {{{ view.getRenderAttributeString( nameSettingKey ) }}}>
{{{ person.multiple_name }}}
{{{nameHeading}}}>
<# }
if( 'yes' === person.multiple_social_enable ) {
getSocialIcons( person );
} #>
<# }
if ( 'style1' === settings.premium_person_style && 'yes' === person.multiple_social_enable ) {
getSocialIcons( person );
} #>
<# });
} #>