Repository URL to install this package:
|
Version:
3.1.7 ▾
|
<script type="text/javascript">
window._nslDOMReady(function () {
const container = document.getElementById('<?php echo $containerID; ?>');
if (container) {
const separatorToRemove = container.querySelector(".nsl-separator");
if (separatorToRemove) {
separatorToRemove.remove();
}
const separator = document.createElement('div');
separator.classList.add('nsl-separator');
separator.innerHTML = '<?php _e('OR', 'nextend-facebook-connect'); ?>';
container.insertBefore(separator, container.firstChild);
}
const innerContainer = container.querySelector(".nsl-container");
if (innerContainer) {
innerContainer.classList.add('nsl-container-custom-actions-layout-default-separator-top');
innerContainer.style.display = 'block';
}
});
</script>
<?php
$style = '
{{containerID}} {
clear: both;
}
{{containerID}} .nsl-container {
display: none;
}
{{containerID}} .nsl-separator {
display: flex;
flex-basis: 100%;
align-items: center;
color: #72777c;
margin: 20px 0 20px;
font-weight: bold;
}
{{containerID}} .nsl-separator::before,
{{containerID}} .nsl-separator::after {
content: "";
flex-grow: 1;
background: #dddddd;
height: 1px;
font-size: 0;
line-height: 0;
margin: 0 8px;
}
{{containerID}} .nsl-container-custom-actions-layout-default-separator-top {
clear: both;
}';
?>
<style type="text/css">
<?php echo str_replace('{{containerID}}','#' . $containerID, $style); ?>
</style>
<?php
$style = '
{{containerID}} .nsl-container {
display: block;
}';
?>