<div id='neildgblock'>
<div class="row col-mdinitial items_<{$block.items}>">
<{foreach item=content from=$block.content  name=content}>
<div tabindex='0' id='dg_block<{$smarty.foreach.content.iteration}>'  class="a11y_box <{$block.items|neillibrary_change_colmd}> row-initial block_each dg_block <{if $smarty.foreach.content.last}>last_box<{/if}>" aria-label="<{$content.before_t}><{$content.digital}><{$content.after_t}><{$content.side_t}>">
<div id='before_t_box' aria-hidden='true'  tabindex='-1'><{$content.before_t}></div>
<div id='content_box'aria-hidden='true'  tabindex='-1'>
<span class='numscroller' data-min='1' data-max='<{$content.digital}>' data-delay='<{$block.options.5}>' data-increment='<{$block.options.4}>'><{$content.digital}></span>
<span id='after_t_box'><{$content.after_t}></span>
</div>
<div id='side_t_box' aria-hidden='true'  tabindex='-1'><{$content.side_t}></div>
<{if $xoops_isadmin}>    
<a  href="<{xoAppUrl}>modules/neothemesadmin/admin/advertise.php?op=advertise4&menutype=4&dgad=<{$content.dgad}>" target="_blank" class="btn btn-primary navbar-btn btn-block" role="button"><{$smarty.const._MA_NEIL_POPUPADS_BLOCK10}></a>
<{/if}>
</div>
<{/foreach}>
</div>
</div>


<{if $block.setting.themefolder  eq 'computer'}>
<script type='text/javascript'>
if($('body.animationtrue').length == '1'){
function neildgblock_function(index = 0, column = 0) {
    var $contentbox = '#' + $("#neildgblock .block_each").eq(index).attr("id");   
        $('#neildgblock ' + $contentbox + '').css({
            "animation-name": "dg_block",
            "left": "0px",
            "opacity": "1"
        });        
        if (index < $("#neildgblock .block_each").length - 1) {
            var nextColumn = (column + 1) % <{$block.items}>;
            var delay = 180;
            if (nextColumn === 0) {
                delay = 800;
            }
            setTimeout(function() {
                neildgblock_function(index + 1, nextColumn);
            }, delay);
        }
}
}
</script>
<{/if}>

<script>
if($("#construct<{$block.bid}>").length == '1') {
$("#construct<{$block.bid}>").addClass('noblockcontent');
}
$('.box<{$block.bid}> .block-title .ielement').html("<span class="blocktitle blocktitleto<{$block.bid}>" name="<{$block.bid}>"><{$block.titlevar}></span>");	
</script>