| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/plugins/trx_addons2/components/widgets/socials/ |
| Current File : /home/eglisebaa/www/wp-content/plugins/trx_addons2/components/widgets/socials/tpe.socials.php |
<?php
/**
* Template to represent shortcode as a widget in the Elementor preview area
*
* Written as a Backbone JavaScript template and using to generate the live preview in the Elementor's Editor
*
* @package WordPress
* @subpackage ThemeREX Addons
* @since v1.6.41
*/
extract(get_query_var('trx_addons_args_widget_socials'));
extract(trx_addons_prepare_widgets_args('widget_socials_'.mt_rand(), 'widget_socials'));
// Before widget (defined by themes)
trx_addons_show_layout($before_widget);
// Widget title if one was input (before and after defined by themes)
?><#
if (settings.title != '') {
#><?php trx_addons_show_layout($before_title); ?><#
print(settings.title);
#><?php trx_addons_show_layout($after_title); ?><#
}
// Widget body
if (settings.description != '') {
#><div class="socials_description">{{{ settings.description }}}</div><#
}
var socials = settings.type == 'socials'
? '<?php echo str_replace(array("'", "\r", "\n"), array("\\'", "%13", "%10"), trx_addons_get_socials_links()); ?>'
: '<?php echo str_replace(array("'", "\r", "\n"), array("\\'", "%13", "%10"), trx_addons_get_share_links(array(
'type' => 'block',
'caption' => '',
'echo' => false
))); ?>';
if ( socials != '') {
#><div class="{{ settings.type }}_wrap sc_align_{{ settings.align }}"><# print(socials); #></div><#
}
#><?php
// After widget (defined by themes)
trx_addons_show_layout($after_widget);